{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/monite/json-schema/monite-create-counterpart-einvoicing-credential-payload-schema.json",
  "title": "CreateCounterpartEinvoicingCredentialPayload",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/monite-counterpart-e-invoicing-credentials-api-openapi.yml#/components/schemas/CreateCounterpartEinvoicingCredentialPayload",
  "anyOf": [
    {
      "$ref": "#/$defs/CreateCounterpartEinvoicingCredentialCounterpartVatId"
    },
    {
      "$ref": "#/$defs/CounterpartEinvoicingCredentialSchema"
    }
  ],
  "additionalProperties": false,
  "$defs": {
    "CounterpartEinvoicingCredentialSchema": {
      "properties": {
        "network_identifier": {
          "type": "string",
          "maxLength": 255,
          "minLength": 1
        },
        "network_schema": {
          "$ref": "#/$defs/EinvoiceSchemaTypeEnum"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "network_identifier",
        "network_schema"
      ]
    },
    "CreateCounterpartEinvoicingCredentialCounterpartVatId": {
      "properties": {
        "counterpart_vat_id_id": {
          "type": "string",
          "format": "uuid",
          "description": "ID of Counterpart VAT ID"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "counterpart_vat_id_id"
      ]
    },
    "EinvoiceSchemaTypeEnum": {
      "type": "string",
      "enum": [
        "DE:VAT",
        "NL:KVK",
        "NL:VAT",
        "BE:VAT",
        "BE:EN"
      ]
    }
  }
}