# Test data and simulators

> Values that force a documented outcome, the sandbox simulators and the settings you can simulate, to test every branch of your integration.

[Sandbox only]

The sandbox answers like production, but it lets you reach every branch of a flow —rejections, fallbacks, errors— without waiting for them to happen for real.

## Magic values

Send these values in a normal request and you get the documented outcome. They are deliberately implausible as real data and never collide with each other.

| 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) |
| `{key}` | `@notfound` | The key does not exist in the directory: 404 `bre-b key "@notfound" not found`. | [`resolveBreBKey`](https://developers.zulu.com.co/en/reference/resolve-bre-b-key.md) |
| `{key}` | `@bloqueada` | The key exists but is blocked: the resolution answers `status: BLOCKED_BY_ZULU`. | [`resolveBreBKey`](https://developers.zulu.com.co/en/reference/resolve-bre-b-key.md) |

## Simulators

Third-party payments and the passing of time are simulated with endpoints that only exist in the sandbox:

**POST** `/v1/sandbox/recharge-links/{slug}/pay` — Simulate a PSE link payment · [Sandbox only] · [See the reference](https://developers.zulu.com.co/en/reference/simulate-recharge-link-payment.md)

**POST** `/v1/sandbox/bre-b/transfers/in` — Simulate an incoming Bre-B transfer · [Sandbox only] · [See the reference](https://developers.zulu.com.co/en/reference/simulate-bre-b-transfer-in.md)

**POST** `/v1/sandbox/bre-b/qr-codes/{id}/pay` — Simulate a QR code payment · [Sandbox only] · [See the reference](https://developers.zulu.com.co/en/reference/simulate-qr-code-payment.md)

**POST** `/v1/sandbox/transactions/{transactionId}/advance` — Advance a transaction · [Sandbox only] · [See the reference](https://developers.zulu.com.co/en/reference/advance-transaction.md)

**POST** `/v1/sandbox/balances/top-up` — Top up the simulated balance · [Sandbox only] · [See the reference](https://developers.zulu.com.co/en/reference/top-up-balance.md)

Payer data you do not send is filled with deterministic synthetic data: the same input always gives the same outcome.

## The rules every outcome follows

They are not tricks: they are production's rules, plus the simulated timings.

| Rule | Operations |
| --- | --- |
| Bre-B accepts up to 12,110,000 COP per transfer: a withdrawal with `breBKey` and an amount up to 12,110,000 goes Bre-B; above it, ACH and manual payment are evaluated. | [`createQrCode`](https://developers.zulu.com.co/en/reference/create-qr-code.md), [`createTransfer`](https://developers.zulu.com.co/en/reference/create-transfer.md), [`simulateBreBTransferIn`](https://developers.zulu.com.co/en/reference/simulate-bre-b-transfer-in.md) |
| 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) |
| A withdrawal amount is rounded to cents (2 decimals), like production's `round2`. | [`createTransfer`](https://developers.zulu.com.co/en/reference/create-transfer.md) |
| Dispersion fee = `round(fixed + amount × rate / 100)`. The balance must cover amount + fee, and that total is what `insufficient COP balance to withdraw` shows. | [`createTransfer`](https://developers.zulu.com.co/en/reference/create-transfer.md) |
| Validation order: verified user (403) → origin entity (422) → verified beneficiary and name (422) → method → balance with the fee (422) → COP account (422) → bank and account type (422) → order and debit → dispatch. The first failure answers; nothing is recorded. | [`createTransfer`](https://developers.zulu.com.co/en/reference/create-transfer.md) |
| Initial status: Bre-B `CREATED`; ACH and manual `IN_PROGRESS`. | [`createTransfer`](https://developers.zulu.com.co/en/reference/create-transfer.md) |
| 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) |
| Any key that is not test data resolves to a deterministic synthetic holder (the same key always gives the same data), never to another workspace's data. | [`resolveBreBKey`](https://developers.zulu.com.co/en/reference/resolve-bre-b-key.md) |
| The rate is synthetic and deterministic: the workspace mid rate (3,950.00) plus the term's spread when buying USD, or minus it when selling. Not a real quote. | [`getQuote`](https://developers.zulu.com.co/en/reference/get-quote.md), [`createFxTransaction`](https://developers.zulu.com.co/en/reference/create-fx-transaction.md) |
| With f₂ = factor × 100: COP→USD, cents = round(pesos × 10⁴ / f₂); USD→COP, pesos = round(cents × f₂ / 10⁴). With `destinationAmount`, the origin rounds up. Both sides must stay within the limits. | [`createFxTransaction`](https://developers.zulu.com.co/en/reference/create-fx-transaction.md) |
| A quote lives 30 seconds and serves a single conversion. | [`getQuote`](https://developers.zulu.com.co/en/reference/get-quote.md), [`createFxTransaction`](https://developers.zulu.com.co/en/reference/create-fx-transaction.md) |
| The settlement date counts days on which both Colombia and the United States are open: `SAME_DAY` is the first from today on, `NEXT_DAY` and `SECOND_DAY` one and two more. A US holiday (Thanksgiving) is not a settlement day even though the Colombian market opens. | [`getQuote`](https://developers.zulu.com.co/en/reference/get-quote.md), [`createFxTransaction`](https://developers.zulu.com.co/en/reference/create-fx-transaction.md) |
| A conversion stays `IN_PROGRESS` and becomes `COMPLETED` at 15:30 (Bogotá) on its settlement date, or 30 s after it was created when that time has passed; the destination is credited then. `advanceTransaction` settles it at once and `REJECTED` gives the origin back. | [`createFxTransaction`](https://developers.zulu.com.co/en/reference/create-fx-transaction.md), [`getTransaction`](https://developers.zulu.com.co/en/reference/get-transaction.md), [`advanceTransaction`](https://developers.zulu.com.co/en/reference/advance-transaction.md) |

## Workspace settings

From the dashboard you can simulate the state of your user and account, as production would see them:

| Setting | Default | Effect |
| --- | --- | --- |
| `verified` | `true` | Whether the user is verified. Off, `POST /v1/transfer` answers 403 `the user is not verified`. |
| `copAccount` | `true` | Whether the COP balance account exists. Off, withdrawals answer 422 `the user does not have a COP balance account`. |
| `canUseAchDispersion` | `true` | Whether the user may disperse by online ACH (on by default, as in production). Off, everything that is not Bre-B goes `MANUAL`. |
| `dispersionFee` | `{ fixed: 0, rate: 0, includeOwnAccounts: false }` | Dispersion fee: `round(fixed + amount × rate / 100)`, added to the amount when the balance is checked. 0 by default; own accounts are exempt unless `includeOwnAccounts`. |
| `achDailyCount` | `10000` | How many online ACH withdrawals fit in a day (10,000 by default, as in production). Beyond it, the withdrawal goes `MANUAL`. |
| `achDailyAmount` | `999999999999999` | Daily sum of online ACH withdrawals (999,999,999,999,999 COP by default, as in production). Beyond it, the withdrawal goes `MANUAL`. |
| `marketHours` | `"ALWAYS_OPEN"` | `ALWAYS_OPEN` (default, like production's test users) or `REAL`: 08:05–15:30 on business days and `SAME_DAY` only before 13:00. |
| `midRate` | `3950` | Synthetic COP/USD mid rate (3,950.00 by default). Not a real quote. |
| `spreadBps` | `{ SAME_DAY: 60, NEXT_DAY: 45, SECOND_DAY: 35 }` | Spread in basis points per settlement term, added when buying USD and subtracted when selling: `SAME_DAY` 60, `NEXT_DAY` 45, `SECOND_DAY` 35. |

> **Never use real data**
>
> The sandbox keeps your requests in the dashboard's logs for 14 days. Use test names and documents, never real people's data.
