fedex icon indicating copy to clipboard operation
fedex copied to clipboard

No Support for Freight Rates

Open GeorgeValergas opened this issue 9 years ago • 5 comments

Hi there,

passing in :service_type => "FEDEX_FREIGHT_ECONOMY" when calling Fedex::Shipment#rate gives the following error.

Either a FedEx Freight or Alternate account number and associated address is required for service type FEDEX_FREIGHT_ECONOMY

In order to support freight shipments, the credentials class needs a data member for :freight_account_number

GeorgeValergas avatar Jun 22 '16 15:06 GeorgeValergas

Any response here? Some guidance on implementing would be welcome as well.

fxfilmxf avatar Jan 08 '17 05:01 fxfilmxf

I am also experiencing this error! I have reached out to our local FedEx person to see if they can help me debug. I'll update if I figure it out :)

I am experiencing this using test credentials and wsdl='beta'. I have not yet gotten production credentials.

Though I encountered the error when using this repo: https://github.com/jzempel/fedex

I think that means this error is a fedex auth issue, not a library issue.

vpontis avatar Mar 21 '18 01:03 vpontis

OK so I fixed my error and it's a little bit weird.

FedEx set us up with two different accounts: one for express (ground / parcel / etc) and one for freight (LTL, freight economy, etc).

Only the express account will give working API credentials (API Key, password, account number, and meter number) but if you want to get a freight rate request, you will need to add your freight account number at another part of the request.

vpontis avatar Mar 24 '18 22:03 vpontis

@vpontis But where exactly did you add the Account Number? Can you give a code sample?

vpalos avatar Jun 19 '18 15:06 vpalos

So, you're supposed to add the Freight Account Number (which is different from the regular one) at the path: RequestedShipment.FreightShipmentDetail.FedExFreightAccountNumber.

Really awkward API definition, FedEx!

vpalos avatar Jun 19 '18 16:06 vpalos