A place to discuss charging merchants for your apps and services using the billing API.
Hello,
I am working on an application that will try to do revenue share split based on sales from our services. The primary goal is to charge the client based on discount codes used in their storefront. So for example, if the promo code 123 is used in the clients storefront, and was a $10 sale, we are looking to charge the client $2 (20% revenue share).
Is this possible via the Shopify Billing API?
Thanks,
A
Solved! Go to the solution
This is an accepted solution.
So when a client sells item A, and uses discount 123, for a sale of $10, I can use the usage_charge?
Yes. You would create a usage charge for $2.
where in the API documentation does it correlate transactions to usage charge amounts
You would need to do that in your App. Check out webhooks - e.g. order creation, order cancellation etc.
Hi A,
Yes, this is possible. Take a look at App Usage Charges.
So basically you would:
HTH, Gavin.
Thanks Zetya! I appreciate the response.
I might not have been clear on my first question using the word "services" or maybe I am not understanding your message.
So when a client sells item A, and uses discount 123, for a sale of $10, I can use the usage_charge? Why would I ever set a max amount when I would want to always charge 20% of sale. Also where in the API documentation does it correlate transactions to usage charge amounts?
This is an accepted solution.
So when a client sells item A, and uses discount 123, for a sale of $10, I can use the usage_charge?
Yes. You would create a usage charge for $2.
where in the API documentation does it correlate transactions to usage charge amounts
You would need to do that in your App. Check out webhooks - e.g. order creation, order cancellation etc.