Shiprocket India fulfillment and live rates provider for Medusa v2.
A production-ready Shiprocket integration for Medusa v2. This plugin automates end-to-end fulfillment, providing order syncing, courier assignment, delivery estimation, manifest generation, tracking, and returns management.
Medusa Website | Medusa Repository
Run the following command to install the plugin in your Medusa project:
yarn add @sam-ael/medusa-plugin-shiprocketAdd both the fulfillment provider module and the admin plugin configurations:
1const modules = [2 // ... other modules3 {4 resolve: "@medusajs/medusa/fulfillment",5 options: {6 providers: [7 {8 resolve: "@sam-ael/medusa-plugin-shiprocket",9 id: "shiprocket",10 options: {11 email: process.env.SHIPROCKET_EMAIL,12 password: process.env.SHIPROCKET_PASSWORD,13 pickup_location: process.env.SHIPROCKET_PICKUP_LOCATION,14 },15 },16 ],17 },18 },19]20
21const plugins = [22 // ... other plugins23 {24 resolve: "@sam-ael/medusa-plugin-shiprocket",25 options: {},26 },27]Define the required parameters in your file:
1SHIPROCKET_EMAIL=your_email@example.com2SHIPROCKET_PASSWORD=your_password3SHIPROCKET_PICKUP_LOCATION=Primary4SHIPROCKET_WEBHOOK_TOKEN=your_webhook_token_string5
6# Optional configurations7SHIPROCKET_DELIVERY_PREFERENCE=FAST # 'FAST' or 'CHEAP'8SHIPROCKET_API_TIMEOUT_MS=150009SHIPROCKET_WEBHOOK_PAYLOAD_RETENTION_DAYS=30This plugin exposes an inbound webhook endpoint to receive real-time shipment status updates from Shiprocket.
| Method | Endpoint | Description |
|---|---|---|
| Webhook receiver for Shiprocket scan and delivery events. |
To authorize Shiprocket webhooks, you must configure a webhook on your Shiprocket dashboard pointing to:
You must set a custom header: