In our previous post explained the process of print a simple FedEX shipping label using its web service call. Please go through it to check the sample API request for creating an label. If your are implementing FedEX web service first time, then this post will help you a lot.
First, we have to confirm the shipment and then able to print the label. Let’s explain to you How to generate various types of FedEX Shipping Label using its API. To start FedEx Integration, initially work with its Sandbox keys. You can’t apply Production keys directly to generate a shipping label. It will give you an “Authentication Failed” error message.
FedEX has a procedure to activate shipping service for your Account. First, you have to generate Label using sandbox keys, than after label evaluation process, your shipping service is completely active for use. Generally, FedEx ask many types of Label sample for evaluation purpose.
Few Shipping Label Sample are:
– Saturday Delivery Label
– Saturday Pickup Label
– COD Label
– Dangerous Goods Label
– Item On Hold Label
– Signature Required Label
FedEX API Request Parameters to Print Various Shipping Label
Now we are going to explain required request parameters to get print these various shipping label. You can include these parameters in your API request as per your need. So here we are…
1) Saturday Delivery Label Request Parameters:
To add this feature on your label request just add SpecialServiceType parameter with ‘SATURDAY_DELIVERY’ value.
1 2 3 4 |
'SpecialServicesRequested' => array ( 'SpecialServiceTypes' => 'SATURDAY_DELIVERY' ) |
2) Saturday Pickup Label Request Parameters:
It is similar to Saturday delivery type, just change the value with ‘SATURDAY_PICKUP’.
1 2 3 |
'SpecialServicesRequested' => array( 'SpecialServiceTypes' => 'SATURDAY_PICKUP' ) |
3) COD Label Request Parameters:
COD belong to collect on delivery, means it allow to collect money when item is delivered. Check below request parameter for this.
1 2 3 4 5 6 7 8 9 10 |
'SpecialServicesRequested' =>array( 'SpecialServiceTypes' => array('COD'), 'CodDetail' => array( 'CodCollectionAmount' => array( 'Currency' => 'USD', 'Amount' => 15 ), 'CollectionType' => 'ANY' // ANY, GUARANTEED_FUNDS ) ) |
4) Dangerous Goods Label Request Parameters:
If you are shipping some dangerous items, than you must need to use this type of label.
1 2 3 4 5 6 7 8 9 10 |
'SpecialServicesRequested' => array( 'SpecialServiceTypes' => 'DANGEROUS_GOODS', 'DangerousGoodsDetail' =>array( 'Regulation' => 'IATA', 'Accessibility' => 'INACCESSIBLE', 'Options' => 'BATTERY', 'PackingOption' => 'OVERPACK' ) ) |
5) On Hold Label Request Parameters:
1 2 3 4 5 6 7 8 9 10 11 |
'SpecialServicesRequested' => array( 'SpecialServiceTypes' => 'HOLD_AT_LOCATION', 'HoldAtLocationDetail' => array( 'PhoneNumber' => '5667878690', 'LocationContactAndAddress' => array( 'Contact' => 'User', 'Address' => 'Sample address' ) ) ) |
6) Signature Required Label Request Parameters:
You can use FdeEX Signature Proof feature to confirm delivery. This is commonly used to confirm about shipment.
1 2 3 4 5 6 7 |
'SpecialServicesRequested' => array( 'SpecialServiceTypes' => 'SIGNATURE_OPTION', 'SignatureOptionDetail' =>array( 'OptionType' => 'ADULT' ) ) |
Through adding these request parameter in you Label API Request, you can get various shipping receipt. For more parameter detail, please visit the FedEX official documentation. We hope this post will help you to generate various type of FedEX Shipping Label.