Skip to content

FedEx - Get Rates

This module queries the available FedEx shipping rates for a given package. It receives the shipper and recipient addresses in simplified JSON format (zip code and country), weight, optional dimensions, and optional service type. It makes a POST request to the /rate/v1/rates/quotes endpoint and processes the response to extract the service type, name, price, currency, estimated delivery date, and transit days. It automatically identifies the cheapest rate.

ParameterTypeRequiredDescription
credentials_idcredentialsYesFedEx credential (provider: fedex)
shippertextareaYesShipper address in JSON (postalCode, countryCode)
recipienttextareaYesRecipient address in JSON (postalCode, countryCode)
package_weighttextYesPackage weight in kilograms
package_dimensionstextareaNoDimensions in JSON (length, width, height)
service_typeselectNoFilter by specific service type or leave empty for all

A fedex type credential is required with the following fields:

  • client_id: FedEx API Client ID
  • client_secret: FedEx API Client Secret
  • account_number: FedEx account number
{
"success": true,
"rates": [
{
"service_type": "FEDEX_INTERNATIONAL_PRIORITY",
"service_name": "FedEx International Priority",
"price": "52.30",
"currency": "EUR",
"delivery_timestamp": "2026-03-25",
"transit_days": "2"
}
],
"rates_count": 5,
"cheapest": {
"service_type": "FEDEX_GROUND",
"service_name": "FedEx Ground",
"price": "15.20",
"currency": "EUR"
},
"message": "5 tarifas FedEx obtenidas"
}
{
"credentials_id": "mi_credencial_fedex",
"shipper": "{\"postalCode\":\"28001\",\"countryCode\":\"ES\"}",
"recipient": "{\"postalCode\":\"08001\",\"countryCode\":\"ES\"}",
"package_weight": "2.0"
}
  • If no service type is specified, all available options are returned
  • The pickup type is set to DROPOFF_AT_FEDEX_LOCATION
  • Dimensions are optional and expressed in centimeters
  • The cheapest field automatically identifies the lowest rate