Get order status
get_order_statusUse after payment, or when the user asks where their cards are. Returns order and per-card status without recipient details. If Stripe confirms a completed payment whose notification was missed, checking status can start printing and mailing those cards.
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": {
"ref": "<ref>"
},
"name": "get_order_status"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | Yes | Private order reference returned by prepare_postcard. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | Yes | Private order reference. Treat like a password. | |
| mode | Yes | "test" = free sandbox (never printed, Stripe test card 4242 4242 4242 4242). "live" = real card, printed and mailed. Always explicit. | |
| cards | Yes | ||
| total | Yes | ||
| status | Yes | ||
| createdAt | Yes | ||
| statusUrl | Yes | ||
| recipients | Yes | ||
| checkoutUrl | Yes | Stripe-hosted payment page (when awaiting payment). | |
| nextActions | Yes | What the agent can do next, in order of preference. | |
| frontPreviewUrl | Yes |