Inventory APIs
Update Stock Quantity
POST
https://api.commerceup.io/v1/:projecthash/inventory
This endpoint allows you to update stock quantity.
Path Parameters
projecthash
string
ID of commerceup project.
Headers
x-api-key
string
Authentication token
Request Body
sku
string
quantity
number
Update Bulk Inventory
POST
https://api.commerceup.io/v1/:projecthash/bulkinventory
Path Parameters
projecthash
string
Headers
x-api-key
string
Authentication token
Request Body
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
x-api-key
string
Request Body
inventory
array
{ "inventory" : [ {"sku":"515",quantity:5}, {"sku":"516",quantity:-3} ] }
Link Remote Product ID to Commerceup Product
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
x-api-key
string
Request Body
products
array
{ "products" : [ {"sku":"515",remoteId:1001}, {"sku":"516",remoteId:1002} ] }
Last updated