Skip to content

Orders API

List Orders

GET /api/v1/orders

Query Parameters

ParameterTypeDefaultDescription
limitinteger50Items per page (1-200)
cursorstringISO timestamp for pagination
statusstringFilter by status
sourcestringFilter by source (pos or online)
sincestringOnly orders created after this ISO date

Response

{
"data": [
{
"id": "order-uuid-1",
"source": "online",
"status": "pending",
"payment_status": "paid",
"payment_method": "card",
"customer_name": "Ahmed Mohamed",
"customer_phone": "+218912345678",
"subtotal": 75.00,
"discount": 5.00,
"delivery_fee": 10.00,
"total": 80.00,
"items": [
{
"product_name": "Premium Arabic Coffee",
"variant_name": "250g",
"quantity": 3,
"unit_price": 25.00,
"total": 75.00
}
],
"last_modified": "2026-04-20T14:35:00Z"
}
]
}

Get Single Order

GET /api/v1/orders/:id

Bulk Export

GET /api/v1/orders/export

Same NDJSON format as products export.

Order Statuses

StatusDescription
pendingNew order awaiting processing
processingBeing prepared
preparingRestaurant/food: being cooked
readyReady for pickup/delivery
shippedShipped to customer
deliveredDelivery confirmed
completedFully completed
cancelledCancelled
refundedRefunded

Payment Statuses

StatusDescription
pendingAwaiting payment
paidPayment confirmed
failedPayment failed
expiredPayment window expired