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
Hi A,
Yes, this is possible. Take a look at App Usage Charges.
So basically you would:
- authorize a max amount with the merchant
- create a usage_charge when a service is sold, up until the max amount is reached
- if max amount has been reached you could a) email the merchant and adjust the max amount, or b) delete the discount code
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?
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.