Set checkout
set_checkoutFill in the checkout of the order in one call: invoice_address (an object: name, address, zipcode, city, country as a two-letter code, phone; state, companynr and vatnr when known), shipping_address when delivery goes elsewhere (or same_as_invoice), invoice_address_id or shipping_address_id from view_checkout when the shopper has saved addresses, shipping_method (an id from view_checkout; when addon_for_order > 0, 999999 = "Toevoegen aan bestelling #..." with €0.00 shipping and no minimum order amount), payment_method (a key from view_checkout), coupon, coupon_remove, newsletter (only when the shopper asks for it). Field errors name the field and how to fix it; postcodes follow the country's own format. Needs the order reference from start_order (Authorization: Bearer mo1_… or the ref argument). Send a fresh op_id (16 to 40 letters, digits, - or _) with each change: a repeat with the same op_id within 10 minutes answers the first result and never changes the order twice.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "set_checkout"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Order reference (mo1_…) from start_order, only when the client cannot send it as Authorization: Bearer | |
| op_id | No | A fresh id per change (16 to 40 letters, digits, - or _); repeating it within 10 minutes answers the first result without changing the order again | |
| coupon | No | A discount code the shopper gave | |
| newsletter | No | Only when the shopper asks for it | |
| coupon_remove | No | ||
| payment_method | No | A key from view_checkout | |
| invoice_address | No | The invoice address, stored on this order only | |
| same_as_invoice | No | Deliver to the invoice address | |
| shipping_method | No | An id from view_checkout; when addon_for_order > 0, 999999 ("Toevoegen aan bestelling #...", €0.00 shipping) is pre-selected and no minimum order amount applies | |
| shipping_address | No | The delivery address when it differs from the invoice address | |
| invoice_address_id | No | A saved address id from view_checkout (shoppers with an account) | |
| shipping_address_id | No | A saved address id, 0 = deliver to the invoice address |