# Saleor

> Work with your Saleor store: read the store and its channels, manage products, variants, prices and stock, organize categories and collections, manage customers, and read orders, add notes and start draft orders. Start workflows on new orders, customers and products.

App · 30 actions. Web page: https://docs.lodol.com/docs/integrations/saleor

## Actions

### Add order note

Add a staff note to an order's history. Customers don't see it.

**Inputs**

- Order (`order`, text, required): The order's id or its number, such as 1042.
- Note (`message`, text, required): What to write.

**Outputs**

- `note` (object): The note added
- `order_id` (text): The order's id

**Example output**

```json
{
  "note": {
    "date": "2026-11-17T15:46:58.833097+00:00",
    "id": "T3JkZXJFdmVudDo2",
    "message": "Called the customer",
    "type": "NOTE_ADDED",
    "user_email": ""
  },
  "order_id": "T3JkZXI6MDliOWY2NzktMTU5YS00NmJkLWEyNjYtOGIwOTBlOTVlODU4"
}
```

### Add product to collection

Put a product in a collection.

**Inputs**

- Collection (`collection_id`, text, required): The collection. Pick one, or give its id.
- Product ID (`product_id`, text, required): The product's id, from 'List products' or an earlier step.

**Outputs**

- `collection` (object): The collection

**Example output**

```json
{
  "collection": {
    "channels": [
      {
        "channel_slug": "default-channel",
        "is_published": true
      }
    ],
    "description": "Warm weather picks.",
    "id": "Q29sbGVjdGlvbjox",
    "name": "Summer",
    "product_count": 8,
    "slug": "summer"
  }
}
```

### Create category

Create a category, at the top level or inside another category.

**Inputs**

- Name (`name`, text, required): The category's name.
- Parent category (`parent_id`, text): Create it inside this category. Leave empty for the top level.
- Description (`description`, text): Plain text. A blank line starts a new paragraph.
- URL slug (`slug`, text): The slug in the store's address. Saleor makes one from the name when blank.

**Outputs**

- `category` (object): The category

**Example output**

```json
{
  "category": {
    "description": "Clothing and accessories.",
    "id": "Q2F0ZWdvcnk6NDc=",
    "level": 0,
    "name": "Apparel",
    "parent": {
      "id": "Q2F0ZWdvcnk6MQ==",
      "name": "Default Category"
    },
    "product_count": 12,
    "slug": "apparel",
    "subcategory_count": 3,
    "updated_at": "2026-11-17T15:46:58.833097+00:00"
  }
}
```

### Create collection

Create an empty collection. Use 'Add product to collection' to fill it.

**Inputs**

- Name (`name`, text, required): The collection's name.
- Description (`description`, text): Plain text. A blank line starts a new paragraph.
- URL slug (`slug`, text): The slug in the store's address. Saleor makes one from the name when blank.

**Outputs**

- `collection` (object): The collection

**Example output**

```json
{
  "collection": {
    "channels": [
      {
        "channel_slug": "default-channel",
        "is_published": true
      }
    ],
    "description": "Warm weather picks.",
    "id": "Q29sbGVjdGlvbjox",
    "name": "Summer",
    "product_count": 8,
    "slug": "summer"
  }
}
```

### Create customer

Create a customer account.

**Inputs**

- Email (`email`, text, required): The customer's email address.
- First name (`first_name`, text): Their first name.
- Last name (`last_name`, text): Their last name.
- Note (`note`, text): A staff note about them.
- Active (`is_active`, text): Whether they can sign in. Defaults to Yes. One of: `yes`, `no`.

**Outputs**

- `customer` (object): The customer

**Example output**

```json
{
  "customer": {
    "billing_address": {
      "city": "Austin",
      "company": "Acme",
      "country": "US",
      "country_area": "TX",
      "first_name": "Jo",
      "last_name": "Bloggs",
      "phone": "+15125550100",
      "postal_code": "78701",
      "street_1": "1 High Street",
      "street_2": ""
    },
    "date_joined": "2026-11-17T15:46:58.833097+00:00",
    "email": "jo@example.com",
    "external_reference": "",
    "first_name": "Jo",
    "id": "VXNlcjoxMDI=",
    "is_active": true,
    "last_login": "2026-11-17T15:46:58.833097+00:00",
    "last_name": "Bloggs",
    "note": "",
    "order_count": 3,
    "shipping_address": {
      "city": "Austin",
      "company": "Acme",
      "country": "US",
      "country_area": "TX",
      "first_name": "Jo",
      "last_name": "Bloggs",
      "phone": "+15125550100",
      "postal_code": "78701",
      "street_1": "1 High Street",
      "street_2": ""
    },
    "updated_at": "2026-11-17T15:46:58.833097+00:00"
  }
}
```

### Create draft order

Start a draft order for one product variant in a channel. Nothing is charged or shipped: staff review and finish the draft in the Dashboard.

**Inputs**

- Channel (`channel`, text, required): The sales channel. Pick one, or give its slug.
- Variant (`variant`, text, required): The variant's id or its SKU, from 'List product variants' or an earlier step.
- Quantity (`quantity`, number): How many. Defaults to 1. At least 1.
- Customer email (`customer_email`, text): The email address the order is for.
- Customer note (`customer_note`, text): A note from the customer.

**Outputs**

- `order` (object): The order

**Example output**

```json
{
  "order": {
    "billing_address": {
      "city": "Austin",
      "company": "Acme",
      "country": "US",
      "country_area": "TX",
      "first_name": "Jo",
      "last_name": "Bloggs",
      "phone": "+15125550100",
      "postal_code": "78701",
      "street_1": "1 High Street",
      "street_2": ""
    },
    "channel": {
      "currency": "USD",
      "id": "Q2hhbm5lbDox",
      "name": "Channel-USD",
      "slug": "default-channel"
    },
    "charge_status": "NONE",
    "created_at": "2026-11-17T15:46:58.833097+00:00",
    "currency": "USD",
    "customer": {
      "email": "jo@example.com",
      "id": "VXNlcjoxMDI="
    },
    "customer_email": "jo@example.com",
    "customer_note": "",
    "external_reference": "",
    "id": "T3JkZXI6MDliOWY2NzktMTU5YS00NmJkLWEyNjYtOGIwOTBlOTVlODU4",
    "is_paid": false,
    "lines": [
      {
        "id": "T3JkZXJMaW5lOmFlYmJkMmRj",
        "product_name": "Organic Cotton Tee",
        "quantity": 2,
        "sku": "TEE-M",
        "total_price": 49.0,
        "unit_price": 24.5,
        "variant_id": "UHJvZHVjdFZhcmlhbnQ6NDIy",
        "variant_name": "Medium"
      }
    ],
    "number": "22",
    "payment_status": "NOT_CHARGED",
    "shipping_address": {
      "city": "Austin",
      "company": "Acme",
      "country": "US",
      "country_area": "TX",
      "first_name": "Jo",
      "last_name": "Bloggs",
      "phone": "+15125550100",
      "postal_code": "78701",
      "street_1": "1 High Street",
      "street_2": ""
    },
    "shipping_price": 0.0,
    "status": "DRAFT",
    "status_label": "Draft",
    "subtotal": 49.0,
    "total": 49.0,
    "updated_at": "2026-11-17T15:46:58.833097+00:00",
    "voucher_code": ""
  }
}
```

### Create product

Create a product of a product type. It is not on sale anywhere until you use 'Set product availability' and give its variants a price.

**Inputs**

- Name (`name`, text, required): The product's name.
- Product type (`product_type_id`, text): What kind of product it is. Pick one, or give its id. When empty, the store's first product type without variants or required attributes is used.
- Category (`category_id`, text): The category. Pick one, or give its id.
- Description (`description`, text): Plain text. A blank line starts a new paragraph.
- URL slug (`slug`, text): The slug in the store's address. Saleor makes one from the name when blank.

**Outputs**

- `product` (object): The product

**Example output**

```json
{
  "product": {
    "category": {
      "id": "Q2F0ZWdvcnk6NDc=",
      "name": "Apparel"
    },
    "channels": [
      {
        "channel_id": "Q2hhbm5lbDox",
        "channel_slug": "default-channel",
        "is_available_for_purchase": true,
        "is_published": true,
        "published_at": "2026-11-17T15:46:58.833097+00:00",
        "visible_in_listings": true
      }
    ],
    "collections": [
      {
        "id": "Q29sbGVjdGlvbjox",
        "name": "Summer"
      }
    ],
    "created_at": "2026-11-17T15:46:58.833097+00:00",
    "description": "A soft everyday tee.",
    "external_reference": "",
    "id": "UHJvZHVjdDoxNjU=",
    "name": "Organic Cotton Tee",
    "product_type": {
      "id": "UHJvZHVjdFR5cGU6MQ==",
      "name": "Default Type"
    },
    "slug": "organic-cotton-tee",
    "updated_at": "2026-11-17T15:46:58.833097+00:00",
    "variants": [
      {
        "id": "UHJvZHVjdFZhcmlhbnQ6NDIy",
        "name": "Medium",
        "sku": "TEE-M"
      }
    ]
  }
}
```

### Create product variant

Add a variant to a product, with a SKU and optionally starting stock in one warehouse. Product types that require attribute values (such as a size) can't be filled in here.

**Inputs**

- Product ID (`product_id`, text, required): The product's id, from 'List products' or an earlier step.
- SKU (`sku`, text): The stock keeping unit, unique in the store.
- Name (`name`, text): The variant's name, such as Medium.
- Count stock (`track_inventory`, text): Whether Saleor stops selling at zero stock. Defaults to the store's setting. One of: `yes`, `no`.
- Warehouse (`warehouse`, text): Where the starting stock is held. Pick one, or give its slug.
- Starting stock (`quantity`, number): How many are held in that warehouse. At least 0.

**Outputs**

- `variant` (object): The variant

**Example output**

```json
{
  "variant": {
    "id": "UHJvZHVjdFZhcmlhbnQ6NDIy",
    "name": "Medium",
    "prices": [
      {
        "channel_name": "Channel-USD",
        "channel_slug": "default-channel",
        "cost_price": 9.0,
        "currency": "USD",
        "price": 24.5
      }
    ],
    "product": {
      "id": "UHJvZHVjdDoxNjU=",
      "name": "Organic Cotton Tee"
    },
    "sku": "TEE-M",
    "stocks": [
      {
        "quantity": 40,
        "quantity_allocated": 2,
        "warehouse_id": "V2FyZWhvdXNlOmExNzJmZDQ0",
        "warehouse_name": "Default Warehouse"
      }
    ],
    "track_inventory": true,
    "updated_at": "2026-11-17T15:46:58.833097+00:00"
  }
}
```

### Delete category

Delete a category and the categories inside it. Its products stay, without a category. This can't be undone.

**Inputs**

- Category (`category_id`, text, required): The category. Pick one, or give its id.

**Outputs**

- `category_id` (text): The category deleted
- `deleted` (true/false): Always true once deleted
- `name` (text): Its name

**Example output**

```json
{
  "category_id": "Q2F0ZWdvcnk6NDc=",
  "deleted": true,
  "name": "Apparel"
}
```

### Delete collection

Delete a collection. Its products stay. This can't be undone.

**Inputs**

- Collection (`collection_id`, text, required): The collection. Pick one, or give its id.

**Outputs**

- `collection_id` (text): The collection deleted
- `deleted` (true/false): Always true once deleted
- `name` (text): Its name

**Example output**

```json
{
  "collection_id": "Q29sbGVjdGlvbjox",
  "deleted": true,
  "name": "Summer"
}
```

### Delete customer

Delete a customer account. Their past orders stay. This can't be undone.

**Inputs**

- Customer ID (`customer_id`, text, required): The customer's id, from 'List customers' or an earlier step.

**Outputs**

- `customer_id` (text): The customer deleted
- `deleted` (true/false): Always true once deleted
- `email` (text): Their email address

**Example output**

```json
{
  "customer_id": "VXNlcjoxMDI=",
  "deleted": true,
  "email": "jo@example.com"
}
```

### Delete draft order

Delete a draft order. Saleor refuses to delete an order that has been placed.

**Inputs**

- Order ID (`order_id`, text, required): The draft order's id, from 'Create draft order'.

**Outputs**

- `deleted` (true/false): Always true once deleted
- `number` (text): Its order number
- `order_id` (text): The draft order deleted

**Example output**

```json
{
  "deleted": true,
  "number": "22",
  "order_id": "T3JkZXI6MDliOWY2NzktMTU5YS00NmJkLWEyNjYtOGIwOTBlOTVlODU4"
}
```

### Delete product

Delete a product and all its variants. This can't be undone.

**Inputs**

- Product ID (`product_id`, text, required): The product's id, from 'List products' or an earlier step.

**Outputs**

- `deleted` (true/false): Always true once deleted
- `name` (text): Its name
- `product_id` (text): The product deleted

**Example output**

```json
{
  "deleted": true,
  "name": "Organic Cotton Tee",
  "product_id": "UHJvZHVjdDoxNjU="
}
```

### Get customer

Get one customer by their id or email address, with their default addresses and order count.

**Inputs**

- Customer (`customer`, text, required): The customer's id or email address.

**Outputs**

- `customer` (object): The customer

**Example output**

```json
{
  "customer": {
    "billing_address": {
      "city": "Austin",
      "company": "Acme",
      "country": "US",
      "country_area": "TX",
      "first_name": "Jo",
      "last_name": "Bloggs",
      "phone": "+15125550100",
      "postal_code": "78701",
      "street_1": "1 High Street",
      "street_2": ""
    },
    "date_joined": "2026-11-17T15:46:58.833097+00:00",
    "email": "jo@example.com",
    "external_reference": "",
    "first_name": "Jo",
    "id": "VXNlcjoxMDI=",
    "is_active": true,
    "last_login": "2026-11-17T15:46:58.833097+00:00",
    "last_name": "Bloggs",
    "note": "",
    "order_count": 3,
    "shipping_address": {
      "city": "Austin",
      "company": "Acme",
      "country": "US",
      "country_area": "TX",
      "first_name": "Jo",
      "last_name": "Bloggs",
      "phone": "+15125550100",
      "postal_code": "78701",
      "street_1": "1 High Street",
      "street_2": ""
    },
    "updated_at": "2026-11-17T15:46:58.833097+00:00"
  }
}
```

### Get order

Get one order or draft order by its id or number, with its lines, addresses, totals and history.

**Inputs**

- Order (`order`, text, required): The order's id or its number, such as 1042.

**Outputs**

- `order` (object): The order with its history

**Example output**

```json
{
  "order": {
    "billing_address": {
      "city": "Austin",
      "company": "Acme",
      "country": "US",
      "country_area": "TX",
      "first_name": "Jo",
      "last_name": "Bloggs",
      "phone": "+15125550100",
      "postal_code": "78701",
      "street_1": "1 High Street",
      "street_2": ""
    },
    "channel": {
      "currency": "USD",
      "id": "Q2hhbm5lbDox",
      "name": "Channel-USD",
      "slug": "default-channel"
    },
    "charge_status": "NONE",
    "created_at": "2026-11-17T15:46:58.833097+00:00",
    "currency": "USD",
    "customer": {
      "email": "jo@example.com",
      "id": "VXNlcjoxMDI="
    },
    "customer_email": "jo@example.com",
    "customer_note": "",
    "events": [
      {
        "date": "2026-11-17T15:46:58.833097+00:00",
        "id": "T3JkZXJFdmVudDo2",
        "message": "Called the customer",
        "type": "NOTE_ADDED",
        "user_email": ""
      }
    ],
    "external_reference": "",
    "id": "T3JkZXI6MDliOWY2NzktMTU5YS00NmJkLWEyNjYtOGIwOTBlOTVlODU4",
    "is_paid": false,
    "lines": [
      {
        "id": "T3JkZXJMaW5lOmFlYmJkMmRj",
        "product_name": "Organic Cotton Tee",
        "quantity": 2,
        "sku": "TEE-M",
        "total_price": 49.0,
        "unit_price": 24.5,
        "variant_id": "UHJvZHVjdFZhcmlhbnQ6NDIy",
        "variant_name": "Medium"
      }
    ],
    "number": "22",
    "payment_status": "NOT_CHARGED",
    "shipping_address": {
      "city": "Austin",
      "company": "Acme",
      "country": "US",
      "country_area": "TX",
      "first_name": "Jo",
      "last_name": "Bloggs",
      "phone": "+15125550100",
      "postal_code": "78701",
      "street_1": "1 High Street",
      "street_2": ""
    },
    "shipping_price": 0.0,
    "status": "UNFULFILLED",
    "status_label": "Unfulfilled",
    "subtotal": 49.0,
    "total": 49.0,
    "updated_at": "2026-11-17T15:46:58.833097+00:00",
    "voucher_code": ""
  }
}
```

### Get product

Get one product by its id or slug, with its category, collections, channel availability and variants.

**Inputs**

- Product (`product`, text, required): The product's id or its slug, from 'List products' or an earlier step.

**Outputs**

- `product` (object): The product

**Example output**

```json
{
  "product": {
    "category": {
      "id": "Q2F0ZWdvcnk6NDc=",
      "name": "Apparel"
    },
    "channels": [
      {
        "channel_id": "Q2hhbm5lbDox",
        "channel_slug": "default-channel",
        "is_available_for_purchase": true,
        "is_published": true,
        "published_at": "2026-11-17T15:46:58.833097+00:00",
        "visible_in_listings": true
      }
    ],
    "collections": [
      {
        "id": "Q29sbGVjdGlvbjox",
        "name": "Summer"
      }
    ],
    "created_at": "2026-11-17T15:46:58.833097+00:00",
    "description": "A soft everyday tee.",
    "external_reference": "",
    "id": "UHJvZHVjdDoxNjU=",
    "name": "Organic Cotton Tee",
    "product_type": {
      "id": "UHJvZHVjdFR5cGU6MQ==",
      "name": "Default Type"
    },
    "slug": "organic-cotton-tee",
    "updated_at": "2026-11-17T15:46:58.833097+00:00",
    "variants": [
      {
        "id": "UHJvZHVjdFZhcmlhbnQ6NDIy",
        "name": "Medium",
        "sku": "TEE-M"
      }
    ]
  }
}
```

### Get product variant

Get one variant by its id or SKU, with its price in each channel and its stock in each warehouse.

**Inputs**

- Variant (`variant`, text, required): The variant's id or its SKU, from 'List product variants' or an earlier step.

**Outputs**

- `variant` (object): The variant

**Example output**

```json
{
  "variant": {
    "id": "UHJvZHVjdFZhcmlhbnQ6NDIy",
    "name": "Medium",
    "prices": [
      {
        "channel_name": "Channel-USD",
        "channel_slug": "default-channel",
        "cost_price": 9.0,
        "currency": "USD",
        "price": 24.5
      }
    ],
    "product": {
      "id": "UHJvZHVjdDoxNjU=",
      "name": "Organic Cotton Tee"
    },
    "sku": "TEE-M",
    "stocks": [
      {
        "quantity": 40,
        "quantity_allocated": 2,
        "warehouse_id": "V2FyZWhvdXNlOmExNzJmZDQ0",
        "warehouse_name": "Default Warehouse"
      }
    ],
    "track_inventory": true,
    "updated_at": "2026-11-17T15:46:58.833097+00:00"
  }
}
```

### Get store

Get the store's name, Saleor version, sales channels (with their currency), warehouses and product types, and the app the token belongs to.

**Inputs**: None.

**Outputs**

- `app` (object): The Saleor app the token belongs to
- `channels` (list): The sales channels
- `displays_gross_prices` (true/false): Whether prices are shown with tax
- `name` (text): The store's name
- `product_types` (list): The product types products are made from
- `tracks_inventory_by_default` (true/false): Whether new variants count their stock
- `version` (text): The Saleor version
- `warehouses` (list): The warehouses stock is held in

**Example output**

```json
{
  "app": {
    "id": "QXBwOjE=",
    "name": "Lodol"
  },
  "channels": [
    {
      "currency": "USD",
      "default_country": "US",
      "id": "Q2hhbm5lbDox",
      "is_active": true,
      "name": "Channel-USD",
      "slug": "default-channel"
    }
  ],
  "displays_gross_prices": true,
  "name": "Saleor e-commerce",
  "product_types": [
    {
      "has_variants": false,
      "id": "UHJvZHVjdFR5cGU6MQ==",
      "name": "Default Type"
    }
  ],
  "tracks_inventory_by_default": true,
  "version": "3.23.50",
  "warehouses": [
    {
      "id": "V2FyZWhvdXNlOmExNzJmZDQ0",
      "name": "Default Warehouse",
      "slug": "default-warehouse"
    }
  ]
}
```

### List categories

List categories at every level, or only the top ones. Gets one page; to see more, run it again with the next page cursor.

**Inputs**

- Search (`search`, text): Only those matching these words.
- Top level only (`top_level_only`, text): Choose Yes to leave out subcategories. One of: `yes`, `no`.
- Page size (`limit`, number): How many to return, 1 to 100. The default is 20. From 1 to 100.
- Next page cursor (`after`, text): The 'next_cursor' from an earlier page, to get the page after it.

**Outputs**

- `categories` (list): The categories
- `count` (number): How many came back on this page
- `has_next_page` (true/false): Whether there is another page
- `next_cursor` (text): Pass as 'Next page cursor' to get the next page; empty on the last
- `total_count` (number): How many match in all

**Example output**

```json
{
  "categories": [
    {
      "description": "Clothing and accessories.",
      "id": "Q2F0ZWdvcnk6NDc=",
      "level": 0,
      "name": "Apparel",
      "parent": {
        "id": "Q2F0ZWdvcnk6MQ==",
        "name": "Default Category"
      },
      "product_count": 12,
      "slug": "apparel",
      "subcategory_count": 3,
      "updated_at": "2026-11-17T15:46:58.833097+00:00"
    }
  ],
  "count": 1,
  "has_next_page": false,
  "next_cursor": "",
  "total_count": 1
}
```

### List collections

List collections with how many products each holds. Gets one page; to see more, run it again with the next page cursor.

**Inputs**

- Search (`search`, text): Only those matching these words.
- Page size (`limit`, number): How many to return, 1 to 100. The default is 20. From 1 to 100.
- Next page cursor (`after`, text): The 'next_cursor' from an earlier page, to get the page after it.

**Outputs**

- `collections` (list): The collections
- `count` (number): How many came back on this page
- `has_next_page` (true/false): Whether there is another page
- `next_cursor` (text): Pass as 'Next page cursor' to get the next page; empty on the last
- `total_count` (number): How many match in all

**Example output**

```json
{
  "collections": [
    {
      "channels": [
        {
          "channel_slug": "default-channel",
          "is_published": true
        }
      ],
      "description": "Warm weather picks.",
      "id": "Q29sbGVjdGlvbjox",
      "name": "Summer",
      "product_count": 8,
      "slug": "summer"
    }
  ],
  "count": 1,
  "has_next_page": false,
  "next_cursor": "",
  "total_count": 1
}
```

### List customers

List customers, filtered by name or email words and by the date they joined. Gets one page; to see more, run it again with the next page cursor.

**Inputs**

- Search (`search`, text): Only those matching these words.
- Joined on or after (`joined_from`, date): Only customers who joined on or after this date.
- Joined on or before (`joined_to`, date): Only customers who joined on or before this date.
- Order (`sort`, text): How to sort. Newest first when blank. One of: `created_desc` (Newest first (default)), `created_asc` (Oldest first), `email_asc` (Email, A to Z), `orders_desc` (Most orders first).
- Page size (`limit`, number): How many to return, 1 to 100. The default is 20. From 1 to 100.
- Next page cursor (`after`, text): The 'next_cursor' from an earlier page, to get the page after it.

**Outputs**

- `count` (number): How many came back on this page
- `customers` (list): The customers
- `has_next_page` (true/false): Whether there is another page
- `next_cursor` (text): Pass as 'Next page cursor' to get the next page; empty on the last
- `total_count` (number): How many match in all

**Example output**

```json
{
  "count": 1,
  "customers": [
    {
      "billing_address": {
        "city": "Austin",
        "company": "Acme",
        "country": "US",
        "country_area": "TX",
        "first_name": "Jo",
        "last_name": "Bloggs",
        "phone": "+15125550100",
        "postal_code": "78701",
        "street_1": "1 High Street",
        "street_2": ""
      },
      "date_joined": "2026-11-17T15:46:58.833097+00:00",
      "email": "jo@example.com",
      "external_reference": "",
      "first_name": "Jo",
      "id": "VXNlcjoxMDI=",
      "is_active": true,
      "last_login": "2026-11-17T15:46:58.833097+00:00",
      "last_name": "Bloggs",
      "note": "",
      "order_count": 3,
      "shipping_address": {
        "city": "Austin",
        "company": "Acme",
        "country": "US",
        "country_area": "TX",
        "first_name": "Jo",
        "last_name": "Bloggs",
        "phone": "+15125550100",
        "postal_code": "78701",
        "street_1": "1 High Street",
        "street_2": ""
      },
      "updated_at": "2026-11-17T15:46:58.833097+00:00"
    }
  ],
  "has_next_page": false,
  "next_cursor": "",
  "total_count": 1
}
```

### List orders

List orders (or draft orders), filtered by status, channel, customer, words or the date they were placed. Gets one page; to see more, run it again with the next page cursor.

**Inputs**

- Status (`status`, text): Which orders. Any placed order (not a draft) when blank. One of: `any` (Any placed order (default)), `draft`, `unconfirmed`, `unfulfilled`, `partially_fulfilled` (Partially fulfilled), `fulfilled`, `canceled`, `ready_to_fulfill` (Ready to fulfill), `ready_to_capture` (Ready to capture).
- Channel (`channel`, text): Only orders placed in this channel.
- Customer (`customer`, text): Only orders whose customer's name or email matches this.
- Search (`search`, text): Only those matching these words.
- Placed on or after (`created_from`, date): Only orders placed on or after this date.
- Placed on or before (`created_to`, date): Only orders placed on or before this date.
- Order (`sort`, text): How to sort. Newest first when blank. One of: `created_desc` (Newest first (default)), `created_asc` (Oldest first).
- Page size (`limit`, number): How many to return, 1 to 100. The default is 20. From 1 to 100.
- Next page cursor (`after`, text): The 'next_cursor' from an earlier page, to get the page after it.

**Outputs**

- `count` (number): How many came back on this page
- `has_next_page` (true/false): Whether there is another page
- `next_cursor` (text): Pass as 'Next page cursor' to get the next page; empty on the last
- `orders` (list): The orders
- `total_count` (number): How many match in all

**Example output**

```json
{
  "count": 1,
  "has_next_page": false,
  "next_cursor": "",
  "orders": [
    {
      "billing_address": {
        "city": "Austin",
        "company": "Acme",
        "country": "US",
        "country_area": "TX",
        "first_name": "Jo",
        "last_name": "Bloggs",
        "phone": "+15125550100",
        "postal_code": "78701",
        "street_1": "1 High Street",
        "street_2": ""
      },
      "channel": {
        "currency": "USD",
        "id": "Q2hhbm5lbDox",
        "name": "Channel-USD",
        "slug": "default-channel"
      },
      "charge_status": "NONE",
      "created_at": "2026-11-17T15:46:58.833097+00:00",
      "currency": "USD",
      "customer": {
        "email": "jo@example.com",
        "id": "VXNlcjoxMDI="
      },
      "customer_email": "jo@example.com",
      "customer_note": "",
      "external_reference": "",
      "id": "T3JkZXI6MDliOWY2NzktMTU5YS00NmJkLWEyNjYtOGIwOTBlOTVlODU4",
      "is_paid": false,
      "lines": [
        {
          "id": "T3JkZXJMaW5lOmFlYmJkMmRj",
          "product_name": "Organic Cotton Tee",
          "quantity": 2,
          "sku": "TEE-M",
          "total_price": 49.0,
          "unit_price": 24.5,
          "variant_id": "UHJvZHVjdFZhcmlhbnQ6NDIy",
          "variant_name": "Medium"
        }
      ],
      "number": "22",
      "payment_status": "NOT_CHARGED",
      "shipping_address": {
        "city": "Austin",
        "company": "Acme",
        "country": "US",
        "country_area": "TX",
        "first_name": "Jo",
        "last_name": "Bloggs",
        "phone": "+15125550100",
        "postal_code": "78701",
        "street_1": "1 High Street",
        "street_2": ""
      },
      "shipping_price": 0.0,
      "status": "UNFULFILLED",
      "status_label": "Unfulfilled",
      "subtotal": 49.0,
      "total": 49.0,
      "updated_at": "2026-11-17T15:46:58.833097+00:00",
      "voucher_code": ""
    }
  ],
  "total_count": 1
}
```

### List product variants

List product variants with their prices and stock, optionally those matching words or one product's. Gets one page; to see more, run it again with the next page cursor.

**Inputs**

- Search (`search`, text): Only those matching these words.
- Product ID (`product_id`, text): Only this product's variants, among the page of results.
- Page size (`limit`, number): How many to return, 1 to 100. The default is 20. From 1 to 100.
- Next page cursor (`after`, text): The 'next_cursor' from an earlier page, to get the page after it.

**Outputs**

- `count` (number): How many came back on this page
- `has_next_page` (true/false): Whether there is another page
- `next_cursor` (text): Pass as 'Next page cursor' to get the next page; empty on the last
- `total_count` (number): How many match in all
- `variants` (list): The variants

**Example output**

```json
{
  "count": 1,
  "has_next_page": false,
  "next_cursor": "",
  "total_count": 1,
  "variants": [
    {
      "id": "UHJvZHVjdFZhcmlhbnQ6NDIy",
      "name": "Medium",
      "prices": [
        {
          "channel_name": "Channel-USD",
          "channel_slug": "default-channel",
          "cost_price": 9.0,
          "currency": "USD",
          "price": 24.5
        }
      ],
      "product": {
        "id": "UHJvZHVjdDoxNjU=",
        "name": "Organic Cotton Tee"
      },
      "sku": "TEE-M",
      "stocks": [
        {
          "quantity": 40,
          "quantity_allocated": 2,
          "warehouse_id": "V2FyZWhvdXNlOmExNzJmZDQ0",
          "warehouse_name": "Default Warehouse"
        }
      ],
      "track_inventory": true,
      "updated_at": "2026-11-17T15:46:58.833097+00:00"
    }
  ]
}
```

### List products

List products, filtered by words, category, product type or collection. Gets one page; to see more, run it again with the next page cursor.

**Inputs**

- Search (`search`, text): Only those matching these words.
- Category (`category_id`, text): Only products in this category.
- Product type (`product_type_id`, text): Only products of this type.
- Collection (`collection_id`, text): Only products in this collection.
- Order (`sort`, text): How to sort. Newest first when blank and nothing is searched for. One of: `created_desc` (Newest first (default)), `created_asc` (Oldest first), `name_asc` (Name, A to Z), `name_desc` (Name, Z to A), `updated_desc` (Recently changed first).
- Page size (`limit`, number): How many to return, 1 to 100. The default is 20. From 1 to 100.
- Next page cursor (`after`, text): The 'next_cursor' from an earlier page, to get the page after it.

**Outputs**

- `count` (number): How many came back on this page
- `has_next_page` (true/false): Whether there is another page
- `next_cursor` (text): Pass as 'Next page cursor' to get the next page; empty on the last
- `products` (list): The products
- `total_count` (number): How many match in all

**Example output**

```json
{
  "count": 1,
  "has_next_page": false,
  "next_cursor": "",
  "products": [
    {
      "category": {
        "id": "Q2F0ZWdvcnk6NDc=",
        "name": "Apparel"
      },
      "channels": [
        {
          "channel_id": "Q2hhbm5lbDox",
          "channel_slug": "default-channel",
          "is_available_for_purchase": true,
          "is_published": true,
          "published_at": "2026-11-17T15:46:58.833097+00:00",
          "visible_in_listings": true
        }
      ],
      "collections": [
        {
          "id": "Q29sbGVjdGlvbjox",
          "name": "Summer"
        }
      ],
      "created_at": "2026-11-17T15:46:58.833097+00:00",
      "description": "A soft everyday tee.",
      "external_reference": "",
      "id": "UHJvZHVjdDoxNjU=",
      "name": "Organic Cotton Tee",
      "product_type": {
        "id": "UHJvZHVjdFR5cGU6MQ==",
        "name": "Default Type"
      },
      "slug": "organic-cotton-tee",
      "updated_at": "2026-11-17T15:46:58.833097+00:00",
      "variants": [
        {
          "id": "UHJvZHVjdFZhcmlhbnQ6NDIy",
          "name": "Medium",
          "sku": "TEE-M"
        }
      ]
    }
  ],
  "total_count": 1
}
```

### Set product availability

List a product in a sales channel and choose whether shoppers can see and buy it there, or remove it from the channel. A variant needs a price in the channel before it can be bought.

**Inputs**

- Product ID (`product_id`, text, required): The product's id, from 'List products' or an earlier step.
- Channel (`channel`, text, required): The sales channel. Pick one, or give its slug.
- Published (`is_published`, text): Whether shoppers can see it. Defaults to Yes. One of: `yes`, `no`.
- Shown in lists (`visible_in_listings`, text): Whether it appears in category and search lists. Defaults to Yes. One of: `yes`, `no`.
- Available to buy (`is_available_for_purchase`, text): Whether it can be bought now. Defaults to Yes. One of: `yes`, `no`.
- Publish at (`publish_at`, date and time): Publish at this date and time instead of now.
- Remove from channel (`remove`, text): Choose Yes to take the product out of this channel; the other settings are then ignored. One of: `yes`, `no`.

**Outputs**

- `product` (object): The product

**Example output**

```json
{
  "product": {
    "category": {
      "id": "Q2F0ZWdvcnk6NDc=",
      "name": "Apparel"
    },
    "channels": [
      {
        "channel_id": "Q2hhbm5lbDox",
        "channel_slug": "default-channel",
        "is_available_for_purchase": true,
        "is_published": true,
        "published_at": "2026-11-17T15:46:58.833097+00:00",
        "visible_in_listings": true
      }
    ],
    "collections": [
      {
        "id": "Q29sbGVjdGlvbjox",
        "name": "Summer"
      }
    ],
    "created_at": "2026-11-17T15:46:58.833097+00:00",
    "description": "A soft everyday tee.",
    "external_reference": "",
    "id": "UHJvZHVjdDoxNjU=",
    "name": "Organic Cotton Tee",
    "product_type": {
      "id": "UHJvZHVjdFR5cGU6MQ==",
      "name": "Default Type"
    },
    "slug": "organic-cotton-tee",
    "updated_at": "2026-11-17T15:46:58.833097+00:00",
    "variants": [
      {
        "id": "UHJvZHVjdFZhcmlhbnQ6NDIy",
        "name": "Medium",
        "sku": "TEE-M"
      }
    ]
  }
}
```

### Set variant price

Set a variant's selling price, and optionally its cost, in a channel. The product must already be listed in the channel (see 'Set product availability').

**Inputs**

- Variant (`variant`, text, required): The variant's id or its SKU, from 'List product variants' or an earlier step.
- Channel (`channel`, text, required): The sales channel. Pick one, or give its slug.
- Price (`price`, number, required): The selling price in the channel's currency. At least 0.
- Cost price (`cost_price`, number): What the variant costs you, for reports. At least 0.

**Outputs**

- `variant` (object): The variant

**Example output**

```json
{
  "variant": {
    "id": "UHJvZHVjdFZhcmlhbnQ6NDIy",
    "name": "Medium",
    "prices": [
      {
        "channel_name": "Channel-USD",
        "channel_slug": "default-channel",
        "cost_price": 9.0,
        "currency": "USD",
        "price": 24.5
      }
    ],
    "product": {
      "id": "UHJvZHVjdDoxNjU=",
      "name": "Organic Cotton Tee"
    },
    "sku": "TEE-M",
    "stocks": [
      {
        "quantity": 40,
        "quantity_allocated": 2,
        "warehouse_id": "V2FyZWhvdXNlOmExNzJmZDQ0",
        "warehouse_name": "Default Warehouse"
      }
    ],
    "track_inventory": true,
    "updated_at": "2026-11-17T15:46:58.833097+00:00"
  }
}
```

### Set variant stock

Set how many of a variant a warehouse holds. This replaces the count; it does not add to it.

**Inputs**

- Variant (`variant`, text, required): The variant's id or its SKU, from 'List product variants' or an earlier step.
- Warehouse (`warehouse`, text, required): The warehouse. Pick one, or give its slug.
- Quantity (`quantity`, number, required): How many are held. At least 0.

**Outputs**

- `variant` (object): The variant

**Example output**

```json
{
  "variant": {
    "id": "UHJvZHVjdFZhcmlhbnQ6NDIy",
    "name": "Medium",
    "prices": [
      {
        "channel_name": "Channel-USD",
        "channel_slug": "default-channel",
        "cost_price": 9.0,
        "currency": "USD",
        "price": 24.5
      }
    ],
    "product": {
      "id": "UHJvZHVjdDoxNjU=",
      "name": "Organic Cotton Tee"
    },
    "sku": "TEE-M",
    "stocks": [
      {
        "quantity": 40,
        "quantity_allocated": 2,
        "warehouse_id": "V2FyZWhvdXNlOmExNzJmZDQ0",
        "warehouse_name": "Default Warehouse"
      }
    ],
    "track_inventory": true,
    "updated_at": "2026-11-17T15:46:58.833097+00:00"
  }
}
```

### Update customer

Change a customer's email, name, note or whether the account is active. Only the fields given change.

**Inputs**

- Customer ID (`customer_id`, text, required): The customer's id, from 'List customers' or an earlier step.
- Email (`email`, text): A new email address. Leave empty to keep it.
- First name (`first_name`, text): A new first name. Leave empty to keep it.
- Last name (`last_name`, text): A new last name. Leave empty to keep it.
- Note (`note`, text): A new staff note. Leave empty to keep it.
- Active (`is_active`, text): Leave empty to keep the current setting. One of: `yes`, `no`.

**Outputs**

- `customer` (object): The customer

**Example output**

```json
{
  "customer": {
    "billing_address": {
      "city": "Austin",
      "company": "Acme",
      "country": "US",
      "country_area": "TX",
      "first_name": "Jo",
      "last_name": "Bloggs",
      "phone": "+15125550100",
      "postal_code": "78701",
      "street_1": "1 High Street",
      "street_2": ""
    },
    "date_joined": "2026-11-17T15:46:58.833097+00:00",
    "email": "jo@example.com",
    "external_reference": "",
    "first_name": "Jo",
    "id": "VXNlcjoxMDI=",
    "is_active": true,
    "last_login": "2026-11-17T15:46:58.833097+00:00",
    "last_name": "Bloggs",
    "note": "",
    "order_count": 3,
    "shipping_address": {
      "city": "Austin",
      "company": "Acme",
      "country": "US",
      "country_area": "TX",
      "first_name": "Jo",
      "last_name": "Bloggs",
      "phone": "+15125550100",
      "postal_code": "78701",
      "street_1": "1 High Street",
      "street_2": ""
    },
    "updated_at": "2026-11-17T15:46:58.833097+00:00"
  }
}
```

### Update product

Change a product's name, description, category or slug. Only the fields given change.

**Inputs**

- Product ID (`product_id`, text, required): The product's id, from 'List products' or an earlier step.
- Name (`name`, text): A new name. Leave empty to keep it.
- Description (`description`, text): A new description as plain text. Leave empty to keep it.
- Category (`category_id`, text): Move it to this category. Leave empty to keep it.
- URL slug (`slug`, text): A new slug. Leave empty to keep it.

**Outputs**

- `product` (object): The product

**Example output**

```json
{
  "product": {
    "category": {
      "id": "Q2F0ZWdvcnk6NDc=",
      "name": "Apparel"
    },
    "channels": [
      {
        "channel_id": "Q2hhbm5lbDox",
        "channel_slug": "default-channel",
        "is_available_for_purchase": true,
        "is_published": true,
        "published_at": "2026-11-17T15:46:58.833097+00:00",
        "visible_in_listings": true
      }
    ],
    "collections": [
      {
        "id": "Q29sbGVjdGlvbjox",
        "name": "Summer"
      }
    ],
    "created_at": "2026-11-17T15:46:58.833097+00:00",
    "description": "A soft everyday tee.",
    "external_reference": "",
    "id": "UHJvZHVjdDoxNjU=",
    "name": "Organic Cotton Tee",
    "product_type": {
      "id": "UHJvZHVjdFR5cGU6MQ==",
      "name": "Default Type"
    },
    "slug": "organic-cotton-tee",
    "updated_at": "2026-11-17T15:46:58.833097+00:00",
    "variants": [
      {
        "id": "UHJvZHVjdFZhcmlhbnQ6NDIy",
        "name": "Medium",
        "sku": "TEE-M"
      }
    ]
  }
}
```

### Update product variant

Change a variant's name, SKU or whether its stock is counted. Only the fields given change.

**Inputs**

- Variant (`variant`, text, required): The variant's id or its SKU, from 'List product variants' or an earlier step.
- Name (`name`, text): A new name. Leave empty to keep it.
- SKU (`sku`, text): A new SKU. Leave empty to keep it.
- Count stock (`track_inventory`, text): Leave empty to keep the current setting. One of: `yes`, `no`.

**Outputs**

- `variant` (object): The variant

**Example output**

```json
{
  "variant": {
    "id": "UHJvZHVjdFZhcmlhbnQ6NDIy",
    "name": "Medium",
    "prices": [
      {
        "channel_name": "Channel-USD",
        "channel_slug": "default-channel",
        "cost_price": 9.0,
        "currency": "USD",
        "price": 24.5
      }
    ],
    "product": {
      "id": "UHJvZHVjdDoxNjU=",
      "name": "Organic Cotton Tee"
    },
    "sku": "TEE-M",
    "stocks": [
      {
        "quantity": 40,
        "quantity_allocated": 2,
        "warehouse_id": "V2FyZWhvdXNlOmExNzJmZDQ0",
        "warehouse_name": "Default Warehouse"
      }
    ],
    "track_inventory": true,
    "updated_at": "2026-11-17T15:46:58.833097+00:00"
  }
}
```
