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.

POST/split/v1

Same 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.

FieldNotes
splitNameRequired. Your label for this plan. Max 100 characters.
currencyRequired. ISO currency from GET /payment/currencies that matches the order currency.
rulesRequired. 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[].beneficiaryKindFrom GET /payment/beneficiary-kinds. Today: 1 Internal wallet, 2 External bank account.
rules[].percentageMajor percent. 40 is 40%. Greater than 0, at most 100, max two decimal places. Sum of percentages cannot exceed 100.
rules[].amountFixed major units of the split currency. Greater than 0.
rules[].businessId / walletIdRequired 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 / accountNameRequired 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.
Prerequisites

The merchant needs a 100% settlement plan for that currency, and a wallet in that currency. Inactive splits are ignored by Create order.

Security

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.