Hold funds until a threshold, then split.
Accumulates inbound payments until a threshold is reached, then triggers a percentage split of the pooled amount. Ideal for escrow-style flows, milestone billing, and group savings.
Threshold (GHS)
# 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": "MILESTONE_WATERFALL",
"thresholdInPesewas": 500,
"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)