Getting credentials
FedEx issues API credentials through the FedEx Developer Portal. Create a project and copy the API Key, Secret Key, and your FedEx Account Number.The account number matters. FedEx prices against the contract attached to it, so the rates your customers see reflect your negotiated pricing rather than list rates.
Setting up the rate
1
Add a rate to your zone
In your rule, click Add rate on the zone you want.
2
Set the calculation parameter to Fedex
Choose Fedex under the live carrier options.
3
Enter your credentials
Fill in API Key, Secret Key, and Account Number.
4
Decide on delivery estimates
Tick Hide estimated delivery dates to suppress the delivery dates FedEx returns.
5
Configure packaging
Set Packaging box distribution and define your boxes. See the packing algorithm.
6
Set a discount and default rate
Discount (Optional) reduces every returned rate by a percentage. Default rate (Optional) is used if FedEx doesn’t respond.
Estimated delivery dates
FedEx calculates delivery estimates itself and returns them with each rate. ShipMagic passes them through to checkout. Hide estimated delivery dates turns this off. Consider it if:- Your dispatch time means FedEx’s estimate is misleading — it measures transit, not the day you actually hand the parcel over.
- You’d rather set expectations yourself with a rate description, which supports dynamic dates like
{{today+3}}.
The Discount field
Discount (Optional) applies a percentage reduction to every rate FedEx returns, after the quote comes back. Use it to subsidise shipping or pass on part of a contract advantage.Handling Fees
FedEx rates have a Handling Fees section with two fields, which can be used together:
Both are applied on top of the rate FedEx returns, so this is where you recover packaging, labour, or insurance costs the carrier’s quote doesn’t include.
Handling fees are specific to the FedEx integration — no other carrier offers them. To add a surcharge elsewhere, create a separate rule with a fixed rate and let blending add the two together.
Always set a Default rate
Testing
- Add products with accurate weights and dimensions
- Check out to a real, complete address
- Compare the quote against what FedEx bills you for the same parcel
Related
Packing algorithm
How items are distributed into parcels before quoting.
Adding dimensions
Dimension data that carrier quotes depend on.
Rate descriptions
Set delivery expectations in your own words.
Rates not showing
When a carrier rate fails to appear.
