PATCH /collections/{collection_id}/items/{item_id}/inventory
Updates the current inventory levels for a particular SKU item.
Updates may be given in one or two methods, absolutely or incrementally.
- Absolute updates are done by setting
quantity
directly. - Incremental updates are by specifying the inventory delta in
updateQuantity
which is then added to thequantity
stored on the server.
Required scope | ecommerce:write
Servers
- https://api.webflow.com/v2
Path parameters
Name | Type | Required | Description |
---|---|---|---|
collection_id |
String | Yes |
Unique identifier for a Collection |
item_id |
String | Yes |
Unique identifier for an Item |
Request headers
Name | Type | Required | Description |
---|---|---|---|
Content-Type |
String | Yes |
The media type of the request body.
Default value: "application/json" |
Request body fields
Name | Type | Required | Description |
---|---|---|---|
quantity |
Number | No |
Immediately sets quantity to this value. |
inventoryType |
String | Yes |
infinite or finite Possible values:
|
updateQuantity |
Number | No |
Adds this quantity to currently store quantity. Can be negative. |
How to start integrating
- Add HTTP Task to your workflow definition.
- Search for the API you want to integrate with and click on the name.
- This loads the API reference documentation and prepares the Http request settings.
- Click Test request to test run your request to the API and see the API's response.