- Posts: 44
- Thank you received: 0
Custom payment for affiliates
14 years 3 months ago #55295
by mohamed
Custom payment for affiliates was created by mohamed
How can I access the api for affiliated payment, specifically I need to be able to manually pay out affiliates and have that payout affect their balances in the database. so I will need a way to manipulate the amount paid value from the backend.
Please Log in or Create an account to join the conversation.
14 years 3 months ago #55367
by nicolas
Replied by nicolas on topic Re: Custom payment for affiliates
You can already validate the payment of the full amount of the affiliate commissions on the affiliate's user edition page, thanks to the small icon next to the total of the commissions.
There is no API to pay partial amounts of commissions. The way the system works is that each order has a commission, the id of the partner, and a paid flag which is set to 0 by default. So HikaShop displays the aggregate of all the not paid commissions of the partner.
When you pay the commissions via the interface of HikaShop, it switch the paid flag of all the orders of the partner.
There is no API to pay partial amounts of commissions. The way the system works is that each order has a commission, the id of the partner, and a paid flag which is set to 0 by default. So HikaShop displays the aggregate of all the not paid commissions of the partner.
When you pay the commissions via the interface of HikaShop, it switch the paid flag of all the orders of the partner.
Please Log in or Create an account to join the conversation.
Time to create page: 0.199 seconds