Skip to content

Create Payin Order

Request URL

methodurl
POST/api/pay/payment/create/v1

Headers

Header ParameterDescription
timestampRequest timestamp
nonceRandom value
countryCountry code (CO)
app_codeApplication ID

Supported Payment Types (paymentType)

Payment Method NamePaymentType
PSE (Payment Online)201
NEQUI (WALLET)202
All (all in one checkoout)204
EFECTY (CASH)205
BREB212

场景

What is Bre-B? Bre-B is Colombia’s next-generation interoperable real-time payment system. The process involves the user copying a unique payment key generated on the checkout page and pasting it into their banking app to complete the transfer.

Important Considerations: Manual Input: Since users manually enter the payment amount within their banking app, the actual amount paid may differ from the initial order amount. Reconciliation: The system will send a callback notification based on the actual funds received. It is essential to use the final amount provided in the callback for reconciliation purposes.

Official Simulator (Generating your own Bre-B Key): You can access the official simulator to understand how to register and generate keys here: 👉 https://www.banrep.gov.co/es/bre-b/simuladores-curso#registro

Request Parameters

FieldTypeRequiredLengthDescription
merchantOrderNoStringyes32Merchant order number
paymentTypeIntyesPayment types, see list above
amountStringyes20Payin amount, integer only, in COP
expirationTimeLongnoExpiration timestamp
realNameStringyes64User’s full name
emailStringyes50User’s email (must match a valid regex format)
phoneStringyes50Phone number, 10 digits, no country code
idCardNumberStringNo50ID Number: CC (10 digits), CE (6-10 digits), NIT (9 digits).
Mandatory when the paymentType is 201 (PSE) or 202 (WALLET).
idTypeStringNo32Id Type: CC (6-10 digits; ID Card), CE (6-10 digits), NIT (9 digits; Tax Identification Number), PA (9 digits; Passport).
Mandatory when the paymentType is 201 (PSE) or 202 (WALLET).
bankCodeStringNo50Bank Code.
Mandatory when the paymentType is 201 (PSE).
Bank List for Reference in Creating Payout-on-Behalf Services
signStringyesSignature
callbackUrlStringno200Callback URL
请求示例
{
"realName": "TeemoPay",
"amount": "10000",
"phone": "1234567890",
"callbackUrl": "https://www.callbackexample.com",
"merchantOrderNo": "2C2741241kCApltr2IATMy0c992278",
"email": "TeemoPay@example.com",
"idType": "CC",
"idCardNumber": "1234567890",
"bankCode": 1040,
"paymentType": 201,
"sign": "YOUR_SIGN"
}
请求示例
{
"realName": "TeemoPay",
"amount": "10000",
"phone": "1234567890",
"callbackUrl": "https://www.callbackexample.com",
"merchantOrderNo": "2C2741241kCApltr2IATMy0c992278",
"email": "TeemoPay@example.com",
"idType": "CC",
"idCardNumber": "1234567890",
"paymentType": 202,
"sign": "YOUR_SIGN"
}

Response Parameters

FieldTypeRequiredLengthDescription
merchantOrderNoStringyes32Merchant order number
tradeNoStringyes32Platform order number
amountStringyes32Transaction amount
paymentTypeIntyes3Payment type
paymentInfoStringyes32Main payment information, e.g., payment link or code
additionalInfoJSONObjectnoExtended information
statusIntyesPayment status: 1 = Success, 3 = Failure
errorMsgStringnoError message (returned only in case of failure)
Response Example
{
"msg": "success",
"traceId": "747bbf80261844ed85b809212aab0d81.85.17422898158610299",
"code": 200,
"data": {
"amount": "10000",
"tradeNo": "TS2501010001CO0000000000000000",
"merchantOrderNo": "OrderNoExample",
"paymentType": 204,
"additionalInfo": {
},
"paymentInfo": "https://www.paymentLinkExample.com",
"status": 1
}
}