{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/france-identite/json-schema/france-identite-issuance-service-registration-schema.json",
  "title": "IssuanceServiceRegistration",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/france-identite-organisation-openapi.yml#/components/schemas/IssuanceServiceRegistration",
  "type": "object",
  "required": [
    "id",
    "legalName",
    "entitlement",
    "issuerUrl",
    "serviceIdentifier",
    "providesAttestations"
  ],
  "properties": {
    "id": {
      "$ref": "#/$defs/OwnOrganisationId"
    },
    "legalName": {
      "type": "string",
      "maxLength": 300
    },
    "tradeName": {
      "type": "string",
      "description": "Defaults to `legalName`, also for an organisation already registered."
    },
    "siren": {
      "$ref": "#/$defs/RegisteredSiren"
    },
    "organizationIdentifier": {
      "$ref": "#/$defs/RegisteredOrganizationIdentifier"
    },
    "identifiers": {
      "$ref": "#/$defs/RegisteredIdentifiers"
    },
    "entitlement": {
      "$ref": "#/$defs/ProviderEntitlement"
    },
    "issuerUrl": {
      "type": "string",
      "format": "uri",
      "description": "Your issuer's address. Each issuance service has its own."
    },
    "serviceIdentifier": {
      "type": "string",
      "description": "Unique within your organisation; an existing issuance service with it is replaced."
    },
    "serviceTradeName": {
      "type": "string"
    },
    "csr": {
      "type": "string",
      "description": "The access certificate request (PEM), unless `keyCustody` is `sandbox-generated`."
    },
    "keyCustody": {
      "type": "string",
      "enum": [
        "subscriber",
        "sandbox-generated"
      ]
    },
    "instanceName": {
      "$ref": "#/$defs/AccessCertificateInstanceName"
    },
    "issuerCertificatePem": {
      "type": "string",
      "description": "Your issuer certificate (PEM, P-256), unless `keyCustody` is `sandbox-generated`."
    },
    "issuerCertificateChainPem": {
      "type": "string",
      "description": "Its chain up to a self-signed CA (PEM)."
    },
    "issuerCertificateType": {
      "type": "string",
      "enum": [
        "signing",
        "ca"
      ],
      "default": "signing"
    },
    "issuerProof": {
      "type": "string",
      "description": "The proof from `POST /api/issuer/proof-template`, signed."
    },
    "providesAttestations": {
      "type": "array",
      "minItems": 1,
      "items": {
        "$ref": "#/$defs/IssuedAttestation"
      }
    }
  },
  "$defs": {
    "AccessCertificateInstanceName": {
      "type": "string",
      "maxLength": 64,
      "description": "Optional. The instance of the service the access certificate is for, written as the\nOU of its subject (ETSI TS 119 411-8 GEN-6.6.1-08): letters, digits, spaces and\n. , : ' ( ) & _ -. The same name, whatever its case, renews that instance's\ncertificate; a new one adds a certificate. A named instance needs your own `csr`:\nthe sandbox keeps one generated key per service.\n"
    },
    "IssuedAttestation": {
      "type": "object",
      "required": [
        "format",
        "meta",
        "claimPaths"
      ],
      "properties": {
        "format": {
          "type": "string",
          "enum": [
            "mso_mdoc",
            "dc+sd-jwt"
          ]
        },
        "schemaUri": {
          "type": "string",
          "description": "Identifies the attestation",
          "for its status.": null
        },
        "meta": {
          "type": "object",
          "description": "`doctype_value` for an mdoc, `vct` for an SD-JWT.",
          "properties": {
            "doctype_value": {
              "type": "string"
            },
            "vct": {
              "type": "string"
            }
          }
        },
        "displayName": {
          "type": "string"
        },
        "credentialConfigurationId": {
          "type": "string",
          "description": "As in your issuer's OpenID4VCI metadata."
        },
        "claimPaths": {
          "type": "array",
          "minItems": 1,
          "maxItems": 100,
          "items": {
            "type": "array",
            "minItems": 1,
            "items": {
              "type": "string"
            }
          }
        }
      }
    },
    "OwnOrganisationId": {
      "type": "string",
      "description": "Your organisation's register identifier. With an API key, the key's own organisation, which `GET /api/me` gives: any other answers `403`."
    },
    "ProviderEntitlement": {
      "type": "string",
      "enum": [
        "https://uri.etsi.org/19475/Entitlement/PID_Provider",
        "https://uri.etsi.org/19475/Entitlement/QEAA_Provider",
        "https://uri.etsi.org/19475/Entitlement/PUB_EAA_Provider",
        "https://uri.etsi.org/19475/Entitlement/Non_Q_EAA_Provider"
      ]
    },
    "RegisteredIdentifiers": {
      "type": "array",
      "description": "For an organisation registered with this call, the identifiers it is registered under,\nas in TS5 (`type` short or as its `http://data.europa.eu/eudi/id/` URI). The first of\nan `EUID` (`NTR…`), an `LEI` (`LEIXG-…`), a `VATIN` (`VAT…`, its country prefix or\nthe organisation's country) and a `TIN` (`VAT…`) gives the `organizationIdentifier`.\nAn `EORI-No` or `Excise` number alone does not: ETSI EN 319 412-1 does not yet define\ntheir form, so state the `organizationIdentifier` (`EORFR-…`) instead.\n",
      "items": {
        "type": "object",
        "required": [
          "identifier",
          "type"
        ],
        "properties": {
          "identifier": {
            "type": "string"
          },
          "type": {
            "type": "string"
          }
        }
      }
    },
    "RegisteredOrganizationIdentifier": {
      "type": "string",
      "description": "For an organisation registered with this call: the identifier its certificates carry,\nin ETSI EN 319 412-1 form. Three letters (`NTR`, `VAT`, `LEI`, `EOR` or `EXC`, ETSI TS\n119 475 Table 2), the country code (`XG` for an LEI, `EL` for Greece), a hyphen and\nthe identifier: `NTRFR-444555666`, `VATFR-40303265045`, `LEIXG-5299000J2N45DDNE4Y28`.\n"
    },
    "RegisteredSiren": {
      "type": "string",
      "pattern": "^[0-9]{9}$",
      "description": "For an organisation registered with this call: its SIREN, which its certificates carry\nas `organizationIdentifier` `NTRFR-<SIREN>` (ETSI EN 319 412-1). An organisation needs\nthis, an `organizationIdentifier` or `identifiers`, unless its `id` is a French trade\nregister reference (`FR-RCS.<city>.B.<SIREN>`): otherwise the answer is `400`. An\norganisation already registered keeps its identifier.\n"
    }
  }
}