# Verificación de Detalle de Cuotas

# Request Base URL

Test Environment : https://gateway-test.transfersmile.com

Prod Environment : https://gateway.transfersmile.com

# EndPoints

/trade/installments

# 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 creado en dashboard
timestamp string Si 19 yyyy-MM-dd HH:mm:ss
amount decimal Si 0.01 ~ 99999999999999.99 monto
currency string Si 3 moneda

# Ejemplo de Request

curl --location --request POST 'https://gateway.transfersmile.com/trade/installments' \
--header 'Authorization: Basic Base64(appid:security_key)' \
--header 'Content-Type: application/json' \
--data-raw '{
    "app_id": "app_id",
    "timestamp": "{{datetime}}",
    "amount": "{{amount}}",
    "currency": "{{currency}}"
}'

# Http Response (JSON formato)

Parametro Requerido Descripción
code string código regresado
msg string Msg retornado
fee List Fee​ Lista detallada de comisión

# Fee

Parametro Requerido Descripción
stage string Etapa de cuotas
amount_each string Monto de cada etapa
amount Fee Monto total

# Return Code (Exitoso)

{
  "code": "10000",
  "msg": "Success",
  "fee": [
    {
      "stage":1,
      "amount_each":200.00,
      "amount":200.00
    },
    ...
  ]
}

# Return Code (Fallido)

{
  "code": "40002",
  "msg": "Business Failed",
  "sub_code": "invalid-signature",
  "sub_msg": "invalid signature"
}