Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Shopify yearly subscription charge and monthly varying charge

Solved

Shopify yearly subscription charge and monthly varying charge

user072319
Shopify Partner
131 0 17

Hello there,
I want to create a yearly subscription plan for my app which is a fixed price every year. Along with this I want to create varying monthly charge also. 
How can I achieve this using Billing API?

 

Any help would be appreciated.

Accepted Solution (1)
Visely-Team
Shopify Partner
1843 210 488

This is an accepted solution.

Yes, you'll have to create a recurring application charge first, that will have a capped amount associated with it, so the merchant is not charged more than they would expect to be charged each month. Then, each month, you'll have to create a usage charge for the dynamic amount. More info here - https://help.shopify.com/en/api/reference/billing/usagecharge

Sergiu Svinarciuc | CTO @ visely.io
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution!
- To learn more about the awesome stuff we do head over to visely.io or our blog

View solution in original post

Replies 5 (5)

Visely-Team
Shopify Partner
1843 210 488

As far as I know,  there could be only one charge per app/store. I think there is no way to achieve that using current Billing API.

Sergiu Svinarciuc | CTO @ visely.io
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution!
- To learn more about the awesome stuff we do head over to visely.io or our blog
user072319
Shopify Partner
131 0 17

@Visely-Team Thank you for the response. I've one more doubt. How is the Usage Charge integration flow? I understood that we need to create a recurring application charge to which we'll add usage charges. So do I need to create usage charge through API  monthly?

Visely-Team
Shopify Partner
1843 210 488

This is an accepted solution.

Yes, you'll have to create a recurring application charge first, that will have a capped amount associated with it, so the merchant is not charged more than they would expect to be charged each month. Then, each month, you'll have to create a usage charge for the dynamic amount. More info here - https://help.shopify.com/en/api/reference/billing/usagecharge

Sergiu Svinarciuc | CTO @ visely.io
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution!
- To learn more about the awesome stuff we do head over to visely.io or our blog
user072319
Shopify Partner
131 0 17

@Visely-Team Thank you so much for clearing it.

howard-boost
Shopify Partner
18 0 4

Shopify does support yearly subscription in GraphQL https://shopify.dev/docs/admin-api/graphql/reference/billing/apppricinginterval

quyennt_0-1621933392031.png