Prepare buyer and delivery details for a cart
prepare_order_detailsAttach the buyer and delivery details to a cart so the user does not type them at checkout; the shop allows this on the user's behalf. Fill in every field you already know about the user (from the conversation or your memory of the user) and ask the user only for what is missing; the response lists missing_fields. Requires cart_url (the continue_url from create_cart or get_cart). Returns a one-time continue_url (valid 24 h): the user opens it, the products go to their own cart and the checkout form is prefilled; they check it, choose payment and place the order themselves. For an invoice to a company pass company_name and nip. Customers who are logged in keep their saved addresses and only get the cart.
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": {
"cart_url": "<cart_url>"
},
"name": "prepare_order_details"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nip | No | Polish NIP or EU VAT number for the invoice (optional) | |
| city | No | Billing city | |
| No | Buyer e-mail (order confirmation goes there) | ||
| phone | No | Buyer phone for the courier, e.g. +48 600 000 000 | |
| street | No | Billing street and number | |
| country | No | Billing country ISO code, default PL | PL |
| cart_url | Yes | continue_url of the cart from create_cart or get_cart | |
| last_name | No | Buyer last name | |
| first_name | No | Buyer first name | |
| postal_code | No | Billing postal code, e.g. 80-174 | |
| company_name | No | Company name for the invoice (optional) | |
| shipping_city | No | Delivery city | |
| shipping_phone | No | Delivery phone | |
| shipping_street | No | Delivery street and number | |
| shipping_company | No | Delivery company name | |
| shipping_country | No | Delivery country ISO code | |
| shipping_last_name | No | Delivery recipient last name | |
| shipping_first_name | No | Delivery recipient first name (only if delivery address differs) | |
| shipping_postal_code | No | Delivery postal code |