For the complete documentation index, see llms.txt. This page is also available as Markdown.

Get Shipment Rates

Explore over 30 shipment rates across different shipment routes (intrastate, interstate and international)

Payload Description

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 and fromAddress 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