# Environments

> The sandbox simulates the whole API with no real money; production serves only the operations labeled Production. Same signature, different base URL.

## Base URL

| Environment | Base URL                          | What it serves                             | Credentials                                                                                                  |
| ----------- | --------------------------------- | ------------------------------------------ | ------------------------------------------------------------------------------------------------------------ |
| Sandbox     | `https://sandbox.zulu.com.co/v1`  | Every operation of the contract, simulated | You create them in the [dashboard](https://developers.zulu.com.co/en/dashboard) once your access is approved |
| Production  | `https://api.zulutransfer.com/v1` | Only the [Production] operations           | The zulu team hands them out over a secure channel                                                           |

Both answer with the same signature: the same camelCase fields, the same HTTP statuses and the same error texts. Switching environments means switching the base URL and the credentials.

> **Never mix credentials**
>
> Sandbox credentials do not work in production, nor the other way around. Keep each environment's in separate variables and never use them in a browser: the API is server to server.

## What exists in production today

**POST** `/v1/auth/token` — Get an access token · [Production] · [See the reference](https://developers.zulu.com.co/en/reference/get-token.md)

**POST** `/v1/transfer` — Withdraw COP balance · [Production] · [See the reference](https://developers.zulu.com.co/en/reference/create-transfer.md)

Everything else is labeled [Sandbox · coming soon]: it exists in the sandbox with its final signature and reaches production unchanged. The simulators (`/v1/sandbox/*`) are labeled [Sandbox only] and will never exist in production.

## How the sandbox differs

The sandbox calls no bank and no zulu system, and it moves no money. So you can test every flow end to end:

- **Time is simulated.** A Bre-B payout completes in seconds and an ACH one in a minute; manual payment follows the 15:30 business-day cutoff. You can skip the wait with `POST /v1/sandbox/transactions/{transactionId}/advance`.
- **Third-party payments are simulated.** A PSE link, an incoming Bre-B transfer or a QR code is "paid" with the simulators; the sandbox's PSE checkout is fake and its QR codes use an identifier no banking app can pay.
- **The exchange rate is synthetic.** It comes from a configurable mid rate plus a spread per term: it is not a real quote.
- **There is test data.** Values such as account `0000000001` or key `@failbreb` force documented outcomes. They are in [Test data](https://developers.zulu.com.co/en/docs/test-data.md).
- **The workspace's state is simulated.** From the dashboard you can turn off the user's verification, the COP account or online ACH, and change the dispersion fee and the FX hours.

| 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. |

## Hosts and CORS

The API is for your servers: it has no open CORS. The one exception is the "Try it" console of the [reference](https://developers.zulu.com.co/en/reference.md), which calls the sandbox from your browser with your credentials kept in memory.
