Back to Features
🚚

Shipping Rates

ActiveShippingFREE

What it does

Compare shipping rates across 8 carriers including DHL, FedEx, UPS, USPS, Royal Mail, and more. Get real-time quotes with estimated delivery times, and POTAL recommends the cheapest, fastest, and best-value options.

Required Fields for 100% Accuracy

3 required / 7 total
FieldTypeRequired
originCountrystring!
destinationCountrystring!
weightKgnumber!
declaredValuenumberopt
lengthCmnumberopt
widthCmnumberopt
heightCmnumberopt

Tips for Best Accuracy

  • originCountry + destinationCountry + weightKg are all required
  • Providing all 3 dimensions enables dimensional weight — carriers bill the higher of actual vs dimensional
  • declaredValue affects insurance cost estimation

Common Mistakes

  • Providing only 1 or 2 dimensions — all 3 (length, width, height) are needed for dimensional weight
  • Setting weightKg to 0 — must be greater than 0
  • Using snake_case and camelCase inconsistently — both are accepted but pick one style

How to use it

1

Specify route

Provide origin country, destination country, and package weight.

2

Add dimensions

Include package dimensions for accurate dimensional weight pricing.

3

Get quotes

POST /api/v1/shipping/rates returns rates from all available carriers.

4

Use recommendations

Check the recommendation field for cheapest, fastest, and best-value options.

API Reference

POST/api/v1/shipping/rates
Request
{
  "originCountry": "CN",
  "destinationCountry": "US",
  "weightKg": 2.5,
  "declaredValue": 100,
  "lengthCm": 30,
  "widthCm": 20,
  "heightCm": 15
}
Response
{
  "rates": [
    {
      "carrier": "DHL Express",
      "service": "Express Worldwide",
      "rate": 45.5,
      "estimatedDays": 3
    },
    {
      "carrier": "FedEx",
      "service": "International Economy",
      "rate": 38.2,
      "estimatedDays": 5
    },
    {
      "carrier": "UPS",
      "service": "Worldwide Expedited",
      "rate": 42,
      "estimatedDays": 4
    }
  ],
  "recommendation": {
    "cheapest": {
      "carrier": "FedEx",
      "rate": 38.2
    },
    "fastest": {
      "carrier": "DHL Express",
      "estimatedDays": 3
    }
  },
  "totalOptions": 3
}
cURL
curl -X POST https://potal.app/api/v1/shipping/rates \
  -H "X-API-Key: pk_live_your_key" \
  -H "Content-Type: application/json" \
  -d '{"originCountry":"CN","destinationCountry":"US","weightKg":2.5,"declaredValue":100}'

Related Features

Having issues?