Built by

tsvetann

Category

Other

Version

0.3.4

Last updated

Apr 8, 2024, 14:56:29 PM3 months ago

Medusa Fulfillment Econt

Documentation
|
Website

Fulfillment plugin for econt.bg

Compatibility

This plugin should be compatible with versions >= 1.8.0 of Copy to clipboard@medusajs/medusa.

Features

  • Query information about cities and offices covered by Econt. Create shipping labels

How to Install

1. Run the following command in the directory of the Medusa backend:
npm install medusa-fulfillment-econt
or
yarn add medusa-fulfillment-econt
2. Set the following environment variables in Copy to clipboard.env:
ECONT_USERNAME=<YOUR_ECONT_USERNAME>
ECONT_PASSWORD=<ECONT_PASSWORD>
ECONT_SERVICE_URL=<ECONT_SERVICE_URL>
For econt service urls please see: JSON API
3. In Copy to clipboardmedusa-config.js add the following at the end of the Copy to clipboardplugins array:
const plugins = [
// ...
{
resolve: "medusa-fulfillment-econt",
options: {
username: process.env.ECONT_USERNAME,
password: process.env.ECONT_PASSWORD,
service_url: process.env.ECONT_SERVICE_URL || "https://demo.econt.com/ee/services",
}
},
]
4. Routes
Copy to clipboardBACKEND_URL/store/econt/offices/cityname/:name - search all offices for a city with Copy to clipboard:name Copy to clipboardBACKEND_URL/store/econt/offices/name/:name - search all offices for an office with Copy to clipboard:name Copy to clipboardBACKEND_URL/store/econt/cities/postcode/:postcode - search all cities with a postcode (or partial postcode) Copy to clipboard:postcode
Join our Discord server to meet other community members.

Other channels

Build your own plugins

Develop your own plugins with our API to speed up your processes.

Make your plugin available via npm for it to be shared in our Plugin Library with the broader Medusa community.