- All schemas have been rewritten to a relational model - All services have been rewritten to accommodate the new data model - Adds idempotency keys to core endpoints allowing you to retry requests with no additional side effects - Adds staged jobs to avoid putting jobs in the queue when transactions abort - Adds atomic transactions to all methods with access to the data layer Co-authored-by: Oliver Windall Juhl <oliver@mrbltech.com>
medusa-plugin-mailchimp
Mailchimp plugin for Medusa that supports newsletter subscriptions.
Plugin Options
{
api_key: [your mailchimp api key] (required),
newsletter_list_id: ["123456789"] (required)
}
Dynamic usage
You can resolve the Mailchimp service, such that your server can handle newsletter subscriptions.
Example:
const mailchimpService = req.scope.resolve("mailchimpService")
mailchimpService.subscribeNewsletter(
"acme@mail.com",
// merge_fields to include in the subscription
{ FIRSTNAME: "Acme", LASTNAME: "Inc." }
)