Billing api for first time user

soSimplified
Shopify Partner
5 0 0

Hi,

 

Our app can be installed and used with the Shopify ecosystem in two ways.

 

  • Our existing users turn on the Shopify integration directly from the web app by granting access to their store. 
  • Or merchants can discover and install the application in the store.  

We want to implement Billing subscription APIs only for new merchants + new installs. How can we achieve this? Any pointers, examples will be much appreciated. 

Replies 2 (2)

dwyckoff
Shopify Staff
15 1 3

Hey there SoSimplified!
I might need a bit more clarification in order to help you out.

Why are you trying to only utilize the Billing API with new customers? Is there something missing from our APIs that you require for legacy work?

And is your question about how you might keep track of only new merchants?
If so, this is a bit of a tricky problem, explored a bit here: https://community.shopify.com/c/shopify-apps/distinguish-callback-url/m-p/779649
It looks like your best strategy might involve adding some logic to assume a store was already installed during the callback if it exists in your DB and has never seen the uninstall webhook hit for it.

Hope I could help a bit!

To learn more visit the Shopify Help Center or the Community Blog.

soSimplified
Shopify Partner
5 0 0

Thanks for the quick reply. More context 

 

  1. Our no-code platform helps marketing teams in creating marketing assets for all the different marketing channels.  
  2. As the scope of the work extends beyond the online store, D2C companies have relationships with us outside the Shopify billing ecosystem.
  3. We are working on the integration, so the joint customers don't need to copy-paste product photo catalogs manually.
  4. The review team asked us to build a "Billing API" so new merchants installing the application first time will be billed via Shopify.