# Settlement and market hours

> Which day each term is credited, when the FX market opens and how to simulate real hours in the sandbox.

[Sandbox · coming soon]

## Settlement terms

| Term         | Credited                | Default spread in the sandbox |
| ------------ | ----------------------- | ----------------------------- |
| `SAME_DAY`   | The same business day   | 60 bps                        |
| `NEXT_DAY`   | The next business day   | 45 bps                        |
| `SECOND_DAY` | The second business day | 35 bps                        |

Business days exclude weekends and Colombian holidays. `settlementDate` on the quote and the conversion tells you the exact date.

In the sandbox, a longer term quotes a smaller spread: so you can test how the factor changes between terms.

## Market hours

| Limit | Value |
| --- | --- |
| `REAL` FX hours (business days, Bogotá) | 08:05 – 15:30 |
| Last time to quote `SAME_DAY` | 13:00 |

Outside the hours the quote answers `422 the fx market is closed`, and after the cutoff `SAME_DAY` answers `422`: quote `NEXT_DAY` or `SECOND_DAY`.

| HTTP | error | cause | Description |
| --- | --- | --- | --- |
| 422 | `UnprocessableEntityApiError` | `the fx market is closed` | The FX market is closed (`REAL` hours: 08:05–15:30 on Bogotá business days). The sandbox defaults to `ALWAYS_OPEN`. |
| 422 | `UnprocessableEntityApiError` | `SAME_DAY settlement is not available after %s` | After the cutoff `SAME_DAY` is not available; quote `NEXT_DAY` or `SECOND_DAY`. |

## In the sandbox

By default the sandbox uses `ALWAYS_OPEN` hours (like production's test users), so you can test at any time. To test the real hours, switch `marketHours` to `REAL` in the dashboard.

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

To skip waiting for the settlement date, take the conversion to `COMPLETED`:

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