Order status
order_statusLook up one order. Use it after purchase to confirm delivery and read the activation code, whenever a purchase returned status processing, and to check data usage. Read-only. Example: {order_id: "ord_..."}. Returns the current order state, eSIM delivery payload, activation and data usage from the supplier, receipts, and the latest disputes (disputes_total counts all). Any agent of the order's principal may call it (and regenerate_activation and request_refund) for the order; other principals get ORDER_NOT_FOUND.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"order_id": "<order_id>"
},
"name": "order_status"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent_id | No | Your agent id (or X-Agent-Id header) | |
| order_id | Yes | Order id from purchase (order.order_id) or from an earlier order_status call | |
| agent_key | No | Secret returned by register_agent (or X-Agent-Key header) | |
| principal_id | No | The principal you act for (or X-Principal-Id header) |