Prepare checkout link
prepare_checkoutAlternative to create_order when the buyer prefers to finish on the website (e.g. to upload the print file there). Items as in create_order; name, phone, email and comment are optional. Returns checkout_url: the items are already in the cart and the contacts are filled in; the buyer chooses delivery, uploads the print file and submits 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": {
"items": "<items>"
},
"name": "prepare_checkout"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| city | No | City name ("Москва", "Kazan", "Almaty") or slug from find_city. Default: Moscow. | |
| items | Yes | Order items (offset products only), each exactly as listed by get_price_table for the same city. | |
| comment | No | Optional comment to the order (up to 1000 characters). | |
| customer_name | No | Optional buyer name for the order form. | |
| customer_email | No | Optional buyer email; order status and payment receipt are sent there. | |
| customer_phone | No | Optional buyer phone, e.g. +7 999 123-45-67. |