Submit order
HAAT sends a new customer order to your POS in real time.
POST
/api/ordersReply with your posOrderId. The same Idempotency-Key must not create a second order.
Example:
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9…
X-Haat-Version: 1.0
Idempotency-Key: 7dda287d-21de-4159-a058-e60618e9b786
HEADER SCHEMA
AuthorizationrequiredX-Haat-VersionrequiredIdempotency-KeyContent-TyperequiredREQUEST BODY SCHEMA: application/json
orderIdrequiredbusinessIdrequiredcustomerrequirednamerequiredphonerequiredemailrequiredaddressitemsrequiredidrequiredquantityrequiredpricerequiredfinalPricerequirednamerequirednamesrequiredvariationsrequiredisDealrequiredpaymentsrequiredpaymentTyperequiredamountrequiredpayRestaurantrequireddeliveryTyperequiredcustomerNotesrequiredformatCreatedDaterequiredformatDeliveryDaterequiredformatReadyDaterequireddeliveryEstimationTimerequiredrestaurantDiscountrequiredremakerequiredRESPONSE BODY SCHEMA: application/json
statusrequiredmessagerequiredposOrderIdrequiredResponses
200 — Order accepted
200 — Order accepted
Return status, message, and posOrderId.
401 — Invalid or missing authentication token
401 — Invalid or missing authentication token
Check Bearer or X-Signature.
Request example
cURL
bashcurl -X POST https://pos.example.com/api/orders \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "X-Haat-Version: 1.0" \
-H "Idempotency-Key: 7dda287d-21de-4159-a058-e60618e9b786" \
-H "Content-Type: application/json" \
-d '{
"orderId": 90001,
"businessId": 120,
"customer": {
"name": "Abed",
"phone": "0500000000",
"email": "[email protected]",
"address": null
},
"items": [
{
"id": 1001,
"quantity": 1,
"price": 30,
"finalPrice": 34,
"name": "Burger",
"names": { "en": "Burger", "ar": "برغر", "he": "המבורגר", "fr": "Burger" },
"variations": [
{
"id": 11,
"quantity": 1,
"price": 4,
"finalPrice": 4,
"name": "Cheese",
"names": { "en": "Cheese", "ar": "جبنة", "he": "גבינה", "fr": "Fromage" },
"variations": null,
"isDeal": false
}
],
"isDeal": false
},
{
"id": 2001,
"quantity": 1,
"price": 50,
"finalPrice": 58,
"name": "Family Deal",
"names": { "en": "Family Deal", "ar": "صفقة عائلية", "he": "דיל משפחתי", "fr": "Menu familial" },
"variations": [
{
"id": 3001,
"quantity": 1,
"price": 5,
"finalPrice": 8,
"name": "Deal Burger",
"names": { "en": "Deal Burger", "ar": "برغر الصفقة", "he": "המבורגר הדיל", "fr": "Burger menu" },
"variations": [
{
"id": 31,
"quantity": 1,
"price": 3,
"finalPrice": 3,
"name": "Cheese",
"names": { "en": "Cheese", "ar": "جبنة", "he": "גבינה", "fr": "Fromage" },
"variations": null,
"isDeal": false
}
],
"isDeal": false
}
],
"isDeal": true
}
],
"payments": [
{ "paymentType": "credit_card", "amount": 60 }
],
"payRestaurant": 60,
"deliveryType": "delivery",
"customerNotes": "",
"formatCreatedDate": "2026-10-26T08:00:00.000Z",
"formatDeliveryDate": "2026-10-26T08:30:00.000Z",
"formatReadyDate": "2026-10-26T08:30:00.000Z",
"deliveryEstimationTime": 15,
"restaurantDiscount": 0,
"remake": false
}'Response example
200
json{"status":"success","message":"Order accepted","posOrderId":"ORD-78456"}