Skip to content
Konstera
Capability catalogue
ordersreadfanout

orders.lookup_by_email

Lookup orders by customer email

Fetch recent orders for a customer identified by email address. Retail primary lookup.

Effect
read
Fanout
yes
Cache TTL
120s
Traits
none
Implemented by

Shopify, BigCommerce, WooCommerce, NetSuite, custom REST

The tenant picks one of these when they bind this capability at install time. New implementations land as connectors ship — browse the connector catalogue.

Request arguments

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

FieldTypeRequiredDescription
emailstringyes
format: email
limitintegerno
default: 10 · min: 1 · max: 50

Response

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

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

response = await ctx.capability.call(
    "orders.lookup_by_email",
    args={
        "email": "...",
        "limit": 10,
    },
)

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