Pembayaran masuk (Pay-In · Kolombia)
smilepayz teamsSekitar 3 menit
API pay-in wilayah Kolombia (COP). Lihat Payment methods.
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 request body. |
X-TIMESTAMP | M | String | Format: yyyy-MM-ddTHH:mm:ss±HH:mm (e.g. Colombia COT −05:00). |
X-SIGNATURE | M | String | Signature of JSON body (see product Signature doc). |
X-PARTNER-ID | M | String | Your merchantID (alphanumeric). |
Body Parameters
| Field | Required | Type | Description |
|---|
orderNo | M | String(32) | Merchant-unique id, 6–32 alphanumeric. |
purpose | M | String(64) | Memo to payer, 1–64 UTF-8 chars. |
merchant | M | Object | Wraps merchantId and optional sub-merchant fields. |
merchantId | M | String | Smilepayz merchantId for this call. |
merchantName | O | String | UTF-8 merchant display name. |
subMerchantId | O | String | Sub-merchant ID. |
subMerchantName | O | String | UTF-8 name for subMerchantId. |
money | M | Object | Currency plus amount for this transaction. |
currency | M | String | Fixed to COP. |
amount | M | Number | COP integer minor units (e.g. 10050 = COP 100.50). |
payer | O | Object | Payer object per region rules (see Payer model). |
name | O | String | Beneficiary full name (UTF-8). |
paymentMethod | M | String | Code (see Payment methods doc). |
expiryPeriod | O | Number | Session TTL seconds, default 3600, max 86400 unless noted. |
redirectUrl | O | String(256) | HTTPS post-pay return URL, max 256 chars. |
callbackUrl | O | String(256) | HTTPS async status URL, max 256 chars. |
Example Body – Transaction Request:
Content-type: application/json
X-TIMESTAMP: 2020-12-17T10:55:00-05:00
X-SIGNATURE: 7MHd9v5/m9JeqmDZVwWBZUZ5J5...7120QnFEny7Qm7uQR1G0TWCh10fsU6nVxiRoeoQ==
X-PARTNER-ID: 20001
{
"orderNo": "20011cocash663d9094aa7d4d9e9b",
"purpose": "E-commerce — Bogotá",
"merchant": {
"merchantId": "20011"
},
"money": {
"currency": "COP",
"amount": 100000
},
"payer": {
"name": "María Rodríguez López"
},
"paymentMethod": "CASHIER_CO",
"redirectUrl": "https://www.example.com/success"
}
Responses
HTTP Request
| Field | Required | Type | Description |
|---|
Content-Type | M | String | application/json request body. |
X-TIMESTAMP | M | String | Format: yyyy-MM-ddTHH:mm:ss±HH:mm |
Body Parameters
| Field | Required | Type | Description |
|---|
code | M | String | 00 success, other values error. |
message | M | String | UTF-8 human-readable result line. |
orderNo | M | String | Merchant-unique id, 6–32 alphanumeric. |
tradeNo | O | String | Smilepayz tradeNo for this order. |
merchant | M | Object | Wraps merchantId and optional sub-merchant fields. |
merchantId | M | String | Smilepayz merchantId for this call. |
merchantName | O | String | UTF-8 merchant display name. |
subMerchantId | O | String | Sub-merchant ID. |
subMerchantName | O | String | UTF-8 name for subMerchantId. |
accountNo | O | String | Settlement accountNo if gateway returns it. |
money | M | Object | Currency plus amount for this transaction. |
currency | M | String | Fixed to COP. |
amount | M | Number | COP integer minor units (e.g. 10050 = COP 100.50). |
transactionTime | M | String | yyyy-MM-ddTHH:mm:ss±HH:mm (e.g. COT −05:00). |
channel | M | Object | Channel payload (paymentUrl, qrString, …). |
paymentMethod | M | String | Code (see Payment methods doc). |
paymentUrl | M | String | Cashier URL to open for the payer. |
qrString | O | String | PIX or channel copy-paste string if returned. |
status | O | String | Order or payment status enum value. |
Content-type: application/json
X-TIMESTAMP: 2020-12-17T10:55:00-05:00
{
"code": "00",
"message": "Successful",
"orderNo": "20011cocash663d9094aa7d4d9e9b",
"tradeNo": "1612001125042115424463245",
"merchant": {
"merchantId": "20011",
"merchantName": "Smilepayz Demo Store",
"accountNo": "11520011202402290943"
},
"money": {
"currency": "COP",
"amount": 100000
},
"transactionTime": "2025-04-21T03:42:47-05:00",
"channel": {
"paymentMethod": "CASHIER_CO",
"paymentUrl": "https://gateway.smilepayz.com/cashier/#/loading?tradeNo=1612001125042115424463245"
},
"status": "PROCESSING"
}
Notification/Callback
HTTP Request
| Field | Required | Type | Description |
|---|
Content-Type | M | String | application/json request body. |
X-TIMESTAMP | M | String | Format: yyyy-MM-ddTHH:mm:ss±HH:mm |
X-SIGNATURE | M | String | Callback body signature (see Callback signature guide). |
Body Parameters
| Field | Required | Type | Description |
|---|
orderNo | M | String | Merchant-unique id, 6–32 alphanumeric. |
tradeNo | M | String | Smilepayz tradeNo for this order. |
merchantId | M | String | Smilepayz merchantId for this call. |
merchantName | M | String | UTF-8 merchant display name. |
subMerchantId | O | String | Sub-merchant ID. |
subMerchantName | O | String | UTF-8 name for subMerchantId. |
paymentMethod | M | String | Code (see Payment methods doc). |
transactionTime | M | String | Format: yyyy-MM-ddTHH:mm:ss |
status | M | String | Order or payment status enum value. |
money | M | Object | Currency plus amount for this transaction. |
currency | M | String | Fixed to COP. |
amount | M | Number | COP integer minor units (e.g. 10050 = COP 100.50). |
payer | O | Object | Payer object per region rules (see Payer model). |
name | O | String | Beneficiary full name (UTF-8). |
Return
Important
Respond with the string SUCCESS only.
{
"orderNo": "20011cocash663d9094aa7d4d9e9b",
"tradeNo": "1612001125042115424463245",
"merchantId": "20011",
"merchantName": "Smilepayz Demo Store",
"subMerchantId": "",
"subMerchantName": "",
"paymentMethod": "CASHIER_CO",
"transactionTime": "2025-04-21T03:42:47-05:00",
"status": "SUCCESS",
"money": {
"currency": "COP",
"amount": 100000
},
"payer": {
"name": "María Rodríguez López",
"phone": "573001234567"
}
}