{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/jsonpage-com/json-schema/jsonpage-com-eoricheck-schema.json",
  "title": "EORICheck",
  "x-generated": "2026-12-02",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/jsonpage-com-api-openapi.json#/components/schemas/EORICheck",
  "type": "object",
  "required": [
    "eori",
    "country",
    "status",
    "valid",
    "checked_at"
  ],
  "properties": {
    "eori": {
      "type": "string",
      "description": "The number as checked (upper case, no spaces)."
    },
    "country": {
      "type": "string",
      "description": "Two-letter country code of the number."
    },
    "status": {
      "type": "string",
      "enum": [
        "valid",
        "invalid",
        "unverifiable",
        "not_applicable"
      ],
      "description": "valid or invalid: definitive answer of the official service, reused for 24 hours. unverifiable: the service did not answer, retry later (never reported as invalid). not_applicable: Switzerland and Norway, where the European EORI does not apply."
    },
    "valid": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "true or false for valid and invalid, null otherwise."
    },
    "checked_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "name": {
      "type": "string",
      "description": "Name of the operator, only when the official service gives it (the operator agreed to its publication)."
    },
    "address": {
      "type": "string",
      "description": "Address of the operator, only when the official service gives it."
    },
    "name_match": {
      "type": "boolean",
      "description": "Present only for a valid number whose name is published, when the name of the company is known (the register for a French number, else the company_name parameter). true when the name held by customs designates that company (case, accents, punctuation and legal forms ignored), false when it differs, for example an EORI held by a subsidiary: check that it is the same company."
    },
    "message": {
      "type": "string",
      "description": "Plain explanation for unverifiable and not_applicable."
    }
  }
}