Merchant API
Checking…Sandbox
Catalog

Check availability

A live check: can the product be bought right now.

GEThttps://merchant.dbdlobby.com/products/{id}/availability
X-Entity-KeyMarkdown version

For 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

NameTypeDescription
X-Entity-KeyrequiredstringClient access key. See “Authentication”.

Path parameters

NameTypeDescription
idrequiredintegerProduct ID, a positive integer.
Example: 12

Responses

200 OK

application/json
{
  "status": "success",
  "productId": 12,
  "price": 1490,
  "currency": "RUB",
  "available": true
}