Transfers
Send money to a bank account from the API. Pick a bank, transfer, then poll or use webhooks.
Transfers
Transfers send money from one of your accounts to a bank account. They use the cash_management scope, the same as payments. A key without it gets 403 insufficient_scope.
A transfer is accepted immediately. There is no approval step and no PIN: your secret key is the only authorisation, so keep it safe and register your server IPs. Transfers have type API Disbursement.
Recommended flow
- Get the list of banks and pick the
bank_code. - Optionally validate the account.
- Create the transfer.
- Wait for the webhook, or poll.
Loading diagram…
1. Get the bank list
GET /v1/banks
{
"data": [
{ "bank_code": "BCA", "name": "Bank Central Asia" },
{ "bank_code": "BNI", "name": "Bank Negara Indonesia" }
]
}- Sorted by
name. Send thebank_codein transfers and validation. It is not case-sensitive. bank_codeis Momen's own code, from Momen's bank catalogue. It does not change if Momen changes payment provider.- Only banks that Momen can pay with the active transfer provider are listed, so every code in the list can be used for a transfer.
- The list changes rarely, so you can cache it. In sandbox it lists every bank that has a Momen code.
502 provider_unavailablemeans the transfer service is not available on Momen's side. Retry with backoff. Sandbox never returns it.
2. Validate the account (optional)
POST /v1/bank-accounts/validate
{ "bank_code": "BCA", "account_number": "1234567890" }{
"data": {
"valid": true,
"bank_code": "BCA",
"account_number": "1234567890",
"account_name": "BUDI SANTOSO"
}
}- Transfers do not require this call. In production Momen does not check the account number or name with the bank when you transfer, and
account_nameis stored as you send it. Validate first when you want to be sure the account exists and belongs to who you mean to pay. - Compare
account_namewith who you mean to pay.account_numberis 4 to 34 digits. valid: falseis a normal200withaccount_name: null. It means the account was not found.- A found account is remembered for 10 minutes per company, bank and account number, so repeating the same check does not call the bank again.
- A temporary problem on the bank check side is
502 provider_unavailable, notvalid: false. Retry with backoff. 422 parameter_invalidwithparam: bank_codemeans the code is not in the list, or the bank cannot be checked. A bank that cannot be checked can still receive a transfer, so skip validation for it.- Use validate to confirm an account you already have. Do not use it to guess account numbers. Repeated "not found" results lock your API key (see below).
Lock after repeated "not found"
Only "not found" results that come one after another are counted, per API key. The 10th in a row locks the key for 5 minutes. Every 5 further results add 5 minutes: the 15th locks for 10 minutes, the 20th for 15, and so on. Any account that is found, including one answered from the 10-minute memory, resets the count. A 502 is not counted.
While the key is locked, validation returns 429 rate_limited with a Retry-After header (seconds) and makes no check. Wait that long, then retry.
3. Create the transfer
POST /v1/transfers. This endpoint does not use the Idempotency-Key header. Your reference_id makes retries safe.
{
"reference_id": "INV-001",
"amount": 100000,
"bank_code": "BCA",
"account_number": "1234567890",
"account_name": "BUDI SANTOSO",
"note": "Supplier payment"
}201 response (data):
{
"id": "5c1f0e2a-7b3d-4e98-a6c4-2d9b8f1e3a70",
"reference_id": "INV-001",
"status": "processing",
"amount": 100000,
"fee": 2500,
"total": 102500,
"bank_code": "BCA",
"account_number": "1234567890",
"account_name": "BUDI SANTOSO",
"failure_reason": null,
"completed_at": null
}reference_idis required, unique per company, up to 64 characters. Reusing it is safe only for an identical request (see Retries and replays).amountis a JSON integer in rupiah, from 1 up to Rp 50.000.000 per transfer. A larger amount is422 invalid_amount(param: amount): split it into several transfers, each with its ownreference_id.bank_codecomes fromGET /v1/banks.account_numberis 4 to 34 digits.account_nameis required.source_account_idandcategory_idare optional and fall back to your default account and money-out category. The account must be connected to your key (GET /v1/accounts).category_idmust be one of your money-out categories (GET /v1/categories).- The fee is charged on top. Your balance is debited by
total(amount + fee), using your bank transfer fee rules, including any free quota. - If the balance is below
total, you get422 insufficient_balance. Nothing is created. Retry with the samereference_idonce you have funds. - A
bank_codethat is not in the list is422 parameter_invalid(param: bank_code).
4. Get the result
The transfer starts as processing. Use a webhook, polling, or both.
| Status | Final | Meaning |
|---|---|---|
processing | no | Created and queued or sent to the bank |
completed | yes | The bank confirmed. Funds are debited |
failed | yes | The transfer was not sent. The amount and fee are returned |
failed means the transfer was not sent, so no money left your account. This happens when the bank refuses the account before sending, or when sending fails before the transfer leaves Momen. The amount and fee are returned.
Once a transfer has been sent to the bank, an unclear result (a timeout, a failed callback) leaves it processing until it is confirmed. It is not refunded automatically. Momen never sends a transfer twice, so do not create a new one for a processing transfer.
When failed, failure_reason is always this sentence, and null for any other status:
The transfer could not be sent to the bank. The amount and fee were returned to the source account.
To poll, call GET /v1/transfers/{id} every few seconds at first, then back off, and stop once the status is final. Mind the rate limits in the API overview.
id and reference_id
id | reference_id | |
|---|---|---|
| Who creates it | Momen | You (for example your invoice number) |
| When you have it | After the transfer is created | Before you call the API |
| Use it to | GET /v1/transfers/{id} | GET /v1/transfers?reference_id=..., and to make retries safe |
If POST /v1/transfers times out, you do not know the id. Call GET /v1/transfers?reference_id=INV-001. It returns the transfer if it was created, or an empty list if not. You can also resend the same request: the same reference_id and an identical request returns the existing transfer with 200, and never debits twice.
Retries and replays
A request with a reference_id you used before is a replay only if it is identical to the first one:
amount,note,bank_code,account_numberandaccount_nameare the same. An emptynoteis the same as nonote.source_account_idandcategory_idare the same if you send them. Leaving them out means "use the default", so a later change of your default account or category does not matter.
An identical replay returns 200 with the existing transfer. Nothing is debited again. Any other difference returns 422 idempotency_key_reused (param: reference_id) and nothing changes. To send different details, use a new reference_id.
List transfers
GET /v1/transfers returns your API transfers, newest first, in pages.
| Query | Meaning |
|---|---|
status | processing, completed or failed |
reference_id | Exact match. Returns zero or one transfer |
created_after, created_before | ISO 8601 date-time |
page, per_page | Default page 1, 25 per page, at most 100 |
The response is { "data": [ ...transfers ], "pagination": { "current_page", "per_page", "total", "last_page" } }, the same shape as the payments list.
Webhooks
Momen sends transfer.completed and transfer.failed when a transfer is confirmed or was not sent. They go to the money out endpoint you set under Settings → Developer, with the same signature and retries as other events. See Webhooks to verify them, and the transfer webhook reference for the schema.
data is the same object as GET /v1/transfers/{id}. Momen sends one event of each type per transfer. If a transfer fails and the bank later confirms it, transfer.completed follows transfer.failed, so apply the latest event.
{
"event_id": "evt_01k9x3m5q2c8h7w4z6r1b0t9ya",
"event_type": "transfer.completed",
"created_at": "2026-11-19T04:12:30Z",
"data": {
"id": "01a1f1f6-280e-7263-8583-70e7eff34743",
"reference_id": "INV-1",
"status": "completed",
"amount": 100000,
"fee": 2500,
"total": 102500,
"source_account_id": "0f4c3a5e-6d7b-4a1e-9c2f-1b8d5e7a9c30",
"bank_code": "BCA",
"account_number": "1234567890",
"account_name": "SANDBOX ACCOUNT HOLDER",
"note": null,
"failure_reason": null,
"created_at": "2026-11-19T04:12:29+00:00",
"completed_at": "2026-11-19T04:12:30+00:00"
}
}For transfer.failed, data.status is failed, data.failure_reason is the sentence above and completed_at is null. Treat the webhook as a hint and key on event_id; you can always confirm with GET /v1/transfers/{id}.
Sandbox
With an sk_test_ key, validation and transfers use dummy accounts. Nothing reaches a real bank. The result depends on the last four digits of account_number, and GET /v1/banks lists the sandbox banks (the LinkQu catalogue).
| Ends with | Validate | Transfer |
|---|---|---|
9999 | valid: false | Rejected with 422 parameter_invalid (param: account_number) before any balance is taken |
1111 | valid: true, account_name: "SANDBOX ACCOUNT HOLDER" | Ends failed. The amount and fee are returned, and transfer.failed is sent |
anything else (including 0000) | valid: true, account_name: "SANDBOX ACCOUNT HOLDER" | Ends completed, and transfer.completed is sent |
A sandbox transfer reaches its final status inside the request, so the POST /v1/transfers response already says completed or failed, not processing. The webhook is queued at once and delivered within about a minute.
If something goes wrong
- Timeout or no response: look the transfer up by
reference_id, as above. failed: the transfer was not sent (the bank refused the account, or sending failed before it left Momen) and the amount and fee are returned. Create a new transfer with a newreference_id.- A
processingtransfer for a long time: it was sent and is not confirmed yet. It is not refunded automatically, and Momen staff resolve it. Do not create a new transfer for it. Contact Momen support with theid.
Errors
502 provider_unavailable happens before your balance is debited and before any transfer is recorded, so no funds are held and the reference_id is not used. It is safe to retry with the same reference_id, with backoff. It is not how a bank refusal shows up: a refusal while the transfer is being sent appears as failed or processing when you read the transfer. A bank_code that is not in the list, or an empty list, is 422 parameter_invalid (param: bank_code). Sandbox never returns 502.
code | error.type | HTTP | Meaning |
|---|---|---|---|
invalid_api_key | authentication_error | 401 | Key missing, malformed or revoked |
insufficient_scope | permission_error | 403 | Key lacks cash_management |
product_not_enabled | permission_error | 403 | Your company does not have Cash Management |
account_not_connected | permission_error | 403 | source_account_id (or the default account) is not connected to this key |
parameter_missing | invalid_request_error | 422 | A required field is missing (param) |
parameter_invalid | invalid_request_error | 422 | A field is invalid, such as a bank_code that is not in GET /v1/banks (param) |
invalid_amount | invalid_request_error | 422 | amount is not an integer rupiah between 1 and 50.000.000 |
insufficient_balance | invalid_request_error | 422 | Balance is below amount + fee. Nothing is created |
idempotency_key_reused | idempotency_error | 422 | reference_id already used with a different request (see Retries and replays) |
resource_missing | invalid_request_error | 404 | Transfer not found for your key |
rate_limited | rate_limit_error | 429 | Wait Retry-After seconds. Also returned by validation while your key is locked after repeated "not found" results |
provider_unavailable | provider_error | 502 | The account check service or the transfer service is not available on Momen's side. No param. See below |
internal_error | api_error | 500 | Unexpected failure. Look the transfer up by reference_id before retrying |
See Errors for the envelope and Idempotency for the Idempotency-Key used by other endpoints.