Commissions and the reversal rows that net against them, newest first
One commission per paid invoice of a customer a partner brought, in the invoice's currency, on the net, pre-tax amount paid. It is pending for the program's hold (the refund window), then approved, then paid by a payout. A refund, void or credit note takes it back (reversed_minor); one already paid is netted by a negative row of kind reversal that the next payout takes.
Loading the operation...
Make a promotion code the partner's PUT
A customer who redeems the code at a checkout is attributed to the partner, as if they had followed the link.
The postings of paid payouts, with debit and credit totals per currency GET
totals cover the whole filter, not only the page. The books balance when debits equal credits in every currency; the database refuses to commit postings that do not.