Solved

Billing Api - Revenue Share

amareval
Visitor
2 0 0

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

Accepted Solution (1)
Gavinator
Shopify Partner
1318 15 124

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.

 

 

www.bookthatapp.com

View solution in original post

Replies 3 (3)

Gavinator
Shopify Partner
1318 15 124

Hi A,

 

Yes, this is possible. Take a look at App Usage Charges.

 

So basically you would:

  1. authorize a max amount with the merchant
  2. create a usage_charge when a service is sold, up until the max amount is reached
  3. 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.

www.bookthatapp.com
amareval
Visitor
2 0 0

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?

Gavinator
Shopify Partner
1318 15 124

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.

 

 

www.bookthatapp.com