Discussions
Error in payment plan calculation
10 months ago by Mark Mulder
With the following payload to Payment Plan update endpoint:
{
"payment_plans":[
{
"price":"1049.50",
"days_before_departure":150,
"date":"2025-04-11T00:00:00.000Z",
"error":null
},
{
"price":"1049.50",
"days_before_departure":60,
"date":"2025-07-10T00:00:00.000Z",
"error":null
}
],
"allow_partial_payment":true,
"allow_auto_payment":null,
"deposit":300
}
The following error is returned:
{
"error": {
"message": "Installments have to be €2,299.00 in total, but you have €2,099.00"
}
}
Which appears as though the validation code is ignoring the deposit in its calculation, but is still odd since the price set to the package is actually €2,399.00 (not €2,299.00 as stated in the error message)

