Introduction
Rota gives your team a single API to provision and manage group-based rotational savings cycles — handling virtual account creation, contribution tracking, reconciliation, and automated settlement, so you don't have to build any of that yourself.
Each member of a savings group gets their own dedicated NUBAN (virtual account number) tied to their identity. Contributions flow in via standard bank transfer. Rota reconciles every kobo, manages the cycle state machine, and disburses to the right beneficiary on schedule.
Base URL
https://api.rota.dev/v1
Authentication
Rota uses API key authentication. Register your product to get your API key instantly — no waitlist, no manual approval.
Every write request (POST, PUT) requires an X-Idempotency-Key header — a unique UUID you generate per request. Duplicate keys within 24 hours return the original response instead of re-executing, protecting against double provisioning or duplicate payouts on network retries.
Keys are scoped per account. You cannot read or act on another account's cycles, participants, or ledger data.
Get an API Key
Register your product with a single POST request. Your API key is returned immediately.
// Request body
{
"productName": "your-product-name"
}
{
"apiKey": "rota_test_Ixxxxxxxxxxxxxxxx"
}
⚠ Keep your API key safe
Never expose rota_test_I... in client-side code, public repos, or frontend bundles. If a key is compromised, contact dev@rota.dev immediately for a replacement.
Authorization: Bearer rota_test_Ixxxxxxxxxxxxxxxx
X-Idempotency-Key: 550e8400-e29b-41d4-a716-446655440000
Content-Type: application/jsonCreate a Cycle
POSTProvisions a new savings cycle and automatically creates a dedicated NUBAN for each participant in a single call. The cycle starts in DRAFT state while accounts are being provisioned, then moves to ACTIVE once all NUBANs are ready.
If a single participant fails provisioning (e.g. invalid BVN), Rota does not fail the entire cycle. That participant is marked PENDING_PROVISION and an account.provision_failed webhook is fired — the rest of the cycle continues.
{
"cycle_name": "Tech Bros Weekly Contribution",
"contribution_amount": 50000.00,
"currency": "NGN",
"frequency": "WEEKLY",
"start_date": "2026-07-01T00:00:00Z",
"participants": [
{
"external_user_id": "usr_9981a",
"legal_name": "Tunde Alao",
"bvn": "22233344455",
"kyc_tier": "TIER_2"
},
{
"external_user_id": "usr_9981b",
"legal_name": "Chinedu Okafor",
"bvn": "22233344466",
"kyc_tier": "TIER_2"
}
]
}{
"cycle_id": "ajo_cyc_01H7X...",
"status": "ACTIVE",
"total_pool_value": 0.00,
"accounts": [
{
"external_user_id": "usr_9981a",
"allocated_nuban": "9920112233",
"bank_name": "Nomba Partner Bank",
"account_name": "PIGGY TUNDE AJO-01"
},
{
"external_user_id": "usr_9981b",
"allocated_nuban": "9920112244",
"bank_name": "Nomba Partner Bank",
"account_name": "PIGGY CHINEDU AJO-01"
}
]
}Get a Cycle
GETReturns the current state and metadata of a cycle, including its status, pool value, frequency, and next settlement date.
Cycle Status Values
DRAFT
Cycle has been created but account provisioning is still in progress. No contributions are accepted yet.
ACTIVE
All NUBANs are provisioned and the cycle is open. Members can begin making contributions.
CONTRIBUTING
The current contribution window is open and at least one member has paid. Pool is actively accumulating.
OVERDUE
The contribution deadline passed without full pool funding. A cycle.overdue webhook has been fired. The cycle is not closed — late contributions are still accepted.
SETTLING
The pool is fully funded and disbursement to the current rotation beneficiary is in progress. Rota runs a live balance requery before any transfer goes out.
COMPLETED
All rotation turns have been settled. Every NUBAN in the cycle has been deprovisioned and a final frozen statement has been generated for every participant.
{
"cycle_id": "ajo_cyc_01H7X...",
"cycle_name": "Tech Bros Weekly Contribution",
"status": "CONTRIBUTING",
"frequency": "WEEKLY",
"contribution_amount": 50000.00,
"total_pool_value": 50000.00,
"next_settlement_date": "2026-07-08T00:00:00Z",
"current_beneficiary": "usr_9981a"
}Update Participant
PUTUpdates a participant's legal name or KYC tier mid-cycle. The existing NUBAN is preserved — it is never reissued — so contribution history and the identity chain stay intact. The account name on the physical bank record is updated automatically to stay in sync.
{
"legal_name": "Tunde Alao-Bello",
"kyc_tier": "TIER_3"
}Participant Statement
GETReturns a participant's full contribution history within the cycle: each posted contribution with date, amount, and ledger reference; their current standing (paid-to-date vs. expected-to-date); and their position in the rotation order.
{
"external_user_id": "usr_9981a",
"cycle_id": "ajo_cyc_01H7X...",
"rotation_position": 1,
"paid_to_date": 50000.00,
"expected_to_date": 50000.00,
"status": "CURRENT",
"contributions": [
{
"date": "2026-07-01T10:22:00Z",
"amount": 50000.00,
"ledger_ref": "LDG_001aX..."
}
]
}Cycle Report
GETReturns pool-level transparency for the cycle: total contributed this period, per-member funding status, settlement history for completed rotations, and any quarantined funds linked to this cycle.
{
"cycle_id": "ajo_cyc_01H7X...",
"total_contributed_this_period": 50000.00,
"members": [
{
"external_user_id": "usr_9981a",
"status": "PAID"
},
{
"external_user_id": "usr_9981b",
"status": "PENDING"
}
],
"settlement_history": [],
"quarantined_funds": 0.00
}Dashboard Summary
GETAggregates across all your cycles for the given date range. Returns total value in flight, cycle count by state, and upcoming settlement dates — designed to power your internal dashboard in a single call.
{
"total_value_in_flight": 250000.00,
"cycles_by_status": {
"ACTIVE": 2,
"CONTRIBUTING": 3,
"SETTLING": 1,
"COMPLETED": 5
},
"upcoming_settlements": [
{
"cycle_id": "ajo_cyc_01H7X...",
"settlement_date": "2026-07-08T00:00:00Z",
"estimated_pool": 100000.00
}
]
}Webhooks
Rota sends signed webhook events to your configured endpoint. Validate every inbound payload against the X-Rota-Signature header using your HMAC secret before processing. Rota retries delivery on failure — use the event_id field to deduplicate.
### Manual trigger
To manually trigger a reconciliation sweep:
``
POST /v1/webhooks/event-logs/sync
``
| Event | Description |
|---|---|
| payment.received | Inbound transfer posted to a member NUBAN |
| settlement.completed | Pool disbursed to the rotation beneficiary |
| settlement.verification_failed | Balance mismatch detected before disbursement — cycle held for review |
| payment.quarantined | Funds landed on an inactive or closed cycle |
| account.provision_failed | BVN or KYC issue prevented NUBAN creation for a participant |
| cycle.overdue | Contribution deadline passed without full pool funding |
Quarantine & Misdirected Funds
If an inbound payment lands on a NUBAN belonging to a closed, completed, or suspended cycle, Rota does not bounce or silently absorb it. The funds are captured in a segregated quarantine ledger, completely separate from any active cycle pool.
You are alerted immediately via a payment.quarantined webhook containing the amount, the NUBAN it hit, and the reason it was quarantined. From there you choose how to resolve it:
Resolve a quarantined payment
``
POST /v1/quarantine/{id}/resolve
``
Quarantined funds unresolved after 14 days trigger an escalation webhook automatically.
action can be REFUND (returns funds to the sender's originating account) or REASSIGN (moves funds to an active cycle participant — requires target_cycle_id and target_user_id).
{
"action": "REFUND",
"reason": "Cycle already completed"
}Errors
All errors return a consistent JSON shape:
| Status | Code | Meaning |
|---|---|---|
| 400 | bad_request | Malformed request body |
| 401 | unauthorized | Missing or invalid API key |
| 409 | idempotency_conflict | Idempotency key reused with a different request body |
| 422 | validation_error | Request is well-formed but fails validation |
| 500 | server_error | Something went wrong on Rota's end |
{
"error": {
"code": "validation_error",
"message": "bvn must be exactly 11 digits",
"field": "participants[0].bvn"
}
}