Ambiente de teste : https://gateway-test.transfersmile.com
Ambiente de prod : https://gateway.transfersmile.com
| Parâmetro | Obrigatório | Descrição |
|---|
| Content-Type | Recomendado | application/json |
| Authorization | sim | Basic Base64(app_id:security_key) |
| Parâmetro | Tipo | Obrigatório | Comprimento máximo(ou valor padrão) | Descrição |
|---|
| app_id | string | sim | 32 | ID do aplicativo do dashboard |
| timestamp | string | sim | 19 | yyyy-MM-dd HH:mm:ss |
| amount | decimal | sim | 0.01 ~ 99999999999999.99 | quantia |
| currency | string | sim | 3 | moeda |
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}}"
}'
| Parâmetro | Obrigatório | Descrição |
|---|
| code | string | return code |
| msg | string | return msg |
| fee | List Fee | fee detail list |
| Parâmetro | Obrigatório | Descrição |
|---|
| stage | string | stage of installments |
| amount_each | string | amount for each stage |
| amount | Fee | total amount |
{
"code": "10000",
"msg": "Success",
"fee": [
{
"stage":1,
"amount_each":200.00,
"amount":200.00
},
...
]
}
{
"code": "40002",
"msg": "Business Failed",
"sub_code": "invalid-signature",
"sub_msg": "invalid signature"
}