Skip to content
Konstera
Capability catalogue
ordersreadfanout

orders.lookup_by_phone

Lookup orders by customer mobile number

Fetch a customer's recent orders by mobile number, for stores that identify customers by mobile. Weaker identity proof than the sender's email: agents should flag these matches for human confirmation.

Effect
read
Fanout
yes
Cache TTL
120s
Traits
none

Request arguments

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

FieldTypeRequiredDescription
limitintegerno
default: 5 · min: 1 · max: 50
phonestringyesMobile number; providers match on the last 10 digits

Response

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

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

response = await ctx.capability.call(
    "orders.lookup_by_phone",
    args={
        "limit": 5,
        "phone": "...",
    },
)

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