Our API provides the checkOTODeliveryFee endpoint, allowing users to retrieve available delivery options, pricing, and estimated costs based on shipment details. This guide explains how to check delivery fees before creating a shipment.
Instructions
Step 1: API Endpoint
- To check OTO delivery fees, use the following POST endpoint:
Step 2: Authorization
- A valid Bearer Token must be included in the request headers for authentication
Step 3: Request Body Parameters
- The request body should be in JSON format and must include at least one date filter.
Name | Required | Type | Description |
---|---|---|---|
originCity | yes | string | pickup city |
destinationCity | yes | string | destination city |
originCountry* | no | string | ISO 3166-2 code, "SA","KW" etc. |
destinationCountry* | no | string | ISO 3166-2 code, "SA","KW" etc. |
weight* | yes | number | approximate weight of package(kg) |
currency | no | string | ISO 4217 code, "SAR","KWD", etc. |
packageCount | no | number | 1 |
totalDue | no | number | cash on delivery amount |
length | no | number | length of the package(cm) |
width | no | number | width of the package(cm) |
height | no | number | height of the package(cm) |
serviceType | no | string | express ,sameDay , fastDelivery , coldDelivery ,heavyAndBulky , electronicAndHeavy |
Step 4: Example Request
Using cURL:
Step 5: Example Response
- A successful response will return the available delivery options, pricing, and estimated costs:
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article