Skip to main content
The Split class provides methods for creating and managing transaction splits on your integration. Splits allow you to automatically distribute payments across multiple subaccounts.

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
number
The split ID
string
The split name
string
The unique split code
string
The split type (flat or percentage)
string
The currency
boolean
Whether the split is active
string
The bearer type
array
Array of subaccount configurations with their shares
Example:

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
Array of split objects
number
The split ID
string
The split name
string
The unique split code
string
The split type
boolean
Whether the split is active
number
Total number of subaccounts in the split
object
Pagination metadata including total, page, perPage, and pageCount
Example:

getSplitById

Gets details of a split on your integration.
string
required
The ID of the split
object
number
The split ID
string
The split name
string
The unique split code
string
The split type
string
The currency
boolean
Whether the split is active
string
The bearer type
array
Array of subaccount configurations with details
number
Total number of subaccounts
Example:

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
Example:

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_)
number
required
The share amount or percentage for the subaccount
object
Updated split object with the new subaccount configuration
Example:

removeSubaccount

Removes a subaccount from a split.
string
required
The ID of the split
string
required
The subaccount code to remove
Example: