Get Single Rate
Call a single rate individually, rather than waiting on all rates to show up.
Use this endpoint to retrieve rates individually from each carrier, allowing for faster queries and enabling you to select the best carriers for your business. While the allprice
endpoint is functional, we recommend using this endpoint for an improved user experience. Unlike the allprice
endpoint, which waits for all rates to be returned, this endpoint displays rates as they become available, significantly reducing wait times and enhancing the overall experience.
Available Couriers
To get started, you need to send a request to retrieve a list of available couriers. Refer to the relevant documentation here for detailed instructions on how to make this request and properly integrate it into your workflow. This is the first step toward selecting the right courier for your shipping needs.
Requests
Parameter
The request includes a parameter called carrier_name
, where you specify the name of the courier you want to query. For example, use the following endpoint format to retrieve prices for a specific carrier:
https://delivery-staging.apiideraos.com/api/v2/token/tariffs/getpricesingle/{carrier_name}
Replace {carrier_name}
with the actual courier name to retrieve the relevant rates.
Payload
Here's the documentation for the payload in a tabular form:
Field
Type
Required
Validation Rules
Description
type
String
Yes
Must be one of interstate
, intrastate
, international_us
, frozen-international
, international
The type of shipment.
toAddress.name
String
Yes
Max length: 255
Recipient's name.
toAddress.email
String
Yes
Must be a valid email address, Max length: 255
Recipient's email.
toAddress.address
String
Yes
Max length: 255
Recipient's address.
toAddress.phone
String
Yes
Must match the regex: ^\d{11}$
(11 digits)
Recipient's phone number.
fromAddress.name
String
Yes
Max length: 255
Sender's name.
fromAddress.email
String
Yes
Must be a valid email address, Max length: 255
Sender's email.
fromAddress.address
String
Yes
Max length: 255
Sender's address.
fromAddress.phone
String
Yes
Must match the regex: ^\d{11}$
(11 digits)
Sender's phone number.
parcels.width
Numeric
Yes
Must be a number, Minimum value: 1
Parcel width.
parcels.length
Numeric
Yes
Must be a number, Minimum value: 1
Parcel length.
parcels.height
Numeric
Yes
Must be a number, Minimum value: 1
Parcel height.
parcels.weight
Numeric
Yes
Must be a number, Minimum value: 0.01
Parcel weight.
items
Array
Yes
Must be an array, Minimum of 1 item
List of items.
items.*.name
String
Yes
Max length: 255
Item name.
items.*.description
String
No
Optional
Item description.
items.*.weight
Numeric
Yes
Must be a number, Minimum value: 0.01
Item weight.
items.*.category
String
Yes
Max length: 255
Item category.
items.*.amount
Numeric
Yes
Must be a number, Minimum value: 500
Item amount (price).
items.*.quantity
Integer
Yes
Must be an integer, Minimum value: 1
Item quantity.
items.*.hscode
Array
Yes, If type is international
Must be an array
items.*.hscode.category
String
Yes, If type is international
Must be a string
items.*.hscode.subcategory
String
Yes, If type is international
Must be a string
items.*.hscode.code
String
Yes, If type is international
Must be a size 6 integer/codee
Notes:
The phone fields for both the
toAddress
andfromAddress
must contain exactly 11 digits, enforced by a regular expression.Parcel dimensions (width, length, height) and weight must be numeric, with weight having a minimum value of
0.01
.Items require at least one entry in the array, and each item has specific validations for its name, description, weight, category, amount (minimum 500), and quantity (minimum 1).
interstate: Shipping between different states within the same country.
intrastate: Shipping within a single state.
international_us: Shipping within the United States.
international: Shipping between different countries.
frozen-international: Shipping frozen items (e.g., foodstuffs) internationally. Supported countries include shipping from Nigeria to the US, Canada, and the UK.
Request Sample
Response Sample
Last updated