Create/Update Custom Interest-free/Fixed installments Configuration
Creates or updates custom Interest-free/Fixed installments configuration for an account.
Request:
curl -X POST https://api.ecartpay.com/api/cards/msi-configuration \
-H "Authorization: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..." \
-H "Content-Type: application/json" \
-d '{
"commissions": [
{
"installments": 3,
"minimum_amount": 500,
"is_active": true,
"fixed_installments": false
},
{
"installments": 6,
"minimum_amount": 1000,
"is_active": true,
"fixed_installments": true
},
{
"installments": 9,
"rate": 0.0999,
"minimum_amount": 900,
"is_active": false,
"fixed_installments": false
},
{
"installments": 12,
"minimum_amount": 2000,
"is_active": true,
"fixed_installments": false
},
{
"installments": 18,
"rate": 0.1899,
"minimum_amount": 1800,
"is_active": false,
"fixed_installments": false
}
],
"amex_fixed_installments": true
}'
Response:
{
"_id": "507f1f77bcf86cd799439012",
"account_id": "507f1f77bcf86cd799439011",
"gateway": "ecartpay",
"is_active": true,
"commissions": [
{
"installments": 3,
"rate": 3.5,
"minimum_amount": 500,
"maximum_amount": 50000,
"is_active": true,
"fixed_installments": false
},
{
"installments": 6,
"rate": 5.5,
"minimum_amount": 1000,
"maximum_amount": 50000,
"is_active": true,
"fixed_installments": true
},
{
"installments": 9,
"rate": 8.5,
"minimum_amount": 900,
"maximum_amount": 50000,
"is_active": false,
"fixed_installments": false
},
{
"installments": 12,
"rate": 11.5,
"minimum_amount": 2000,
"maximum_amount": 50000,
"is_active": true,
"fixed_installments": false
},
{
"installments": 18,
"rate": 15,
"minimum_amount": 1800,
"maximum_amount": 50000,
"is_active": false,
"fixed_installments": false
}
],
"amex_rates": {
"3": 3.25,
"6": 6.25,
"9": 8.25,
"12": 10.25,
"15": 13.25,
"18": 15.25,
"21": 17.25,
"24": 19.25
},
"amex_fixed_installments": true,
"created_at": "2024-01-15T10:30:00.000Z",
"updated_at": "2024-01-15T10:30:00.000Z"
}
Updated 25 days ago