booking_tax_lines_invalid
Partner API error
HTTP status: 400
Cause
The bookingTaxLines sent to create a combined booking deposit session are inconsistent: a rate that is not a French VAT rate (unsupported_tax_rate), a line at 0% without zeroRateReason (zero_rate_reason_required) or a zeroRateReason on a line above 0% (zero_rate_reason_not_allowed), a taxCents more than 1 cent away from amountTaxExcludedCents × taxRateBps / 10000, or any VAT on a line at 0% (tax_amount_mismatch), or lines whose amounts excluding tax plus VAT do not add up to bookingAmountCents (total_mismatch). Gando invoices the lines as received and never corrects them.
Partner action
Read error.details.rule and error.details.lineIndex (absent for total_mismatch), fix the VAT breakdown computed by the rental operator's tool, then retry.
Gando action (internal)
Check assertBookingTaxLinesConsistent in modules/booking-deposit-session/utils/booking-tax-lines.ts against the request body.
Example response
{
"error": {
"code": "booking_tax_lines_invalid",
"message": "bookingTaxLines[0]: taxCents 1800 does not match amountTaxExcludedCents × taxRateBps (expected 2000 ± 1)",
"requestId": "3f2b8c1e-5d4a-4e7b-9c1a-2b6d8e0f4a71",
"details": {
"rule": "tax_amount_mismatch",
"lineIndex": 0
}
}
}