Skip to content
developers

Pay-in

Bre-B QR codes

Generate dynamic Bre-B QR codes (one fixed-amount payment) or static ones (the payer types the amount) tied to your keys.

Sandbox · coming soon

A Bre-B QR code is scanned with any banking app and pays one of your Bre-B keys. zulu gives you the EMVCo content to draw your own QR and a PNG ready to show.

Dynamic or static

TypeHow it is createdPaymentsBest for
DYNAMICWith amountOne, of that amount; then it is PAIDAn order, a bill, a checkout payment
STATICWithout amountMany; the payer types the amount and it stays ACTIVEA QR printed at the counter, tips, donations

Create a QR code

POST/v1/bre-b/qr-codesCreate a Bre-B QR codeSandbox · coming soon

POST /v1/bre-b/qr-codes

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"
}'
  • key is the key that receives. Without it, the oldest of your active keys is used.
  • amount (whole pesos, up to 12,110,000) makes it dynamic.
  • reference (up to 25 characters) travels in the QR and in the deposit: use it to know which order was paid.
  • expiresInMinutes (1 to 10,080) sets the expiry. A dynamic QR expires after 60 minutes by default; a static one without this field never expires.

The response carries payload (the EMVCo content, to render your own image with any QR library) and imageUrl (a PNG). In the sandbox the QR uses a non-routable identifier (CO.ZULU.SANDBOX): no banking app can pay it.

Statuses

StatusWhat it means
ACTIVETakes payments.
PAIDDynamic and already paid.
EXPIREDExpired.
GET/v1/bre-b/qr-codes/{id}Get a QR codeSandbox · coming soon

Every payment creates a deposit with method: BRE_B_QR and the QR's reference (or its id when you sent none), and sends the DEPOSITS webhook.

Simulate the payment

POST/v1/sandbox/bre-b/qr-codes/{id}/paySimulate a QR code paymentSandbox only

A dynamic QR is paid without amount; a static one needs the amount the payer "typed".

POST /v1/sandbox/bre-b/qr-codes/{id}/pay

curl https://sandbox.zulu.com.co/v1/sandbox/bre-b/qr-codes/3f6c2a9e-8d41-4b7a-9c1e-2f5d7a8b9c0d/pay \
  -H "Authorization: Bearer $ZULU_ACCESS_TOKEN" \
  -H "X-API-Key: $ZULU_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "payer": {
    "fullName": "Marta Ruiz",
    "documentType": "CC",
    "documentNumber": "52123456",
    "bankName": "Banco Davivienda"
  }
}'

Errors

HTTPerrorcauseDescription
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.
404NotFoundApiErrorqr code "%s" not foundNo QR code with that id exists in your workspace.
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).
422UnprocessableEntityApiErrorbre-b key "%s" is blockedThe key is blocked and does not receive payments.
422UnprocessableEntityApiErroramount %d is above the bre-b maximum of %dBre-B accepts up to 12,110,000 COP per transfer.
422UnprocessableEntityApiErrorqr code "%s" is %sThe QR code no longer takes payments: it expired, or it is dynamic and was already paid.
422UnprocessableEntityApiErrorqr code "%s" is STATIC: amount is requiredA static QR has no amount: the simulator needs the payment's amount.
422UnprocessableEntityApiErrorqr code "%s" is DYNAMIC: its amount can not be changedA dynamic QR already fixes the amount: omit amount.