To configure this script, you need to use your FedEx Developer Key, Password, Account Number, and Meter Number in the config.php file
Use valid Shipper Address in API request call.
Must use valid StateOrProvinceCode and Postal Code value.
Important Note: This script working for FedEx Sandbox access. If you want to execute FedEx API call using Production access then change https://wsbeta.fedex.com:443/ with this https://ws.fedex.com:443/ in all WSDL files.
FedEx Test Environment WSDL endpoint: https://wsbeta.fedex.com:443/
FedEx Live Environment WSDL endpoint: https://ws.fedex.com:443/
For more details check FedEx developer official documentation:
1. Get FedEx Shipping Rates Example Path: GetShippingRates/shipping-rates-form.php
2. Create FedEx Shipment Example Path: CreateShipment/shipping-label-form.php
3. Track FedEx Shipment Example Path: TrackShipment/track-shipment-form.php
4. Check FedEx Service Availability Example Path: ServiceAvailablity/service-availablity-form.php
This is a raw script and it is intended for the developer who wants to integrate FedEx Shipping API into their projects. You can create your own Strategy & functionalities as per your requirements by using this script.
Question: Why getting Authentication Failed error?
Ans: This error belongs to using the wrong FedEx Key and Password access in API request. If you are using the Sandbox endpoint service path in the WSDL file and trying to execute API requests using production access, then this error will occur.
Another case of getting this authentication error is until your generated Fedex Test Labels is not completed the FedEx evaluation process, you can't use production access to generate shipping labels. First, generate Test labels and send it to FedEx support for evaluation, then they will activate your production access.
Question: Is the Parent and User access credential is same?
Ans: If the user credential has a parent credential, in that case, this access can be different. However, most user credentials do not have a parent credential, so this element will ordinarily be omitted.
If the user does not have a parent credential then use the same key and password in both Parent and User parameters.