Get promotions
Return current and upcoming market promotions.
GET
/api/promotionsHAAT calls your POS.
Example:
integrator-token: YOUR_INTEGRATOR_TOKEN
organization-token: YOUR_ORGANIZATION_TOKEN
HEADER SCHEMA
integrator-tokenrequiredorganization-tokenrequiredRESPONSE BODY SCHEMA: application/json
Return an array of promotions. Each promotion has these fields:
CoderequiredNameFromDateToDateIsActiverequiredQtyrequiredPricerequiredProductsrequiredLimitPerOrderResponses
200 — List of promotions
200 — List of promotions
Include current and upcoming promotions.
401 — Missing or invalid tokens
401 — Missing or invalid tokens
Reject the request if either token is missing or wrong.
Request example
cURL
bashcurl https://pos.example.com/api/promotions \
-H "integrator-token: YOUR_INTEGRATOR_TOKEN" \
-H "organization-token: YOUR_ORGANIZATION_TOKEN"Response example
200
json[{"Code":1001,"Name":"3 Cola for 10","IsActive":1,"Qty":3,"Price":10,"Products":"1322666"}]