FedEx¶
On this page
Overview¶
The Global Ecommerce APIs integrate with FedEx® through the API operations listed on this page. FedEx shipments can originate from the U.S. and Canada. To print FedEx labels, a merchant must have an existing FedEx account.
Onboard a Merchant to Print FedEx Labels¶
To onboard a merchant to print FedEx labels through the Global Ecommerce APIs:
Enroll the merchant with your developer account using one of the Merchant Enrollment Models listed on the Merchant Accounts page.
Ensure the merchant has an existing account with FedEx.
Register the merchant’s FedEx account with Pitney Bowes, as described on the Add Commercial Carrier Accounts page.
API Operations for Shipping with FedEx¶
The APIs integrate with FedEx through the following operations:
Operation |
Method |
Resource Path |
---|---|---|
POST |
/v1/developers/{developerId}/merchants/{postalReportingNumber}/carrier-accounts/register?carrier=FEDEX |
|
POST |
/v1/rates |
|
POST |
/v1/shipments |
|
GET |
/v1/shipments/{shipmentId}?carrier=FEDEX |
|
GET |
/v1/shipments?originalTransactionId={transaction_id}&carrier=FEDEX |
|
DELETE |
/v1/shipments/{shipmentId}?carrier=FEDEX&cancelInitiator=SHIPPER |
|
GET |
/v1/tracking/{trackingNumber}?packageIdentifierType=TrackingNumber |
|
—— |
FedEx Services¶
The following tables list the services available for FedEx shipments.
U.S. Domestic Services¶
The following are the supported domestic services for FedEx shipments within the U.S.
U.S. Domestic Service |
ID |
---|---|
FedEx First Overnight® |
NDA_AM |
FedEx Priority Overnight® |
NDA |
FedEx Standard Overnight® |
NDA_SVR |
FedEx 2Day® A.M. |
2DA_AM |
FedEx 2Day® |
2DA |
FedEx Express Saver® |
3DA |
FedEx Ground® |
GRD |
FedEx Home Delivery® |
HOM |
FedEx First Overnight® Freight |
NDA_AM_FREIGHT |
FedEx 1Day® Freight |
NDA_FREIGHT |
FedEx 2Day® Freight |
2DA_FREIGHT |
FedEx 3Day® Freight |
3DA_FREIGHT |
Canadian Domestic Services¶
The following are the supported domestic services for FedEx shipments within Canada.
Canadian Domestic Service |
ID |
---|---|
FedEx First Overnight® |
NDA_AM |
FedEx Priority Overnight® |
NDA |
FedEx Standard Overnight® |
NDA_SVR |
FedEx 2Day® |
2DA |
FedEx Economy® |
3DA |
FedEx Ground® |
GRD |
International Services¶
The following are the supported services for FedEx shipments from the U.S. or Canada to international destinations.
International Service |
ID |
---|---|
FedEx International First® |
XPP |
FedEx International Priority® |
EXP |
FedEx International Economy® |
XPD |
FedEx International Ground® |
STD |
FedEx International Priority® Freight |
EXP_FREIGHT |
FedEx International Economy® Freight |
XPD_FREIGHT |
FedEx Special Services¶
This section lists the available special services for FedEx shipments. For descriptions of special services, see your FedEx documentation. Merchants are responsible for understanding the services they use and for adhering to service requirements. The following example shows two special services, the second of which takes input parameters:
"specialServices": [ { "specialServiceId": "ADD_HDL" }, { "specialServiceId": "COD", "inputParameters": [ { "name": "INPUT_VALUE", "value": "50" } ] } ]
The following FedEx special services are available:
FedEx Special Service |
specialServiceId |
inputParameters |
---|---|---|
Ancillary Endorsements |
|
|
Additional Handling/Non Standard Container |
ADD_HDL |
|
Adult Signature Required |
ADULT_SIG |
|
Alcohol |
ALCOHOL |
|
Carrier Leave If No Response |
CARRIER_LEAVE_IF_NO_RES |
|
Declared Value |
INS |
|
Direct Signature Required |
DIRECT_SIG |
|
Dry Ice (non-Hazardous Material) |
DRY_ICE |
|
FedEx Appointment Home Delivery® |
APPOINTMENT |
|
FedEx Collect on Delivery (C.O.D.) |
COD |
|
FedEx Date Certain Home Delivery® |
DATE |
|
FedEx Evening Home Delivery® |
EVENING |
|
FedEx Ground® C.O.D. |
GCOD |
|
FedEx Priority Alert® |
PAL |
|
FedEx Priority Alert Plus™ |
PAL_PLUS |
|
FedEx Saturday Service - Delivery |
SAT_DELIVERY |
|
FedEx Saturday Service - Pickup |
SAT_PICKUP |
|
Hold at Location |
HOLD |
For an example, see Hold at Location Example. |
Indirect Signature Required |
SIG |
|
No Signature Required (Signature Release) |
NO_SIG |
|
Print Return Label |
PRL |
|
Hold at Location Example¶
The following is an example object for the Hold at Location special service. The object is passed in the specialServices
array.
{ "specialServiceId": "HOLD", "inputParameters": [ { "name": "FEDEX_LOCATION_ID", "value": "HC986" },{ "name": "CONTACT_NUMBER", "value": "2035550000" } ] }
FedEx Parcel Types¶
The following are the supported parcel types for FedEx.
Parcel Type |
ID |
---|---|
FedEx Envelope |
LTR |
FedEx Pak |
PACK |
FedEx Box |
BOX |
FedEx Small Box |
SMALL_EXP_BOX |
FedEx Medium Box |
MED_EXP_BOX |
FedEx Large Box |
LG_EXP_BOX |
FedEx Extra Large Box |
EXTRA_LG_EXP_BOX |
FedEx Tube |
TUBE |
FedEx 25 KG Box |
25KG |
FedEx 10 KG Box |
10KG |
Customer Package |
PKG |
FedEx Labels¶
Note the following:
The value for the label size uses an uppercase
X
. Do not use a lowercase x.Labels retrieved through URLs are available for 24 hours after label creation.
FedEx shipments use the following label options:
Label Size |
File Format |
Content Type |
---|---|---|
DOC_4X6 |
ZPL2 |
URL BASE64 |
DOC_8X11 |
URL |
Sample FedEx Label¶
The following is a sample FedEx Express label:
Sample FedEx Commercial Invoice¶
The following is a sample FedEx Commercial Invoice:
FedEx Surcharges¶
The following surcharges can apply to FedEx shipments. Surcharges are returned in the rates.surcharges
array.
Additional Handling/Non Standard Container
Delivery Area Surcharge (see below)
Oversize
Residential Delivery
Minimum Billable Weight for FedEx Express Packaging
Third Party Billing Surcharge
FAQs¶
How do I register a merchant to print FedEx labels?¶
To print a FedEx® label, the merchant must have an existing FedEx account. Register the merchant to print FedEx labels by following the steps in Add Commercial Carrier Accounts.
Can a merchant register multiple FedEx accounts?¶
Yes. When a merchant registers a FedEx account, Pitney Bowes provides a unique shipperCarrierAccountId
for that account. If a merchant registers multiple FedEx accounts, pass this ID to indicate which account to use when the merchant performs a operation.
You can retrieve the ID through the Get Merchant Accounts API, as described in How do I retrieve a Shipper-Carrier Account ID (shipperCarrierAccountId)?
How do merchants pay for FedEx labels?¶
FedEx invoices the merchant, and the merchant is responsible to pay FedEx.
Trademark Notice
The FedEx service marks are owned by Federal Express Corporation and are used by permission.