Inventory APIs

Update Stock Quantity

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

This endpoint allows you to update stock quantity.

Path Parameters

NameTypeDescription

projecthash

string

ID of commerceup project.

Headers

NameTypeDescription

x-api-key

string

Authentication token

Request Body

NameTypeDescription

sku

string

quantity

number

Update Bulk Inventory

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

Path Parameters

NameTypeDescription

projecthash

string

Headers

NameTypeDescription

x-api-key

string

Authentication token

Request Body

NameTypeDescription

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

NameTypeDescription

x-api-key

string

Request Body

NameTypeDescription

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

NameTypeDescription

x-api-key

string

Request Body

NameTypeDescription

products

array

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

Last updated