Skip to main content
POST
Distribute a quantity across a product's variants

Authorizations

Authorization
string
header
required

Authenticate using a bearer token. To create a token, navigate to /settings/api-tokens and click Create API Token.

Body

application/json
master_sku_id
integer
required

Product ID of the master SKU

Required range: x >= 1
total_quantity
integer
required

Total to split. Whole numbers only.

Required range: 0 <= x <= 10000000
distribution_template_id
integer | null

Use this template instead of the one the product would resolve to

Required range: x >= 1
vendor_id
integer | null

Supplier ID, used to price each cell from that supplier's prices

warehouse_id
integer | null

Destination warehouse. Selects the warehouse-specific template of the product's size-curve category when the product has no pinned template.

Required range: x >= 1

Response

The resolution and its grid, with each included cell's quantity filled in

data
object