Receiving year_end is invalid

When we try to create a company through the API we receive the error “year_end is invalid”.
We are sending the following: “year_end” : “2026-12-31“ which I assume is correct.

This might be even at random, as we have received a number of tickets ourselves.
Most of the time we could fix it by simply running the company creation again.

Could someone verify whether this date format is correct and if so perhaps let us know what is causing this? Perhaps your logging could enlighten us.

Feel free to contact me through e-mail for a more direct approach.

1 Like

Hi @TimothyHaerinck

The issue is related to the date format being sent in the request. For company creation, the year_end field should be provided in the following format:

DD-MM-YYYY

So instead of:

"year_end": "2026-12-31"

It should be:

"year_end": "31-12-2026"

Using the YYYY-MM-DD format can cause the validation to fail, which explains the “year_end is invalid” error you’re seeing.

Kind regards,

Delphine

1 Like