Overview
The Split class allows you to:- Create transaction splits with multiple subaccounts
- List and retrieve split configurations
- Update split settings
- Add or remove subaccounts from splits
Methods
create
Creates a split on your integration.string
required
Name of the split
'flat' | 'percentage'
required
Type of split (flat amount or percentage)
'NGN' | 'USD' | 'GHS' | 'ZAR' | 'KES' | 'XOF'
required
Currency for the split (defaults to NGN)
array
required
Array of subaccount objects
subaccount(string): Subaccount code starting with ACCT_share(number): Share amount or percentage
'subaccount' | 'account' | 'all-proportional' | 'all'
required
Who bears transaction charges
string
required
Subaccount code of the bearer (when bearer_type is “subaccount”)
object
list
Lists transaction splits available on your integration.string
required
Filter by split name
boolean
required
Filter by active status
string
Field to sort by
number
Number of records per page (1-100, defaults to 50)
number
Page number (defaults to 1)
string
ISO datetime to filter from
string
ISO datetime to filter to
array
object
Pagination metadata including total, page, perPage, and pageCount
getSplitById
Gets details of a split on your integration.string
required
The ID of the split
object
update
Updates a split details on your integration.string
required
The ID of the split to update
string
required
The new name for the split
boolean
required
Whether the split should be active
'subaccount' | 'account' | 'all-proportional' | 'all'
The new bearer type
string
The new bearer subaccount code
addOrUpdateSubaccount
Adds a subaccount to a split or updates an existing subaccount’s share.string
required
The ID of the split
string
required
The subaccount code (starting with ACCT_)
The share amount or percentage for the subaccount
object
Updated split object with the new subaccount configuration
removeSubaccount
Removes a subaccount from a split.string
required
The ID of the split
string
required
The subaccount code to remove

