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
PSE201
WALLET(NEQUI_PSE)202
CHECKOUT204
EFECTY205
TRANSFIYA209
MOVII (MOVIL_PSE)210
DALE (DALE_PSE)211
BREB_KEY212
NEQUI_PUSH213
BREB_QR214
DAVIPLATA_PUSH215

场景

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 (See specific payment method examples here)

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 【When the payment method are 202、213, this mobile phone number must be the user’s wallet account.】
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
Request Example
{
"merchantOrderNo": "OrderNoExample",
"realName": "TeemoPay",
"amount": "30000.00",
"callbackUrl": "https://www.callbackexample.com",
"paymentType": 201,
"email": "TeemoPay@example.com",
"phone": "3000000000",
"bankCode": "1040",
"idType" : "CC",
"idCardNumber" : "123456789",
"sign": "YOUR_SIGN",
"expirationTime": 1718409600000
}

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
{
"code": 200,
"data": {
"merchantOrderNo": "OrderNoExample",
"amount": "30000.00",
"tradeNo": "TS2501010001CO0000000000000000",
"paymentType": 201,
"paymentInfo": "https://mock/pse/",
"additionalInfo": {},
"status": 1,
"errorMsg": null
},
"msg": "success",
"traceId": "30c38418a758434dba4da32fe73b5fd2.106.17833191761712117"
}