Warehouses
Add Warehouse
post /sites/{siteid}/warehouses.json{ "usetype": 40, "currencycode": "USD", "name": "Reclaims"}
4
HTTP Status Code Summary | |
---|---|
200 | Returns warehouseid |
400 | Bad Request. Invalid syntax, missing required argument or invalid request. |
401 | Unauthorized. Authorization failed. |
404 | Resource not found. The url is invalid. |
429 | Too Many Requests. |
500 | Internal Server Error. |
Get Warehouses
get /sites/{siteid}/warehouses.jsonThe index of the item to start from
The number of items returned
Comma separated list of fields to return. Use this to query only the fields you are using. Default is all fields in warehouse.
{ "totalcount": 3, "items": [ { "warehouseid": 1, "warehousetype": 10, "usetype": 10, "storeid": 1, "sellable": true, "name": "Warehouse 1", "externalid": null }, { "warehouseid": 2, "warehousetype": 10, "usetype": 10, "storeid": null, "sellable": true, "name": "Warehouse 2", "externalid": null } ]}
HTTP Status Code Summary | |
---|---|
200 | Returns an envelope with items of type warehouse. |
400 | Bad Request. Invalid syntax, missing required argument or invalid request. |
401 | Unauthorized. Authorization failed. |
404 | Resource not found. The url is invalid. |
429 | Too Many Requests. |
500 | Internal Server Error. |
Get Warehouse
get /sites/{siteid}/warehouses/{warehouseid}.json{ "warehouseid": 4, "warehousetype": 10, "usetype": 40, "storeid": null, "sellable": true, "currencycode": "USD", "name": "Reclaims", "address": "", "address2": "", "zip": "", "city": "", "state": "", "countryid": null, "externalid": ""}
HTTP Status Code Summary | |
---|---|
200 | Returns an item of type warehouse. |
400 | Bad Request. Invalid syntax, missing required argument or invalid request. |
401 | Unauthorized. Authorization failed. |
404 | Resource not found. The url is invalid. |
429 | Too Many Requests. |
500 | Internal Server Error. |
Update Warehouse
put /sites/{siteid}/warehouses/{warehouseid}.json{ "name": "Demo", "usetype": 20}
true
HTTP Status Code Summary | |
---|---|
200 | Returns true |
400 | Bad Request. Invalid syntax, missing required argument or invalid request. |
401 | Unauthorized. Authorization failed. |
404 | Resource not found. The url is invalid. |
429 | Too Many Requests. |
500 | Internal Server Error. |
Delete Warehouse
delete /sites/{siteid}/warehouses/{warehouseid}.jsontrue
HTTP Status Code Summary | |
---|---|
200 | Returns true |
400 | Bad Request. Invalid syntax, missing required argument or invalid request. |
401 | Unauthorized. Authorization failed. |
404 | Resource not found. The url is invalid. |
429 | Too Many Requests. |
500 | Internal Server Error. |
Get Warehouse Items
get /sites/{siteid}/warehouses/{warehouseid}/warehouseitems.jsonThe index of the item to start from
The number of items returned
Filter on warehouseitems with datelastmodified starting from the timestamp provided
Filter on warehouseitems with datelastmodified ending before the timestamp provided
Filter on SKU, use comma as separator for multiple values
Sort the result.
- warehouseitemid
- -warehouseitemid
- sku
- -sku
- binlocation
- -binlocation
- decimalthreshold
- -decimalthreshold
- decimaltotal
- -decimaltotal
- decimalreserved
- -decimalreserved
- decimalavailable
- -decimalavailable
- moneytotal
- -moneytotal
- datelastmodified
- -datelastmodified
- datelaststocktaking
- -datelaststocktaking
Comma separated list of fields to return. Use this to query only the fields you are using. See warehouseitem for all fields.
{ "totalcount": 14, "items": [ { "warehouseitemid": 1, "sku": "10038-3", "binlocation": "", "decimalthreshold": "3.000", "decimaltotal": "5.000", "moneytotal": "19600.00", "datelastmodified": 1462874148, "datelaststocktaking": 1462874148, "decimalreserved": "0.000", "decimalavailable": "5.000" }, { "warehouseitemid": 2, "sku": "10038-4", "binlocation": "", "decimalthreshold": "3.000", "decimaltotal": "5.000", "moneytotal": "19600.00", "datelastmodified": 1462874148, "datelaststocktaking": 1462874148, "decimalreserved": "0.000", "decimalavailable": "5.000" } ]}
HTTP Status Code Summary | |
---|---|
200 | Returns an envelope with items of type warehouseitem for a warehouse. |
400 | Bad Request. Invalid syntax, missing required argument or invalid request. |
401 | Unauthorized. Authorization failed. |
404 | Resource not found. The url is invalid. |
429 | Too Many Requests. |
500 | Internal Server Error. |
Batch Set Warehouse Items
put /sites/{siteid}/warehouses/{warehouseid}/warehouseitems.json[ { "sku": "10038-1", "binlocation": "I3:S4", "decimalthreshold": "10.000" }, { "sku": "10038-2", "binlocation": "I3:S5", "decimalthreshold": "3.000" }]
[ { "statuscode": 200, "return": 3 }, { "statuscode": 200, "return": 5 }]
HTTP Status Code Summary | |
---|---|
200 | Returns a batch envelope with warehouseitemid for the warehouseitems set. |
400 | Bad Request. Invalid syntax, missing required argument or invalid request. |
401 | Unauthorized. Authorization failed. |
404 | Resource not found. The url is invalid. |
429 | Too Many Requests. |
500 | Internal Server Error. |
Objects
moneystring
timestampinteger
Number of seconds since the Unix Epoch.
warehouseobject
A location for stockenabled goods.
The unique ID of the warehouse.
Type of warehouse.
Use type for warehouse.
The ID of the store that the warehouse belongs to or null if not connected to a store.
Determines if the warehouse contains sellable stock.
The currency code used for the warehouse (3-letter ISO 4217).
The name of the warehouse.
Address for the warehouse.
Address 2 for the warehouse.
Zip for the warehouse.
City for the warehouse.
State for the warehouse.
Country ID for the warehouse (2-letter ISO 3166).
External ID for the warehouse.
warehouseitemobject
Contains the current state of a product's stock count and stock value. Also has the bin location within the warehouse and the reordering threshold.
The unique ID of the warehouseitem.
The SKU for this stock item.
Bin location for the stock for this warehouse.
Threshold for ordering new stock.
Current stock level for this warehouseitem. (Read Only if not warehousetype Virtual)
Current stock value for this warehouseitem. (Read Only if not warehousetype Virtual)
The last date this warehouseitem has been part of a transaction.
The last date this warehouseitem has been part of a stocktaking transaction.
Reserved stock level for this warehouseitem.
Available stock level for this warehouseitem.
warehousetypeinteger
10
FIFO20
Virtual
warehouseusetypeinteger
10
Front20
Back30
Demo40
Reclaim50
External