Create a payment
Records one payment, or several if the body is an array. Each item needs affiliate_id, amount (greater than 0, rounded to two decimals) and currency (any currency code Tapfiliate supports). If any item is invalid, nothing is created and the 400 names the problem, for example No affiliate with id '...', Invalid currency '...', Amount should be bigger than 0 or Missing mandatory property.
Amounts are not checked against the balance and no commissions are marked as paid. Overpaying, or paying in a currency the affiliate has not earned in, leaves a negative balance.
Each payment fires Payment created triggers (yours and the affiliate’s). If the affiliate’s primary payout method is a Trolley one (via Trolley), a Trolley payout batch is also created in the same request; Trolley errors come back as 400. Requires the Manage payouts team permission.