/stock
POST {{baseUrl}}/stock
Update the stock quantity for a specified SKU code. NOTE: Request body can be either an object containing SKU and quantity or an object containing items and its child properties
Request Body
{"sku"=>"<string>", "quantity"=>"<number>", "items"=>[{"sku"=>"<string>", "quantity"=>"<integer>"}, {"sku"=>"<string>", "quantity"=>"<integer>"}]}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string |
RESPONSES
status: OK
{"sku":"\u003cstring\u003e","quantity":"\u003cinteger\u003e","updated":"\u003cinteger\u003e"}