Skip to content

Ironfang Finance API problem type

unsupported_document_type

Unsupported document type. HTTP 422.

What it means

The document type could not be detected from the root element, or does not match the requested type or the selected ruleset's type. The document was not validated.

What to do

Send a UBL Invoice or CreditNote, and make document_type or the ruleset agree with the document's root element.

What the response carries

type
https://ironfang.uk/problems/unsupported_document_type, this page.
status
Always 422 for this code.
code
unsupported_document_type. Stable: branch on this, not on the wording of title or detail.
detail
What happened this time, safe to show to a person. It never carries invoice content.
request_id
The same value as the X-Ironfang-Request-ID header. Quote it to support.
retry_after_seconds
Never present for this code.
outcome
Absent. This code is not a statement about any document.

Problems follow RFC 9457 and are served as application/problem+json. A validation finding is never a Problem: an invalid invoice is a successful response that lists its findings. See every problem type, the Finance guide and the OpenAPI contract.