MW Stock
MWStock provides access to the Multiple Warehouse stock resource. If a stock item has been transferred to a "Multiple Warehouse" this resource will provide details of the stock quantity at that warehouse.
What you can do with MWStock:
URL/api/mwstock Returns all stock items in the system for all multiple warehouse instances. URL/api/mwstock?warehouse_id=1 Returns all stock items, for the specified warehouse id. MWStock Properties Example of a returned mw_stock object with all fields for a request like: http://url/api/mwstock?warehouse_id=1&skusize=198601002@
{
"response": {
"Page": 1,
"PageCount": 1,
"RecordsSent": 8,
"RecordsFound": 8,
"MWStock": [
{
"id": 1,
"Warehouse_id": 1,
"SKUSize": "198601002 A",
"Quantity": 95,
"Updated_Date": "2016-11-09T00:00:00.000Z",
"Stock_Changed": ""
},
{
"id": 2,
"Warehouse_id": 1,
"SKUSize": "198601002 B",
"Quantity": 95,
"Updated_Date": "2016-11-09T00:00:00.000Z",
"Stock_Changed": ""
},
{
"id": 3,
"Warehouse_id": 1,
"SKUSize": "198601002 C",
"Quantity": 95,
"Updated_Date": "2016-11-09T00:00:00.000Z",
"Stock_Changed": ""
}
]
}
}
| Property | Example | Description |
|---|---|---|
| id | 1 | Unique id for the MWStock item |
| Warehouse_id | 1 | Foreign key to the Multiple warehouse |
| SKUSize | "A0000001010A" | Unique SKU/Size for the mw_stock item |
| Quantity | 95 | The in stock quantity for the item in the warehouse |
| Updated_Date | "2016-11-09T00:00:00.000Z" | The date the mw_stock item was last updated |
| Stock_Changed | "" | Time stamp for the last time the stock quantity changed (not yet implemented) |
MWStock Methods
GET url/api/mwstock
See example above...