Retrieves shipping rates for the specified shipping details. Use this endpoint to compare rates across different carriers and services before creating a shipping label.
The request requires origin and destination information, along with package weight. Dimensions and other options can be provided for more accurate rate calculations.
NOTE: For UPS rates, the
toStatefield is required in the destination address.
- Production Serverhttps://ssapi.shipstation.com/shipments/getrates
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
-u <username>:<password> \
https://ssapi.shipstation.com/shipments/getrates \
-H 'Content-Type: application/json' \
-d '{
"carrierCode": "fedex",
"serviceCode": "string",
"packageCode": "string",
"fromPostalCode": "78703",
"toCountry": "US",
"toPostalCode": "20500",
"toState": "DC",
"toCity": "Washington",
"weight": {
"value": 24,
"units": "ounces"
},
"dimensions": {
"length": 7,
"width": 5,
"height": 6,
"units": "inches"
},
"confirmation": "delivery",
"residential": false
}'Loading...