Update checkout details
update_checkoutUpdate customer details or payment_method only before payment-link generation. Paid, cancelled and payment-in-progress checkouts are rejected. Concurrent state changes are detected; retrieve the latest status before retrying.
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": {
"checkout_id": "<checkout_id>"
},
"name": "update_checkout"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| customer | No | ||
| checkout_id | Yes | ||
| payment_method | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ap2 | No | ||
| items | No | ||
| status | Yes | ||
| message | No | ||
| currency | Yes | ||
| customer | No | ||
| next_step | No | ||
| total_zar | Yes | ||
| item_count | No | ||
| checkout_id | Yes | ||
| payment_url | No | ||
| payment_method | No | ||
| provider_reference | No |