# List payment links

`GET /v1/recharge-links` · [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 your PSE payment links, newest first by default. Filter by `status` and search by slug, reference or concept.

## 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 slug, the reference and the concept. 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` (Creation time.), `expiresAt` (Expiry.), `amount` (Amount.). Default: `"createdAt"`. |
| `order` | string | optional | Sort direction. Values: `ASC` (Ascending.), `DESC` (Descending (default).). Default: `"DESC"`. |
| `status` | string | optional | Only this status. Values: `CREATED` (Created; nobody opened it yet.), `AWAITING_PAYMENT` (The payer opened the checkout; the payment is in progress.), `PAID` (Paid: the deposit is in your balance.), `REFUSED` (The bank refused the payment; the payer may retry.), `EXPIRED` (Expired unpaid.), `CANCELLED` (You cancelled it.). |

## Responses

### 200

A page of links.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `data` | array<object> | required | The items of this page. |
| `data[].slug` | string | required | Public identifier of the link (Base58, 10 characters). |
| `data[].reference` | string | required | Your reference (the one you sent, or the slug when you sent none). The deposit the link produces carries it. |
| `data[].amount` | integer \| null | required | Fixed amount (COP); `null` when the payer types it. |
| `data[].concept` | string \| null | required | Concept the payer sees. |
| `data[].paymentMethod` | string | required | Payment method. Values: `PSE` (PSE (debit from any Colombian bank).). |
| `data[].status` | string | required | Link status. Values: `CREATED` (Created; nobody opened it yet.), `AWAITING_PAYMENT` (The payer opened the checkout; the payment is in progress.), `PAID` (Paid: the deposit is in your balance.), `REFUSED` (The bank refused the payment; the payer may retry.), `EXPIRED` (Expired unpaid.), `CANCELLED` (You cancelled it.). |
| `data[].checkoutUrl` | string | required | Payment page to share (a fake checkout in the sandbox). |
| `data[].expiresAt` | string (date-time) \| null | required | Expiry (UTC); `null` when it never expires. |
| `data[].paidAt` | string (date-time) \| null | required | Payment time (UTC); `null` until paid. |
| `data[].failureReason` | string \| null | required | Reason of the last refusal; `null` when there was none. |
| `data[].createdAt` | string (date-time) | required | Creation time (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

### Links awaiting payment

```bash
curl "https://sandbox.zulu.com.co/v1/recharge-links?status=CREATED" \
  -H "Authorization: Bearer $ZULU_ACCESS_TOKEN" \
  -H "X-API-Key: $ZULU_API_KEY"
```

**Response 200**

```json
{
  "data": [
    {
      "slug": "7QmVt3KpXz",
      "reference": "FAC-2026-0042",
      "amount": 250000,
      "concept": "Cuota de noviembre",
      "paymentMethod": "PSE",
      "status": "CREATED",
      "checkoutUrl": "https://developers.zulu.com.co/checkout/7QmVt3KpXz",
      "expiresAt": "2026-11-27T15:04:05.123Z",
      "paidAt": null,
      "failureReason": null,
      "createdAt": "2026-11-24T15:04:05.123Z"
    }
  ],
  "page": 1,
  "size": 10,
  "pages": 1,
  "count": 1,
  "total": 1
}
```

### Non-numeric page

```bash
curl "https://sandbox.zulu.com.co/v1/recharge-links?page=abc" \
  -H "Authorization: Bearer $ZULU_ACCESS_TOKEN" \
  -H "X-API-Key: $ZULU_API_KEY"
```

**Response 400**

```json
{
  "error": "BadRequestApiError",
  "cause": "invalid value for \"page\": strconv.ParseInt: parsing \"abc\": invalid syntax"
}
```
