Inventory status
Learn how to retrieve a product's inventory status.
The following
GET /v1/shoppers/me/products/inventory-status
request gets the inventory for a specific product. You can use either the product identifier or an external reference identifier as a query parameter. Passing an invalid product identifier or external reference identifier will be ignored. If you do not provide an identifier, the request returns an empty collection with a 200 status.cURL
200 OK response
curl --location --request GET 'https://api.digitalriver.com/v1/shoppers/me/products/inventory-status' \
--header 'authorization: bearer ***\
...
{
"products": {
"uri": "https://api.digitalriver.com/v1/shoppers/me/products/inventorystatus",
"inventoryStatus": [
{
"uri": "https://api.digitalriver.com/v1/shoppers/me/products/64578500/inventory-status",
"product": [
{
"uri": "https://api.digitalriver.com/v1/shoppers/me/products/64578500",
"id": 64578500,
"externalReferenceId": "Test External Reference Number",
"companyId": "demosft1"
}
],
"availableQuantity": 2147483647,
"availableQuantityIsEstimated": "false",
"productIsInStock": "true",
"productIsAllowsBackorders": "true",
"productIsTracked": "false",
"requestedQuantityAvailable": "true",
"status": "PRODUCT_INVENTORY_IN_STOCK",
"statusIsEstimated": "false",
"expectedInStockDate": "string",
"customStockMessage": "string"
}
]
}
}
The following GET /v1/shoppers/me/products/{productId}/inventory-status request gets the inventory for a specific product identifier (
productId
). You must provide the productId
.cURL
Second Tab
curl --location --request GET 'https://api.digitalriver.com/v1/shoppers/me/products/{productId}/inventorystatus' \
--header 'Authorization: Basic ***' \
...
{
"inventoryStatus": {
"uri": "https://api.digitalriver.com/v1/shoppers/me/products/64578500/inventory-status",
"product": [
{
"uri": "https://api.digitalriver.com/v1/shoppers/me/products/64578500",
"id": 64578500,
"externalReferenceId": "Test External Reference Number",
"companyId": "demosft1"
}
],
"availableQuantity": 2147483647,
"availableQuantityIsEstimated": "false",
"productIsInStock": "true",
"productIsAllowsBackorders": "true",
"productIsTracked": "false",
"requestedQuantityAvailable": "true",
"status": "PRODUCT_INVENTORY_IN_STOCK",
"statusIsEstimated": "false",
"expectedInStockDate": "string",
"customStockMessage": "string"
}
}
Last modified 5mo ago