Draft Orders Create
tiendanube_draft_orders_createCreate a draft order with products, discounts, shipping, and buyer details, then receive a checkout URL to share so the buyer can complete payment.
Instructions
Create a draft order. The response includes a checkout_url to share with the buyer. HTTP: POST /draft_orders Required scope: write_draft_orders API version: 2025-03
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": "tiendanube_draft_orders_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| discount | No | Discount object | |
| products | No | Line items: [{variant_id, quantity}] | |
| shipping | No | Shipping: {cost, shipping_address, shipping_option} | |
| contact_name | No | Buyer first name | |
| contact_email | No | Buyer email | |
| payment_status | No | Payment status | |
| contact_lastname | No | Buyer last name | |
| additional_fields | No | Extra raw API body fields not covered above; merged into the request body |