Pay-in collectionCollect payments in Colombia (COP ) via hosted checkout CASHIER_CO ; see Payment methods . paymentMethod is required; payer / payer.name are optional when the product allows. Amounts are integer COP pesos (no decimal fraction).
Request POST /v2.0/transaction/pay-in
Request Path: sandbox: https://sandbox-gateway.smilepayz.com/v2.0/transaction/pay-in production: https://gateway.smilepayz.com/v2.0/transaction/pay-in
Field Required Type Description Content-TypeM String application/json X-TIMESTAMPM String Format: yyyy-MM-ddTHH:mm:ss±HH:mm (e.g. Colombia COT −05:00 ). X-SIGNATUREM String Request signature; Signature Generation . X-PARTNER-IDM String merchantID (alphanumeric).
Body Parameters Field Required Type Description orderNoM String(32) 6–32 alphanumeric; unique per merchant. purposeM String(64) UTF-8; length 1–64. merchantM Object Merchant routing and settlement. merchantId M String Platform merchant ID. merchantName O String UTF-8 display name. subMerchantId O String Sub-merchant ID. subMerchantName O String Sub-merchant name (UTF-8). moneyM Object Amount and currency. currency M String COP only. amount M Number Integer COP pesos . payerO Object Payer Model when used. name O String Payer display name (UTF-8). paymentMethodM String CASHIER_CO ; Payment methods .expiryPeriodO Number Session TTL (seconds); default 3600 ; max 86400 . redirectUrlO String(256) Post-pay redirect URL; HTTP(S); max 256. callbackUrlO String(256) Status webhook URL; HTTP(S); max 256.
Example Body – Transaction Request: Header CASHIER_CO Body
Content-type: application/json
X-TIMESTAMP: 2020-12-17T10:55:00-05:00
X-SIGNATURE: 7MHd9v5/m9JeqmDZVwWBZUZ5J5...7120QnFEny7Qm7uQR1G0TWCh10fsU6nVxiRoeoQ==
X-PARTNER-ID: 20001
{
"merchant" : {
"merchantId" : "20011"
} ,
"payer" : {
"name" : "Juan Carlos Rodriguez"
} ,
"money" : {
"amount" : 20000 ,
"currency" : "COP"
} ,
"orderNo" : "200110edbb466abb04682968b40" ,
"paymentMethod" : "CASHIER_CO" ,
"purpose" : "Payment for online purchase" ,
"redirectUrl" : "https://www.example.com/success"
}
Responses HTTP Request Field Required Type Description Content-TypeM String application/json X-TIMESTAMPM String Format: yyyy-MM-ddTHH:mm:ss±HH:mm
Body Parameters Field Required Type Description codeM String 00 = success; other codes = error.messageM String Result text (UTF-8). orderNoM String Echo of orderNo . merchantM Object Merchant Model . merchantId M String Merchant ID. merchantName O String Display name. subMerchantId O String Sub-merchant ID. subMerchantName O String Sub-merchant name. accountNo O String Settlement account when returned. moneyM Object Money Model . currency M String COP . amount M Number Integer COP pesos. transactionTimeM String yyyy-MM-ddTHH:mm:ss±HH:mm (e.g. COT −05:00 ).channelM Object Channel Model . paymentMethod M String CASHIER_CO . paymentUrl M String Cashier URL for the payer. qrString O String QR / reference payload when returned. additionalInfo O Object Extra channel data (e.g. alternate paymentUrl ). tradeNoO String Platform trade ID. statusO String Status Model .
Header CASHIER_CO Response Body
Content-type: application/json
X-TIMESTAMP: 2020-12-17T10:55:00-05:00
{
"channel" : {
"additionalInfo" : {
"paymentUrl" : "https://pay-met.co:8080/#/metodo-pago/VE9LRU4gR0VORVJBIFJFQ1VBRD82OTk3NDA="
} ,
"paymentMethod" : "CASHIER_CO" ,
"paymentUrl" : "https://gateway.smilepayz.com/cashier/#/loading?tradeNo=1612001125042115424463245"
} ,
"code" : "00" ,
"merchant" : {
"accountNo" : "11520011202402290943" ,
"merchantId" : "20011" ,
"merchantName" : "bradytest123www"
} ,
"message" : "Successful" ,
"money" : {
"amount" : 20000 ,
"currency" : "COP"
} ,
"orderNo" : "20011563d9094aa7d4d9e9b933bb" ,
"status" : "PROCESSING" ,
"tradeNo" : "1612001125042115424463245" ,
"transactionTime" : "2025-04-21T03:42:47-05:00"
}
Notification/Callback HTTP Request Field Required Type Description Content-TypeM String application/json X-TIMESTAMPM String Format: yyyy-MM-ddTHH:mm:ss±HH:mm X-SIGNATUREM String Callback signature; verify .
Body Parameters Field Required Type Description orderNoM String Same orderNo as pay-in. tradeNoM String Platform tradeNo . merchantIdM String Merchant ID. merchantNameM String Display name. subMerchantIdO String Sub-merchant ID. subMerchantNameO String Sub-merchant name. paymentMethodM String Settled channel (CASHIER_CO for hosted pay-in). transactionTimeM String Completion time. statusM String Status Model .moneyM Object Final amount; Money Model . currency M String COP . amount M Number Integer COP pesos. Note: notification amount may differ from the original request; use it for reconciliation. payerO Object Payer snapshot when returned; Payer Model . name O String Payer name when returned.
Return Important
Respond with the string SUCCESS only.
Request Response
{
"orderNo" : "2000102900000000000001" ,
"tradeNo" : "161200012410241325417215" ,
"merchantId" : "20001" ,
"merchantName" : "test" ,
"subMerchantId" : "" ,
"subMerchantName" : "" ,
"paymentMethod" : "CASHIER_CO" ,
"transactionTime" : "2024-12-17T10:55:00-05:00" ,
"money" : {
"currency" : "COP" ,
"amount" : 100000
} ,
"status" : "SUCCESS" ,
"payer" : {
"name" : "Juan Carlos Rodriguez"
}
}
Next
Disbursement (pay-out)