Create Second Split
Payments
Create Second Split
Add an additional split to an existing transaction
POST
Create Second Split
Documentation Index
Fetch the complete documentation index at: https://docs.digitzs.com/llms.txt
Use this file to discover all available pages before exploring further.
Endpoint
Overview
Use this endpoint to perform a second split on an existing transaction. This allows you to distribute proceeds to a third merchant account after the original payment has been processed.Authentication
| Header | Value | Required |
|---|---|---|
x-api-key | Your API key from onboarding | Yes |
Authorization | Bearer {appToken} | Yes |
appId | Your application ID | Yes |
Content-Type | application/json | Yes |
Request Body
Must be
"payments"Container for payment attributes
Must be
"secondSplit"The payment ID of the original transaction to split from
Split configuration
Optional JSON string with additional metadata
Example Request
Response
Success Response (201 Created)
Code Examples
Important Notes
Available Balance: The second split amount cannot exceed the available balance after the first split and processing fees.
Best Practices
- Verify Parent Payment: Ensure the parent payment has settled before creating a second split
- Track All Splits: Maintain records of all split transactions for reconciliation
- Validate Amount: Check that sufficient funds remain for the second split
- Clear Documentation: Document the reason for each split in the miscData field
Next Steps
Get Payment Details
View complete payment details including all splits

