Skip to content

OF26 - Get the quantity of stock available for an offer.
⚠️ No Integration Allowed ⚠️
deprecated

Request

Description

Quantity return rules:

  • 0: if quantity = 0 or the offer is not available
  • x: quantity available

Security
Front-Bearer-Token or OAuth-2
Path
offerinteger, (int64)required

Offer ID

curl -i -X GET \
  'https://your-instance.mirakl.net/api/offers/{offer}/quantity' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>'

Responses

OK

Bodyapplication/json
offer_idinteger, (int64)required

Offer identifier

quantityinteger, (int32)required

Get the quantity of stock available for this offer.
Quantity return rules:

  • 0: if quantity = 0 or the offer is not available
  • x: quantity available

Response
{ "offer_id": 2087, "quantity": 7 }