HAAT Integration Docs

Get promotions

Return current and upcoming market promotions.

GET/api/promotions

HAAT calls your POS.

Example:

integrator-token: YOUR_INTEGRATOR_TOKEN
organization-token: YOUR_ORGANIZATION_TOKEN
HEADER SCHEMA
integrator-tokenrequired
string

Shared across all HAAT markets for this integrator.

organization-tokenrequired
string

Identifies the specific market / store.

RESPONSE BODY SCHEMA: application/json

Return an array of promotions. Each promotion has these fields:

Coderequired
integer

Promotion id.

Name
string | null

Promotion name. Can be null.

FromDate
string | null

Start date. Can be null.

ToDate
string | null

End date. Can be null.

IsActiverequired
integer

0 inactive, 1 active.

Qtyrequired
integer

Quantity in the deal. Example: 3 Cola bottles.

Pricerequired
number

Deal price. Example: 10.

Productsrequired
string

Product codes in the deal, for example 1322666 or 1322666,6518864.

LimitPerOrder
integer | null

Max times this promotion can apply on one order. Can be null.

Responses

200 — List of promotions

Include current and upcoming promotions.

401 — Missing or invalid tokens

Reject the request if either token is missing or wrong.

Request example
cURL
bash
curl 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"}]

Type to search…

↑↓ navigate↵ openesc close