/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

KeyDatatypeRequiredDescription
Content-Typestring

RESPONSES

status: OK

{&quot;sku&quot;:&quot;\u003cstring\u003e&quot;,&quot;quantity&quot;:&quot;\u003cinteger\u003e&quot;,&quot;updated&quot;:&quot;\u003cinteger\u003e&quot;}