Skip to main content
POST
Preview a settlement rule

Authorizations

Authorization
string
header
required

API token authentication using format <api token id>:<api client secret>

Body

application/json
customerId
string
required

The customer whose payments the rule splits.

Example:

"Customer:019542f5-b3e7-1d02-0000-000000000001"

amount
integer<int64>
required

A payment to split, in the smallest unit of the rule's currency.

Required range: 1 <= x <= 9000000000000000
Example:

1000000

settlementRuleId
string

A rule of the customer to preview. Set this or draft.

Example:

"SettlementRule:019542f5-b3e7-1d02-0000-000000000001"

draft
object

A rule as it would be created. Only the fields that decide what it pays and what it matches are needed; a priority is not.

Response

The preview

currency
string
required
Example:

"USD"

amount
integer<int64>
required

The payment previewed.

Example:

1000000

splits
object[]
required

Every row of the rule, in row order.

ownerKeeps
integer<int64>
required

What stays with the customer.

Example:

450000

recentMatches
object[]
required
skipReason
enum<string>

Why an execution paid nothing.

Available options:
RULE_PAUSED,
INCOMING_PAYMENT_RETURNED,
AMOUNT_BELOW_RULE,
LIMIT_EXCEEDED,
CANCELLED,
CREATOR_REVOKED