Shipping Rates
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| Field | Type | Required |
|---|---|---|
originCountry | string | ! |
destinationCountry | string | ! |
weightKg | number | ! |
declaredValue | number | opt |
lengthCm | number | opt |
widthCm | number | opt |
heightCm | number | opt |
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
Specify route
Provide origin country, destination country, and package weight.
Add dimensions
Include package dimensions for accurate dimensional weight pricing.
Get quotes
POST /api/v1/shipping/rates returns rates from all available carriers.
Use recommendations
Check the recommendation field for cheapest, fastest, and best-value options.
API Reference
/api/v1/shipping/rates{
"originCountry": "CN",
"destinationCountry": "US",
"weightKg": 2.5,
"declaredValue": 100,
"lengthCm": 30,
"widthCm": 20,
"heightCm": 15
}{
"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 -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
Live carrier API connections for real-time rate quotes
Compare DDP vs DDU costs with itemized fee breakdown
Calculate dimensional weight for accurate shipping cost estimates
Get the full import cost including duties, taxes, fees, and shipping
Generate 4x6 shipping labels as PDF with barcodes