Update a checkout
update_checkoutSets the buyer, address, delivery option, payment method (cash on delivery: "cod") or a discount code. Only changed fields are sent. The whole checkout is re-priced and returned.
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": {
"store": "<store>",
"checkoutId": "<checkoutId>"
},
"name": "update_checkout"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| buyer | No | The shopper. The phone must be an Egyptian mobile (01XXXXXXXXX or +201XXXXXXXXX). | |
| items | No | Line items: one entry per product (and variant) with its quantity. 1 to 50 entries. | |
| store | Yes | The store, from find_stores or search_all_stores (its `store` field). | |
| address | No | Delivery address in Egypt. governorate (Arabic or English name), city, area (district), street. | |
| checkoutId | Yes | From create_checkout. | |
| discountCode | No | Empty string removes a code. | |
| paymentMethod | No | Payment method; cod is cash on delivery. | |
| shippingOptionId | No | Id of one of the delivery options listed in the checkout. |