Submit order
Accept a customer order from HAAT into the market POS.
POST
/api/submit-orderHAAT posts the order to your POS.
Example:
integrator-token: YOUR_INTEGRATOR_TOKEN
organization-token: YOUR_ORGANIZATION_TOKEN
REQUEST BODY SCHEMA: application/json
ItemsrequiredCoderequiredNameSalePricerequiredQuantityrequiredUnitsrequiredTotalrequiredPaymentsrequiredAmountrequiredPaymentTyperequiredCommentsCommentsTotalrequiredRESPONSE BODY SCHEMA: application/json
statusmessageposOrderIdResponses
200 — Order accepted
200 — Order accepted
Return posOrderId from your POS.
401 — Missing or invalid tokens
401 — Missing or invalid tokens
Validate both tokens before accepting the order.
Request example
cURL
bashcurl -X POST https://pos.example.com/api/submit-order \
-H "integrator-token: YOUR_INTEGRATOR_TOKEN" \
-H "organization-token: YOUR_ORGANIZATION_TOKEN" \
-H "Content-Type: application/json" \
-d '{"Items":[{"Code":76868,"SalePrice":12.5,"Quantity":2,"Units":2,"Total":25}],"Payments":[{"Amount":25,"PaymentType":2}],"Total":25}'Response example
200
json{"status":"success","message":"Order accepted","posOrderId":"MKT-78456"}