Ocuula|Playground
All engines
Direct DebitRecurring

Automatically pull money from a customer wallet on a schedule, then split it.

Rule configuration

Schedule recurring wallet pulls from a customer on a cron expression. Each successful pull is split instantly. Useful for subscriptions, loan repayments, and savings plans.

Customer ID (phone)

Amount (GHS)

Cron expression

%
# 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": "DIRECT_DEBIT",
    "customerId": "0241234567",
    "amountInPesewas": 100,
    "cronExpression": "0 9 * * 1",
    "splits": [
      {
        "recipientType": "MOMO",
        "destination": "0551234567",
        "value": 100
      }
    ]
  }
}'

# 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