Shopify: Create Order
Create a new order in your Shopify store. Supports line items, customer info, shipping/billing addresses, discounts, and notes. Ideal for: order automation, headless commerce, custom checkout flows, bulk order creation. Required scopes: write_orders, read_customers.
Catalog action Integrations shopify
Create a new order in your Shopify store. Supports line items, customer info, shipping/billing addresses, discounts, and notes. Ideal for: order automation, headless commerce, custom checkout flows, bulk order creation. Required scopes: write_orders, read_customers.
At a Glance
| Field | Value |
|---|---|
| Action ID | shopify-create-order |
| Category | Integrations |
| Connector | shopify |
| Requires gas | No |
| Funds movement | None declared |
| Tags | shopify, ecommerce, orders, write |
Payload Schema
| Field | Type | Required | Description |
|---|---|---|---|
lineItems | array | Yes | Array of line items for the order |
customer | object | No | Customer information for the order |
email | string | No | Customer email address |
shippingAddress | object | No | Shipping address for the order |
billingAddress | object | No | Billing address for the order |
currency | string | No | Currency code for the order (e.g., USD, EUR) |
financialStatus | string | No | Financial status of the order |
discountCode | string | No | Discount code to apply to the order |
note | string | No | Optional note for the order |
tags | array | No | Tags to add to the order |
Result Schema
| Field | Type | Required | Description |
|---|---|---|---|
success | boolean | Yes | Whether the order was created successfully |
data | object | No | Created order data |
exports | object | No | Exported values from the action |
Examples
json{ "type": "shopify-create-order", "payload": { "lineItems": [] }, "children": [], "connector": { "type": "shopify", "id": "conn_shopify" }}
bashcurl -X POST "https://api.b3os.org/v1/actions/shopify-create-order/test" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "inputs": { "lineItems": [] }}'
Payload fields can use workflow expressions such as {{$trigger.body.amount}}, {{$nodes.fetch.result.price}}, and {{$props.asset}} when the value should come from a trigger, prior node, or reusable workflow prop.
