Obtain a FedEx OAuth 2.0 access token and call the FedEx Rate API to compare service-level rates for a domestic shipment

domain: developer.fedex.com · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. POST to https://apis.fedex.com/oauth/token with grant_type=client_credentials and your FedEx developer portal client_id and client_secret to obtain a Bearer token valid for 60 minutes
  2. POST to /rate/v1/rates/quotes with the Bearer token in Authorization header; include shipper and recipient addresses, package weight and dimensions, and set 'rateRequestType' to 'LIST' or 'ACCOUNT' depending on whether you want published or negotiated rates
  3. Parse the ratedShipmentDetails array in the response; each element contains serviceType, totalNetCharge, and estimated transit days
  4. Filter or sort results by deliveryTimestamp and totalNetCharge to implement rate shopping logic
  5. Re-request a token before expiry (tokens last 60 minutes); build a token refresh function that checks expiry and refreshes proactively

Known gotchas

Related routes

Query FedEx Rate API to compare service-level rates for a domestic shipment
fedex.com · 5 steps · unrated
Request a FedEx Rate API quote for a domestic shipment and compare service-level costs
logistics/shipping · 6 steps · unrated
Retrieve UPS shipment rates for a domestic parcel using the UPS Rating REST API with OAuth 2.0
logistics/shipping · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans