For commissions paid on an order. we can use: https://api.infusionsoft.com/crm/rest/v1/affiliates/commissions?…
and can then pull the amount earned, sales_affiliate_id and other salient information. This is enough information to pay the affiliate with our accounting software. However we need to mark the affiliate as paid somehow. I anticipate to do this we would need the transaction id of the commission piece as well so we can come back and mark it as paid.
Hi @Matt_Lee I don’t believe we have a way mark the affiliate ledger as paid via the API. There may be a way to use the DataService to update that table as long as it is not read-only. As far as the error you are seeing on affCommissions, it looks like you are providing an incorrect order or number of arguments or params
Hey @Matt_Lee, I believe the paying of affiliates was intentionally left out. This is due to the fact that there should not be external updates to those payments mainly for data integrity. The only way I know of to payout an affiliate is to “Create a payment” by running the “Referral Partner Ledgers” report.
I think they are referring to paying out an affiliate that is owed commission not recording a payment on an invoice. If that is the case you can’t currently do that through the API that I know of.