Articles on: Shipper Account

FedEx Developer Guide and API Credentials


Plans: All plans Platforms: All platforms


Overview


AfterShip Shipping is a FedEx Compatible Solution. Once you connect your FedEx shipper account to AfterShip Shipping, you can start creating shipments, generating labels, and getting live rates across AMEA, US, CA, and LAC regions, all from one place.


This guide walks you through connecting your FedEx account to AfterShip Shipping, the credentials you need, and the services available to you.


Before you begin


Make sure you have an active FedEx shipper account. If you do not have one, register for a FedEx shipper account before proceeding.


If you do not know your FedEx Shipping Address: Log in to your FedEx account, click your profile icon, select My Profile, and look under Contact Information.






Step 1: Start the connection in AfterShip Shipping


  1. Log in to your AfterShip Shipping account.
  2. Go to Carrier > Carrier accounts in the left sidebar.
  3. Click Add carrier and select FedEx.


Step 2: Accept the FedEx End-User License Agreement (EULA)


Scroll through the FedEx End-User License Agreement, select the checkbox confirming you have read and accept it, and click Next.



Step 3: Enter your account details


  1. Enter your FedEx account number and shipping address. The address must exactly match what is on file with FedEx.


Important: If the address does not match your FedEx profile, the system will trigger an Account address mismatch error. Double-check your details in your FedEx account before proceeding.




  1. Click Next.


Step 4: Complete multi-factor authentication (MFA)


Select how you wish to verify your identity. You can receive a PIN via:


  • Email
  • SMS
  • Phone call
  • Invoice (from the past 90 days)

Enter the PIN or invoice details when prompted and click Verify.



Note: Some FedEx accounts are exempt from the MFA step and will proceed automatically after address validation. Contact your FedEx account manager if you are unsure which applies to you.


Step 5: Configure additional settings


Before finishing, you can configure the following optional settings. These can also be updated later from the carrier account settings page.


  • Preferred currency: Specify an ISO 3 currency code (e.g., USD, GBP) to receive shipping rates in your preferred currency. Defaults to the currency of your FedEx account.
  • Electronic Trade Documents (ETD): Enable ETD if you ship internationally and want to submit customs documents electronically.
  • Letterhead and signature: Upload your commercial_invoice_letterhead (PNG, max 700 × 50 px) and commercial_invoice_signature (PNG, max 240 × 25 px) if ETD is enabled.



Click Submit to complete the connection.


Note: Once your FedEx account is connected, the account number and address cannot be edited in AfterShip Shipping. FedEx locks these details at setup to ensure they match their records. If your information changes with FedEx, reconnect your account to reflect the updates.


Create a FedEx account via API


If you prefer to connect your FedEx account programmatically, use the following endpoint:


Endpoint:


POST https://api.aftership.com/postmen/v3/couriers/fedex/shipper-accounts


Request example:


{
"slug": "fedex",
"invoice": {
"number": "234562278",
"currency": "USD",
"date": "2026-02-24",
"amount": 234
},
"credentials": {
"account_number": "11111111"
},
"address": {
"country": "USA",
"contact_name": "Test name",
"phone": "14158523888",
"fax": null,
"email": "[email protected]",
"company_name": null,
"street1": "15 W 18TH ST FL 7",
"street2": null,
"city": "NEW YORK",
"state": "NY",
"postal_code": "100114624",
"type": "residential",
"tax_id": null
},
"settings": {
"preferred_currency": "USD",
"commercial_invoice_letterhead": "xxxx",
"commercial_invoice_signature": "xxxx"
}
}


Notes:


  • An invoice from the past 90 days is required for MFA validation.
  • credentials, address, and preferred_currency are optional but recommended to ensure accurate validation against your FedEx records.
  • To enable ETD, include both commercial_invoice_letterhead and commercial_invoice_signature in the settings object.
  • You can also create a FedEx Ground® Economy account using the same endpoint by setting "slug": "fedex-smartpost".
  • After account creation, you can update commercial_invoice_letterhead and commercial_invoice_signature at any time using: https://api.aftership.com/postmen/v3/shipper-accounts/{id}/settings



Required FedExAPI credentials


Credential

Required

Description

Account Number

Yes

Your FedEx shipper account number

Preferred Currency

No

ISO 3 currency code for rate display. Defaults to your FedEx account currency


Things to know before generating labels


To avoid label failures, make sure your shipment data meets the following requirements:


Field

Requirement

Phone number

Non-digit characters are stripped automatically; must be at most 15 digits after normalization

City

Must be between 3 and 35 characters

Item description

Truncated to 50 characters; content beyond this will not appear on the label

Package weight

Normalized to 2 decimal places

Paper size

Use 4x6 for standard labels. 4x6.75 is not supported

USA domestic return labels

Label file size will always be A4 regardless of the requested paper size

Commercial invoice format

Always generated in FedEx format

ETD

Must be enabled at the account level. Do not include paperless_invoice in your API request




Supported FedEx services


Standard services



FedEx Service Code

service_type

service_name

FEDEX_2_DAY

fedex_2_day

FedEx 2Day®

FEDEX_2_DAY_AM

fedex_2_day_am

FedEx 2Day® A.M.

FEDEX_EXPRESS_SAVER

fedex_express_saver

FedEx Express Saver®

FEDEX_GROUND

fedex_ground

FedEx Ground®

FIRST_OVERNIGHT

fedex_first_overnight

FedEx First Overnight®

GROUND_HOME_DELIVERY

fedex_ground_home_delivery

FedEx Home Delivery®

INTERNATIONAL_ECONOMY

fedex_international_economy

FedEx International Economy®

INTERNATIONAL_ECONOMY_FREIGHT

fedex_international_economy_freight

FedEx International Economy® Freight

INTERNATIONAL_FIRST

fedex_international_first

FedEx International First®

FEDEX_INTERNATIONAL_PRIORITY

fedex_international_priority

FedEx International Priority®

INTERNATIONAL_PRIORITY_FREIGHT

fedex_international_priority_freight

FedEx International Priority® Freight

FEDEX_INTERNATIONAL_PRIORITY_EXPRESS

fedex_international_priority_express

FedEx International Priority® Express

FEDEX_INTERNATIONAL_CONNECT_PLUS

fedex_international_connect_plus

FedEx® International Connect Plus

PRIORITY_OVERNIGHT

fedex_priority_overnight

FedEx Priority Overnight®

STANDARD_OVERNIGHT

fedex_standard_overnight

FedEx Standard Overnight®

SAME_DAY

fedex_same_day

FedEx SameDay®

SAME_DAY_CITY

fedex_same_day_city

FedEx SameDay® City

FEDEX_1_DAY_FREIGHT

fedex_1_day_freight

FedEx 1Day® Freight

FEDEX_2_DAY_FREIGHT

fedex_2_day_freight

FedEx 2Day® Freight

FEDEX_3_DAY_FREIGHT

fedex_3_day_freight

FedEx 3Day® Freight


One rate services


FedEx Service Code

service_type

service_name

FEDEX_2_DAY

fedex_2_day_one_rate

FedEx One Rate® - FedEx 2Day®

FEDEX_2_DAY_AM

fedex_2_day_am_one_rate

FedEx One Rate® - FedEx 2Day® A.M.

FEDEX_EXPRESS_SAVER

fedex_express_saver_one_rate

FedEx One Rate® - FedEx Express Saver®

FIRST_OVERNIGHT

fedex_first_overnight_one_rate

FedEx One Rate® - FedEx First Overnight®

PRIORITY_OVERNIGHT

fedex_priority_overnight_one_rate

FedEx One Rate® - FedEx Priority Overnight®

STANDARD_OVERNIGHT

fedex_standard_overnight_one_rate

FedEx One Rate® - FedEx Standard Overnight®


Regional services


FedEx Service Code

service_type

service_name

Ships From

FEDEX_ECONOMY

fedex_economy

FedEx Economy

CHL, ZAF

FEDEX_ECONOMY_SELECT

fedex_economy

FedEx® Economy

GBR

FEDEX_FIRST

fedex_first

FedEx® First

CHL, ZAF, EU region

FEDEX_PRIORITY

fedex_priority

FedEx® Priority

CHL, ZAF, MYS, THA, EU region

FEDEX_PRIORITY_EXPRESS

fedex_priority_express

FedEx® Priority Express

CHL, ZAF, THA, EU region

fedex_regional_economy

FedEx® Regional Economy

Select regions


FedEx Ground® Economy


service_type

service_name

fedex-smartpost_parcel_select

FedEx Ground® Economy

fedex-smartpost_parcel_select_lightweight

FedEx Ground® Economy (Under 1lb)

fedex-smartpost_bound_printed_matter

FedEx Ground® Economy Bound Printed Matter

fedex-smartpost_media

FedEx Ground® Economy Media Mail



Note on FedEx Ground® Economy labels: Return labels support QR code generation. Include print_options.qr_code in your API request for return shipments to retrieve the QR code file. Labels also now return transit_time and delivery_date for better delivery estimates.


FedEx Developer Resources


Updated on: 22/05/2026