v1
latestOpenAPI 3.0.32026-07-248257161.1 KBOrders
Search orders
This API returns the list of found orders for a merchant.
get/orders/search
Query parameters
referencestring
search by order reference
customer_idstring uuid
search by customer id
device_idstring
search order by device id
Response
returns list of found orders.
Example response
[
{
"id": "638d4133957e3caf63e6b79c",
"reference": "3245GOF456",
"customerId": "d2d2053b-638d-4133-957e-3caf63e6b79c",
"customerName": "John Smith",
"amount": 45000,
"currency": "XOF",
"orderDetails": [
{
"id": "fbd2053b-638d-4133-957e-3caf63e6b79c",
"name": "pineapple",
"reference": "SKU56789002",
"price": 100,
"quantity": 2.5,
"discount": 20,
"taxRate": 5.5,
"totalPrice": 125
}
],
"subTotalAmount": 5000,
"deliveryCharges": 90,
"deductedAmount": 50,
"totalTax": 500,
"finalAmount": 5550,
"status": "paid",
"deviceId": "pos-12345",
"createdAt": "2022-06-20T17:17:11Z",
"updatedAt": "2022-06-20T17:17:11Z"
}
]