# Get a QR code

`GET /v1/bre-b/qr-codes/{id}` · [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.

Returns a Bre-B QR code with its status: `ACTIVE` while it takes payments, `PAID` once a dynamic QR was paid, `EXPIRED` when it expires. Every payment creates a deposit (`GET /v1/deposits?reference=…`).

## Authentication

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

## Request

### Path parameters

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | string | required | QR code id. |

## Responses

### 200

The QR code.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | string (uuid) | required | QR code id. |
| `type` | string | required | QR type. Values: `STATIC` (No amount: the payer types it; takes several payments.), `DYNAMIC` (Fixed amount: a single payment.). |
| `key` | string | required | Key that receives the payment. |
| `amount` | integer \| null | required | Amount (COP); `null` on a static QR. |
| `reference` | string \| null | required | Your reference; the deposit carries it. |
| `payload` | string | required | EMVCo content of the QR (to render your own image). |
| `imageUrl` | string | required | SVG image of the QR code, served on the developers site (public: the id is the key). |
| `status` | string | required | QR status. Values: `ACTIVE` (Takes payments.), `PAID` (Dynamic and already paid.), `EXPIRED` (Expired.). |
| `expiresAt` | string (date-time) \| null | required | Expiry (UTC); `null` when it never expires. |

### 401

The access token is missing, invalid or expired.

### 403

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

### 404

The resource does not exist.

### 429

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

### 500

Internal error.

## Errors

| HTTP | error | cause | Description |
| --- | --- | --- | --- |
| 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. |
| 404 | `NotFoundApiError` | `qr code "%s" not found` | No QR code with that id exists in your workspace. |
| 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

### A paid dynamic QR

```bash
curl https://sandbox.zulu.com.co/v1/bre-b/qr-codes/3f6c2a9e-8d41-4b7a-9c1e-2f5d7a8b9c0d \
  -H "Authorization: Bearer $ZULU_ACCESS_TOKEN" \
  -H "X-API-Key: $ZULU_API_KEY"
```

**Response 200**

```json
{
  "id": "3f6c2a9e-8d41-4b7a-9c1e-2f5d7a8b9c0d",
  "type": "DYNAMIC",
  "key": "@acmepagos",
  "amount": 85000,
  "reference": "PED-1093",
  "payload": "00020101021226330015CO.ZULU.SANDBOX0110@acmepagos5204000053031705405850005802CO5912SANDBOX ACME6006BOGOTA62120508PED-1093630427D6",
  "imageUrl": "https://developers.zulu.com.co/qr/3f6c2a9e-8d41-4b7a-9c1e-2f5d7a8b9c0d.svg",
  "status": "PAID",
  "expiresAt": "2026-11-24T16:04:05.123Z"
}
```

### Unknown id

```bash
curl https://sandbox.zulu.com.co/v1/bre-b/qr-codes/00000000-0000-4000-8000-000000000000 \
  -H "Authorization: Bearer $ZULU_ACCESS_TOKEN" \
  -H "X-API-Key: $ZULU_API_KEY"
```

**Response 404**

```json
{
  "error": "NotFoundApiError",
  "cause": "qr code \"00000000-0000-4000-8000-000000000000\" not found"
}
```
