Custom payment for affiliates

  • Posts: 44
  • Thank you received: 0
12 years 4 months ago #55295

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.

  • Posts: 82821
  • Thank you received: 13368
  • MODERATOR
12 years 4 months ago #55367

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.

Please Log in or Create an account to join the conversation.

Time to create page: 0.054 seconds
Powered by Kunena Forum