Start an order
create_checkoutStart an order JENNi will deliver, without leaving the chat. Give the exact product_id, the delivery address and the shopper's contact details. Returns the delivery options and the order total. Nothing is charged until complete_checkout. Delivered by JENNi.
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": {
"product_id": "<product_id>",
"delivery_address": "<delivery_address>",
"buyer": "<buyer>"
},
"name": "create_checkout"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| buyer | Yes | ||
| quantity | No | How many (default 1). | |
| product_id | Yes | ||
| idempotency_key | No | Optional. Reuse the same value to retry safely; the retry returns the first result instead of acting twice. | |
| delivery_address | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | Yes | incomplete, ready_for_complete, requires_escalation, completed or canceled. | |
| totals | Yes | ||
| currency | No | ||
| messages | Yes | ||
| order_id | No | ||
| next_step | Yes | ||
| expires_at | No | ||
| line_items | No | ||
| checkout_id | Yes | ||
| reason_code | No | ||
| continue_url | No | Present when the shopper should finish on JENNi instead. | |
| fulfilled_by | Yes | ||
| fulfillment_options | Yes | ||
| selected_fulfillment_mode | No |