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.Name of the split
Type of split (flat amount or percentage)
Currency for the split (defaults to NGN)
Array of subaccount objects
subaccount(string): Subaccount code starting with ACCT_share(number): Share amount or percentage
Who bears transaction charges
Subaccount code of the bearer (when bearer_type is “subaccount”)
The split ID
The split name
The unique split code
The split type (flat or percentage)
The currency
Whether the split is active
The bearer type
Array of subaccount configurations with their shares
list
Lists transaction splits available on your integration.Filter by split name
Filter by active status
Field to sort by
Number of records per page (1-100, defaults to 50)
Page number (defaults to 1)
ISO datetime to filter from
ISO datetime to filter to
Pagination metadata including total, page, perPage, and pageCount
getSplitById
Gets details of a split on your integration.The ID of the split
The split ID
The split name
The unique split code
The split type
The currency
Whether the split is active
The bearer type
Array of subaccount configurations with details
Total number of subaccounts
update
Updates a split details on your integration.The ID of the split to update
The new name for the split
Whether the split should be active
The new bearer type
The new bearer subaccount code
addOrUpdateSubaccount
Adds a subaccount to a split or updates an existing subaccount’s share.The ID of the split
The subaccount code (starting with ACCT_)
The share amount or percentage for the subaccount
Updated split object with the new subaccount configuration
removeSubaccount
Removes a subaccount from a split.The ID of the split
The subaccount code to remove

