# List deposits

`GET /v1/deposits` · [Sandbox · coming soon]

> Base URL: Sandbox `https://sandbox.zulu.com.co/v1`
>
> Not in production yet: it arrives with this same signature. Try it in the sandbox.

Lists the money that arrived into your COP balance: paid PSE links, Bre-B transfers to your keys and paid QR codes. Filter by `method` and reconcile with `reference` (the link's reference, the receiving key or the QR's reference).

## Authentication

`Authorization: Bearer <access_token>` (401 when missing or expired) and `X-API-Key` (403 when missing or not matching).

## Request

### Query parameters

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `page` | integer | optional | Page, from 1. ≥ 1. Default: `1`. |
| `size` | integer | optional | Items per page, from 1 to 100. ≥ 1, ≤ 100. Default: `10`. |
| `search` | string | optional | Searches the id, the reference and the payer. max. 100 characters. |
| `dateFrom` | string (date) | optional | From this date (inclusive), Bogotá time. |
| `dateTo` | string (date) | optional | Up to this date (inclusive), Bogotá time. |
| `orderBy` | string | optional | Field to sort by (default `createdAt`). Values: `createdAt` (Arrival time.), `amount` (Amount.). Default: `"createdAt"`. |
| `order` | string | optional | Sort direction. Values: `ASC` (Ascending.), `DESC` (Descending (default).). Default: `"DESC"`. |
| `method` | string | optional | Only this method. Values: `PSE` (Payment of a PSE link.), `BRE_B` (Bre-B transfer to one of your keys.), `BRE_B_QR` (Payment of one of your Bre-B QR codes.). |
| `reference` | string | optional | Only this exact reference. max. 60 characters. |

## Responses

### 200

A page of deposits.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `data` | array<object> | required | The items of this page. |
| `data[].depositId` | string | required | Deposit id: `SBX-MOV-CREDIT-{uuid}` in the sandbox. |
| `data[].method` | string | required | How it arrived. Values: `PSE` (Payment of a PSE link.), `BRE_B` (Bre-B transfer to one of your keys.), `BRE_B_QR` (Payment of one of your Bre-B QR codes.). |
| `data[].amount` | integer | required | Amount credited (COP, whole pesos). |
| `data[].currency` | string | required | Always `COP`. Always `"COP"`. |
| `data[].reference` | string | required | What it belongs to: the link's `reference` (PSE), the key that received it (Bre-B) or the QR's `reference` (or its id). |
| `data[].externalId` | string | required | Network id (PSE CUS or Bre-B transfer id). Synthetic in the sandbox. |
| `data[].payer` | object | required | Payer of the deposit. In the sandbox the data is synthetic (or what you send to the simulator). |
| `data[].payer.fullName` | string | required | Full name or company name. |
| `data[].payer.documentType` | string | required | Document type. |
| `data[].payer.documentNumber` | string | required | Document number. |
| `data[].payer.bankName` | string | required | Bank the payer paid from. |
| `data[].createdAt` | string (date-time) | required | Arrival (UTC). |
| `page` | integer | required | Current page. |
| `size` | integer | required | Requested page size. |
| `pages` | integer | required | Total pages (at least 1). |
| `count` | integer | required | Items in this page. |
| `total` | integer | required | Items across all pages. |

### 400

Invalid request: the body is not JSON, a field has another type or fails its validation.

### 401

The access token is missing, invalid or expired.

### 403

The `X-API-Key` is missing, invalid or does not match the token.

### 429

Too many requests: wait the seconds in `Retry-After`.

### 500

Internal error.

## Errors

| HTTP | error | cause | Description |
| --- | --- | --- | --- |
| 400 | `BadRequestApiError` | `error in struct validation` | One or more fields fail their validation. `values` carries one message per field, keyed by its JSON path, naming the Go validator that failed. |
| 400 | `BadRequestApiError` | `invalid value for "%s": %s` | A URL parameter can not be converted to its type (for example `page=abc`). |
| 401 | — | `Unauthorized` | The `Authorization: Bearer <access_token>` header is missing, or the token is invalid or expired. |
| 403 | — | `Forbidden` | The `X-API-Key` is missing, unknown, revoked or does not belong to the credentials of the token. |
| 429 | — | `Too Many Requests` | You exceeded the request limit of your credentials. Wait the seconds in `Retry-After`. |
| 500 | `InternalServerApiError` | `[code:1] unexpected error` | Internal error. On operations that move money, check the state before retrying so the operation is not duplicated. |

## Examples

### The day's deposits

```bash
curl "https://sandbox.zulu.com.co/v1/deposits?dateFrom=2026-11-24&dateTo=2026-11-24" \
  -H "Authorization: Bearer $ZULU_ACCESS_TOKEN" \
  -H "X-API-Key: $ZULU_API_KEY"
```

**Response 200**

```json
{
  "data": [
    {
      "depositId": "SBX-MOV-CREDIT-8a4e1c2b-7d3f-4b6a-9e5c-0f1d2a3b4c5d",
      "method": "PSE",
      "amount": 250000,
      "currency": "COP",
      "reference": "FAC-2026-0042",
      "externalId": "SBXPSE2611241610001A7K",
      "payer": {
        "fullName": "Marta Ruiz",
        "documentType": "CC",
        "documentNumber": "52123456",
        "bankName": "Banco Davivienda"
      },
      "createdAt": "2026-11-24T16:10:00.000Z"
    },
    {
      "depositId": "SBX-MOV-CREDIT-5d1b2f0e-6c3a-4e8b-9f7d-1a2b3c4d5e6f",
      "method": "BRE_B",
      "amount": 250000,
      "currency": "COP",
      "reference": "@acmepagos",
      "externalId": "SBXBREB2611241504052K9Q",
      "payer": {
        "fullName": "Marta Ruiz",
        "documentType": "CC",
        "documentNumber": "52123456",
        "bankName": "Banco Davivienda"
      },
      "createdAt": "2026-11-24T15:04:05.123Z"
    }
  ],
  "page": 1,
  "size": 10,
  "pages": 1,
  "count": 2,
  "total": 2
}
```

### Reconcile an invoice

```bash
curl "https://sandbox.zulu.com.co/v1/deposits?reference=FAC-2026-0042" \
  -H "Authorization: Bearer $ZULU_ACCESS_TOKEN" \
  -H "X-API-Key: $ZULU_API_KEY"
```

**Response 200**

```json
{
  "data": [
    {
      "depositId": "SBX-MOV-CREDIT-8a4e1c2b-7d3f-4b6a-9e5c-0f1d2a3b4c5d",
      "method": "PSE",
      "amount": 250000,
      "currency": "COP",
      "reference": "FAC-2026-0042",
      "externalId": "SBXPSE2611241610001A7K",
      "payer": {
        "fullName": "Marta Ruiz",
        "documentType": "CC",
        "documentNumber": "52123456",
        "bankName": "Banco Davivienda"
      },
      "createdAt": "2026-11-24T16:10:00.000Z"
    }
  ],
  "page": 1,
  "size": 10,
  "pages": 1,
  "count": 1,
  "total": 1
}
```

### Malformed date

```bash
curl "https://sandbox.zulu.com.co/v1/deposits?dateFrom=24%2F11%2F2026" \
  -H "Authorization: Bearer $ZULU_ACCESS_TOKEN" \
  -H "X-API-Key: $ZULU_API_KEY"
```

**Response 400**

```json
{
  "error": "BadRequestApiError",
  "cause": "error in struct validation",
  "values": {
    "dateFrom": "failed validation on the \"date_format\" tag with value required \"YYYY-MM-DD\""
  }
}
```
