create_checkout
Create checkout tasks from product page URLs to purchase one or more products across merchants; track background execution via webhooks, groupId, taskId, and liveUrl.
Instructions
Creates a new CartAI checkout task from product page URLs. This is an async API — the checkout executes in the background and emits status updates via webhooks. Supports single-SKU, multi-SKU, and multi-merchant orders (one task per merchant). Returns a groupId plus one taskId and liveUrl per merchant task; track each with get_checkout or get_status_history. For agentic payments, first call create_payment_session and have the customer authorize their card via the returned url, then pass the resulting sessionId as customer.payment.data.sessionId (no provider needed in this case).
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": {
"customer": "<customer>",
"tasks": "<tasks>"
},
"name": "create_checkout"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tasks | Yes | One or more products to checkout. Each item maps to a product URL. | |
| addons | No | Optional extras applied during checkout | |
| options | No | Checkout behaviour flags (all default to false) | |
| customer | Yes | All customer information for the checkout |