FedEx#

In order to use FedEx, you'll need to ensure you are using a valid United States address as your origin. You'll also need to ensure your Craft Commerce default currency is set to USD.

How to get API access#

To use Fedex API, you'll need to:

  1. Create a profile at the FedEx website (opens new window)
  2. Register for FedEx Web Services Production Access (opens new window)

After this, you should receive an email with the following information, that is required by Postie:

  • accountNumber
  • meterNumber
  • key
  • password

Services#

The below service are available with FedEx for domestic and international customer destination addresses.

  • Domestic

    • FEDEX_1_DAY_FREIGHT
    • FEDEX_2_DAY
    • FEDEX_2_DAY_AM
    • FEDEX_2_DAY_FREIGHT
    • FEDEX_3_DAY_FREIGHT
    • FEDEX_EXPRESS_SAVER
    • FEDEX_FIRST_FREIGHT
    • FEDEX_FREIGHT_ECONOMY
    • FEDEX_FREIGHT_PRIORITY
    • FEDEX_GROUND
    • FIRST_OVERNIGHT
    • PRIORITY_OVERNIGHT
    • STANDARD_OVERNIGHT
    • GROUND_HOME_DELIVERY
    • SMART_POST
  • International

    • INTERNATIONAL_ECONOMY
    • INTERNATIONAL_ECONOMY_FREIGHT
    • INTERNATIONAL_FIRST
    • INTERNATIONAL_PRIORITY
    • INTERNATIONAL_PRIORITY_FREIGHT
    • EUROPE_FIRST_INTERNATIONAL_PRIORITY

Control Panel#

FedEx Provider

Configuration File#

Add the following code to your configuration file under the providers array, as per the below. Note that to disable certain services, simply omit them from the services array.

'providers' => [
    'fedEx' => [
        'name' => 'FedEx',
        'markUpRate' => '<yourMarkUpRate>',
        'markUpBase' => '<value>',

        'settings' => [
            'accountNumber' => '<yourAccountNumber>',
            'meterNumber' => '<yourMeterNumber>',
            'key' => '<yourKey>',
            'password' => '<yourPassword>',

            // Whether to use the test API endpoint (optional)
            'useTestEndpoint' => false,
        ],

        'services' => [
            'FEDEX_EXPRESS_SAVER' => 'Express Saver',
            'FEDEX_GROUND' => 'Ground',
            'INTERNATIONAL_ECONOMY' => 'International Economy',
            'INTERNATIONAL_PRIORITY' => 'International Priority',
            'PRIORITY_OVERNIGHT' => 'Priority Overnight',
            'STANDARD_OVERNIGHT' => 'Standard Overnight',
        ],
    ],
]

Previous ← Australia Post Next USPS →