Skip to content
Konstera
Capability catalogue
ordersreadfanout

orders.list_recent

List recent orders

List recent orders, optionally scoped to a single customer and/or a time window.

Effect
read
Fanout
yes
Cache TTL
none
Traits
none

Request arguments

Passed as the args parameter to ctx.capability.call("orders.list_recent", …).

FieldTypeRequiredDescription
limitintegerno
default: 20 · min: 1 · max: 100
sinceIsostringno
format: date-time
customerIdstringno

Response

Returned by ctx.capability.call("orders.list_recent", …).

Array; each element is an object with the following fields.

FieldTypeRequiredDescription
itemsarray<object>no
totalnumber | nullno
statusstring | nullno
orderIdstringyesCustomer-facing order number
currencystring | nullno
placedAtstring | nullno
format: date-time
trackingarray<object>no
shippedAtstring | nullno
format: date-time
customerEmailstring | nullnoFor ownership checks only — never shown to a customer
fulfilmentStatusstring | nullno

Example call

From inside your agent's handle(). The kernel resolves orders.list_recent to the tenant's connector binding at invocation time.

response = await ctx.capability.call(
    "orders.list_recent",
    args={
        "limit": 20,
        "sinceIso": "2026-01-01T00:00:00Z",
        "customerId": "...",
    },
)

See SDK quickstart for the full agent handler template; code examples covers invocation patterns including fanout and error handling.