medusa-plugin-klaviyo
v1.0.1
Published
Klaviyo integration plugin for Medusa
Downloads
151
Readme
Plugins
Plugins offer a way to extend and integrate the core functionality of Medusa.
In most commerce solutions, you can extend the basic features, but it often comes at the expense of having to build standalone web applications. Our architecture is built such that plugins run within the same process as the core, eliminating the need for extra server capacity, infrastructure, and maintenance. As a result, the plugins can use all other services as dependencies and access the database.
Usage
Add the following in the medusa-config.js
file:
KLAVIYO_API_KEY : your_klaviyo_api_key
KLAVIYO_COMPANY_ID : your_klaviyo_company_id
{
resolve: "medusa-plugin-klaviyo",
options: {
klaviyo_api_key: process.env.KLAVIYO_API_KEY,
klaviyo_company_id: process.env.KLAVIYO_COMPANY_ID,
},
}
Usage of Routes
Get All Lists
/store/klaviyo/fetchlists
Get All Profiles Associated to a List
/store/klaviyo/[listId]/fetchprofiles
Subscribe to a List
/store/klaviyo/[listId]/subscribe
Unsubscribe from a List
/store/klaviyo/[listId]/unsubscribe
Test the Plugin
/store/klaviyo/test