shopify_create_draft_order
Create a Shopify draft order with custom line items and receive a payment link for online checkout. Use for services, custom quotes, or any sellable without a fixed product variant.
Instructions
Create a Shopify draft order and return its invoice_url — an instant payment link the customer can pay online. Use for services, custom quotes, or any sellable without a fixed product variant.
Args:
line_items (required): JSON-string list of line items: [{variant_id?, title?, quantity, original_unit_price?, currency_code?, requires_shipping?, taxable?}]. Use variant_id for catalog products. Every custom line item requires title and a positive original_unit_price; use requires_shipping=false and taxable=false for non-taxable services. All priced lines must use one presentment currency.
presentment_currency_code: Shopify CurrencyCode for the draft. When omitted for priced lines, the connected shop's currency is used.
customer_id: Existing customer ID (numeric or GID) to attach.
email: Customer email for the invoice (when no customer_id).
note: Internal note on the draft order.
project_id: Authenticated Project UUID.
project_ref: Exact project correlation reference.
connector_account_ref: Project-bound connector account alias.
idempotency_key: Stable business-action identity.
effect: Claimed read or write effect; Spring verifies it.
approval_ref: Approved platform task UUID when resuming a write.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| No | |||
| effect | No | ||
| line_items | No | ||
| project_id | No | ||
| customer_id | No | ||
| project_ref | No | ||
| approval_ref | No | ||
| idempotency_key | No | ||
| connector_account_ref | No | ||
| presentment_currency_code | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |