Create a checkout
create_checkoutStart a checkout (an Agentic Commerce Protocol checkout session) with the products and quantities the user wants. Returns the session id, the cart and its total. If no api_key is given, a sandbox key is created 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": {
"items": "<items>"
},
"name": "create_checkout"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | Products to buy, by product_id from list_products. | |
| api_key | No | Sandbox key from create_checkout (not needed if the connection already carries one). | |
| buyer_email | No | The buyer's email, if the user gave one. |