Preview a settlement rule
What a rule, or a draft of one, would pay on a payment of amount,
and which of the customer’s recent payments it would have fired on.
Nothing is created or paid.
splits lists the rule’s rows in order, each with what it would
send, computed exactly as an execution computes it: a percentage
rounds down, and the REMAINDER share takes what the others leave.
A share of 0 is not sent. ownerKeeps is what stays with the
customer. When the fixed and percentage shares add up to more than
amount, nothing would be paid, every row’s amount is 0 and
skipReason is AMOUNT_BELOW_RULE. Fees are not estimated: each
share is sent by its own quote, whose fees come off the share.
recentMatches are the customer’s completed bank and chain
deposits from the last 30 days that the rule’s currency and match
select, newest first, at most 20, whatever the customer’s other
rules would have done with them. Grid looks at the customer’s latest
200 such deposits. Use them to spot a pattern that selects payments
it should not.
Give either settlementRuleId or draft.
Authorizations
Body
Response
The preview