Built by

tsvetann

Category

Other

Version

0.3.2

Last updated

Mar 29, 2024, 12:45:00 PM25 days ago
</p>

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>
3. In
Copy to clipboard
medusa-config.js
add the following at the end of the
Copy to clipboard
plugins
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 clipboard
BACKEND_URL/store/econt/offices/cityname/:name
- search all offices for a city with
Copy to clipboard
:name
Copy to clipboard
BACKEND_URL/store/econt/offices/name/:name
- search all offices for an office with
Copy to clipboard
:name
Copy to clipboard
BACKEND_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.