Divide any payment by percentage instantly.
Each recipient gets a fixed % of every inbound payment. Splits must sum to 100%. The most common engine for revenue sharing, commissions, and marketplace payouts.
# 1. Create rule
curl -X POST https://ocuula.com/api/v1/rules \
-H "Authorization: Bearer <apiKey>" \
-H "Content-Type: application/json" \
-d '{
"merchantId": "<merchantId>",
"name": "My Rule",
"configuration": {
"ruleType": "PERCENTAGE_SPLIT",
"splits": [
{
"recipientName": "Sarah Miller",
"recipientType": "MOMO",
"destination": "0241234567",
"value": 60
},
{
"recipientName": "Brook Miller",
"recipientType": "MOMO",
"destination": "0551234567",
"value": 40
}
]
}
}'
# 2. Trigger split
curl -X POST https://ocuula.com/api/v1/split \
-H "Authorization: Bearer <apiKey>" \
-H "Content-Type: application/json" \
-d '{
"routingRuleId": "<ruleId>",
"amountInPesewas": 100
}'Amount (GHS)