- This topic has 2 replies, 2 voices, and was last updated 9 years, 6 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › WP Affiliate Platform › WP Affiliate General Questions › Affiliate Plateform – Define different commission level per product via API
Tagged: 3rd party solution, Commission, commission rate, WP Affiliate
I’m using my own 3rd party ecommerce solution.
I have many products in my online store and I want to define an individual commission level for each product or send total commission to wp affiliate platform via HTTP POST.
For example, I have productA and productB. I want to define 50% commission for productA and 100% commission for productB.
After a customer checkout, my payment system will ignore the default value and retrieve the commission level of productA and productB, then I can calculate a special commission amount for my affiliate platform.
Is this feature possible? Or could you offer me the related addon?
Thank you!
P.S. I’m a developer, so if there is no any quick solution, I can follow your instruction and modify my code.
You can calculate the commission and then send that via that API also. If you send the exact commission amount that you want to award then it will just give that commission to the affiliate (instead of doing its own calculation).
You can pass the total commission amount value using the “commission_amt” parameter in your API request.
I have added an example code in the following documentation (at the bottom):
https://www.tipsandtricks-hq.com/wordpress-affiliate/awarding-commission-via-http-get-or-post-189
Got it!
Thank you!