Skip to content
Konstera
Capability catalogue
ordersread

orders.lookup_by_id

Lookup order by ID

Fetch a single order by its ID. Canonical shape returned regardless of source system.

Effect
read
Fanout
no
Cache TTL
120s
Traits
none

Request arguments

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

FieldTypeRequiredDescription
emailstringnoOptional: the requester's email, used by providers to prove the order belongs to them
format: email
orderIdstringyes

Response

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

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.lookup_by_id to the tenant's connector binding at invocation time.

response = await ctx.capability.call(
    "orders.lookup_by_id",
    args={
        "email": "...",
        "orderId": "...",
    },
)

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