/payins endpoint to create a payment request that your customer will complete using one of the supported payment methods.
General flow
- Send a
POSTrequest to/payinswith the amount, customer data, selectedrail, and method-specific details. - HelloPay creates the payin and returns its initial state.
- For async rails, poll the payin until the source data needed to continue the flow is available.
- The customer completes the payment using the selected payment method.
- HelloPay updates the payin status asynchronously and sends webhook events.
- After the flow ends, the user is redirected to the
callbackUrlyou provided.
Polling behavior
For async payin rails such asPSE and BRE_B, the creation response can omit some source data until HelloPay finishes preparing the flow.
- In
PSEpayins,sourceData.pseUrlis returned asnullright after creation. - In
BRE_Bpayins,sourceDatadepends onbreb.keyType.SINGLE_USEreturns the generated key, andQR_CODEalso returnssourceData.qrStringwith the QR image payload. - Poll the payin after creation to retrieve the updated
sourceDatavalues once HelloPay finishes populating them. - The method-specific guides include request and response examples for each async flow.
Common fields
These fields are shared across all payin methods:amountInCents: amount to collect in cents.currency: currentlyCOP.rail: payment method to use, such asPSEorBRE_B.reference: your internal payment reference.inlineCustomer: customer information used during the payment flow.callbackUrl: URL where the payer is redirected after completing the payment.
Supported document types
Use one of the following values ininlineCustomer.idType:
| Value | Description |
|---|---|
PASSPORT | Passport document. |
CO_CC | Colombian citizenship ID. |
CO_NIT | Colombian tax identification number for businesses. |
CO_CE | Colombian foreigner ID card. |
Supported payment methods
- PSE payin guide: bank redirect flow using PSE.
- BREB payin guide: collection flow using a BREB key.

