Start a checkout
create_checkoutStarts a checkout from product ids and quantities, priced by the store. The response lists requirements (the fields still missing) and the checkoutUrl where the buyer finishes the order.
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>",
"items": "<items>"
},
"name": "create_checkout"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| buyer | No | The shopper. The phone must be an Egyptian mobile (01XXXXXXXXX or +201XXXXXXXXX). | |
| items | Yes | 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. | |
| discountCode | No | Discount code to apply, up to 64 characters. |