Skip to main content

List Orders API

This endpoint allows you to retrieve a list of orders. You can use various filters (query parameters) to narrow down your results based on status, dates, or customer information.

Query Parameters​

ParameterTypeDescription
statusstringFilter by order status (e.g., NEW_ORDER, CANCELLED).
orderNumberstringYour internal order alias/number.
shippingTrackingNumberstringThe shipping partner's tracking number.
customerMobilestringThe mobile number of the recipient.
customerNamestringThe name of the recipient.
typestringOrder type: FORWARD or RETURN.
startDatestringStart date filter (ISO 8601).
endDatestringEnd date filter (ISO 8601).
GEThttps://api-fulfillment.bosta.co/api/v1/orders

Retrieve all orders associated with your account. Use query parameters to filter the results.

Responses

200List of orders retrieved successfully
 {
"success": true,
"message": "Orders retrieved successfully",
"data": [
{
"id": "bi2gKAXt6v3DoXO_RET_3LRYQKgGDR",
"businessId": "bi2gKAXt6v3DoXO",
"orderNumber": "bi2gKAXt6v3DoXO_RET_3LRYQKgGDR",
"trackingNumber": "22265933",
"status": "NEW_ORDER",
"type": "RETURN",
"items": [
{
"skuCode": "aa-2",
"quantity": 1,
"price": 0,
"total": 0
}
],
"customer": {
"firstName": "karim",
"mobile": "01154081404"
},
"invoice": {
"subtotal": 0,
"total": 0,
"paymentMethod": "postpaid"
},
"shipment": {
"deliveryStatus": "PICKUP_REQUESTED",
"shippingPartnerName": "bosta",
"trackingUrl": "https://bosta.co/...",
"trackingNumber": "78675911"
},
"displayStatus": "New Order",
"createdAt": "2026-01-14T15:56:08.437Z"
}
],
"meta": {
"pagination": {
"totalItems": 95,
"totalPages": 5,
"currentPage": 1,
"limit": 20,
"nextPage": 2
}
}
}

Understanding the Response​

  • Logs: Each order contains a logs array tracking every status change and the actor who triggered it (API, System, or Webhook).
  • Type: Differentiates between FORWARD (delivery to customer) and RETURN (pickup from customer).