Menu Close

Get Support From ShopWired Close

All systems fully operational

Subscribe To Updates
Prefer To Live Chat? Chat directly with ShopWired support Quickest response time
Send A Message
Response within 24 hours

Menu Close

Menu

Stock

This is used to receive the current stock quantity for a SKU code and to update.

Stock Properties
sku { "sku" : "SKU101" }
The SKU code for the product or product variation
quantity { "quantity": 1 }
The quantity of stock for the SKU code

What you can do with stock

GET /v1/stock?sku=VALUE

Receive the quantity for a SKU code.


PUT /v1/stock

Update the stock quantity for a SKU code.


GET /v1/stock?sku=VALUE

Returns a stock quantity, replace VALUE with the SKU code you want the stock for.

GET /v1/stock?sku=SKU101
HTTP/1.1 200 OK
{
    "sku": "SKU101",
    "quantity": 1
}
        

PUT /v1/stock

Update the stock quantity for a specified SKU code

PUT /v1/stock
PUT /v1/stock
{
    "sku": "SKU101",
    "quantity": 24
}
        
PUT /v1/stock
HTTP/1.1 200 OK
{
    "sku": "SKU101",
    "quantity": 24
}