2

I'm using the FedEx Rates and Transit Times API to get quotes for FEDEX_FREIGHT_ECONOMY and FEDEX_FREIGHT_PRIORITY. My project is setup as below, and my JSON request is setup as follows:

{"accountNumber":{"value":333333333},"requestedShipment":{"shipper":{"address":{"postalCode":72601,"countryCode":"US","city":"Harrison","stateOrProvinceCode":"AR"}},"recipient":{"address":{"postalCode":"11247","countryCode":"US","city":"Brooklyn","stateOrProvinceCode":"NY"}},"pickupType":"CONTACT_FEDEX_TO_SCHEDULE","serviceType":"FEDEX_FREIGHT_ECONOMY","packagingType":"YOUR_PACKAGING","rateRequestType":["LIST","ACCOUNT"],"freightShipmentDetail":{"role":"SHIPPER","fedExFreightAccountNumber":333333333,"lineItem":[{"freightClass":"CLASS_050","packaging":"CRATE","description":"MyProduct","weight":{"units":"LB","value":877},"dimensions":{"length":61.5,"width":61.5,"height":70.62,"units":"IN"}}]},"requestedPackageLineItems":[{"subPackagingType":"CRATE","weight":{"units":"LB","value":877},"dimensions":{"length":61.5,"width":61.5,"height":70.62,"units":"IN"}}]}}

However, the response I get says: 400: ACCOUNT.NUMBER.INVALID

I've also tried using: [ Shipping Account, LTL Shipper Account, LTL Bill-To Account ] in every combination in both parts of the request where an account number is needed.

Which account number is to be used where? And if the error returned isn't because of an invalid account number, but rather another request property that's omitted, which needs to be added to the request?

Thank you

enter image description here

Ben Coffin
  • 483
  • 4
  • 13
  • Update 02/11/2022: FedEx web services tech support informed me this is a known issue with their SANDBOX only, and there is no official ETA for the fix. As such, it's recommended you use production and not sandbox. I'll update this SO if/when I get notice the issue is fixed. – Ben Coffin Feb 11 '22 at 22:25

1 Answers1

1

FedEx Sandbox has problems, it is a known issue with developers that integrate with FedEx APIs. The issue you have is one of many.

To resolve the issue with FedEx Sandbox environment stability you have three options, which are essentially about using test-doubles instead of the real FedEx API:

Wojtek
  • 1,410
  • 2
  • 16
  • 31