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