Pay fixed GHS amounts, remainder goes to a designated recipient.
Each recipient gets a fixed pesewa amount regardless of the total. Useful when you know exact amounts — e.g. GHS 100 to recipient A, GHS 140 to recipient B, and the rest to recipient C. No percentage math needed.
Remainder destination
# 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": "FIXED_FLAT_SPLIT",
"splits": [
{
"recipientType": "MOMO",
"destination": "0241234567",
"value": 100
},
{
"recipientType": "MOMO",
"destination": "0551234567",
"value": 100
}
],
"remainderDestination": {
"recipientType": "MOMO",
"destination": "0201234567"
}
}
}'
# 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": 300
}'Amount (GHS)