Have your say in Community Polls: What was/is your greatest motivation to start your own business?
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.

How to achieve commission/affiliate based payments?

How to achieve commission/affiliate based payments?

samyvs
Visitor
2 0 0

Hi All,

I'm building a custom sales channel (for my mobile app) that can be used by other merchants. I have a question regarding payment. I want it so that whenever a user on the app pays an amount for a products, a % of this price goes to me and the rest to the merchant. Let's say an user buys a €100 from a merchant through the custom sales channel on my mobile app. I want to be able to take 10% commission of this (as agreed by the merchant). So, when the user pays €100 through my app, €90 goes to the merchant and €10 goes to me.

 

Is there an API that allows this?
Thank you in advance for any help,


Kind regards,

 

Samy

 

Reply 1 (1)

ShopifyDevSup
Shopify Staff
1453 238 522

Hi @samyvs!

You can achieve this by using the Billing API and creating usage charges. This doc from our guide on creating a sales channel app specifically calls out charging a Merchant a percentage based commission.

Developer Support @ Shopify
- Was this reply helpful? Click Like to let us know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog