Skip to content
Last updated

Get Rates

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 toState field is required in the destination address.

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...