Check a checkout session
get_checkout_statusCheck a checkout session's status to see if the human opened checkout, paid, or has a label ready with tracking; pass the session_id from create_checkout_link.
Instructions
Reports where a create_checkout_link session stands: whether the human opened checkout, paid, and whether the label exists, with the tracking number once it does. Reads SMKlog's own records only: no carrier call, no quote allowance, nothing changes. Poll minutes apart: nothing moves until the human acts.
Statuses, in order: awaiting_checkout, checkout_started, paid (label not bought yet), label_ready (tracking_number present; pass it to track_parcel), delivered, refunded.
Parameter rules:
session_id is the as_ plus UUID id from create_checkout_link; no order id, email or quote_id works.
A session lives 30 days; an unknown, malformed or expired id answers session_not_found.
The answer never carries names, addresses or emails; whoever holds the session_id can read the tracking number.
A manual-review request is not a checkout: the status stays awaiting_checkout.
60 checks an hour per client.
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": {
"session_id": "<session_id>"
},
"name": "get_checkout_status"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | The session_id from create_checkout_link. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| next | No | What, if anything, the agent should do now | |
| amount | No | The amount the session was anchored to, USD | |
| status | Yes | Stage, in that order | |
| service | No | The service the session was anchored to | |
| checkout | No | The checkout the human started, null while awaiting_checkout | |
| currency | No | ISO currency, USD | |
| created_at | No | When create_checkout_link made the session, ISO 8601 | |
| expires_at | No | When the session stops answering, ISO 8601 | |
| session_id | Yes | The session asked about | |
| quote_reused | No | Whether the session reused a quote_id |