HAAT Integration Docs

Sync products

Push price and availability from the market POS into HAAT.

PATCH/api/external/products

Call this after Login. Full list once a day, plus a smaller list about every 2 hours.

Example:

Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9…
REQUEST BODY SCHEMA: application/json

Send an array of products.

productCoderequired
string

Barcode or SKU.

isAvailablerequired
boolean

true if the product can be sold.

pricerequired
number

Regular price.

discountPricerequired
number

Same as price when there is no discount.

Responses

200 — Products updated

HAAT confirms which product codes were updated.

401 — Missing or invalid token

Login again and retry with a fresh bearer token.

Request example
cURL
bash
curl -X PATCH http://ext-integration.haat-delivery.io/api/external/products \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '[{"productCode":"346960","isAvailable":true,"price":16,"discountPrice":16}]'
Response example
200
json
"products updated successfully"

Type to search…

↑↓ navigate↵ openesc close