rail: "BRE_B" when you want to collect a payin through the BREB flow.
Before implementing this rail:
- Review How to create your first payin for the shared request fields and lifecycle.
- Configure webhooks so your system receives the final payin status.
- Treat
callbackUrlas the payer return URL only. The definitive payment result is delivered asynchronously.
Recommended BREB flow
- Create the payin with
rail: "BRE_B"and the desiredbreb.keyType. - HelloPay creates the payin in
PROCESSING. - For
SINGLE_USE, HelloPay returns the generated BREB key insourceData.keyString. - For
QR_CODE, HelloPay also returnssourceData.qrStringwith a base64 image that you can render as a QR. - Poll the payin or wait for webhook events until HelloPay updates the transaction with the BREB-specific data and final status.
- Track the final state through webhook events such as
payin.confirmed,payin.canceled, orpayin.declined.
Request examples
- SINGLE_USE
- QR_CODE
Use
breb.keyType: "SINGLE_USE" when you want HelloPay to return only the generated BREB key.Request fields
amountInCents: amount to collect, expressed in cents.currency: currentlyCOP.rail: must beBRE_B.reference: your internal identifier for this payin.inlineCustomer: customer information used during the payment flow. Supported document types are listed in How to create your first payin.breb.keyType: BREB key mode to generate. UseSINGLE_USEfor a key-only flow orQR_CODEto also receivesourceData.qrString.callbackUrl: URL where the payer is redirected after the payment flow is completed.
Response examples
- SINGLE_USE
- QR_CODE
What the response means
status: "PROCESSING"means the payin was created successfully and is waiting for the BREB flow to complete.sourceData.keyTypetells you which BREB key mode was used for the transaction.sourceData.keyStringis available in both variants so you can identify the generated BREB key.sourceData.qrStringis returned only forQR_CODEpayins and contains adata:image/png;base64,...payload ready to render.- The creation response is not the final outcome. Rely on webhooks to learn whether the payin was confirmed, canceled, or declined.

