Skip to main content

Get all delivery orders

GET {{base_url}}/delivery-orders

Description

This API endpoint retrieves delivery orders based on various criteria.

API Request:

Headers:

NameDescription
tenantIdA string identifying the tenant.
countryCodeA string representing the country code.

Query Parameters:

NameTypeDescription
pageNumberintegerThe page number for pagination.
pageSizeintegerThe size of each page for pagination.
isActivebooleanIndicates whether the order is active.
statusstringThe status of the delivery order.
isAssignedbooleanIndicates whether the order is assigned.
orderRefarrayAn array of order reference strings.
trackingCodearrayAn array of tracking code strings.
startDatestringThe start date for filtering orders.
endDatestringThe end date for filtering orders.

Responses:

  • 200 OK:
{
"status": true,
"statusCode": 0,
"message": "Delivery orders found.",
"data": {},
"errors": []
}

  • 400 Bad Request:
{
"status": false,
"statusCode": 400,
"message": "Invalid reference supplied.",
"errors": [
{
"message": "Invalid reference supplied.",
"descriptiveMessage": "The provided reference is not valid. Please ensure correct values are supplied."
}
]
}

  • 404 Not Found:
{
"status": false,
"statusCode": 404,
"message": "Delivery Orders not found.",
"errors": [
{
"message": "Delivery Orders not found.",
"descriptiveMessage": "No delivery orders were found matching the specified criteria."
}
]
}

LANGUAGE

AUTHORIZATION

Bearer

CURL REQUEST


curl --request GET \ 
--url /delivery-orders \
--header 'accept: application/json' \
--header 'content-type: application/json'

RESPONSE


Click Try It! to start a request and see the response here!