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.

Required scope | ecommerce:write

Servers

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:

  • "infinite"
  • "finite"
updateQuantity Number No

Adds this quantity to currently store quantity. Can be negative.

How to start integrating

  1. Add HTTP Task to your workflow definition.
  2. 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.
  3. Click Test request to test run your request to the API and see the API's response.