收款(Pay-In · 智利)
智利收款(CLP),使用托管收银台 CASHIER_CL;详见 支付方式。须提供 payer.name 且 paymentMethod 为 CASHIER_CL。金额为 整数 CLP 比索(无小数位)。
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-Type | M | String | application/json |
X-TIMESTAMP | M | String | Format: yyyy-MM-ddTHH:mm:ss±HH:mm (e.g. Chile CLT −03:00). |
X-SIGNATURE | M | String | Request signature; Signature Generation. |
X-PARTNER-ID | M | String | merchantID (alphanumeric). |
Body Parameters
| Field | Required | Type | Description |
|---|
orderNo | M | String(32) | 6–32 alphanumeric; unique per merchant. |
purpose | M | String(64) | UTF-8; length 1–64. |
merchant | M | 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). |
money | M | Object | Amount and currency. |
currency | M | String | CLP only. |
amount | M | Number | Integer CLP pesos (whole pesos). |
payer | M | Object | Payer Model. |
name | M | String | Payer full name (UTF-8). |
paymentMethod | M | String | CASHIER_CL; Payment methods. |
expiryPeriod | O | Number | Session TTL (seconds); default 3600; max 86400. |
redirectUrl | O | String(256) | Post-pay redirect URL; HTTP(S); max 256. |
callbackUrl | O | String(256) | Status webhook URL; HTTP(S); max 256. |
Example Body – Transaction Request:
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-Type | M | String | application/json |
X-TIMESTAMP | M | String | Format: yyyy-MM-ddTHH:mm:ss±HH:mm |
Body Parameters
| Field | Required | Type | Description |
|---|
code | M | String | 00 = success; other codes = error. |
message | M | String | Result text (UTF-8). |
orderNo | M | String | Echo of orderNo. |
merchant | M | 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. |
money | M | Object | Money Model. |
currency | M | String | CLP. |
amount | M | Number | Integer CLP pesos. |
transactionTime | M | String | yyyy-MM-ddTHH:mm:ss±HH:mm (e.g. CLT −03:00). |
channel | M | 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. |
tradeNo | O | String | Platform trade ID. |
status | O | String | Status Model. |
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-Type | M | String | application/json |
X-TIMESTAMP | M | String | Format: yyyy-MM-ddTHH:mm:ss±HH:mm |
X-SIGNATURE | M | String | Callback signature; verify. |
Body Parameters
| Field | Required | Type | Description |
|---|
orderNo | M | String | Same orderNo as pay-in. |
tradeNo | M | String | Platform tradeNo. |
merchantId | M | String | Merchant ID. |
merchantName | M | String | Display name. |
subMerchantId | O | String | Sub-merchant ID. |
subMerchantName | O | String | Sub-merchant name. |
paymentMethod | M | String | Settled channel (CASHIER_CL on pay-in). |
transactionTime | M | String | Completion time. |
status | M | String | Status Model. |
money | M | 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. |
payer | O | Object | Payer snapshot when returned; Payer Model. |
name | O | String | Payer name when returned. |
Return
Important
Respond with the string SUCCESS only.
{
"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"
}
}