Sync products
Push price and availability from the market POS into HAAT.
PATCH
/api/external/productsCall 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.
productCoderequiredisAvailablerequiredpricerequireddiscountPricerequiredResponses
200 — Products updated
200 — Products updated
HAAT confirms which product codes were updated.
401 — Missing or invalid token
401 — Missing or invalid token
Login again and retry with a fresh bearer token.
Request example
cURL
bashcurl -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"