Pay-in collectionCollect payments in Chile (CLP ) via hosted checkout CASHIER_CL ; see Payment methods . Send payer.name and paymentMethod: CASHIER_CL . Amounts are integer CLP 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. Chile CLT −03: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 CLP only. amount M Number Integer CLP pesos (whole pesos). payerM Object Payer Model . name M String Payer full name (UTF-8). paymentMethodM String CASHIER_CL ; 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_CL Body
Content-type: application/json
X-TIMESTAMP: 2020-12-17T10:55:00-03:00
X-SIGNATURE: 7MHd9v5/m9JeqmDZVwWBZUZ5J5...7120QnFEny7Qm7uQR1G0TWCh10fsU6nVxiRoeoQ==
X-PARTNER-ID: 20001
{
"merchant" : {
"merchantId" : "20011"
} ,
"payer" : {
"name" : "Carlos Rodriguez Silva"
} ,
"money" : {
"amount" : 20000 ,
"currency" : "CLP"
} ,
"orderNo" : "200110edbb466abb04682968b40" ,
"paymentMethod" : "CASHIER_CL" ,
"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 CLP . amount M Number Integer CLP pesos. transactionTimeM String yyyy-MM-ddTHH:mm:ss±HH:mm (e.g. CLT −03:00 ).channelM Object Channel Model . paymentMethod M String CASHIER_CL . paymentUrl M String Cashier URL for the payer. qrString O String QR / reference payload when returned. additionalInfo O Object Extra channel data when returned. tradeNoO String Platform trade ID. statusO String Status Model .
Header CASHIER_CL Response Body
Content-type: application/json
X-TIMESTAMP: 2020-12-17T10:55:00-03:00
{
"channel" : {
"additionalInfo" : { } ,
"paymentMethod" : "CASHIER_CL" ,
"paymentUrl" : "https://gateway.smilepayz.com/cashier/#/loading?tradeNo=131200112412130836186234" ,
"qrString" : ""
} ,
"code" : "00" ,
"merchant" : {
"accountNo" : "17320011202402290943" ,
"merchantId" : "20011" ,
"merchantName" : "bradytest123www"
} ,
"message" : "Successful" ,
"money" : {
"amount" : 20000 ,
"currency" : "CLP"
} ,
"orderNo" : "20011db2773a6fb2542dfa5cb34c" ,
"status" : "PROCESSING" ,
"tradeNo" : "151200112412130836186234" ,
"transactionTime" : "2024-12-12T23:36:19-03: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_CL on pay-in). transactionTimeM String Completion time. statusM String Status Model .moneyM Object Final amount; Money Model . currency M String CLP . amount M Number Integer CLP 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" : "171200012410241325417215" ,
"merchantId" : "20001" ,
"merchantName" : "test" ,
"subMerchantId" : "" ,
"subMerchantName" : "" ,
"paymentMethod" : "CASHIER_CL" ,
"transactionTime" : "2024-12-17T10:55:00-03:00" ,
"money" : {
"currency" : "CLP" ,
"amount" : 100000
} ,
"status" : "SUCCESS" ,
"payer" : {
"name" : "Carlos Rodriguez Silva"
}
}
Next
Disbursement (pay-out)