Catalog
Check availability
A live check: can the product be bought right now.
GET
https://merchant.dbdlobby.com/products/{id}/availabilityFor automatically fulfilled products it checks the supplier's stock and whether the price is acceptable. For manually fulfilled products it returns our own “on sale” flag.
Call it right before a purchase. POST /purchase/{productId} runs the same check, so this endpoint and the purchase never disagree.
Headers
| Name | Type | Description |
|---|---|---|
X-Entity-Keyrequired | string | Client access key. See “Authentication”. |
Path parameters
| Name | Type | Description |
|---|---|---|
idrequired | integer | Product ID, a positive integer. Example: 12 |
Responses
200 OK
{
"status": "success",
"productId": 12,
"price": 1490,
"currency": "RUB",
"available": true
}