Banks and agents
Cash deposit to a KulPay account
A customer brings cash to your counter or agent for a KulPay account, named by phone, @handle, NUIB or account ID.
The depositor gives you the KulPay account's reference: its phone number, its @handle, its NUIB or its KulPay account ID. You check whom it belongs to, register the deposit before you take the cash, confirm it with your statement entry once you have the cash, and send your statement. KulPay credits the account when the statement line matches.
Payment requests (OR-…) and invoices (RF…) are taken the same way, through the same calls: see the related flows.
Before you start
- A partner API key with
transactions:writeandtransactions:read, andreconciliation:writeto send statements. A restricted key (rk) with only those scopes is enough. - Your capability matrix has a
NAME_LOOKUProw for the methodcash_deposit, and cash deposits are enabled for your mode. - A statement profile covering the receiving account (the account the cash is credited to): see Statements and reconciliation.
- Every call that moves money carries an
Idempotency-Keyheader: a unique value per operation, for example a UUID. Repeating a call with the same key returns the same result.
The flow at a glance
| # | Who | What happens |
|---|---|---|
| 1 | Depositor | Gives the cashier a KulPay reference (phone, @handle, NUIB or account ID) and the amount. |
| 2 | Your system | Looks the reference up and shows the cashier the holder's name and the limits. |
| 3 | Your system | Registers the deposit intent, before the cashier takes the cash. |
| 4 | Cashier | Takes the cash. |
| 5 | Your system | Confirms the deposit with the statement entry of the receiving account. |
| 6 | Your system | Sends the receiving account's statement. |
| 7 | KulPay | Matches the statement line and credits the KulPay account. |
1. Look up the reference
Your system, when the depositor gives the reference.
POST /v1/name-lookups · API reference
Ask whom the reference belongs to and what a deposit to it may be. It only checks: nothing is recorded, nothing is reserved, and the reference is not stored. Each lookup is answered live and gets a new lookup_id, valid until expires_at (at most 15 minutes).
Read the holder's name back to the depositor before taking the cash. A person is shown as their first name and the initial of their last name; a business by its trade name.
Request
{
"method": "cash_deposit",
"reference": "258841234567"
}
Response
{
"lookup_id": "3L1aQ8xZt5bKfW2nYcVm7RpHsJd",
"status": "found",
"name": "Ana M.",
"method": "cash_deposit",
"reference": "258841234567",
"constraints": {
"currency": "MZN",
"min_amount": "10.00",
"max_amount": "50000.00",
"expires_at": "2026-10-22T10:15:00Z"
},
"expires_at": "2026-10-22T10:15:00Z"
}
status is found or not_found. A reference that cannot take money now (a closed account, a limit reached) answers not_found. Limited to 60 lookups a minute per key.
2. Register the deposit intent
Your system, before the cashier takes the cash.
POST /v1/cash-deposits/intents · API reference
Fix the beneficiary, the amount and the currency against the lookup. The amount must respect the lookup's constraints. Nothing moves yet. One lookup allows one deposit: the same amount again returns the same intent; another amount is refused with 409 lookup_used. An intent not confirmed within 24 hours expires.
partner_reference is your own reference for the operation. depositor_metadata and beneficiary_metadata are text pairs for your use (at most 50 keys); they come back on the intent and are never sent in events. A depositor_metadata.email is told when the deposit is credited.
Request
{
"lookup_id": "3L1aQ8xZt5bKfW2nYcVm7RpHsJd",
"amount": "1500.00",
"currency": "MZN",
"partner_reference": "AG001-000981",
"depositor_metadata": {
"name": "João Sitoe",
"phone": "+258841112233"
}
}
Response
{
"id": "3KCZf1Z3amItUf8AcdAyGBLH0Pu",
"lookup_id": "3L1aQ8xZt5bKfW2nYcVm7RpHsJd",
"reference": "258841234567",
"amount_minor": 150000,
"currency": "MZN",
"partner_reference": "AG001-000981",
"mode": "live",
"status": "initiated",
"expires_at": "2026-10-23T10:05:00Z",
"created_at": "2026-10-22T10:05:00Z",
"updated_at": "2026-10-22T10:05:00Z",
"depositor_metadata": {
"name": "João Sitoe",
"phone": "+258841112233"
}
}
Amounts are sent as decimals with two places ("1500.00") and come back in minor units (150000 is 1,500.00 MZN). Keep the intent's id: it is the {id} of the next step.
3. Confirm the deposit
Your system, once the cashier has the cash.
POST /v1/cash-deposits/intents/{id}/confirm · API reference
Name the receiving account, your statement entry for this credit and its value date. The deposit is now recorded as reported; it is not credited yet. entry_id is generated by your system and must be the same as the line ID of that credit on the receiving account's statement. Confirming again with the same entry returns the same deposit.
Request
{
"account": "MZ59000800000000123456789",
"entry_id": "AG001-20261022-0000457",
"value_date": "2026-10-22"
}
Response
{
"intent": {
"id": "3KCZf1Z3amItUf8AcdAyGBLH0Pu",
"status": "reported",
"deposit_id": "3KVioCC5V4yauYhsd56OlrZgzWl",
"amount_minor": 150000,
"currency": "MZN"
},
"deposit": {
"id": "3KVioCC5V4yauYhsd56OlrZgzWl",
"account": "MZ59000800000000123456789",
"entry_id": "AG001-20261022-0000457",
"value_date": "2026-10-22T00:00:00Z",
"amount_minor": 150000,
"currency": "MZN",
"status": "reported",
"deadline_at": "2026-10-23T10:06:00Z",
"reported_at": "2026-10-22T10:06:00Z"
}
}
The objects are shortened here; the full answer repeats every field of the intent. deadline_at is when the statement line must have arrived.
4. Send the statement
Your system, under your statement profile.
POST /v1/statements · API reference
Send the receiving account's statement through the channel your profile names (the API here; SFTP or a per-entry notification work the same way). When a line has the same line ID as the entry_id, direction credit and the same amount and currency, the deposit is confirmed and the account is credited. See Statements and reconciliation for the formats.
5. Follow the deposit
Your system, whenever it needs the state.
GET /v1/cash-deposits/{id} · API reference
Read the deposit (or the intent with GET /v1/cash-deposits/intents/{id}) to see where it is. The same changes are sent to your webhook endpoint as events.
States
| State | What it means |
|---|---|
initiated | The intent is registered; the cash is not confirmed yet. Expires after 24 hours. |
reported | Confirmed by you with its statement entry; waiting for the statement line. |
confirmed | The statement line matched. The KulPay account is credited. |
suspended | The deposit named no valid account. KulPay's treasury assigns or returns it, with a second person approving. |
exception |
|
expired | An intent not confirmed within 24 hours. Cash taken against it needs a new lookup, or must be returned. |
When the money moves
Nothing moves at the lookup or the intent. At the confirmation the deposit is recorded, still not credited. The KulPay account is credited when the statement line matches (same line ID, account, direction credit, amount and currency): that is when the operation is complete. An entry ID is credited at most once.
Events
| Event | What it tells you |
|---|---|
cash_in.initiated | An intent was registered. |
cash_in.initiation_confirmed | You confirmed it; it waits for the statement line. |
cash_in.confirmed | The statement line matched and the account was credited. |
cash_in.initiation_expired | The intent was not confirmed within 24 hours. |
Errors that matter here
Every error is application/problem+json with a stable code; branch on the code, not the message. The full list is in the error catalogue.
| Error | When | What to do |
|---|---|---|
400 invalid_request | A field is missing or malformed; the | Fix the request. |
400 idempotency_key_required | The intent or the confirmation was sent without | Send a unique key per operation, and the same key when you retry it. |
403 not_a_partner | The key is not a partner bank's or agent's. | Use your partner key. |
409 lookup_used | The lookup already started a deposit for another amount. | Look the reference up again for a new deposit. |
422 deposit_refused | The lookup or the intent expired, the amount is outside the limits, or the intent was confirmed with another entry. | Read the |
422 route_not_enabled | Cash deposits are not enabled for your key's mode. | Ask KulPay to enable them. |
429 rate_limited | More than 60 lookups a minute. | Wait for |
Testing it
With a test key, the lookup answers three fixed references and never reads real customers:
841000001: found, as "Cliente S.";841000410: closed (not_found);- any other, for example
841000404:not_found.
The statement is sent the same way in test mode. To see an exception, confirm with an entry_id your statement never has, or with another amount on the line.