Skip to main content

Installments

Marlim provides the option to split the purchase of foreign currencies in up to 12 installments. Use this endpoint before performing a authorization to return monthly installment amounts and fees.

GETv1/installments

Request Query Params

AttributeTypeDescription
net_valueint32Amount to be charged. Must be spent in cents. E.g.: BRL 1,000.00 = 100000.
card_brandint32Card brand. Accepted values: visa, mastercard, amex, hipercard e elo.
pt_brbooleanOptional parameter that can be passed to return values formatted in Brazilian Real (BRL).
caution

The value in net_value must be passed in cents (e.g.: BRL 10.00 = 1000) and must be greater than or equal to BRL 1.00 (100).

Response Object

PropertyTypeDescription
installmentstringNumber of installments.
gross_amoutint32Total amount to be charged to the customer for the installment.
installment_valueint32Amount that the customer will be charged per month.
interest_ratefloat32Value referring to the percentage of the acquisition fee.
pt_brobjectObject with values formatted in Brazilian Real (BRL).

Real Brasileiro Object

To facilitate the Front-End, you can optionally pass the pt_br parameter with the value true to return values formatted in Brazilian Real (BRL / R$).

PropriedadeTipoDescrição
gross_amoutfloat32The value in amout divided by 100. The reverse path of cents.
gross_amout_currencystringThe value in amout using Javascript's toLocaleString() method.
installment_valuefloat32The monthly installment amount divided by 100. The reverse path of cents.
installment_value_currencystringThe monthly installment amount using the Javascript method toLocaleString().
interest_ratestringAcquire rate percentage in pt_br format.

Samples

Request
curl -X GET -G "https://api.wu.global.marlim.co/v1/installments" \
-H "Content-Type: application/json" \
-H "api_key: api_key_value" \
-d net_value=100000 \
-d card_brand="visa"
Response200
[
{
"installment": "1",
"gross_amout": 103950,
"installment_value": 103950,
"interest_rate": 3.95
},
{
"installment": "2",
"gross_amout": 105652,
"installment_value": 52826,
"interest_rate": 5.65
},
{
"installment": "3",
"gross_amout": 106781,
"installment_value": 35594,
"interest_rate": 6.78
},
{
"installment": "4",
"gross_amout": 107933,
"installment_value": 26983,
"interest_rate": 7.93
},
{
"installment": "5",
"gross_amout": 109111,
"installment_value": 21822,
"interest_rate": 9.11
},
{
"installment": "6",
"gross_amout": 110314,
"installment_value": 18386,
"interest_rate": 10.31
},
{
"installment": "7",
"gross_amout": 112233,
"installment_value": 16033,
"interest_rate": 12.23
},
{
"installment": "8",
"gross_amout": 113507,
"installment_value": 14188,
"interest_rate": 13.51
},
{
"installment": "9",
"gross_amout": 114811,
"installment_value": 12757,
"interest_rate": 14.81
},
{
"installment": "10",
"gross_amout": 116144,
"installment_value": 11614,
"interest_rate": 16.14
},
{
"installment": "11",
"gross_amout": 117508,
"installment_value": 10683,
"interest_rate": 17.51
},
{
"installment": "12",
"gross_amout": 118906,
"installment_value": 9909,
"interest_rate": 18.91
}
]