I currently manage two separate Shopify stores and I'm looking for a way to sync the discount codes between them. My goal is to ensure that whenever a discount code is created or updated in one store, it automatically gets reflected in the other store.
I came across the Shopify App Template Remix and I'm considering using it to develop a custom app to achieve this synchronization. However, I'm not entirely sure if this is the right approach or if there are better alternatives.
Here's what I have in mind:
Use the Shopify App Template Remix to create a new app.
Implement the necessary logic to listen for discount code creation and updates in Store A.
When a discount code event is detected, use the Shopify Admin API to replicate/update/delete this discount code in Store B.
Ensure that the same process happens in reverse, so any changes in Store B are also reflected in Store A.
My questions are:
Has anyone used the Shopify App Template Remix for a similar purpose? Because I´m kinda stuck as you can read in the comments.
Would this approach be the right one overall or are there any other options ?
Are there any existing apps or integrations that might be a better option for this process?