Skip to content

slashrawr/mailerlite-shopify-sync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mailerlite-shopify-sync

Mailerlite does not currently support bi-directional syncing between itself and shopify. Signups through a Mailerlite form are not created in Shopify. This means it's not possible to offer subscriber only discounts for example.

This Azure function solves that problem by providing an endpoint for a Mailerlite webhook that will create the customer in Shopify when the subscriber is created in Mailerlite.

How to Use

NOTE: You will need to add a custom app to Shopify to obtain key and secret.

  1. Configure environment variables (details of variables are below)
  2. Deploy function
  3. Configure Mailertlite webhook with function endpoint URL

Configuration

The following environment variables need to be configured:

Variable Description
apiversion Shopify API version - https://shopify.dev/api/usage/versioning
mailerliteapikey Mailerlite API key - https://developers.mailerlite.com/docs/authentication
shopifykey Shopify key - https://shopify.dev/apps/auth/admin-app-access-tokens
shopifysecret Shopify secret - https://shopify.dev/apps/auth/admin-app-access-tokens
shopurl URL of your Shopify store.

TODO

  • Update "apiversion" to "shopifyapiversion" for consistency
  • Terraform templates for provisioning
  • More (and better) error handling
  • More (and better) tests
  • More customisation maybe?
  • AWS Lambda maybe?

More Info

About

Azure function that can be used by a Mailerlite webhook to create customers in Shopify.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages