Skip to content
developers

Pay-in

Create a Bre-B QR code

POST/v1/bre-b/qr-codesSandbox · coming soon

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

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

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

Request

Headers

  • Idempotency-KeystringoptionalSandbox · coming soon
    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 Idempotent-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

  • keystringoptional
    Your key that receives the payment. Without it, your oldest active key.
    max. 31 charactersExample: "@acmepagos"
  • amountintegeroptional
    COP amount (whole pesos, up to 12,110,000). With an amount the QR is dynamic.
    > 0Example: 85000
  • referencestringoptional
    Your reference (up to 25 characters).
    max. 25 charactersExample: "PED-1093"
  • expiresInMinutesintegeroptional
    Minutes until it expires (1 to 10,080). Default 60 for a dynamic QR; a static QR without it never expires.
    ≥ 1≤ 10080Example: 60

Responses

  • 201QR code created.

    Body
    • idstring (uuid)required
      QR code id.
      Example: "3f6c2a9e-8d41-4b7a-9c1e-2f5d7a8b9c0d"
    • typestringrequired
      QR type.

      Values

      • STATICNo amount: the payer types it; takes several payments.
      • DYNAMICFixed amount: a single payment.
    • keystringrequired
      Key that receives the payment.
      Example: "@acmepagos"
    • amountinteger | nullrequired
      Amount (COP); null on a static QR.
      Example: 85000
    • referencestring | nullrequired
      Your reference; the deposit carries it.
      Example: "PED-1093"
    • payloadstringrequired
      EMVCo content of the QR (to render your own image).
      Example: "00020101021226330015CO.ZULU.SANDBOX0110@acmepagos5204000053031705405850005802CO5912SANDBOX ACME6006BOGOTA62120508PED-1093630427D6"
    • imageUrlstringrequired
      SVG image of the QR code, served on the developers site (public: the id is the key).
      Example: "https://developers.zulu.com.co/qr/3f6c2a9e-8d41-4b7a-9c1e-2f5d7a8b9c0d.svg"
    • statusstringrequired
      QR status.

      Values

      • ACTIVETakes payments.
      • PAIDDynamic and already paid.
      • EXPIREDExpired.
    • expiresAtstring (date-time) | nullrequired
      Expiry (UTC); null when 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.

HTTPerrorcauseDescription
400BadRequestApiErrorerror in struct validationOne or more fields fail their validation. values carries one message per field, keyed by its JSON path, naming the Go validator that failed.
400BadRequestApiErrorinvalid json body: %sThe 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.
404NotFoundApiErrorbre-b key "%s" not foundThe key does not exist (in your workspace, or in the Bre-B directory when resolving it). Test data: @notfound.
409ResourceConflictApiErroridempotency key "%s" is still being processedAnother call with the same Idempotency-Key is still running. Retry in a few seconds to receive its response.
422UnprocessableEntityApiErroridempotency key "%s" was used with a different requestThe Idempotency-Key was already used in the last 24 hours with a different body or operation. Use a new key for every distinct operation.
422UnprocessableEntityApiErrorbre-b key "%s" is blockedThe key is blocked and does not receive payments.
422UnprocessableEntityApiErrorthe workspace does not have an active bre-b keyTo create a QR without key, the workspace needs at least one active key (POST /v1/bre-b/keys).
422UnprocessableEntityApiErroramount %d is above the bre-b maximum of %dBre-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"
}