{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/storecove/json-schema/storecove-administration-schema.json",
  "title": "Administration",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/storecove-administrations-api-openapi.yml#/components/schemas/Administration",
  "properties": {
    "id": {
      "type": "integer",
      "title": "Id",
      "description": "The Storecove assigned id for the Administration.",
      "format": "int64"
    },
    "sender_email_identity_id": {
      "title": "Sender email identity",
      "description": "The id of the SenderEmailIdentity. If not provided, the Storecove default sender will be used",
      "type": "integer",
      "format": "int64"
    },
    "legal_entity_id": {
      "type": "integer",
      "title": "Legal etity",
      "description": "The LegalEntity the Administration belongs to.",
      "format": "int64"
    },
    "email": {
      "type": "string",
      "title": "Email",
      "description": "The email address to send the received document to",
      "minLength": 5,
      "maxLength": 128
    },
    "packaging": {
      "title": "Packaging",
      "description": "How to package the purchase invoice.",
      "type": "string",
      "enum": [
        "ubl"
      ]
    },
    "package_version": {
      "title": "Package version",
      "description": "The version of the package.",
      "type": "string",
      "enum": [
        "peppol_bis_v3",
        "aunz",
        "sg"
      ]
    }
  },
  "deprecated": true
}