Create a split
/v1/splitsCreate a rule and reference its split_code on charge initialize. subaccounts must contain 1–50 active members, each owned by you. For type=percentage, shares are 0–100 and must sum to ≤ 100 (the merchant keeps the remainder). For type=flat, shares are kobo amounts; the merchant keeps amount minus their sum.
Body parameters
namestringrequiredInternal label (1–200 chars).
typestringrequiredAllocation mode.
Allowed: 'percentage''flat'
bearer_typestringrequiredWho absorbs TagPay's processing fee.
Allowed: 'account''subaccount''all-proportional'
currencystringoptionalNGN only at this time. Defaults to NGN.
subaccountsarray<object>required1–50 members. Each subaccount must be an active ACCT_… you own.
subaccountstringrequiredSubaccount code (ACCT_…).
sharenumberrequiredPercentage 0–100 if parent type=percentage; kobo amount if type=flat. Must be > 0.
Response
201split_codestringTagPay-assigned code (`SPL_…`). Reference this on charge initialize to apply the rule.
namestringInternal label.
typeenum<'percentage' | 'flat'>`percentage` — each `share` is a percentage of the charge amount (sum ≤ 100). `flat` — each `share` is a fixed kobo amount.
currencystringAlways `NGN`.
bearer_typeenum<'account' | 'subaccount' | 'all-proportional'>Who absorbs TagPay's processing fee. `account` — merchant absorbs. `subaccount` — subaccounts absorb pro-rata. `all-proportional` — fee comes off the top before splitting.
activebooleanWhether the rule is currently usable on new charges. Inactive rules are rejected at charge initialize.
subaccountsarray<object>Members of the split. Order is preserved.
subaccountstringSubaccount code (`ACCT_…`).
sharenumberPercentage (0–100) if `type=percentage`; kobo amount if `type=flat`.
created_atstringISO-8601 creation timestamp.
updated_atstringISO-8601 last-update timestamp.
Errors
VALIDATION_ERROR400Missing/invalid field, share ≤ 0, or sum of percentage shares exceeds 100.UNSUPPORTED_CURRENCY400Only `NGN` splits are supported at this time.NOT_FOUND404One or more `subaccount` codes don't exist or aren't owned by you.SUBACCOUNT_INACTIVE400One or more referenced subaccounts are inactive.INVALID_KEY401Secret key missing or invalid.