Gå til hovedindhold
Api reference

Error Reference

All API error codes, HTTP status codes, and resolution steps.

Error Reference

Authentication errors

HTTPError messageCauseResolution
401Missing API keyNo x-api-key headerAdd the x-api-key header
401Invalid API key formatKey doesn't start with pk_test_ or pk_live_Check for typos or whitespace
401API key not foundKey doesn't exist in the databaseVerify the key was copied correctly
401API key expiredThe key's expiry date has passedCreate a new key in your dashboard

Access errors

HTTPError messageCauseResolution
403Account suspendedYour subscription was cancelled and not renewedSubscribe to a plan at aldersverificering.dk/account/subscription
403Account overdue — production access suspendedInvoice payment failedUpdate your payment method in your dashboard
403Production API access is not enabledProduction access has been disabled on your accountCheck your payment status or contact support
403Email verification requiredYour account email is not verifiedCheck your inbox for the verification email
403Origin not whitelistedThe Origin header doesn't match a whitelisted domainAdd the origin in Account → Domains

Request errors

HTTPError messageCauseResolution
400Missing required field: seqIdNo seqId in request bodyInclude a UUID v4 seqId
400Missing required field: minAgeNo minAge in request bodyInclude the minAge (e.g. 18)
405Method not allowedWrong HTTP methodUse POST

Server errors\n\nIf you receive a 500, contact support with the request seqId and timestamp. Include the endpoint you called and approximate time. Do not retry the same seqId.

On this page