RADOK

Yards and split settlement

Split one resident payment across purses, each settled to its own bank the next business day.

Contents

What a yard is

A yard is one estate, school, or community you collect for. A purse is one charge inside it — Security, Levy, Waste — and each purse has its own verified bank account. When a resident pays, the payment is split across purses, and each purse’s share goes to that purse’s bank by transfer on the next business day.

  1. You create a yard and add a purse for each charge, with the bank account it pays into.
  2. For each resident payment you mint a virtual account with a split: how much of the total belongs to each purse.
  3. The resident transfers the total from any Nigerian bank.
  4. Every share is now in flight: owed to its purse’s bank and dated for the next business day. You receive collection.success.
  5. On that day each purse’s bank receives one transfer. When the bank accepts it the money is settled and you receive purse.settlement.succeeded.

Yard money never enters your wallet

Money paid into a yard is not credited to your main balance and cannot be withdrawn with a payout. It only ever leaves to a purse’s bank account. Your wallet balance, the ledger behind it, and payout.* events are unaffected by yards.

What comes off each share

Two charges, both locked when the account is created, so net is exactly what reaches the purse’s bank:
  • A share of the collection fee. The normal collection fee is quoted once on the whole payment — so your plan’s cap applies once — and shared across the purses in proportion to their gross. The shares always add up to the fee exactly.
  • The transfer fee for settling the share, plus VAT on it. It is your plan’s payout fee for the share’s gross: ₦10, ₦25 or ₦50 on the Standard plan.
Each share must be at least ₦100, in test and live alike. A yard split quotes real fees in test, and those fees sit on top of the shares rather than reducing them.

What an API key can and cannot do

A secret key can create a yard and add a purse. Changing or closing a purse, and renaming or closing a yard, stay in the dashboard.

Access

FieldTypeDescription
Read yards, purses, paymentsAPI key or dashboardScope virtual_accounts:read. Estate software reads a yard to discover the purse ids it puts in a split.
Create a yard, add a purse, allocate held moneyAPI key or dashboardScope virtual_accounts:write. Adding a purse runs name enquiry; the account name in the response is the bank’s, not one you send. A dashboard session also needs 2FA and a step-up for purse.add.
Change or close a purseDashboard onlyNeeds 2FA enrolment and a step-up for purse.update. A key cannot re-point or retire a purse it created.
Rename or close a yardDashboard onlyClosing is one-way.

A key can add a purse, not move one

Creating a purse chooses a new bank account, so protect the secret key the way you protect a payout. Changing the bank on a purse that already exists, or closing it, still requires a signed-in dashboard session and a step-up. A leaked key cannot redirect a purse you already created.

Setting up a yard

  1. Go to Money in → Yards and create a yard, or create one with POST /v1/yards.
  2. Add a purse for each charge, in the dashboard or with POST /v1/yards/{yardId}/purses. The response includes the account name the bank returned.
  3. Copy the yard id (yard_…) into your integration. Your software reads the purse ids from GET /v1/yards/{yardId}.

Yards and purses belong to one environment. A test yard and a live yard are separate, so a test key never sees live purses and the reverse.

Integrating from estate software

The whole integration is four calls and three webhook handlers. Everything below uses an ordinary secret key with virtual_accounts:read and virtual_accounts:write.

1. Discover the purse ids

Read the yard once at start-up, or when a manager changes purses in the dashboard, and map your own charge types to purse ids. Only active purses can take new money.

curl
curl https://api.radokpay.com/v1/yards/yard_4c9e2a7b1f3d8056 \
  -H "Authorization: Bearer $RADOK_SECRET_KEY"

2. Mint a split virtual account

One account per resident payment. Send the purse amounts and your own fee. Radok quotes its fee and returns collection.amount, which is what the resident transfers. The split is locked from this moment — it can never be edited.

curl
curl -X POST https://api.radokpay.com/v1/virtual-accounts \
  -H "Authorization: Bearer $RADOK_SECRET_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "customerEmail": "aisha@example.com",
    "customerName": "Aisha Bello",
    "expiresInMinutes": 60,
    "yardId": "yard_4c9e2a7b1f3d8056",
    "merchantFee": { "value": 100000, "currency": "NGN" },
    "split": [
      { "purseId": "purse_7a1d3e9c5b2f4068", "amount": { "value": 4000000, "currency": "NGN" } },
      { "purseId": "purse_2e8b6f1a9c4d7053", "amount": { "value": 6000000, "currency": "NGN" } }
    ]
  }'

Store collection.reference against the resident’s bill. Every later event refers to the payment by that reference.

3. Show the account number

Show the resident bankName, accountNumber, accountName, the exact total, and when the account expires. Show the breakdown too — residents trust a bill they can read — but they make one transfer for the total, not one per purse.

4. Handle the webhooks

Events

FieldTypeDescription
collection.successresident paidMark the bill paid and send the receipt. The money is in flight to the purse banks — it has not reached them yet.
purse.settlement.succeededbank acceptedMark every line listed in the event as settled. One event covers every share sent to that purse's account that day.
purse.settlement.failedwill retryShow the failure to whoever manages the purse. Radok retries automatically. Do not issue the resident a new account — they have already paid.
yard.unallocatedneeds a decisionMoney arrived that cannot follow its split (wrong amount or too late). Tell the estate manager; do not guess a split.
collection.failedunpaidThe account expired unpaid. Issue a new one if the resident still owes.

Full payloads are in the event reference. To exercise all of this in test mode, see Testing.

What happens when money arrives

The account expects the dues plus both fees. The purse amounts are paid in full whenever the transfer covers the dues. Fees come out of what was paid on top, Radok first.

Outcome

FieldTypeDescription
The priced totalsucceededEvery purse goes in flight for its named amount. Radok’s fee is taken, the transfer cost comes out of the estate fee, and the rest of that fee is credited to the main wallet. collection.success fires with shortfall of zero.
More than the priced totalsucceededSame as the priced total. Only the extra above it is held as unallocated, and yard.unallocated fires for that extra. The estate fee does not grow, and the extra is not charged a second fee.
The dues, but not the full feessucceededThe purses are still paid in full. Radok’s fee is taken first from what is left, then the transfer cost, and the main wallet gets only what remains. collection.success carries expectedAmount, receivedAmount, shortfall, and fees. Nothing is held.
Less than the duesunderpaidThe collection becomes underpaid, its shares are cancelled, and the whole amount is held as unallocated. yard.unallocated fires. The account closes, so the resident cannot top the same number up.
After the account expiredlate_paymentThe collection becomes late_payment and the amount is held as unallocated. yard.unallocated fires.
Nothing, and it expiresexpiredcollection.failed fires as for any virtual account. The shares are cancelled.

Unallocated money waits for a person

Money that cannot follow its split is never guessed into a purse. It stays on the yard until someone allocates it — in the dashboard, or with the allocate endpoint. It is still yard money: it cannot reach your wallet either.

When purses get paid

Settlement runs on Lagos time (Africa/Lagos). A payment confirmed before the daily cutoff — 15:00 by default — counts as received that day. A payment confirmed at or after the cutoff counts as received the next calendar day. The money settles on the next business day after the day it counts as received. Weekends and Nigerian public holidays are skipped; Radok maintains the holiday list and the cutoff.

Examples

FieldTypeDescription
Thursday 10:00→ FridayReceived Thursday; Friday is the next business day.
Thursday 16:00→ MondayAfter the cutoff, so it counts as Friday; the next business day after Friday is Monday.
Friday, any time→ MondayReceived Friday or Saturday; either way the next business day is Monday.
  • One transfer per purse per day. Every share due to the same purse account on the same day goes as one combined bank transfer. The purse.settlement.succeeded event lists every payment it covered.
  • Failures retry on their own. A failed transfer is tried again after 15 minutes, 1 hour, and 4 hours, then at 09:00 on each following business day. The money stays in flight the whole time. Nobody — including you — can retry it by hand or send it somewhere else.
  • A bank change affects new money only. Money already in flight keeps the account it was funded with, even if the purse’s bank is changed before it settles.

Objects

Every amount is { "value": integer, "currency": "NGN" } in kobo. Ids are the public references: yard_…, purse_…, and the collection reference col_… for a payment.

Yard

Yard

FieldTypeDescription
idstringPrefixed yard_.
namestringUp to 80 characters, one line.
descriptionstringUp to 200 characters, one line. Empty string when not set.
statusstringactive or closed.
purseCountintegerHow many purses the yard has, active and closed.
collectedmoneyGross residents have paid into this yard, including unallocated money.
inFlightmoneyNet still owed to purse banks: waiting for its date, being sent, or being retried after a failure.
settledmoneyNet the purse banks have accepted.
unallocatedmoneyGross waiting for someone to allocate it.
createdAtstringISO 8601.
pursesPurse[]Only on a single yard (create, retrieve). Active purses first, then closed.

Purse

Purse

FieldTypeDescription
idstringPrefixed purse_. This is the id you put in a split.
yardIdstringThe yard it belongs to.
namestringThe charge, such as Security. Not the account holder.
statusstringactive or closed. A closed purse takes no new splits.
destinationobjectbankCode, bankName, accountNumber, accountName. The name is the one the bank returned at verification — Radok never accepts an account name from the client.
inFlightmoneyNet owed to this purse's bank and not yet accepted.
settledmoneyNet this purse's bank has accepted.
createdAtstringISO 8601.

Retrieving one purse also returns yardName and upcoming: the next transfer, or null when nothing is waiting.

upcoming

FieldTypeDescription
kind: scheduledobjectnet, bankName, accountNumber, and date — ISO 8601, the start of that business day in Lagos.
kind: failedobjectnet, failureReason, and nextAttemptAt. The money is still in flight and will be retried.

Split line

One purse’s share of one payment. Returned on a split virtual account, in a collection’s yard block, and in collection.success.

Split line

FieldTypeDescription
purseIdstringThe purse.
purseNamestringThe purse's name at the time.
grossmoneyThe amount you put in the split.
feemoneyThis line's share of the collection fee.
settlementFeemoneyThe transfer fee for settling this share: your payout fee for its gross.
settlementVatmoneyVAT on settlementFee.
netmoneygross − fee − settlementFee − settlementVat. Exactly what the purse’s bank receives.
statusstringawaiting_payment, in_flight, sending, settled, failed (being retried), or cancelled (the payment was short or never came).

List yards

GET/v1/yards
Auth
Secret key or dashboard session
Scope
virtual_accounts:read

Query

FieldTypeDescription
limitinteger1–100. Defaults to 20.
cursorstringFrom meta.nextCursor.
environmentstringtest or live. Required for dashboard sessions only — an API key already carries its environment.
curl
curl "https://api.radokpay.com/v1/yards?limit=20" \
  -H "Authorization: Bearer $RADOK_SECRET_KEY"
200 OK
{
  "data": [
    {
      "id": "yard_4c9e2a7b1f3d8056",
      "name": "Palm Grove Estate",
      "description": "Lekki Phase 1 residents",
      "status": "active",
      "purseCount": 2,
      "collected":   { "value": 30000000, "currency": "NGN" },
      "inFlight":    { "value": 9971937,  "currency": "NGN" },
      "settled":     { "value": 19943874, "currency": "NGN" },
      "unallocated": { "value": 0,        "currency": "NGN" },
      "createdAt": "2026-10-01T09:00:00.000Z"
    }
  ],
  "meta": { "nextCursor": null, "hasMore": false }
}

Create a yard

POST/v1/yards
Auth
Secret key or dashboard session
Scope
virtual_accounts:write

A new yard has no purses. Add them with POST /v1/yards/{yardId}/purses.

Body

FieldTypeDescription
namerequiredstring1–80 characters, one line.
descriptionstringUp to 200 characters, one line.
curl
curl -X POST https://api.radokpay.com/v1/yards \
  -H "Authorization: Bearer $RADOK_SECRET_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "name": "Palm Grove Estate", "description": "Lekki Phase 1 residents" }'
201 Created
{
  "data": {
    "id": "yard_4c9e2a7b1f3d8056",
    "name": "Palm Grove Estate",
    "description": "Lekki Phase 1 residents",
    "status": "active",
    "purseCount": 0,
    "collected":   { "value": 0, "currency": "NGN" },
    "inFlight":    { "value": 0, "currency": "NGN" },
    "settled":     { "value": 0, "currency": "NGN" },
    "unallocated": { "value": 0, "currency": "NGN" },
    "createdAt": "2026-10-01T09:00:00.000Z",
    "purses": []
  }
}

Retrieve a yard

GET/v1/yards/{yardId}
Auth
Secret key or dashboard session
Scope
virtual_accounts:read

Returns the yard's figures and every purse. This is how your software discovers purse ids.

curl
curl https://api.radokpay.com/v1/yards/yard_4c9e2a7b1f3d8056 \
  -H "Authorization: Bearer $RADOK_SECRET_KEY"
200 OK
{
  "data": {
    "id": "yard_4c9e2a7b1f3d8056",
    "name": "Palm Grove Estate",
    "description": "Lekki Phase 1 residents",
    "status": "active",
    "purseCount": 2,
    "collected":   { "value": 30000000, "currency": "NGN" },
    "inFlight":    { "value": 9971937,  "currency": "NGN" },
    "settled":     { "value": 19943874, "currency": "NGN" },
    "unallocated": { "value": 0,        "currency": "NGN" },
    "createdAt": "2026-10-01T09:00:00.000Z",
    "purses": [
      {
        "id": "purse_7a1d3e9c5b2f4068",
        "yardId": "yard_4c9e2a7b1f3d8056",
        "name": "Security",
        "status": "active",
        "destination": {
          "bankCode": "058",
          "bankName": "Guaranty Trust Bank",
          "accountNumber": "0123456789",
          "accountName": "PALM GROVE SECURITY SERVICES"
        },
        "inFlight": { "value": 3989312, "currency": "NGN" },
        "settled":  { "value": 7978624, "currency": "NGN" },
        "createdAt": "2026-10-01T09:05:00.000Z"
      },
      {
        "id": "purse_2e8b6f1a9c4d7053",
        "yardId": "yard_4c9e2a7b1f3d8056",
        "name": "Levy",
        "status": "active",
        "destination": {
          "bankCode": "011",
          "bankName": "First Bank of Nigeria",
          "accountNumber": "3012345678",
          "accountName": "PALM GROVE RESIDENTS ASSOCIATION"
        },
        "inFlight": { "value": 5982625,  "currency": "NGN" },
        "settled":  { "value": 11965250, "currency": "NGN" },
        "createdAt": "2026-10-01T09:06:00.000Z"
      }
    ]
  }
}

Rename or close a yard

PATCH/v1/yards/{yardId}
Auth
Dashboard session
Scope
virtual_accounts:write

Dashboard only. Listed for completeness — this is a dashboard action, not an integration point.

Body

FieldTypeDescription
namestring1–80 characters, one line.
descriptionstringUp to 200 characters, one line.
statusstringOnly closed. Closing is one-way: a closed yard takes no new split accounts and its details can no longer change. Money already in flight still settles, and unallocated money can still be allocated.

Purses

Add a purse

POST/v1/yards/{yardId}/purses
Auth
Secret key or dashboard session
Scope
virtual_accounts:write

A dashboard session also needs 2FA enrolment and a step-up token for purse.add in X-Step-Up-Token. An API key does not.

Body

FieldTypeDescription
namerequiredstringThe charge, up to 60 characters. Not the account holder.
bankCoderequiredstringFrom GET /v1/banks for the same environment.
accountNumberrequiredstringThe 10-digit NUBAN.

There is no accountName field. Radok runs name enquiry against the bank and stores the name the bank returns. One bank account can receive only one active purse per yard.

Retrieve a purse

GET/v1/yards/{yardId}/purses/{purseId}
Auth
Secret key or dashboard session
Scope
virtual_accounts:read
curl
curl https://api.radokpay.com/v1/yards/yard_4c9e2a7b1f3d8056/purses/purse_7a1d3e9c5b2f4068 \
  -H "Authorization: Bearer $RADOK_SECRET_KEY"
200 OK
{
  "data": {
    "id": "purse_7a1d3e9c5b2f4068",
    "yardId": "yard_4c9e2a7b1f3d8056",
    "yardName": "Palm Grove Estate",
    "name": "Security",
    "status": "active",
    "destination": {
      "bankCode": "058",
      "bankName": "Guaranty Trust Bank",
      "accountNumber": "0123456789",
      "accountName": "PALM GROVE SECURITY SERVICES"
    },
    "inFlight": { "value": 3989312, "currency": "NGN" },
    "settled":  { "value": 7978624, "currency": "NGN" },
    "createdAt": "2026-10-01T09:05:00.000Z",
    "upcoming": {
      "kind": "scheduled",
      "net": { "value": 3989312, "currency": "NGN" },
      "bankName": "Guaranty Trust Bank",
      "accountNumber": "0123456789",
      "date": "2026-10-22T23:00:00.000Z"
    }
  }
}

date is midnight at the start of the Lagos business day, expressed in UTC — so 2026-10-22T23:00:00.000Z is Friday 23 October in Lagos.

Rename, re-point, or close a purse

PATCH/v1/yards/{yardId}/purses/{purseId}
Auth
Dashboard session
Scope
virtual_accounts:write

Dashboard only. Requires 2FA enrolment and a step-up token for the purse.update action in X-Step-Up-Token.

Body

FieldTypeDescription
namestringUp to 60 characters.
bankCode + accountNumberstringSend both together. The new account is verified by name enquiry and receives new settlements only — money already in flight keeps the account it was funded with.
statusstringOnly closed. A closed purse takes no new splits; money already in flight to it still settles.

List a purse's lines

GET/v1/yards/{yardId}/purses/{purseId}/lines
Auth
Secret key or dashboard session
Scope
virtual_accounts:read

Paginated with limit and cursor. One row per payment that included this purse.

200 OK
{
  "data": [
    {
      "id": "6716f2a94d7b3e0812345678",
      "collectionReference": "col_8b3e1f7a2c9d4065",
      "residentName": "Aisha Bello",
      "residentEmail": "aisha@example.com",
      "gross": { "value": 4000000, "currency": "NGN" },
      "fee":           { "value": 8000, "currency": "NGN" },
      "settlementFee": { "value": 2500, "currency": "NGN" },
      "settlementVat": { "value": 188, "currency": "NGN" },
      "net":           { "value": 3989312, "currency": "NGN" },
      "status": "in_flight",
      "settlesAt": "2026-10-22T23:00:00.000Z",
      "settledAt": null
    }
  ],
  "meta": { "nextCursor": null, "hasMore": false }
}

settlesAt is the business day the line is due, and settledAt is when the bank accepted the transfer that carried it.

List a yard's payments

GET/v1/yards/{yardId}/payments
Auth
Secret key or dashboard session
Scope
virtual_accounts:read

Paginated with limit and cursor. One row per split virtual account minted on the yard.

200 OK
{
  "data": [
    {
      "id": "col_8b3e1f7a2c9d4065",
      "collectionId": "col_8b3e1f7a2c9d4065",
      "residentName": "Aisha Bello",
      "residentEmail": "aisha@example.com",
      "total": { "value": 10000000, "currency": "NGN" },
      "splits": [
        { "purseId": "purse_7a1d3e9c5b2f4068", "purseName": "Security", "gross": { "value": 4000000, "currency": "NGN" } },
        { "purseId": "purse_2e8b6f1a9c4d7053", "purseName": "Levy",     "gross": { "value": 6000000, "currency": "NGN" } }
      ],
      "status": "in_flight",
      "collectionStatus": "succeeded",
      "createdAt": "2026-10-22T08:58:00.000Z",
      "paidAt": "2026-10-22T09:00:00.000Z"
    }
  ],
  "meta": { "nextCursor": null, "hasMore": false }
}

Fields

FieldTypeDescription
id / collectionIdstringBoth are the collection reference.
statusstringThe least-advanced of the payment’s lines, so a failure is never hidden by a line that settled: awaiting_payment, in_flight, sending, settled, failed, or unallocated — every line was cancelled because the money did not match the split, so it is waiting under Unallocated money instead.
collectionStatusstringThe collection’s own status, such as succeeded, underpaid, or late_payment.

Unallocated money

List unallocated payments

GET/v1/yards/{yardId}/unallocated
Auth
Secret key or dashboard session
Scope
virtual_accounts:read

Paginated with limit and cursor. Only money still waiting for a decision.

200 OK
{
  "data": [
    {
      "id": "col_5f1c8a3e7b2d9064",
      "collectionReference": "col_5f1c8a3e7b2d9064",
      "amount": { "value": 7500000, "currency": "NGN" },
      "fee":    { "value": 20000,   "currency": "NGN" },
      "net":    { "value": 7480000, "currency": "NGN" },
      "accountNumber": "9901234567",
      "arrivedAt": "2026-10-22T10:14:00.000Z"
    }
  ],
  "meta": { "nextCursor": null, "hasMore": false }
}

id is the collection reference the money arrived on, and accountNumber is the virtual account the resident paid into — the two things a manager needs to work out who paid and what for.

Allocate unallocated money

POST/v1/yards/{yardId}/unallocated/{reference}/allocate
Auth
Secret key or dashboard session
Scope
virtual_accounts:write

Allocation can only choose between active purses on this yard, so it is allowed with an API key.

Body

FieldTypeDescription
splitrequiredarray1–20 lines of { "purseId": string, "amount": money }. The amounts must add up to exactly the unallocated amount (the gross that arrived), and every purse must be active.
curl
curl -X POST https://api.radokpay.com/v1/yards/yard_4c9e2a7b1f3d8056/unallocated/col_5f1c8a3e7b2d9064/allocate \
  -H "Authorization: Bearer $RADOK_SECRET_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "split": [
      { "purseId": "purse_7a1d3e9c5b2f4068", "amount": { "value": 3000000, "currency": "NGN" } },
      { "purseId": "purse_2e8b6f1a9c4d7053", "amount": { "value": 4500000, "currency": "NGN" } }
    ]
  }'
200 OK
{
  "data": {
    "yard": {
      "id": "yard_4c9e2a7b1f3d8056",
      "name": "Palm Grove Estate",
      "status": "active",
      "inFlight":    { "value": 17446561, "currency": "NGN" },
      "unallocated": { "value": 0,        "currency": "NGN" },
      "purses": [ … ]
    },
    "split": [
      {
        "purseId": "purse_7a1d3e9c5b2f4068",
        "purseName": "Security",
        "gross": { "value": 3000000, "currency": "NGN" },
        "fee":           { "value": 8000, "currency": "NGN" },
        "settlementFee": { "value": 2500, "currency": "NGN" },
        "settlementVat": { "value": 188, "currency": "NGN" },
        "net":           { "value": 2989312, "currency": "NGN" },
        "status": "in_flight"
      },
      {
        "purseId": "purse_2e8b6f1a9c4d7053",
        "purseName": "Levy",
        "gross": { "value": 4500000, "currency": "NGN" },
        "fee":           { "value": 12000, "currency": "NGN" },
        "settlementFee": { "value": 2500, "currency": "NGN" },
        "settlementVat": { "value": 188, "currency": "NGN" },
        "net":           { "value": 4485312, "currency": "NGN" },
        "status": "in_flight"
      }
    ]
  }
}

The response carries the full yard, shaped as in Retrieve a yard (trimmed above), and the new lines. The collection fee already taken when the money arrived is shared across the lines in proportion to their gross, and each line pays its own transfer fee and VAT, as at account creation. Allocated money is dated for the next business day counted from the moment you allocate, not from when it arrived. A second allocation of the same reference returns 409 ALREADY_ALLOCATED.

Errors

Branch on error.code. Field problems come back in error.details, keyed by the field path.

Error codes

FieldTypeDescription
YARD_NOT_FOUND404No yard with that id in this environment — including a live yard asked for with a test key.
PURSE_NOT_FOUND404No purse with that id on this yard.
UNALLOCATED_PAYMENT_NOT_FOUND404No unallocated payment with that reference on this yard.
YARD_CLOSED409The yard is closed: it takes no new split accounts or purses, and its details cannot change.
PURSE_CLOSED409The purse is closed, so its name and bank can no longer change.
PURSE_ACCOUNT_ALREADY_EXISTS409That bank account already receives another active purse on this yard.
ALREADY_ALLOCATED409This unallocated payment has already been allocated.
ACCOUNT_VERIFICATION_FAILED422The bank could not verify the account, or returned no name for it.
VALIDATION_ERROR422A field failed validation — including a bankCode unknown in this environment, a split that names a purse twice, or yardId sent without split.
SPLIT_TOTAL_MISMATCH422The split does not add up to the unallocated amount when allocating. details.split gives both totals. A yard mint has no separate amount to match: the resident total is computed from the split and the fees.
MERCHANT_FEE_TOO_SMALL422The estate fee does not cover the transfer fees and VAT for these purses. details.merchantFee says the minimum, in kobo.
SPLIT_LINE_TOO_SMALL422Allocating held money: a share would leave nothing to settle after its fees. details is keyed split.<index>.amount. Shares under ₦100 are refused earlier with VALIDATION_ERROR.
INVALID_SPLIT_PURSE422A purse in the split is not on this yard, or is closed. details is keyed split.<index>.purseId, so you can point at the exact line.
STEP_UP_REQUIRED403A dashboard session adding or changing a purse without a valid step-up token. An API key does not send one. Purse changes also return 403 for a missing 2FA enrolment or permission.
422 INVALID_SPLIT_PURSE
{
  "error": {
    "code": "INVALID_SPLIT_PURSE",
    "message": "One or more purses cannot take this split.",
    "details": {
      "split.1.purseId": "Levy is closed and cannot take new money."
    }
  }
}

Things that catch people out

  • collection.success means the resident paid, not that the banks have it. Mark the bill paid on it. Mark lines settled on purse.settlement.succeeded.
  • A failed settlement is not a failed payment. The resident has paid and the money is safe in flight. Never issue them a new account because of purse.settlement.failed.
  • Purse settlement is not a payout. It never appears as payout.success or payout.failed, and it does not touch your wallet balance.
  • Re-read purse ids when purses change. A closed purse rejects new splits with INVALID_SPLIT_PURSE; a cached list of ids goes stale the day a manager closes one.
  • Key settlement state on the pst_ reference. A failed transfer is retried under the same reference, so the same reference can arrive as purse.settlement.failed and later as purse.settlement.succeeded. Treat the last event as the truth.
  • Show the exact total. A resident who pays a different amount does not fail — the money is held as unallocated — but someone then has to sort it out by hand.