Authorization: Bearer <access_token> (401 when missing or expired) and X-API-Key (403 when missing or not matching).
Creates a Bre-B QR code tied to one of your keys. With amount it is dynamic (one payment of that amount, expiring after 60 minutes by default); without amount it is static (the payer types the amount and it takes several payments). payload is the EMVCo content to render your own image; imageUrl, a ready PNG. In the sandbox the QR uses a non-routable GUID and can never be paid for real: simulate the payment with POST /v1/sandbox/bre-b/qr-codes/{id}/pay.
Authentication
Request
Headers
- Idempotency key (up to 255 characters), valid for 24 hours per workspace. Repeating the call with the same key and body returns the original response with
Idempotency-KeystringoptionalSandbox · coming soonIdempotent-Replayed: true; a different body answers 422 and, while the first call is still running, 409. Production ignores it today: every call creates a new resource.max. 255 charactersExample: "7f9c2ba4-e88f-4c6e-9d43-6a8b8f0f5d21"
Body
- Your key that receives the payment. Without it, your oldest active key.
keystringoptionalmax. 31 charactersExample: "@acmepagos" - COP amount (whole pesos, up to 12,110,000). With an amount the QR is dynamic.
amountintegeroptional> 0Example: 85000 - Your reference (up to 25 characters).
referencestringoptionalmax. 25 charactersExample: "PED-1093" - Minutes until it expires (1 to 10,080). Default 60 for a dynamic QR; a static QR without it never expires.
expiresInMinutesintegeroptional≥ 1≤ 10080Example: 60
Responses
201QR code created.
Body
- QR code id.
idstring (uuid)requiredExample: "3f6c2a9e-8d41-4b7a-9c1e-2f5d7a8b9c0d" - QR type.
typestringrequiredValues
- STATICNo amount: the payer types it; takes several payments.
- DYNAMICFixed amount: a single payment.
- Key that receives the payment.
keystringrequiredExample: "@acmepagos" - Amount (COP);
amountinteger | nullrequirednullon a static QR.Example: 85000 - Your reference; the deposit carries it.
referencestring | nullrequiredExample: "PED-1093" - EMVCo content of the QR (to render your own image).
payloadstringrequiredExample: "00020101021226330015CO.ZULU.SANDBOX0110@acmepagos5204000053031705405850005802CO5912SANDBOX ACME6006BOGOTA62120508PED-1093630427D6" - SVG image of the QR code, served on the developers site (public: the id is the key).
imageUrlstringrequiredExample: "https://developers.zulu.com.co/qr/3f6c2a9e-8d41-4b7a-9c1e-2f5d7a8b9c0d.svg" - QR status.
statusstringrequiredValues
- ACTIVETakes payments.
- PAIDDynamic and already paid.
- EXPIREDExpired.
- Expiry (UTC);
expiresAtstring (date-time) | nullrequirednullwhen it never expires.Example: "2026-11-24T16:04:05.123Z"
400Invalid request: the body is not JSON, a field has another type or fails its validation.
401The access token is missing, invalid or expired.
403The `X-API-Key` is missing, invalid or does not match the token.
404The resource does not exist.
409Conflict with the current state.
422The operation can not be processed; nothing is recorded.
429Too many requests: wait the seconds in `Retry-After`.
500Internal error.
Errors
The exact causes this operation can answer, from the error catalog. Compare error and the HTTP status; the cause text is stable but meant for people.
| 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 json body: %s | The body is not valid JSON, or a field has the wrong type (a string where a number goes, for example). Answered before the fields are validated. |
| 404 | NotFoundApiError | bre-b key "%s" not found | The key does not exist (in your workspace, or in the Bre-B directory when resolving it). Test data: @notfound. |
| 409 | ResourceConflictApiError | idempotency key "%s" is still being processed | Another call with the same Idempotency-Key is still running. Retry in a few seconds to receive its response. |
| 422 | UnprocessableEntityApiError | idempotency key "%s" was used with a different request | The Idempotency-Key was already used in the last 24 hours with a different body or operation. Use a new key for every distinct operation. |
| 422 | UnprocessableEntityApiError | bre-b key "%s" is blocked | The key is blocked and does not receive payments. |
| 422 | UnprocessableEntityApiError | the workspace does not have an active bre-b key | To create a QR without key, the workspace needs at least one active key (POST /v1/bre-b/keys). |
| 422 | UnprocessableEntityApiError | amount %d is above the bre-b maximum of %d | Bre-B accepts up to 12,110,000 COP per transfer. |
Also, like every authenticated endpoint: 401 Unauthorized, 403 Forbidden, 429 Too Many Requests (with Retry-After) and 500.
Examples
Dynamic QR for 85,000 COP201
Request
curl https://sandbox.zulu.com.co/v1/bre-b/qr-codes \
-H "Authorization: Bearer $ZULU_ACCESS_TOKEN" \
-H "X-API-Key: $ZULU_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"key": "@acmepagos",
"amount": 85000,
"reference": "PED-1093"
}'Response 201
{
"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": "ACTIVE",
"expiresAt": "2026-11-24T16:04:05.123Z"
}Static QR without amount201
Request
curl https://sandbox.zulu.com.co/v1/bre-b/qr-codes \
-H "Authorization: Bearer $ZULU_ACCESS_TOKEN" \
-H "X-API-Key: $ZULU_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'Response 201
{
"id": "6e1f4a7c-2b9d-4c3e-8f5a-7d0b1c2e3f40",
"type": "STATIC",
"key": "@acmepagos",
"amount": null,
"reference": null,
"payload": "00020101021126330015CO.ZULU.SANDBOX0110@acmepagos5204000053031705802CO5912SANDBOX ACME6006BOGOTA63046DFC",
"imageUrl": "https://developers.zulu.com.co/qr/6e1f4a7c-2b9d-4c3e-8f5a-7d0b1c2e3f40.svg",
"status": "ACTIVE",
"expiresAt": null
}Workspace without active keys422
Request
curl https://sandbox.zulu.com.co/v1/bre-b/qr-codes \
-H "Authorization: Bearer $ZULU_ACCESS_TOKEN" \
-H "X-API-Key: $ZULU_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"amount": 85000
}'Response 422
{
"error": "UnprocessableEntityApiError",
"cause": "the workspace does not have an active bre-b key"
}