Ocuula|Playground
All engines
Tiered SplitVolume

Better splits as your 30-day volume grows.

Rule configuration

Define revenue tiers based on cumulative 30-day transaction volume. When a merchant's rolling revenue crosses a threshold, the active split configuration upgrades automatically. Ideal for volume-based fee schedules.

Tier 1

Revenue threshold (GHS)

%
%
Tier 2

Revenue 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": "TIERED_SPLIT",
    "tiers": [
      {
        "thresholdInPesewas": 0,
        "splits": [
          {
            "recipientType": "MOMO",
            "destination": "0241234567",
            "value": 70
          },
          {
            "recipientType": "MOMO",
            "destination": "0551234567",
            "value": 30
          }
        ]
      },
      {
        "thresholdInPesewas": 500,
        "splits": [
          {
            "recipientType": "MOMO",
            "destination": "0241234567",
            "value": 60
          },
          {
            "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
}'

Trigger split

Amount (GHS)