# Online ACH

> When a withdrawal goes out by online ACH, how its status moves and how to test rejections and the manual fallback.

[Production]

Online ACH sends the money to the beneficiary's bank the same day, with no manual step. zulu picks it when the withdrawal meets all its conditions; if one fails, the withdrawal goes `MANUAL`.

| Rule | Operations |
| --- | --- |
| Online ACH only with whole pesos: an amount with decimals (for example 150000.50) goes `MANUAL`. | [`createTransfer`](https://developers.zulu.com.co/en/reference/create-transfer.md) |
| Online ACH requires `canUseAchDispersion`, a bank with a 4-digit ACH code, a savings or checking account, up to 250,000,000 COP and room in the daily caps (count and sum). If anything fails, or the dispatch does not queue, the withdrawal goes `MANUAL`. | [`createTransfer`](https://developers.zulu.com.co/en/reference/create-transfer.md) |

## What your request needs

- **`bankCode`**: the 4-digit ACH code of the beneficiary's bank. Without it, ACH is not possible (unless the account is already registered with its bank at zulu).
- **`accountType`**: savings or checking (`savings`/`saving` mean `ahorros` and `checking` means `corriente`).
- **`amount`** in whole pesos and within the per-withdrawal maximum.

**GET** `/v1/banks` — List banks · [Sandbox · coming soon] · [See the reference](https://developers.zulu.com.co/en/reference/list-banks.md)

**GET /v1/banks**

```bash
curl https://sandbox.zulu.com.co/v1/banks \
  -H "Authorization: Bearer $ZULU_ACCESS_TOKEN" \
  -H "X-API-Key: $ZULU_API_KEY"
```

```javascript
const response = await fetch('https://sandbox.zulu.com.co/v1/banks', {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.ZULU_ACCESS_TOKEN}`,
    'X-API-Key': process.env.ZULU_API_KEY,
  },
});

console.log(response.status, await response.json());
```

```python
import os

import requests

response = requests.get(
    "https://sandbox.zulu.com.co/v1/banks",
    headers={
        "Authorization": f"Bearer {os.environ['ZULU_ACCESS_TOKEN']}",
        "X-API-Key": os.environ["ZULU_API_KEY"],
    },
    timeout=30,
)
print(response.status_code, response.json())
```

A `bankCode` that is not in the catalog answers `422 bank with code "…" is not supported`.

## Daily caps

Besides the per-withdrawal maximum, online ACH has a daily count cap and a daily amount cap. Read them, with today's usage, in `GET /v1/limits`. Going over a cap is not an error: the withdrawal goes `MANUAL`.

**GET** `/v1/limits` — Get limits · [Sandbox · coming soon] · [See the reference](https://developers.zulu.com.co/en/reference/get-limits.md)

## Statuses and timings

`IN_PROGRESS` → `SENT` (the bank received the order) → `COMPLETED`, or `REJECTED` if the bank returns the payment.

| Rule | Operations |
| --- | --- |
| Simulated timings: Bre-B `COMPLETED` after 3 s; ACH `SENT` after 30 s and `COMPLETED` after 60 s; manual `SENT` at the next 15:30 business cutoff and `COMPLETED` at 09:00 of the next business day (with Colombian holidays). `advanceTransaction` skips the wait. | [`createTransfer`](https://developers.zulu.com.co/en/reference/create-transfer.md), [`listTransactions`](https://developers.zulu.com.co/en/reference/list-transactions.md), [`getTransaction`](https://developers.zulu.com.co/en/reference/get-transaction.md), [`advanceTransaction`](https://developers.zulu.com.co/en/reference/advance-transaction.md) |
| A `REJECTED` withdrawal returns the debit to the balance in the sandbox. In production operations performs the reversal. | [`getTransaction`](https://developers.zulu.com.co/en/reference/get-transaction.md), [`advanceTransaction`](https://developers.zulu.com.co/en/reference/advance-transaction.md) |

## Test the hard cases

| Field | Value | Effect | Operations |
| --- | --- | --- | --- |
| `destination.bankAccount.accountNumber` | `0000000001` | The withdrawal goes out by ACH (`IN_PROGRESS`), reaches `SENT` and ends `REJECTED`; the debit is reversed and a webhook is sent for each change. | [`createTransfer`](https://developers.zulu.com.co/en/reference/create-transfer.md), [`getTransaction`](https://developers.zulu.com.co/en/reference/get-transaction.md), [`advanceTransaction`](https://developers.zulu.com.co/en/reference/advance-transaction.md) |
| `destination.bankAccount.accountNumber` | `0000000002` | The ACH dispatch does not queue: the withdrawal continues as a manual payment and answers `{status: IN_PROGRESS, method: MANUAL}`. | [`createTransfer`](https://developers.zulu.com.co/en/reference/create-transfer.md) |
| `destination.breBKey.key` | `@failbreb` | The Bre-B transfer fails: the withdrawal is left for manual payment and answers `{status: CREATED, method: MANUAL}`, as in production. | [`createTransfer`](https://developers.zulu.com.co/en/reference/create-transfer.md) |
| `destination.documentNumber` | `1111111111` | The beneficiary is registered but not verified: 422 `the beneficiary with document "1111111111" is not verified`. | [`createTransfer`](https://developers.zulu.com.co/en/reference/create-transfer.md) |
| `destination.documentNumber` | `2222222222` | The beneficiary is already registered as "Ana Pérez". A name sharing a word (regardless of accents, case or order) passes; any other answers 422 `the name does not match the beneficiary registered with document "2222222222"`. | [`createTransfer`](https://developers.zulu.com.co/en/reference/create-transfer.md) |
| `destination.bankAccount.bankCode` | `9999` | The bank is not in the catalog: 422 `bank with code "9999" is not supported`. | [`createTransfer`](https://developers.zulu.com.co/en/reference/create-transfer.md) |

- Account `0000000001` walks `IN_PROGRESS` → `SENT` → `REJECTED`: test that your system handles a rejection after sending.
- Account `0000000002` simulates a dispatch that does not queue: the withdrawal answers `{status: IN_PROGRESS, method: MANUAL}`.
- Bank `9999` is not in the catalog: `422`.
