Customers > Customer Inventory > customerInventoryCreate
Commerce APICustomersCustomer InventorycustomerInventoryCreate
customerInventoryCreate
POST:customer_inventory.json

Description

Create one or multiple customer inventory items.

Permission bit: "customer_inventory.modify"

Topic: Customer Inventory

Arguments

data: [CustomerInventoryCreate!]!

Main argument for mutations.


shop_id: String!

Unique shop identifier. See also: Unique Identifiers

Example: "sh_EQzGqWoY"


Data Argument Fields

customer_id: String!

Unique customer identifier. See also: Unique Identifiers

Example: "cu_EQzGqWoY"

Valid when: customer_id matches regexp pattern: ^cu_


variant_id: String!

A unique product variant identifier

Example: "va_EQzGqWoY"

Valid when: variant_id matches regexp pattern: ^va_


Result

[CustomerInventory!]

Preview (typescript)

Loading module