In this post i will explain you how we use fedex api to create a shipping label in PHP. First you have to send the shipment request to confirm shipping than print shipping label.
Use you fedex test developer account for label generation. You can not use direct production account access for label generation. Because fedex did not allow this and give an authentication error. When you print shipping label using test account than pass label format to fedex for evaluation. Fedex will check your label format and provided information and than approve it for production account.
You need to certified fedex account for use production access for shipping and label generation.
Steps to print fedex shipping label via API in PHP:
Step 1: We are using soap client request for fedex label. For this you need to include “ShipService_v19.wsdl” file.
Step 2: Create a Label.php file using below code. Which call the fedex test api request url.
Also Read This:
How to Create Fedex Multiple Package Shipment Label using API Call in PHP
How to Add New Product in Bigcommerce via API V2
How to Insert New Lead Data in Zoho CRM Through API
How to Install Magento Security Patch via Putty
We can also use simple xml request parameter for creating fedex api label in php using curl method. Although above method is quite easy to implement on website.