> ## Documentation Index
> Fetch the complete documentation index at: https://docs.b3os.org/llms.txt
> Use this file to discover all available pages before exploring further.

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

![Shopify: Create Order logo](https://ai-icon.b3.fun/logo/shopify)
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

**Workflow node**

```json
{
  "type": "shopify-create-order",
  "payload": {
    "lineItems": [
      {
        "variantId": "example-variantId",
        "quantity": 1
      }
    ]
  },
  "children": [],
  "connector": {
    "type": "shopify",
    "id": "conn_shopify"
  }
}
```
  **Test with API**

```bash
curl -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": [
      {
        "variantId": "example-variantId",
        "quantity": 1
      }
    ]
  }
}'
```

**Use expressions for dynamic values**

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.