Have your say in Community Polls: What was/is your greatest motivation to start your own business?

Re: Usage based billing systeme

Usage based billing systeme

Zsalhi
Shopify Partner
1 0 0

Hey everyone,

I’m currently working on a Shopify app that lets me earn a commission on sales generated through my website.

Does anyone know how I can implement a "billing per usage" model for this? Any references or tips would be super helpful!

Thanks a lot! 🙏

Reply 1 (1)

bguse
Shopify Partner
20 2 4

if you're using the Shopify remix application structure/system. you might be able to use their billing API the most recent one is v3.

https://shopify.dev/docs/api/shopify-app-remix/v3/apis/billing

there is a specific "createUsageRecord" that might work for you I'm not exactly sure if that's exactly what you want but maybe that will help. 

good luck!