Search…
Inventory status
Learn how to retrieve a product's inventory status.
The following GET /v1/shoppers/me/products/{productId}/inventory-status request gets the inventory for a specific product. You must provide the product id.
cURL
1
2
curl --location --request GET 'http://{host}/v1/shoppers/me/products/{productId}/inventory-status' \
3
--header 'Content-Type: application/json' \
4
--header 'Authorization: Basic ***' \
Copied!
You will receive a 200 OK response.
JSON
1
{
2
"inventoryStatus": {
3
"product": {
4
"id": "{productId}",
5
"externalReferenceId": "{externalReferenceId}",
6
"companyId": "{companyId}",
7
"_uri": "https://api.digitalriver.com/v1/shoppers/me/products/{productId}"
8
},
9
"availableQuantity": "0",
10
"availableQuantityIsEstimated": "false",
11
"productIsInStock": "false",
12
"productIsAllowsBackorders": "false",
13
"productIsTracked": "true",
14
"requestedQuantityAvailable": "false",
15
"status": "PRODUCT_INVENTORY_OUT_OF_STOCK",
16
"statusIsEstimated": "false",
17
"expectedInStockDate": "2021-08-12T00:00:00.000Z",
18
"customStockMessage": "",
19
"_uri": "https://api.digitalriver.com/v1/shoppers/me/products/{productId}/inventory-status"
20
}
21
}
Copied!
Last modified 3mo ago
Copy link