orders.lookup_by_email
Lookup orders by customer email
Fetch recent orders for a customer identified by email address. Retail primary lookup.
readShopify, 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", …).
| Field | Type | Required | Description |
|---|---|---|---|
| string | yes | format: email | |
| limit | integer | no | 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.
| Field | Type | Required | Description |
|---|---|---|---|
| items | array<object> | no | |
| total | number | null | no | |
| status | string | null | no | |
| orderId | string | yes | Customer-facing order number |
| currency | string | null | no | |
| placedAt | string | null | no | format: date-time |
| tracking | array<object> | no | |
| shippedAt | string | null | no | format: date-time |
| customerEmail | string | null | no | For ownership checks only — never shown to a customer |
| fulfilmentStatus | string | null | no |
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.