POST:customer_inventory.json
Commerce APIPOST:customer_inventory.json

POST:customer_inventory.json

Description

Create one or multiple customer inventory items.

Permission bit: "customer_inventory.modify"

Topic: Customer Inventory

Query Parameters

shop_id: String, required

Unique shop identifier. See also: Unique Identifiers

Example: ?shop_id=sh_EQzGqWoY

Request Body

Array of CustomerInventoryCreate

[
  {
    "customer_id": "cu_EQzGqWoY",
    "variant_id": "va_EQzGqWoY"
  }
]

Response Body

Array of CustomerInventory

Response Body Type

Loading module