Inventory levels
An inventory level represents the available quantity of an inventory item at a specific location. Each inventory level belongs to one inventory item and has one location.
Get all Inventory levels.
Query parameters
inventoryItemIdsstring[]Required
Only return inventory levels for these inventory items.
shipToCountrystringOptional
Only return inventory levels for locations that ship to this country.
availablebooleanOptional
Only return available (i.e. greater than zero) inventory levels.
Responses
200
200 OK
application/json
400
400 Bad Request
application/json
401
401 Unauthorized
application/json
403
403 Forbidden
application/json
405
405 Method Not Allowed
application/json
406
406 Not Acceptable
application/json
408
408 Request Timeout
application/json
429
429 Too Many Requests
application/json
500
500 Internal Server Error
application/json
502
502 Bad Gateway Error
application/json
503
503 Service Unavailable Error
application/json
504
504 Gateway Timeout Error
application/json
get
GET /inventory-levels HTTP/1.1
Host: api.digitalriver.com
Accept: */*
{
"data": [
{
"locationId": "afe95639-8181-4b66-86a6-1a9493d5419d",
"inventoryItemId": "ce4ce2de-530c-4da2-bf8a-f0f8cf059095",
"available": true,
"availableQuantity": 6,
"availableTime": {
"offset": {
"totalSeconds": 0,
"id": "Z",
"rules": {
"fixedOffset": true,
"transitions": [],
"transitionRules": []
}
},
"nano": 0,
"year": 2018,
"monthValue": 4,
"dayOfMonth": 25,
"hour": 20,
"minute": 36,
"second": 0,
"dayOfWeek": "WEDNESDAY",
"dayOfYear": 115,
"month": "APRIL"
},
"liveMode": false,
"updatedTime": {
"offset": {
"totalSeconds": 0,
"id": "Z",
"rules": {
"fixedOffset": true,
"transitions": [],
"transitionRules": []
}
},
"nano": 0,
"year": 2018,
"monthValue": 4,
"dayOfMonth": 25,
"hour": 20,
"minute": 36,
"second": 0,
"dayOfWeek": "WEDNESDAY",
"dayOfYear": 115,
"month": "APRIL"
}
}
]
}
Last updated