Inventory APIs

post
Update Stock Quantity

https://api.commerceup.io/v1/:projecthash/inventory
This endpoint allows you to update stock quantity.
Request
Response
Request
Path Parameters
projecthash
required
string
ID of commerceup project.
Headers
x-api-key
required
string
Authentication token
Body Parameters
sku
required
string
quantity
required
number
Response
200: OK
Cake successfully retrieved.
404: Not Found
Could not find a cake matching this query.

post
Update Bulk Inventory

https://api.commerceup.io/v1/:projecthash/bulkinventory
Request
Response
Request
Path Parameters
projecthash
required
string
Headers
x-api-key
required
string
Authentication token
Body Parameters
inventory
required
array
{ "inventory" : [ {"sku":"515",quantity:5}, {"sku":"516",quantity:6} ] }
Response
200: OK

post
Add/Remove Bulk Inventory

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
Request
Response
Request
Headers
x-api-key
required
string
Body Parameters
inventory
required
array
{ "inventory" : [ {"sku":"515",quantity:5}, {"sku":"516",quantity:-3} ] }
Response
200: OK

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
Request
Response
Request
Headers
x-api-key
required
string
Body Parameters
products
required
array
{ "products" : [ {"sku":"515",remoteId:1001}, {"sku":"516",remoteId:1002} ] }
Response
200: OK