# commercetools

> Run your commercetools store: manage products, prices, stock, customers, orders, deliveries and discount codes, and start workflows on new orders, status changes, returns, low stock and abandoned carts.

App · 25 actions. Web page: https://docs.lodol.com/docs/integrations/commercetools

## Actions

### Add delivery

Record that items of an order were sent, with the carrier and tracking number, and mark it shipped if you like.

**Inputs**

- Order (`order`, text, required): The order's id or its order number, from a trigger or an earlier step.
- Tracking number (`tracking_id`, text): The parcel's tracking number.
- Carrier (`carrier`, text): Who carries it, like UPS or DHL.
- Line items (`line_item_ids`, list): The line items sent (lineItems ids in 'Get order'), each with its whole quantity. Leave empty for every item.
- Mark as shipped (`mark_shipped`, true/false): Turn on to also set the shipment status to Shipped.

**Outputs**

- `delivery` (object): The delivery added
- `order` (object): The order

**Example output**

```json
{
  "delivery": {
    "createdAt": "2026-11-03T15:00:00.000Z",
    "id": "4f5e6d7c-8b9a-4c0d-9e1f-2a3b4c5d6e7f",
    "items": [
      {
        "id": "e1d2c3b4-a5f6-4e7d-8c9b-0a1f2e3d4c5b",
        "quantity": 2
      }
    ],
    "parcels": [
      {
        "id": "6a7b8c9d-0e1f-4a2b-8c3d-4e5f6a7b8c9d",
        "trackingData": {
          "carrier": "UPS",
          "trackingId": "1Z999AA10123456784"
        }
      }
    ]
  },
  "order": {
    "billingAddress": {
      "additionalAddressInfo": "",
      "city": "Paris",
      "company": "",
      "country": "FR",
      "email": "alex.moreau@example.com",
      "firstName": "Alex",
      "id": "aB3dEf9h",
      "lastName": "Moreau",
      "phone": "",
      "postalCode": "75001",
      "state": "",
      "streetName": "Rue de Rivoli",
      "streetNumber": "12"
    },
    "completedAt": "",
    "country": "FR",
    "createdAt": "2026-11-03T14:21:07.000Z",
    "customerEmail": "alex.moreau@example.com",
    "customerId": "9b8a7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d",
    "id": "c0ffee00-1234-4abc-9def-0123456789ab",
    "lastModifiedAt": "2026-11-03T14:40:00.000Z",
    "lineItems": [
      {
        "id": "e1d2c3b4-a5f6-4e7d-8c9b-0a1f2e3d4c5b",
        "name": {
          "en": "Blue cotton shirt"
        },
        "price": {
          "channel": {
            "id": "",
            "typeId": ""
          },
          "country": "",
          "customerGroup": {
            "id": "",
            "typeId": ""
          },
          "id": "5d6e7f80-9a1b-4c2d-8e3f-4a5b6c7d8e9f",
          "key": "",
          "validFrom": "",
          "validUntil": "",
          "value": {
            "centAmount": 2999,
            "currencyCode": "EUR",
            "fractionDigits": 2,
            "type": "centPrecision"
          }
        },
        "productId": "3c8d1f26-7a4b-4e0f-9b2d-5e6f7a8b9c0d",
        "quantity": 2,
        "totalPrice": {
          "centAmount": 5998,
          "currencyCode": "EUR",
          "fractionDigits": 2,
          "type": "centPrecision"
        },
        "variant": {
          "attributes": [
            {
              "name": "size",
              "value": "M"
            }
          ],
          "id": 1,
          "images": [
            {
              "label": "Front",
              "url": "https://images.example.com/shirt-blue.jpg"
            }
          ],
          "key": "",
          "prices": [
            {
              "channel": {
                "id": "",
                "typeId": ""
              },
              "country": "",
              "customerGroup": {
                "id": "",
                "typeId": ""
              },
              "id": "5d6e7f80-9a1b-4c2d-8e3f-4a5b6c7d8e9f",
              "key": "",
              "validFrom": "",
              "validUntil": "",
              "value": {
                "centAmount": 2999,
                "currencyCode": "EUR",
                "fractionDigits": 2,
                "type": "centPrecision"
              }
            }
          ],
          "sku": "SHIRT-BLUE-M"
        }
      }
    ],
    "locale": "en",
    "orderNumber": "100042",
    "orderState": "Confirmed",
    "paymentState": "Paid",
    "returnInfo": [],
    "shipmentState": "Shipped",
    "shippingAddress": {
      "additionalAddressInfo": "",
      "city": "Paris",
      "company": "",
      "country": "FR",
      "email": "alex.moreau@example.com",
      "firstName": "Alex",
      "id": "aB3dEf9h",
      "lastName": "Moreau",
      "phone": "",
      "postalCode": "75001",
      "state": "",
      "streetName": "Rue de Rivoli",
      "streetNumber": "12"
    },
    "shippingInfo": {
      "deliveries": [
        {
          "createdAt": "2026-11-03T15:00:00.000Z",
          "id": "4f5e6d7c-8b9a-4c0d-9e1f-2a3b4c5d6e7f",
          "items": [
            {
              "id": "e1d2c3b4-a5f6-4e7d-8c9b-0a1f2e3d4c5b",
              "quantity": 2
            }
          ],
          "parcels": [
            {
              "id": "6a7b8c9d-0e1f-4a2b-8c3d-4e5f6a7b8c9d",
              "trackingData": {
                "carrier": "UPS",
                "trackingId": "1Z999AA10123456784"
              }
            }
          ]
        }
      ],
      "price": {
        "centAmount": 499,
        "currencyCode": "EUR",
        "fractionDigits": 2,
        "type": "centPrecision"
      },
      "shippingMethodName": "Standard"
    },
    "totalPrice": {
      "centAmount": 6497,
      "currencyCode": "EUR",
      "fractionDigits": 2,
      "type": "centPrecision"
    },
    "version": 6
  }
}
```

### Create customer

Create a customer account. Without a password they can't sign in to the shop until one is set.

**Inputs**

- Email (`email`, text, required): The customer's email address, unique in the project.
- First name (`first_name`, text): The customer's first name.
- Last name (`last_name`, text): The customer's last name.
- Password (`password`, text): A password for the shop. Leave empty for a customer who signs in some other way.
- Company (`company_name`, text): The customer's company.
- Customer group (`customer_group_id`, text): A customer group to put them in.
- Key (`key`, text): Your own unique key for the customer.

**Outputs**

- `customer` (object): The customer

**Example output**

```json
{
  "customer": {
    "addresses": [
      {
        "additionalAddressInfo": "",
        "city": "Paris",
        "company": "",
        "country": "FR",
        "email": "alex.moreau@example.com",
        "firstName": "Alex",
        "id": "aB3dEf9h",
        "lastName": "Moreau",
        "phone": "",
        "postalCode": "75001",
        "state": "",
        "streetName": "Rue de Rivoli",
        "streetNumber": "12"
      }
    ],
    "authenticationMode": "Password",
    "companyName": "Moreau Design",
    "createdAt": "2026-10-20T08:00:00.000Z",
    "customerGroup": {
      "id": "2b3c4d5e-6f7a-4b8c-9d0e-1f2a3b4c5d6e",
      "typeId": "customer-group"
    },
    "customerNumber": "C-10042",
    "defaultBillingAddressId": "",
    "defaultShippingAddressId": "aB3dEf9h",
    "email": "alex.moreau@example.com",
    "firstName": "Alex",
    "id": "9b8a7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d",
    "isEmailVerified": true,
    "key": "",
    "lastModifiedAt": "2026-11-01T12:30:00.000Z",
    "lastName": "Moreau",
    "version": 1
  }
}
```

### Create discount code

Create a code customers type at checkout to get one or more cart discounts, with limits on how often and when it works.

**Inputs**

- Code (`code`, text, required): What customers type, like AUTUMN10. Unique in the project.
- Cart discounts (`cart_discount_ids`, list, required): The discounts it gives. Each must have Requires a discount code turned on.
- Name (`name`, text): A name for it in the Merchant Center.
- Language (`language`, text): The language of the text. Leave empty for the project's first language.
- Total uses (`max_applications`, number): How many orders can use it in all. Leave empty for no limit. At least 1.
- Uses per customer (`max_applications_per_customer`, number): How many orders each customer can use it on. At least 1.
- Valid from (`valid_from`, date and time): When it starts to work. Leave empty for now.
- Valid until (`valid_until`, date and time): When it stops working. Leave empty for no end.
- Active (`active`, true/false): Turn off to create it switched off. Defaults to on.

**Outputs**

- `discount_code` (object): The discount code

**Example output**

```json
{
  "discount_code": {
    "cartDiscounts": [
      {
        "id": "d15c0a70-1b2c-4d3e-8f4a-5b6c7d8e9f01",
        "typeId": "cart-discount"
      }
    ],
    "code": "AUTUMN10",
    "createdAt": "2026-11-01T09:00:00.000Z",
    "id": "f0e1d2c3-b4a5-4968-8776-655443322110",
    "isActive": true,
    "maxApplications": 500,
    "maxApplicationsPerCustomer": 1,
    "name": {
      "en": "Autumn newsletter"
    },
    "validFrom": "2026-11-01T00:00:00.000Z",
    "validUntil": "2026-11-30T23:00:00.000Z",
    "version": 1
  }
}
```

### Create product

Create a product with one variant: its name, SKU and price. It stays unpublished unless Publish is on.

**Inputs**

- Product type (`product_type_id`, text, required): The product's type. A type with required attributes can't be used here; 'List product types' shows them.
- Name (`name`, text, required): The product's name.
- Language (`language`, text): The language of the text. Leave empty for the project's first language.
- Slug (`slug`, text): Its address in the shop, unique in the project, like blue-cotton-shirt. Leave empty to make one from the name.
- Description (`description`, text): The product's description.
- SKU (`sku`, text): The SKU of its variant, unique in the project.
- Key (`key`, text): Your own unique key for the product, like blue-shirt-01.
- Price (`price`, number): Its price as an amount, like 19.99. At least 0.
- Currency (`currency`, text): The price's currency. Needed with a price.
- Categories (`category_ids`, list): Categories to put it in.
- Publish (`publish`, true/false): Turn on to publish the product with this change, so shoppers see it.

**Outputs**

- `product` (object): The product

**Example output**

```json
{
  "product": {
    "categories": [
      {
        "id": "7a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d",
        "typeId": "category"
      }
    ],
    "createdAt": "2026-11-02T09:12:40.123Z",
    "description": {
      "en": "A soft shirt in organic cotton."
    },
    "hasStagedChanges": false,
    "id": "3c8d1f26-7a4b-4e0f-9b2d-5e6f7a8b9c0d",
    "key": "blue-cotton-shirt",
    "lastModifiedAt": "2026-11-03T10:00:00.000Z",
    "masterVariant": {
      "attributes": [
        {
          "name": "size",
          "value": "M"
        }
      ],
      "id": 1,
      "images": [
        {
          "label": "Front",
          "url": "https://images.example.com/shirt-blue.jpg"
        }
      ],
      "key": "",
      "prices": [
        {
          "channel": {
            "id": "",
            "typeId": ""
          },
          "country": "",
          "customerGroup": {
            "id": "",
            "typeId": ""
          },
          "id": "5d6e7f80-9a1b-4c2d-8e3f-4a5b6c7d8e9f",
          "key": "",
          "validFrom": "",
          "validUntil": "",
          "value": {
            "centAmount": 2999,
            "currencyCode": "EUR",
            "fractionDigits": 2,
            "type": "centPrecision"
          }
        }
      ],
      "sku": "SHIRT-BLUE-M"
    },
    "name": {
      "en": "Blue cotton shirt"
    },
    "productType": {
      "id": "0f9e8d7c-6b5a-4c3d-8e2f-1a0b9c8d7e6f",
      "typeId": "product-type"
    },
    "published": false,
    "slug": {
      "en": "blue-cotton-shirt"
    },
    "variants": [],
    "version": 1
  }
}
```

### Delete customer

Delete a customer account for good. Their orders stay.

**Inputs**

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

**Outputs**

- `customer_id` (text): The deleted customer's id
- `deleted` (true/false): True once they are deleted

**Example output**

```json
{
  "customer_id": "9b8a7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d",
  "deleted": true
}
```

### Delete discount code

Delete a discount code for good, so it no longer works at checkout.

**Inputs**

- Discount code ID (`discount_code_id`, text, required): The discount code's id, from 'Create discount code'.

**Outputs**

- `deleted` (true/false): True once it is deleted
- `discount_code_id` (text): The deleted code's id

**Example output**

```json
{
  "deleted": true,
  "discount_code_id": "f0e1d2c3-b4a5-4968-8776-655443322110"
}
```

### Delete product

Delete a product for good, unpublishing it first if it is published.

**Inputs**

- Product (`product_id`, text, required): The product. Pick one, or give its id from an earlier step.

**Outputs**

- `deleted` (true/false): True once it is deleted
- `product` (object): The product as it was
- `product_id` (text): The deleted product's id

**Example output**

```json
{
  "deleted": true,
  "product": {
    "categories": [
      {
        "id": "7a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d",
        "typeId": "category"
      }
    ],
    "createdAt": "2026-11-02T09:12:40.123Z",
    "description": {
      "en": "A soft shirt in organic cotton."
    },
    "hasStagedChanges": false,
    "id": "3c8d1f26-7a4b-4e0f-9b2d-5e6f7a8b9c0d",
    "key": "blue-cotton-shirt",
    "lastModifiedAt": "2026-11-03T10:00:00.000Z",
    "masterVariant": {
      "attributes": [
        {
          "name": "size",
          "value": "M"
        }
      ],
      "id": 1,
      "images": [
        {
          "label": "Front",
          "url": "https://images.example.com/shirt-blue.jpg"
        }
      ],
      "key": "",
      "prices": [
        {
          "channel": {
            "id": "",
            "typeId": ""
          },
          "country": "",
          "customerGroup": {
            "id": "",
            "typeId": ""
          },
          "id": "5d6e7f80-9a1b-4c2d-8e3f-4a5b6c7d8e9f",
          "key": "",
          "validFrom": "",
          "validUntil": "",
          "value": {
            "centAmount": 2999,
            "currencyCode": "EUR",
            "fractionDigits": 2,
            "type": "centPrecision"
          }
        }
      ],
      "sku": "SHIRT-BLUE-M"
    },
    "name": {
      "en": "Blue cotton shirt"
    },
    "productType": {
      "id": "0f9e8d7c-6b5a-4c3d-8e2f-1a0b9c8d7e6f",
      "typeId": "product-type"
    },
    "published": false,
    "slug": {
      "en": "blue-cotton-shirt"
    },
    "variants": [],
    "version": 7
  },
  "product_id": "3c8d1f26-7a4b-4e0f-9b2d-5e6f7a8b9c0d"
}
```

### Get customer

Get one customer with their addresses and customer group.

**Inputs**

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

**Outputs**

- `customer` (object): The customer

**Example output**

```json
{
  "customer": {
    "addresses": [
      {
        "additionalAddressInfo": "",
        "city": "Paris",
        "company": "",
        "country": "FR",
        "email": "alex.moreau@example.com",
        "firstName": "Alex",
        "id": "aB3dEf9h",
        "lastName": "Moreau",
        "phone": "",
        "postalCode": "75001",
        "state": "",
        "streetName": "Rue de Rivoli",
        "streetNumber": "12"
      }
    ],
    "authenticationMode": "Password",
    "companyName": "Moreau Design",
    "createdAt": "2026-10-20T08:00:00.000Z",
    "customerGroup": {
      "id": "2b3c4d5e-6f7a-4b8c-9d0e-1f2a3b4c5d6e",
      "typeId": "customer-group"
    },
    "customerNumber": "C-10042",
    "defaultBillingAddressId": "",
    "defaultShippingAddressId": "aB3dEf9h",
    "email": "alex.moreau@example.com",
    "firstName": "Alex",
    "id": "9b8a7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d",
    "isEmailVerified": true,
    "key": "",
    "lastModifiedAt": "2026-11-01T12:30:00.000Z",
    "lastName": "Moreau",
    "version": 3
  }
}
```

### Get order

Get one order with its items, prices, addresses, statuses, deliveries and returns.

**Inputs**

- Order (`order`, text, required): The order's id or its order number, from a trigger or an earlier step.

**Outputs**

- `order` (object): The order

**Example output**

```json
{
  "order": {
    "billingAddress": {
      "additionalAddressInfo": "",
      "city": "Paris",
      "company": "",
      "country": "FR",
      "email": "alex.moreau@example.com",
      "firstName": "Alex",
      "id": "aB3dEf9h",
      "lastName": "Moreau",
      "phone": "",
      "postalCode": "75001",
      "state": "",
      "streetName": "Rue de Rivoli",
      "streetNumber": "12"
    },
    "completedAt": "",
    "country": "FR",
    "createdAt": "2026-11-03T14:21:07.000Z",
    "customerEmail": "alex.moreau@example.com",
    "customerId": "9b8a7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d",
    "id": "c0ffee00-1234-4abc-9def-0123456789ab",
    "lastModifiedAt": "2026-11-03T14:40:00.000Z",
    "lineItems": [
      {
        "id": "e1d2c3b4-a5f6-4e7d-8c9b-0a1f2e3d4c5b",
        "name": {
          "en": "Blue cotton shirt"
        },
        "price": {
          "channel": {
            "id": "",
            "typeId": ""
          },
          "country": "",
          "customerGroup": {
            "id": "",
            "typeId": ""
          },
          "id": "5d6e7f80-9a1b-4c2d-8e3f-4a5b6c7d8e9f",
          "key": "",
          "validFrom": "",
          "validUntil": "",
          "value": {
            "centAmount": 2999,
            "currencyCode": "EUR",
            "fractionDigits": 2,
            "type": "centPrecision"
          }
        },
        "productId": "3c8d1f26-7a4b-4e0f-9b2d-5e6f7a8b9c0d",
        "quantity": 2,
        "totalPrice": {
          "centAmount": 5998,
          "currencyCode": "EUR",
          "fractionDigits": 2,
          "type": "centPrecision"
        },
        "variant": {
          "attributes": [
            {
              "name": "size",
              "value": "M"
            }
          ],
          "id": 1,
          "images": [
            {
              "label": "Front",
              "url": "https://images.example.com/shirt-blue.jpg"
            }
          ],
          "key": "",
          "prices": [
            {
              "channel": {
                "id": "",
                "typeId": ""
              },
              "country": "",
              "customerGroup": {
                "id": "",
                "typeId": ""
              },
              "id": "5d6e7f80-9a1b-4c2d-8e3f-4a5b6c7d8e9f",
              "key": "",
              "validFrom": "",
              "validUntil": "",
              "value": {
                "centAmount": 2999,
                "currencyCode": "EUR",
                "fractionDigits": 2,
                "type": "centPrecision"
              }
            }
          ],
          "sku": "SHIRT-BLUE-M"
        }
      }
    ],
    "locale": "en",
    "orderNumber": "100042",
    "orderState": "Confirmed",
    "paymentState": "Paid",
    "returnInfo": [],
    "shipmentState": "Ready",
    "shippingAddress": {
      "additionalAddressInfo": "",
      "city": "Paris",
      "company": "",
      "country": "FR",
      "email": "alex.moreau@example.com",
      "firstName": "Alex",
      "id": "aB3dEf9h",
      "lastName": "Moreau",
      "phone": "",
      "postalCode": "75001",
      "state": "",
      "streetName": "Rue de Rivoli",
      "streetNumber": "12"
    },
    "shippingInfo": {
      "deliveries": [],
      "price": {
        "centAmount": 499,
        "currencyCode": "EUR",
        "fractionDigits": 2,
        "type": "centPrecision"
      },
      "shippingMethodName": "Standard"
    },
    "totalPrice": {
      "centAmount": 6497,
      "currencyCode": "EUR",
      "fractionDigits": 2,
      "type": "centPrecision"
    },
    "version": 5
  }
}
```

### Get product

Get one product with its variants, SKUs, prices, images and attributes.

**Inputs**

- Product (`product_id`, text, required): The product. Pick one, or give its id from an earlier step.
- Published version only (`published_only`, true/false): Turn on to see only published products as shoppers see them. Off, you get the latest version, unpublished changes included.

**Outputs**

- `product` (object): The product

**Example output**

```json
{
  "product": {
    "categories": [
      {
        "id": "7a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d",
        "typeId": "category"
      }
    ],
    "createdAt": "2026-11-02T09:12:40.123Z",
    "description": {
      "en": "A soft shirt in organic cotton."
    },
    "hasStagedChanges": false,
    "id": "3c8d1f26-7a4b-4e0f-9b2d-5e6f7a8b9c0d",
    "key": "blue-cotton-shirt",
    "lastModifiedAt": "2026-11-03T10:00:00.000Z",
    "masterVariant": {
      "attributes": [
        {
          "name": "size",
          "value": "M"
        }
      ],
      "id": 1,
      "images": [
        {
          "label": "Front",
          "url": "https://images.example.com/shirt-blue.jpg"
        }
      ],
      "key": "",
      "prices": [
        {
          "channel": {
            "id": "",
            "typeId": ""
          },
          "country": "",
          "customerGroup": {
            "id": "",
            "typeId": ""
          },
          "id": "5d6e7f80-9a1b-4c2d-8e3f-4a5b6c7d8e9f",
          "key": "",
          "validFrom": "",
          "validUntil": "",
          "value": {
            "centAmount": 2999,
            "currencyCode": "EUR",
            "fractionDigits": 2,
            "type": "centPrecision"
          }
        }
      ],
      "sku": "SHIRT-BLUE-M"
    },
    "name": {
      "en": "Blue cotton shirt"
    },
    "productType": {
      "id": "0f9e8d7c-6b5a-4c3d-8e2f-1a0b9c8d7e6f",
      "typeId": "product-type"
    },
    "published": true,
    "slug": {
      "en": "blue-cotton-shirt"
    },
    "variants": [],
    "version": 7
  }
}
```

### Get project

Get the commercetools project that's connected: its name, key, languages, currencies and countries.

**Inputs**: None.

**Outputs**

- `project` (object): The commercetools project

**Example output**

```json
{
  "project": {
    "countries": [
      "DE",
      "FR",
      "US"
    ],
    "createdAt": "2025-03-14T10:00:00.000Z",
    "currencies": [
      "EUR",
      "USD"
    ],
    "key": "acme-store",
    "languages": [
      "en",
      "de",
      "fr"
    ],
    "name": "Acme Store",
    "trialUntil": ""
  }
}
```

### List cart discounts

List the project's cart discounts (promotions), highest priority first.

**Inputs**

- Only those used with a code (`needs_code_only`, true/false): Turn on for only the discounts a discount code can unlock.
- Limit (`limit`, number): How many to get, up to 500. Defaults to 20. From 1 to 500.
- Offset (`offset`, number): How many to skip, for the next page: the next_offset a list gave. From 0 to 10000.

**Outputs**

- `cart_discounts` (list): The cart discounts
- `count` (number): How many are on this page
- `next_offset` (number): The Offset for the next page, or null when this is the last
- `offset` (number): How many were skipped before this page
- `total` (number): How many there are in all

**Example output**

```json
{
  "cart_discounts": [
    {
      "cartPredicate": "1 = 1",
      "description": {},
      "id": "d15c0a70-1b2c-4d3e-8f4a-5b6c7d8e9f01",
      "isActive": true,
      "key": "autumn-10",
      "name": {
        "en": "10% off in autumn"
      },
      "requiresDiscountCode": true,
      "sortOrder": "0.5",
      "validFrom": "",
      "validUntil": "2026-11-30T23:00:00.000Z"
    }
  ],
  "count": 1,
  "next_offset": null,
  "offset": 0,
  "total": 1
}
```

### List categories

List the project's categories, or those directly under one.

**Inputs**

- Parent category (`parent_id`, text): Only categories directly under this one.
- Limit (`limit`, number): How many to get, up to 500. Defaults to 20. From 1 to 500.
- Offset (`offset`, number): How many to skip, for the next page: the next_offset a list gave. From 0 to 10000.

**Outputs**

- `categories` (list): The categories
- `count` (number): How many are on this page
- `next_offset` (number): The Offset for the next page, or null when this is the last
- `offset` (number): How many were skipped before this page
- `total` (number): How many there are in all

**Example output**

```json
{
  "categories": [
    {
      "ancestors": [
        {
          "id": "1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
          "typeId": "category"
        }
      ],
      "createdAt": "2026-09-01T08:00:00.000Z",
      "description": {},
      "id": "7a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d",
      "key": "shirts",
      "lastModifiedAt": "2026-09-01T08:00:00.000Z",
      "name": {
        "en": "Shirts"
      },
      "orderHint": "0.3",
      "parent": {
        "id": "1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
        "typeId": "category"
      },
      "slug": {
        "en": "shirts"
      },
      "version": 2
    }
  ],
  "count": 1,
  "next_offset": null,
  "offset": 0,
  "total": 1
}
```

### List customers

List customers, newest first, or find one by email.

**Inputs**

- Email (`email`, text): Only the customer with this email address.
- Customer group (`customer_group_id`, text): Only customers in this customer group.
- Limit (`limit`, number): How many to get, up to 500. Defaults to 20. From 1 to 500.
- Offset (`offset`, number): How many to skip, for the next page: the next_offset a list gave. From 0 to 10000.

**Outputs**

- `count` (number): How many are on this page
- `customers` (list): The customers
- `next_offset` (number): The Offset for the next page, or null when this is the last
- `offset` (number): How many were skipped before this page
- `total` (number): How many there are in all

**Example output**

```json
{
  "count": 1,
  "customers": [
    {
      "addresses": [
        {
          "additionalAddressInfo": "",
          "city": "Paris",
          "company": "",
          "country": "FR",
          "email": "alex.moreau@example.com",
          "firstName": "Alex",
          "id": "aB3dEf9h",
          "lastName": "Moreau",
          "phone": "",
          "postalCode": "75001",
          "state": "",
          "streetName": "Rue de Rivoli",
          "streetNumber": "12"
        }
      ],
      "authenticationMode": "Password",
      "companyName": "Moreau Design",
      "createdAt": "2026-10-20T08:00:00.000Z",
      "customerGroup": {
        "id": "2b3c4d5e-6f7a-4b8c-9d0e-1f2a3b4c5d6e",
        "typeId": "customer-group"
      },
      "customerNumber": "C-10042",
      "defaultBillingAddressId": "",
      "defaultShippingAddressId": "aB3dEf9h",
      "email": "alex.moreau@example.com",
      "firstName": "Alex",
      "id": "9b8a7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d",
      "isEmailVerified": true,
      "key": "",
      "lastModifiedAt": "2026-11-01T12:30:00.000Z",
      "lastName": "Moreau",
      "version": 3
    }
  ],
  "next_offset": null,
  "offset": 0,
  "total": 1
}
```

### List inventory

List stock levels, most recently changed first, for one SKU or those running low.

**Inputs**

- SKU (`sku`, text): Only the stock of this SKU.
- Available at most (`at_most`, number): Only stock with this many or fewer available, like 5. At least 0.
- Limit (`limit`, number): How many to get, up to 500. Defaults to 20. From 1 to 500.
- Offset (`offset`, number): How many to skip, for the next page: the next_offset a list gave. From 0 to 10000.

**Outputs**

- `count` (number): How many are on this page
- `inventory_entries` (list): The stock levels
- `next_offset` (number): The Offset for the next page, or null when this is the last
- `offset` (number): How many were skipped before this page
- `total` (number): How many there are in all

**Example output**

```json
{
  "count": 1,
  "inventory_entries": [
    {
      "availableQuantity": 23,
      "createdAt": "2026-10-01T08:00:00.000Z",
      "expectedDelivery": "",
      "id": "8e7d6c5b-4a3f-4e2d-9c1b-0a9f8e7d6c5b",
      "lastModifiedAt": "2026-11-03T14:21:07.000Z",
      "quantityOnStock": 25,
      "restockableInDays": 0,
      "sku": "SHIRT-BLUE-M",
      "supplyChannel": {
        "id": "",
        "typeId": ""
      },
      "version": 4
    }
  ],
  "next_offset": null,
  "offset": 0,
  "total": 1
}
```

### List orders

List orders, newest first, filtered by status, customer email or when they were placed.

**Inputs**

- Order status (`order_state`, text): Only orders with this status. One of: `Open`, `Confirmed`, `Complete`, `Cancelled`.
- Shipment status (`shipment_state`, text): Only orders with this shipment status. One of: `Pending`, `Ready` (Ready to ship), `Shipped`, `Delivered`, `Partial` (Partly shipped), `Delayed`, `Backorder`, `Canceled`.
- Payment status (`payment_state`, text): Only orders with this payment status. One of: `Pending`, `Paid`, `BalanceDue` (Balance due), `CreditOwed` (Credit owed), `Failed`.
- Customer email (`customer_email`, text): Only orders placed with this email address.
- Placed after (`created_after`, date and time): Only orders placed after this time.
- Order by (`sort`, text): Which come first. Defaults to newest first. One of: `createdAt desc` (Newest first), `createdAt asc` (Oldest first), `lastModifiedAt desc` (Most recently changed first).
- Limit (`limit`, number): How many to get, up to 500. Defaults to 20. From 1 to 500.
- Offset (`offset`, number): How many to skip, for the next page: the next_offset a list gave. From 0 to 10000.

**Outputs**

- `count` (number): How many are on this page
- `next_offset` (number): The Offset for the next page, or null when this is the last
- `offset` (number): How many were skipped before this page
- `orders` (list): The orders
- `total` (number): How many there are in all

**Example output**

```json
{
  "count": 1,
  "next_offset": null,
  "offset": 0,
  "orders": [
    {
      "billingAddress": {
        "additionalAddressInfo": "",
        "city": "Paris",
        "company": "",
        "country": "FR",
        "email": "alex.moreau@example.com",
        "firstName": "Alex",
        "id": "aB3dEf9h",
        "lastName": "Moreau",
        "phone": "",
        "postalCode": "75001",
        "state": "",
        "streetName": "Rue de Rivoli",
        "streetNumber": "12"
      },
      "completedAt": "",
      "country": "FR",
      "createdAt": "2026-11-03T14:21:07.000Z",
      "customerEmail": "alex.moreau@example.com",
      "customerId": "9b8a7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d",
      "id": "c0ffee00-1234-4abc-9def-0123456789ab",
      "lastModifiedAt": "2026-11-03T14:40:00.000Z",
      "lineItems": [
        {
          "id": "e1d2c3b4-a5f6-4e7d-8c9b-0a1f2e3d4c5b",
          "name": {
            "en": "Blue cotton shirt"
          },
          "price": {
            "channel": {
              "id": "",
              "typeId": ""
            },
            "country": "",
            "customerGroup": {
              "id": "",
              "typeId": ""
            },
            "id": "5d6e7f80-9a1b-4c2d-8e3f-4a5b6c7d8e9f",
            "key": "",
            "validFrom": "",
            "validUntil": "",
            "value": {
              "centAmount": 2999,
              "currencyCode": "EUR",
              "fractionDigits": 2,
              "type": "centPrecision"
            }
          },
          "productId": "3c8d1f26-7a4b-4e0f-9b2d-5e6f7a8b9c0d",
          "quantity": 2,
          "totalPrice": {
            "centAmount": 5998,
            "currencyCode": "EUR",
            "fractionDigits": 2,
            "type": "centPrecision"
          },
          "variant": {
            "attributes": [
              {
                "name": "size",
                "value": "M"
              }
            ],
            "id": 1,
            "images": [
              {
                "label": "Front",
                "url": "https://images.example.com/shirt-blue.jpg"
              }
            ],
            "key": "",
            "prices": [
              {
                "channel": {
                  "id": "",
                  "typeId": ""
                },
                "country": "",
                "customerGroup": {
                  "id": "",
                  "typeId": ""
                },
                "id": "5d6e7f80-9a1b-4c2d-8e3f-4a5b6c7d8e9f",
                "key": "",
                "validFrom": "",
                "validUntil": "",
                "value": {
                  "centAmount": 2999,
                  "currencyCode": "EUR",
                  "fractionDigits": 2,
                  "type": "centPrecision"
                }
              }
            ],
            "sku": "SHIRT-BLUE-M"
          }
        }
      ],
      "locale": "en",
      "orderNumber": "100042",
      "orderState": "Confirmed",
      "paymentState": "Paid",
      "returnInfo": [],
      "shipmentState": "Ready",
      "shippingAddress": {
        "additionalAddressInfo": "",
        "city": "Paris",
        "company": "",
        "country": "FR",
        "email": "alex.moreau@example.com",
        "firstName": "Alex",
        "id": "aB3dEf9h",
        "lastName": "Moreau",
        "phone": "",
        "postalCode": "75001",
        "state": "",
        "streetName": "Rue de Rivoli",
        "streetNumber": "12"
      },
      "shippingInfo": {
        "deliveries": [],
        "price": {
          "centAmount": 499,
          "currencyCode": "EUR",
          "fractionDigits": 2,
          "type": "centPrecision"
        },
        "shippingMethodName": "Standard"
      },
      "totalPrice": {
        "centAmount": 6497,
        "currencyCode": "EUR",
        "fractionDigits": 2,
        "type": "centPrecision"
      },
      "version": 5
    }
  ],
  "total": 1
}
```

### List product types

List the product types products are made from, with the attributes each requires.

**Inputs**

- Only types without required attributes (`without_required_attributes`, true/false): Turn on for only the types 'Create product' can use with just a name, SKU and price.
- Limit (`limit`, number): How many to get, up to 500. Defaults to 20. From 1 to 500.
- Offset (`offset`, number): How many to skip, for the next page: the next_offset a list gave. From 0 to 10000.

**Outputs**

- `count` (number): How many are on this page
- `next_offset` (number): The Offset for the next page, or null when this is the last
- `offset` (number): How many were skipped before this page
- `product_types` (list): The product types
- `total` (number): How many there are in all

**Example output**

```json
{
  "count": 1,
  "next_offset": null,
  "offset": 0,
  "product_types": [
    {
      "description": "Shirts, trousers and jackets",
      "id": "0f9e8d7c-6b5a-4c3d-8e2f-1a0b9c8d7e6f",
      "key": "clothing",
      "name": "Clothing",
      "required_attributes": []
    }
  ],
  "total": 1
}
```

### List products

List products, most recently changed first, optionally by SKU, category or product type.

**Inputs**

- SKU (`sku`, text): Only the product with a variant of this SKU.
- Category (`category_id`, text): Only products in this category.
- Product type (`product_type_id`, text): Only products of this type.
- Published version only (`published_only`, true/false): Turn on to see only published products as shoppers see them. Off, you get the latest version, unpublished changes included.
- Limit (`limit`, number): How many to get, up to 500. Defaults to 20. From 1 to 500.
- Offset (`offset`, number): How many to skip, for the next page: the next_offset a list gave. From 0 to 10000.

**Outputs**

- `count` (number): How many are on this page
- `next_offset` (number): The Offset for the next page, or null when this is the last
- `offset` (number): How many were skipped before this page
- `products` (list): The products
- `total` (number): How many there are in all

**Example output**

```json
{
  "count": 1,
  "next_offset": null,
  "offset": 0,
  "products": [
    {
      "categories": [
        {
          "id": "7a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d",
          "typeId": "category"
        }
      ],
      "createdAt": "2026-11-02T09:12:40.123Z",
      "description": {
        "en": "A soft shirt in organic cotton."
      },
      "hasStagedChanges": false,
      "id": "3c8d1f26-7a4b-4e0f-9b2d-5e6f7a8b9c0d",
      "key": "blue-cotton-shirt",
      "lastModifiedAt": "2026-11-03T10:00:00.000Z",
      "masterVariant": {
        "attributes": [
          {
            "name": "size",
            "value": "M"
          }
        ],
        "id": 1,
        "images": [
          {
            "label": "Front",
            "url": "https://images.example.com/shirt-blue.jpg"
          }
        ],
        "key": "",
        "prices": [
          {
            "channel": {
              "id": "",
              "typeId": ""
            },
            "country": "",
            "customerGroup": {
              "id": "",
              "typeId": ""
            },
            "id": "5d6e7f80-9a1b-4c2d-8e3f-4a5b6c7d8e9f",
            "key": "",
            "validFrom": "",
            "validUntil": "",
            "value": {
              "centAmount": 2999,
              "currencyCode": "EUR",
              "fractionDigits": 2,
              "type": "centPrecision"
            }
          }
        ],
        "sku": "SHIRT-BLUE-M"
      },
      "name": {
        "en": "Blue cotton shirt"
      },
      "productType": {
        "id": "0f9e8d7c-6b5a-4c3d-8e2f-1a0b9c8d7e6f",
        "typeId": "product-type"
      },
      "published": true,
      "slug": {
        "en": "blue-cotton-shirt"
      },
      "variants": [],
      "version": 7
    }
  ],
  "total": 1
}
```

### Publish or unpublish product

Publish a product's latest changes so shoppers see them, or unpublish it to take it out of the shop.

**Inputs**

- Product (`product_id`, text, required): The product. Pick one, or give its id from an earlier step.
- Change (`change`, text): Publish or unpublish. Defaults to Publish. One of: `publish`, `unpublish`.

**Outputs**

- `product` (object): The product
- `published` (true/false): Whether it is now published

**Example output**

```json
{
  "product": {
    "categories": [
      {
        "id": "7a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d",
        "typeId": "category"
      }
    ],
    "createdAt": "2026-11-02T09:12:40.123Z",
    "description": {
      "en": "A soft shirt in organic cotton."
    },
    "hasStagedChanges": false,
    "id": "3c8d1f26-7a4b-4e0f-9b2d-5e6f7a8b9c0d",
    "key": "blue-cotton-shirt",
    "lastModifiedAt": "2026-11-03T10:00:00.000Z",
    "masterVariant": {
      "attributes": [
        {
          "name": "size",
          "value": "M"
        }
      ],
      "id": 1,
      "images": [
        {
          "label": "Front",
          "url": "https://images.example.com/shirt-blue.jpg"
        }
      ],
      "key": "",
      "prices": [
        {
          "channel": {
            "id": "",
            "typeId": ""
          },
          "country": "",
          "customerGroup": {
            "id": "",
            "typeId": ""
          },
          "id": "5d6e7f80-9a1b-4c2d-8e3f-4a5b6c7d8e9f",
          "key": "",
          "validFrom": "",
          "validUntil": "",
          "value": {
            "centAmount": 2999,
            "currencyCode": "EUR",
            "fractionDigits": 2,
            "type": "centPrecision"
          }
        }
      ],
      "sku": "SHIRT-BLUE-M"
    },
    "name": {
      "en": "Blue cotton shirt"
    },
    "productType": {
      "id": "0f9e8d7c-6b5a-4c3d-8e2f-1a0b9c8d7e6f",
      "typeId": "product-type"
    },
    "published": true,
    "slug": {
      "en": "blue-cotton-shirt"
    },
    "variants": [],
    "version": 9
  },
  "published": true
}
```

### Search products

Find products whose name contains any of the words given, best matches first.

**Inputs**

- Search for (`text`, text, required): Words in the product's name, like blue shirt.
- Language (`language`, text): The language of the text. Leave empty for the project's first language.
- Published version only (`published_only`, true/false): Turn on to see only published products as shoppers see them. Off, you get the latest version, unpublished changes included.
- Limit (`limit`, number): How many to get, up to 100. Defaults to 20. From 1 to 100.
- Offset (`offset`, number): How many to skip, for the next page: the next_offset a list gave. From 0 to 10000.

**Outputs**

- `count` (number): How many are on this page
- `next_offset` (number): The Offset for the next page, or null when this is the last
- `offset` (number): How many were skipped before this page
- `products` (list): The products found
- `total` (number): How many there are in all

**Example output**

```json
{
  "count": 1,
  "next_offset": null,
  "offset": 0,
  "products": [
    {
      "categories": [
        {
          "id": "7a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d",
          "typeId": "category"
        }
      ],
      "createdAt": "2026-11-02T09:12:40.123Z",
      "description": {
        "en": "A soft shirt in organic cotton."
      },
      "hasStagedChanges": false,
      "id": "3c8d1f26-7a4b-4e0f-9b2d-5e6f7a8b9c0d",
      "key": "blue-cotton-shirt",
      "lastModifiedAt": "2026-11-03T10:00:00.000Z",
      "masterVariant": {
        "attributes": [
          {
            "name": "size",
            "value": "M"
          }
        ],
        "id": 1,
        "images": [
          {
            "label": "Front",
            "url": "https://images.example.com/shirt-blue.jpg"
          }
        ],
        "key": "",
        "prices": [
          {
            "channel": {
              "id": "",
              "typeId": ""
            },
            "country": "",
            "customerGroup": {
              "id": "",
              "typeId": ""
            },
            "id": "5d6e7f80-9a1b-4c2d-8e3f-4a5b6c7d8e9f",
            "key": "",
            "validFrom": "",
            "validUntil": "",
            "value": {
              "centAmount": 2999,
              "currencyCode": "EUR",
              "fractionDigits": 2,
              "type": "centPrecision"
            }
          }
        ],
        "sku": "SHIRT-BLUE-M"
      },
      "name": {
        "en": "Blue cotton shirt"
      },
      "productType": {
        "id": "0f9e8d7c-6b5a-4c3d-8e2f-1a0b9c8d7e6f",
        "typeId": "product-type"
      },
      "published": true,
      "slug": {
        "en": "blue-cotton-shirt"
      },
      "variants": [],
      "version": 7
    }
  ],
  "total": 1
}
```

### Set product price

Set the price of a product's variant in a currency (and country), replacing the one it had there or adding it.

**Inputs**

- Product (`product_id`, text, required): The product. Pick one, or give its id from an earlier step.
- Price (`price`, number, required): The price as an amount, like 19.99. At least 0.
- Currency (`currency`, text, required): The price's currency, one of the project's.
- SKU (`sku`, text): The variant's SKU. Leave empty for the main variant.
- Country (`country`, text): Only for shoppers in this country. Leave empty for everywhere.
- Publish (`publish`, true/false): Turn on to publish the product with this change, so shoppers see it.

**Outputs**

- `price` (text): The price set, like 29.99 EUR
- `product` (object): The product
- `replaced_existing` (true/false): True when it replaced a price, false when it added one
- `sku` (text): Its SKU
- `variant_id` (number): The variant priced

**Example output**

```json
{
  "price": "29.99 EUR",
  "product": {
    "categories": [
      {
        "id": "7a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d",
        "typeId": "category"
      }
    ],
    "createdAt": "2026-11-02T09:12:40.123Z",
    "description": {
      "en": "A soft shirt in organic cotton."
    },
    "hasStagedChanges": false,
    "id": "3c8d1f26-7a4b-4e0f-9b2d-5e6f7a8b9c0d",
    "key": "blue-cotton-shirt",
    "lastModifiedAt": "2026-11-03T10:00:00.000Z",
    "masterVariant": {
      "attributes": [
        {
          "name": "size",
          "value": "M"
        }
      ],
      "id": 1,
      "images": [
        {
          "label": "Front",
          "url": "https://images.example.com/shirt-blue.jpg"
        }
      ],
      "key": "",
      "prices": [
        {
          "channel": {
            "id": "",
            "typeId": ""
          },
          "country": "",
          "customerGroup": {
            "id": "",
            "typeId": ""
          },
          "id": "5d6e7f80-9a1b-4c2d-8e3f-4a5b6c7d8e9f",
          "key": "",
          "validFrom": "",
          "validUntil": "",
          "value": {
            "centAmount": 2999,
            "currencyCode": "EUR",
            "fractionDigits": 2,
            "type": "centPrecision"
          }
        }
      ],
      "sku": "SHIRT-BLUE-M"
    },
    "name": {
      "en": "Blue cotton shirt"
    },
    "productType": {
      "id": "0f9e8d7c-6b5a-4c3d-8e2f-1a0b9c8d7e6f",
      "typeId": "product-type"
    },
    "published": true,
    "slug": {
      "en": "blue-cotton-shirt"
    },
    "variants": [],
    "version": 8
  },
  "replaced_existing": true,
  "sku": "SHIRT-BLUE-M",
  "variant_id": 1
}
```

### Set stock quantity

Set how many of a SKU are in stock, creating its stock record if it has none. Changes the stock that isn't tied to a warehouse channel.

**Inputs**

- SKU (`sku`, text, required): The variant's SKU.
- Quantity on stock (`quantity`, number, required): How many are in stock now, 0 or more. At least 0.

**Outputs**

- `created` (true/false): True when a new stock record was made
- `inventory_entry` (object): The stock record

**Example output**

```json
{
  "created": false,
  "inventory_entry": {
    "availableQuantity": 23,
    "createdAt": "2026-10-01T08:00:00.000Z",
    "expectedDelivery": "",
    "id": "8e7d6c5b-4a3f-4e2d-9c1b-0a9f8e7d6c5b",
    "lastModifiedAt": "2026-11-03T14:21:07.000Z",
    "quantityOnStock": 25,
    "restockableInDays": 0,
    "sku": "SHIRT-BLUE-M",
    "supplyChannel": {
      "id": "",
      "typeId": ""
    },
    "version": 4
  }
}
```

### Update customer

Change a customer's email, name, company or customer group. Anything left empty stays as it is.

**Inputs**

- Customer ID (`customer_id`, text, required): The customer's id, from 'List customers', a trigger or an earlier step.
- Email (`email`, text): A new email address.
- First name (`first_name`, text): A new first name.
- Last name (`last_name`, text): A new last name.
- Company (`company_name`, text): A new company.
- Customer group (`customer_group_id`, text): Move them to this customer group.

**Outputs**

- `customer` (object): The customer

**Example output**

```json
{
  "customer": {
    "addresses": [
      {
        "additionalAddressInfo": "",
        "city": "Paris",
        "company": "",
        "country": "FR",
        "email": "alex.moreau@example.com",
        "firstName": "Alex",
        "id": "aB3dEf9h",
        "lastName": "Moreau",
        "phone": "",
        "postalCode": "75001",
        "state": "",
        "streetName": "Rue de Rivoli",
        "streetNumber": "12"
      }
    ],
    "authenticationMode": "Password",
    "companyName": "Moreau Design",
    "createdAt": "2026-10-20T08:00:00.000Z",
    "customerGroup": {
      "id": "2b3c4d5e-6f7a-4b8c-9d0e-1f2a3b4c5d6e",
      "typeId": "customer-group"
    },
    "customerNumber": "C-10042",
    "defaultBillingAddressId": "",
    "defaultShippingAddressId": "aB3dEf9h",
    "email": "alex.moreau@example.com",
    "firstName": "Alex",
    "id": "9b8a7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d",
    "isEmailVerified": true,
    "key": "",
    "lastModifiedAt": "2026-11-01T12:30:00.000Z",
    "lastName": "Moreau",
    "version": 4
  }
}
```

### Update order status

Change an order's status, shipment status or payment status. Anything left empty stays as it is.

**Inputs**

- Order (`order`, text, required): The order's id or its order number, from a trigger or an earlier step.
- Order status (`order_state`, text): The order's new status. One of: `Open`, `Confirmed`, `Complete`, `Cancelled`.
- Shipment status (`shipment_state`, text): The order's new shipment status. One of: `Pending`, `Ready` (Ready to ship), `Shipped`, `Delivered`, `Partial` (Partly shipped), `Delayed`, `Backorder`, `Canceled`.
- Payment status (`payment_state`, text): The order's new payment status. One of: `Pending`, `Paid`, `BalanceDue` (Balance due), `CreditOwed` (Credit owed), `Failed`.

**Outputs**

- `order` (object): The order

**Example output**

```json
{
  "order": {
    "billingAddress": {
      "additionalAddressInfo": "",
      "city": "Paris",
      "company": "",
      "country": "FR",
      "email": "alex.moreau@example.com",
      "firstName": "Alex",
      "id": "aB3dEf9h",
      "lastName": "Moreau",
      "phone": "",
      "postalCode": "75001",
      "state": "",
      "streetName": "Rue de Rivoli",
      "streetNumber": "12"
    },
    "completedAt": "",
    "country": "FR",
    "createdAt": "2026-11-03T14:21:07.000Z",
    "customerEmail": "alex.moreau@example.com",
    "customerId": "9b8a7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d",
    "id": "c0ffee00-1234-4abc-9def-0123456789ab",
    "lastModifiedAt": "2026-11-03T14:40:00.000Z",
    "lineItems": [
      {
        "id": "e1d2c3b4-a5f6-4e7d-8c9b-0a1f2e3d4c5b",
        "name": {
          "en": "Blue cotton shirt"
        },
        "price": {
          "channel": {
            "id": "",
            "typeId": ""
          },
          "country": "",
          "customerGroup": {
            "id": "",
            "typeId": ""
          },
          "id": "5d6e7f80-9a1b-4c2d-8e3f-4a5b6c7d8e9f",
          "key": "",
          "validFrom": "",
          "validUntil": "",
          "value": {
            "centAmount": 2999,
            "currencyCode": "EUR",
            "fractionDigits": 2,
            "type": "centPrecision"
          }
        },
        "productId": "3c8d1f26-7a4b-4e0f-9b2d-5e6f7a8b9c0d",
        "quantity": 2,
        "totalPrice": {
          "centAmount": 5998,
          "currencyCode": "EUR",
          "fractionDigits": 2,
          "type": "centPrecision"
        },
        "variant": {
          "attributes": [
            {
              "name": "size",
              "value": "M"
            }
          ],
          "id": 1,
          "images": [
            {
              "label": "Front",
              "url": "https://images.example.com/shirt-blue.jpg"
            }
          ],
          "key": "",
          "prices": [
            {
              "channel": {
                "id": "",
                "typeId": ""
              },
              "country": "",
              "customerGroup": {
                "id": "",
                "typeId": ""
              },
              "id": "5d6e7f80-9a1b-4c2d-8e3f-4a5b6c7d8e9f",
              "key": "",
              "validFrom": "",
              "validUntil": "",
              "value": {
                "centAmount": 2999,
                "currencyCode": "EUR",
                "fractionDigits": 2,
                "type": "centPrecision"
              }
            }
          ],
          "sku": "SHIRT-BLUE-M"
        }
      }
    ],
    "locale": "en",
    "orderNumber": "100042",
    "orderState": "Complete",
    "paymentState": "Paid",
    "returnInfo": [],
    "shipmentState": "Ready",
    "shippingAddress": {
      "additionalAddressInfo": "",
      "city": "Paris",
      "company": "",
      "country": "FR",
      "email": "alex.moreau@example.com",
      "firstName": "Alex",
      "id": "aB3dEf9h",
      "lastName": "Moreau",
      "phone": "",
      "postalCode": "75001",
      "state": "",
      "streetName": "Rue de Rivoli",
      "streetNumber": "12"
    },
    "shippingInfo": {
      "deliveries": [],
      "price": {
        "centAmount": 499,
        "currencyCode": "EUR",
        "fractionDigits": 2,
        "type": "centPrecision"
      },
      "shippingMethodName": "Standard"
    },
    "totalPrice": {
      "centAmount": 6497,
      "currencyCode": "EUR",
      "fractionDigits": 2,
      "type": "centPrecision"
    },
    "version": 6
  }
}
```

### Update product

Change a product's name, description, slug, key or categories, and publish it if you like. Anything left empty stays as it is.

**Inputs**

- Product (`product_id`, text, required): The product. Pick one, or give its id from an earlier step.
- Language (`language`, text): The language of the text. Leave empty for the project's first language.
- Name (`name`, text): A new name in the language chosen.
- Description (`description`, text): A new description in the language chosen.
- Slug (`slug`, text): A new address in the shop, like blue-cotton-shirt.
- Key (`key`, text): A new key for the product.
- Categories (`category_ids`, list): Categories to add it to. It stays in the ones it is in.
- Publish (`publish`, true/false): Turn on to publish the product with this change, so shoppers see it.

**Outputs**

- `product` (object): The product

**Example output**

```json
{
  "product": {
    "categories": [
      {
        "id": "7a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d",
        "typeId": "category"
      }
    ],
    "createdAt": "2026-11-02T09:12:40.123Z",
    "description": {
      "en": "A soft shirt in organic cotton."
    },
    "hasStagedChanges": false,
    "id": "3c8d1f26-7a4b-4e0f-9b2d-5e6f7a8b9c0d",
    "key": "blue-cotton-shirt",
    "lastModifiedAt": "2026-11-03T10:00:00.000Z",
    "masterVariant": {
      "attributes": [
        {
          "name": "size",
          "value": "M"
        }
      ],
      "id": 1,
      "images": [
        {
          "label": "Front",
          "url": "https://images.example.com/shirt-blue.jpg"
        }
      ],
      "key": "",
      "prices": [
        {
          "channel": {
            "id": "",
            "typeId": ""
          },
          "country": "",
          "customerGroup": {
            "id": "",
            "typeId": ""
          },
          "id": "5d6e7f80-9a1b-4c2d-8e3f-4a5b6c7d8e9f",
          "key": "",
          "validFrom": "",
          "validUntil": "",
          "value": {
            "centAmount": 2999,
            "currencyCode": "EUR",
            "fractionDigits": 2,
            "type": "centPrecision"
          }
        }
      ],
      "sku": "SHIRT-BLUE-M"
    },
    "name": {
      "en": "Blue cotton shirt"
    },
    "productType": {
      "id": "0f9e8d7c-6b5a-4c3d-8e2f-1a0b9c8d7e6f",
      "typeId": "product-type"
    },
    "published": true,
    "slug": {
      "en": "blue-cotton-shirt"
    },
    "variants": [],
    "version": 8
  }
}
```
