In Today's WTF software engineering the story continues…
I "solved" yesterday's issue by extending the existing functionality to support this new format. All good and so forth, but today I have a totally new problem.
Now the API to the sales backend doesn't work every time. When I call the API with certain data, it gets through just fine. With a different ticket identifier the API returns an error "api is not defined".