Splits
Create split
Publish a settlement split for this merchant, environment, and currency. Secret key. JSON body, not RSA-wrapped. Pass the returned splitCode on Create order.
/split/v1Same host as Create order (https://payment-api-service.dev.payinvert.com on test). Header api-key is the secret key. Auth also derives the environment from the key (same pattern as invoicing). Do not send splitCode on create — PayInvert generates it.
| Field | Notes |
|---|---|
splitName | Required. Your label for this plan. Max 100 characters. |
currency | Required. ISO currency from GET /payment/currencies that matches the order currency. |
rules | Required. Array of 1–25 beneficiary objects. Each rule is either a percentage or a fixed amount, never both. Owner remainder is added automatically and is not listed in responses. |
rules[].beneficiaryKind | From GET /payment/beneficiary-kinds. Today: 1 Internal wallet, 2 External bank account. |
rules[].percentage | Major percent. 40 is 40%. Greater than 0, at most 100, max two decimal places. Sum of percentages cannot exceed 100. |
rules[].amount | Fixed major units of the split currency. Greater than 0. |
rules[].businessId / walletId | Required for kind 1. Business must be yours or an aggregator-linked subsidiary. Send walletId when that business has more than one wallet in the currency. |
rules[].bankCode / accountNumber / accountName | Required for kind 2. bankCode from GET /payment/banks (no filter). After bank + 10-digit account number, resolve accountName with POST /name-enquiry/resolve (accountNumber, nipBankCode) — do not invent the name. Account is stored under your business. |
The merchant needs a 100% settlement plan for that currency, and a wallet in that currency. Inactive splits are ignored by Create order.
Internal shares cannot target arbitrary business IDs. External bank accounts are always owned by the configuring merchant. Updates publish a new immutable version — already-paid orders keep the version they reserved.
Flow: create split → keep splitCode → send it as payment.splitCode on Create order.