Problems·HTTP 415
unsupported-media-type
This operation does not accept that Content-Type.
What it means
detail names the Content-Type that was received and the ones the operation accepts.
What to do
Send JSON as application/json. To validate, send the document as application/xml, or as {"document": "..."} in application/json.
Example
Sent as application/problem+json (RFC 9457). Branch on type, which is stable. Never branch on title or detail, which are prose and may change.
{ "type": "https://www.einvoicing.dev/problems/unsupported-media-type", "title": "This operation does not accept that Content-Type.", "status": 415, "detail": "…"}All problem types
Every error the API can return, with what to do about each.
API reference
Every operation, its parameters and the errors it can answer with.