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
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 |