Authorization: Bearer ********************{
"branch_id": "1",
"brand_id": "5000",
"partner_reference": "Jahez: 12327",
"note": "cut in half please",
"total": 11.5,
"subtotal": 10,
"tax": 1.15,
"status": "PENDING", // ACCEPTED, PREPARING, CANCELED, REJECTED, TIME_OUT
"customer": { //customer is optional
"phone": "0122222",
"name": "ssssw"
},
"products": [
{
"id": "101",
"quantity": 2,
"total": 11.5,
"note": null,
"modifiers": [
{
"id": "301",
"quantity": 2,
"total": 0,
"note": "Add cheese" // Optional: Note for the modifier
}
]
}
]
}curl --location --request POST 'https://api.flavours.sa/dev/api/v2blend/api/orders' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"branch_id": "1",
"brand_id": "5000",
"partner_reference": "Jahez: 12327",
"note": "cut in half please",
"total": 11.5,
"subtotal": 10,
"tax": 1.15,
"status": "PENDING", // ACCEPTED, PREPARING, CANCELED, REJECTED, TIME_OUT
"customer": { //customer is optional
"phone": "0122222",
"name": "ssssw"
},
"products": [
{
"id": "101",
"quantity": 2,
"total": 11.5,
"note": null,
"modifiers": [
{
"id": "301",
"quantity": 2,
"total": 0,
"note": "Add cheese" // Optional: Note for the modifier
}
]
}
]
}'{
"success": true,
"message": "Order created successfully",
"order_id": "123456"
}