Skip to content
einvoicing.dev

Problems·HTTP 422

invalid-code

The code is not correct.

What it means

The six-digit code did not match. Each wrong guess spends one of the sign-in's five attempts.

What to do

Check the most recent email: requesting a new code cancels older ones. When no attempts remain, request a new code.

Extra members

attempts_remaining
How many more guesses this sign-in allows.

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.

Exampleapplication/problem+json
{  "type": "https://www.einvoicing.dev/problems/invalid-code",  "title": "The code is not correct.",  "status": 422,  "detail": "",  "attempts_remaining": ""}
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.