Inventory APIs

Update Stock Quantity

POST https://api.commerceup.io/v1/:projecthash/inventory

This endpoint allows you to update stock quantity.

Path Parameters

Name
Type
Description

projecthash

string

ID of commerceup project.

Headers

Name
Type
Description

x-api-key

string

Authentication token

Request Body

Name
Type
Description

sku

string

quantity

number

Update Bulk Inventory

POST https://api.commerceup.io/v1/:projecthash/bulkinventory

Path Parameters

Name
Type
Description

projecthash

string

Headers

Name
Type
Description

x-api-key

string

Authentication token

Request Body

Name
Type
Description

inventory

array

{ "inventory" : [ {"sku":"515",quantity:5}, {"sku":"516",quantity:6} ] }

Add/Remove Bulk Inventory

POST https://api.commerceup.io/v1/:projecthash/bulkincrementinventory

Used to Add Inventory to existing quantity of products in Bulk. This will add or subtract the value sent for the SKU from the quantity already in CommerceUp. Quantity Must be Send in Positive if you want to Add to Existing Quantity. Quantity Must be Send in Negative if you want to Remove From Existing Quantity

Headers

Name
Type
Description

x-api-key

string

Request Body

Name
Type
Description

inventory

array

{ "inventory" : [ {"sku":"515",quantity:5}, {"sku":"516",quantity:-3} ] }

POST https://api.commerceup.io/v1/:projecthash/bulklinkproduct

Used to Add Inventory to existing quantity of products in Bulk. This will add or subtract the value sent for the SKU from the quantity already in CommerceUp. Quantity Must be Send in Positive if you want to Add to Existing Quantity. Quantity Must be Send in Negative if you want to Remove From Existing Quantity

Headers

Name
Type
Description

x-api-key

string

Request Body

Name
Type
Description

products

array

{ "products" : [ {"sku":"515",remoteId:1001}, {"sku":"516",remoteId:1002} ] }

Last updated