# Detalle de Pago
# Request Base URL
Test Environment : https://gateway-test.transfersmile.com
Prod Environment : https://gateway.transfersmile.com
# EndPoints
/trade/query
# Request Header
Parametro | Requerido | Descripción |
---|---|---|
Content-Type | recomendado | application/json |
Authorization | Si | Basic Base64(app_id:security_key) |
# Request Body (JSON formato)
Parametro | Tipo | Requerido | Max Extensión(o Valor por defecto) | Descripción |
---|---|---|---|---|
app_id | string | Si | 32 | app id creada en el dashboard |
timestamp | string | Si | 19 | yyyy-MM-dd HH:mm:ss |
out_trade_no | string | Si | 64 | NO. de transacción del Merchant (No puede estar vacío con trade_no simultaneamente) |
trade_no | string | Si | 64 | NO. de transacción de transfersmile(No puede estar vacío con out_trade_no simultaneamente) |
# Ejemplo de Request
curl --location --request POST 'https://gateway.transfersmile.com/trade/query' \
--header 'Authorization: Basic Base64(appid:security_key)' \
--header 'Content-Type: application/json' \
--data-raw '{
"app_id": "app_id",
"timestamp": "{{datetime}}",
"out_trade_no": "{{out_trade_no}}",
"trade_no": "{{trade_no}}"
}'
# Http Response (JSON formato)
Parametro | Tipo | Descripción |
---|---|---|
code | string | código regresado |
msg | string Msg retornado | |
out_trade_no | string | NO. de transacción del Merchant |
trade_no | string | NO. de transacción de transfersmile |
trade_status | string | status |
order_amount | decimal | monto |
order_currency | string | moneda |
create_time | string | yyyy-MM-dd HH:mm:ss[UTC] |
update_time | string | yyyy-MM-dd HH:mm:ss[UTC] |
refuse_detail | string | Sólo denegado |
customer.identify.type | string | |
customer.identify.number | string | |
customer.email | string | |
customer.phone | string | |
# Return Code (Exitoso)
{
"code": "10000",
"msg": "Success",
"trade_no": "",
"out_trade_no": "",
"trade_status": "",
"order_currency": "",
"order_amount": "",
"customer": {
"identify": {
"number": "",
"type": ""
},
"email": "",
"phone": ""
},
"refuse_detail": "",
"create_time": "",
"update_time": ""
}
# Return Code (Fallido)
{
"code": "40002",
"msg": "Business Failed",
"sub_code": "invalid-signature",
"sub_msg": "invalid signature"
}