How Splits Work
When a payment with splits is confirmed, ZendFi automatically distributes the funds to each recipient’s wallet according to the split configuration.Create a Payment with Splits
Include asplit_recipients array when creating a payment:
Split Types
- Percentage
- Fixed Amount
Each recipient gets a percentage of the total payment. All percentages must sum to 100.
Split Recipient Configuration
Each recipient in thesplit_recipients array accepts:
If you provide a single split recipient and omit both
percentage and fixed_amount_usd, ZendFi defaults that recipient to 100%.
Retrieve Splits
Get all splits for a payment
Split Statuses
Marketplace Example
A complete marketplace flow where sellers list products and the platform takes a commission:Webhook Events for Splits
When splits are processed, you receive webhook events. Use thehandlers map:
Validation Rules
- Percentage splits must sum to exactly 100%.
- Fixed amount splits must not exceed the payment amount.
- You can mix percentage and fixed amount splits, but the fixed amounts are deducted first, and the percentage splits are applied to the remainder.
- Each payment can have up to 10 split recipients.
- All wallet addresses must be valid Solana addresses.
- Splits cannot be modified after payment creation.