FedEx integration for Medusa V2
The FedEx Fulfillment Integration allows you to seamlessly connect your Medusa store with FedEx's shipping and fulfillment services. This integration enables you to manage shipments, track packages, and streamline your order fulfillment process.
With this plugin, you can integrate your Medusa store with FedEx to:
This ensures accurate shipping costs for your customers and simplifies the process of fulfilling and tracking orders using FedEx services.
This module/plugin is compatible with versions >= 2.4.0 of .
To get started with the FedEx Fulfillment Integration, follow these steps:
For more details, refer to the FedEx API Documentation.
To install the FedEx Fulfillment Integration, follow these steps:
npm install @igorppbr/medusa-v2-fedex-fulfillment
modules: [{resolve: "@medusajs/medusa/fulfillment",options: {providers: [{resolve: "@igorppbr/medusa-v2-fedex-fulfillment/providers/fedex",id: "fedex",options: {isEnabled: true, // Enable or disable integrationclientId: "clientId", // FedEx Client IDclientSecret: "clientSecret", // FedEx Client SecretaccountNumber: "accountNumber", // FedEx Account NumberisSandbox: true, // Enable sandbox mode for testingenableLogs: true, // Enable loggingweightUnitOfMeasure: "LB" // Weight unit of measure},},],},},],plugins: [{resolve: "@igorppbr/medusa-v2-fedex-fulfillment", // This is used to enable custom admin widgets to see the tracking URLs and labelsoptions: {},}]
⚠️ Alternative:
Alternatively, you can set up your FedEx API credentials directly in the Medusa Admin dashboard instead of the file.
Go to the Settings page in your Medusa Admin, and you will see FedEx listed in the menu.
From there, you can enter your Client ID, Client Secret, and Account Number securely via the UI.
How credentials are used:
The module will first check for credentials stored in the database (set via the Admin UI). If these exist, they will be used for all FedEx API requests.
If no credentials are found in the database, the module will fall back to the credentials provided in your file.
⚠️ WARNING:
The FedEx sandbox environment is frequently unavailable or down. If you encounter issues during testing, this is likely the cause.
Check your logs for error messages indicating that the FedEx service is unavailable. For production use, ensure you switch to your production credentials and disable sandbox mode.
After installing the integration, you need to configure the FedEx shipping options in your Medusa Admin dashboard.
Decide which FedEx shipping services you want to offer to your customers.
Tip: You can create multiple shipping options for different FedEx services to give your customers more choices at checkout.
When you create a shipment for an order in Medusa, the integration will automatically generate a FedEx shipping label and tracking number.
We welcome contributions to the FedEx Fulfillment Integration! If you have suggestions, improvements, or bug fixes, please follow these steps:
Fork the Repository
Create a personal copy of the repository by forking it on GitHub.
Create a New Branch
Create a new branch for your changes:
git checkout -b my-feature-branch
Make Your Changes
Implement your changes in the codebase.
Test Your Changes
Ensure that your changes work as expected and do not break existing functionality.
Submit a Pull Request
Push your changes to your forked repository and submit a pull request to the main repository.
If you need help or have questions about the FedEx Fulfillment Integration, please reach out to us: