Get Stock Levels

GET /warehouses/{externalWarehouseID}/stock

Get current stock levels from a specific warehouse using externalWarehouseID.

Path parameters

  • externalWarehouseID string Required

    External Warehouse ID

Responses

  • 200

    OK

    Hide response attributes Show response attributes object
    • availableQuantity integer Required

      Available Quantity in stock

    • date string

      Date is the event time for the given entry. If unset, the event time will be assumed to be now

    • ean string

      EAN of variant

    • externalWarehouseID string

      The externalID of the warehouse

    • key string Required

      Key is reference between Products, Transactions & Stock levels

    • physicalQuantity integer

      Physical Quantity in stock

    • sku string

      SKU of variant. Should be unique per size/variant

    • supplier string

      Name of the supplier

  • default

    All errors will return the same object with a describing code & message

    Hide response attributes Show response attributes object
    • error string
    • message string
    • statusCode integer
GET /warehouses/{externalWarehouseID}/stock
curl \
 --request GET 'https://api.maddenanalytics.com/v2/api/warehouses/{externalWarehouseID}/stock'
Response examples (200)
[
  {
    "availableQuantity": 21,
    "date": "2021-07-19T14:05:22.257Z",
    "ean": "7340192703345",
    "externalWarehouseID": "warehouse1",
    "key": "7340192703345",
    "physicalQuantity": 30,
    "sku": "123456-001-43",
    "supplier": "Acme Enterprises AB"
  }
]
Response examples (default)
{
  "error": "Error Type (if any)",
  "message": "Message describing the error",
  "statusCode": 400
}