Skip to content

Tax & e-invoicingDAC7 Platform Reporting

dac7.generate

Generate and XSD-check DAC7 DPI v1.0 XML for EU exchange or Irish Revenue. Supports new, additional, replacement and deletion records, up to 500 sellers per file.

POSThttps://api.kanagu.dev/v1/dac7/generate
Price
$0.15 per seller, on successful calls only
Authentication
API key required.
MCP
call_operation with operation: "dac7.generate" at https://api.kanagu.dev/mcp

Compliance coverage

Jurisdictions
Jurisdictions: EU, IE
Standards
  • Council Directive (EU) 2021/514, Annex V2021/5142021-03-22Source
  • DG TAXUD DAC7 DPI XML Schema and User Guide4.00 EN / XSD 1.02023-06-07Source
  • Irish Revenue DAC7/MRDP XSD1.02024-11-14Source
  • Irish Revenue OECD common types1.02026-01-22Source
  • Irish Revenue DPI ISO types (including country and currency codes)1.02026-01-22Source
  • Irish Revenue DAC7/MRDP registration and filing FAQs2026-09-25 snapshot2026-09-25Source
  • Irish Revenue DPI Schema User Guide3.00 EN2022-12-15Source
  • Irish Revenue DAC7 API Functional Design Specifications1.32026-01-22Source
Verification
Both operations run libxml2 against the official DPI 1.0 XSD and check report structure, local rules and supplied filing history.
Last reviewed
2026-11-26
curl https://api.kanagu.dev/v1/dac7/generate \
  -H "Authorization: Bearer $KANAGU_KEY" \
  -H "Content-Type: application/json" \
  -d '{"destination":{"profile":"ireland"},"reportingYear":2026,"messageId":"example-marketplace-01","timestamp":"2027-01-07T13:00:00Z","report":{"kind":"new","history":[],"operator":{"name":"North Quay Markets Ltd","businessNames":["North Quay Markets"],"residenceCountries":["IE"],"tins":[{"issuedBy":"IE","value":"1234567AB"}],"addresses":[{"country":"IE","text":"10 Quay Road, Dublin"}]},"sellers":[{"id":"seller-42","seller":{"identity":{"kind":"individual","firstName":"Orla","lastName":"Byrne","birthDate":"1991-06-14","residenceCountries":["IE"],"tins":[{"issuedBy":"IE","value":"2345678CD"}],"addresses":[{"country":"IE","text":"14 Market Street, Galway"}]},"activities":{"saleOfGoods":[{"consideration":{"amount":"2400","currency":"EUR"},"activities":31,"fees":{"amount":"0","currency":"EUR"},"taxes":{"amount":"0","currency":"EUR"}},{"consideration":{"amount":"0","currency":"EUR"},"activities":0,"fees":{"amount":"0","currency":"EUR"},"taxes":{"amount":"0","currency":"EUR"}},{"consideration":{"amount":"0","currency":"EUR"},"activities":0,"fees":{"amount":"0","currency":"EUR"},"taxes":{"amount":"0","currency":"EUR"}},{"consideration":{"amount":"0","currency":"EUR"},"activities":0,"fees":{"amount":"0","currency":"EUR"},"taxes":{"amount":"0","currency":"EUR"}}]}}}]}}'
const res = await fetch("https://api.kanagu.dev/v1/dac7/generate", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.KANAGU_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "destination": {
      "profile": "ireland"
    },
    "reportingYear": 2026,
    "messageId": "example-marketplace-01",
    "timestamp": "2027-01-07T13:00:00Z",
    "report": {
      "kind": "new",
      "history": [],
      "operator": {
        "name": "North Quay Markets Ltd",
        "businessNames": [
          "North Quay Markets"
        ],
        "residenceCountries": [
          "IE"
        ],
        "tins": [
          {
            "issuedBy": "IE",
            "value": "1234567AB"
          }
        ],
        "addresses": [
          {
            "country": "IE",
            "text": "10 Quay Road, Dublin"
          }
        ]
      },
      "sellers": [
        {
          "id": "seller-42",
          "seller": {
            "identity": {
              "kind": "individual",
              "firstName": "Orla",
              "lastName": "Byrne",
              "birthDate": "1991-06-14",
              "residenceCountries": [
                "IE"
              ],
              "tins": [
                {
                  "issuedBy": "IE",
                  "value": "2345678CD"
                }
              ],
              "addresses": [
                {
                  "country": "IE",
                  "text": "14 Market Street, Galway"
                }
              ]
            },
            "activities": {
              "saleOfGoods": [
                {
                  "consideration": {
                    "amount": "2400",
                    "currency": "EUR"
                  },
                  "activities": 31,
                  "fees": {
                    "amount": "0",
                    "currency": "EUR"
                  },
                  "taxes": {
                    "amount": "0",
                    "currency": "EUR"
                  }
                },
                {
                  "consideration": {
                    "amount": "0",
                    "currency": "EUR"
                  },
                  "activities": 0,
                  "fees": {
                    "amount": "0",
                    "currency": "EUR"
                  },
                  "taxes": {
                    "amount": "0",
                    "currency": "EUR"
                  }
                },
                {
                  "consideration": {
                    "amount": "0",
                    "currency": "EUR"
                  },
                  "activities": 0,
                  "fees": {
                    "amount": "0",
                    "currency": "EUR"
                  },
                  "taxes": {
                    "amount": "0",
                    "currency": "EUR"
                  }
                },
                {
                  "consideration": {
                    "amount": "0",
                    "currency": "EUR"
                  },
                  "activities": 0,
                  "fees": {
                    "amount": "0",
                    "currency": "EUR"
                  },
                  "taxes": {
                    "amount": "0",
                    "currency": "EUR"
                  }
                }
              ]
            }
          }
        }
      ]
    }
  }),
});
if (!res.ok) throw new Error((await res.json()).error.message);
const result = await res.json();
curl https://api.kanagu.dev/mcp \
  -H "Authorization: Bearer $KANAGU_KEY" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"call_operation","arguments":{"operation":"dac7.generate","input":{"destination":{"profile":"ireland"},"reportingYear":2026,"messageId":"example-marketplace-01","timestamp":"2027-01-07T13:00:00Z","report":{"kind":"new","history":[],"operator":{"name":"North Quay Markets Ltd","businessNames":["North Quay Markets"],"residenceCountries":["IE"],"tins":[{"issuedBy":"IE","value":"1234567AB"}],"addresses":[{"country":"IE","text":"10 Quay Road, Dublin"}]},"sellers":[{"id":"seller-42","seller":{"identity":{"kind":"individual","firstName":"Orla","lastName":"Byrne","birthDate":"1991-06-14","residenceCountries":["IE"],"tins":[{"issuedBy":"IE","value":"2345678CD"}],"addresses":[{"country":"IE","text":"14 Market Street, Galway"}]},"activities":{"saleOfGoods":[{"consideration":{"amount":"2400","currency":"EUR"},"activities":31,"fees":{"amount":"0","currency":"EUR"},"taxes":{"amount":"0","currency":"EUR"}},{"consideration":{"amount":"0","currency":"EUR"},"activities":0,"fees":{"amount":"0","currency":"EUR"},"taxes":{"amount":"0","currency":"EUR"}},{"consideration":{"amount":"0","currency":"EUR"},"activities":0,"fees":{"amount":"0","currency":"EUR"},"taxes":{"amount":"0","currency":"EUR"}},{"consideration":{"amount":"0","currency":"EUR"},"activities":0,"fees":{"amount":"0","currency":"EUR"},"taxes":{"amount":"0","currency":"EUR"}}]}}}]}}}}}'
Request body
{
  "destination": {
    "profile": "ireland"
  },
  "reportingYear": 2026,
  "messageId": "example-marketplace-01",
  "timestamp": "2027-01-07T13:00:00Z",
  "report": {
    "kind": "new",
    "history": [],
    "operator": {
      "name": "North Quay Markets Ltd",
      "businessNames": [
        "North Quay Markets"
      ],
      "residenceCountries": [
        "IE"
      ],
      "tins": [
        {
          "issuedBy": "IE",
          "value": "1234567AB"
        }
      ],
      "addresses": [
        {
          "country": "IE",
          "text": "10 Quay Road, Dublin"
        }
      ]
    },
    "sellers": [
      {
        "id": "seller-42",
        "seller": {
          "identity": {
            "kind": "individual",
            "firstName": "Orla",
            "lastName": "Byrne",
            "birthDate": "1991-06-14",
            "residenceCountries": [
              "IE"
            ],
            "tins": [
              {
                "issuedBy": "IE",
                "value": "2345678CD"
              }
            ],
            "addresses": [
              {
                "country": "IE",
                "text": "14 Market Street, Galway"
              }
            ]
          },
          "activities": {
            "saleOfGoods": [
              {
                "consideration": {
                  "amount": "2400",
                  "currency": "EUR"
                },
                "activities": 31,
                "fees": {
                  "amount": "0",
                  "currency": "EUR"
                },
                "taxes": {
                  "amount": "0",
                  "currency": "EUR"
                }
              },
              {
                "consideration": {
                  "amount": "0",
                  "currency": "EUR"
                },
                "activities": 0,
                "fees": {
                  "amount": "0",
                  "currency": "EUR"
                },
                "taxes": {
                  "amount": "0",
                  "currency": "EUR"
                }
              },
              {
                "consideration": {
                  "amount": "0",
                  "currency": "EUR"
                },
                "activities": 0,
                "fees": {
                  "amount": "0",
                  "currency": "EUR"
                },
                "taxes": {
                  "amount": "0",
                  "currency": "EUR"
                }
              },
              {
                "consideration": {
                  "amount": "0",
                  "currency": "EUR"
                },
                "activities": 0,
                "fees": {
                  "amount": "0",
                  "currency": "EUR"
                },
                "taxes": {
                  "amount": "0",
                  "currency": "EUR"
                }
              }
            ]
          }
        }
      }
    ]
  }
}

Request body

application/json

destinationobjectrequired
reportingYearinteger (2023 to 9999)required
timestampstringrequired
messageIdstringrequired
reportobjectrequired

Response

200 · application/json

validbooleanrequired
profile"eu" | "ireland"required
xsdobjectrequired
xsd.version"1.0"required
xsd.sourcestringrequired
xsd.status"passed" | "failed" | "not_run"required
reportableSellersinteger (0 to 9007199254740991)required
errorsarray of objectrequired
errors[].pathstringrequired
errors[].lineinteger (≤ 9007199254740991)
errors[].rulestringrequired
errors[].expectedstringrequired
errors[].actualstringrequired
errors[].sourcestringrequired
needsReviewarray of objectrequired
needsReview[].pathstringrequired
needsReview[].lineinteger (≤ 9007199254740991)
needsReview[].rulestringrequired
needsReview[].expectedstringrequired
needsReview[].actualstringrequired
needsReview[].sourcestringrequired
xmlstring | nullrequired
messageRefIdstring | nullrequired
operatorDocRefIdstring | nullrequired
sellersarray of objectrequired
sellers[].rowinteger (0 to 9007199254740991)required
sellers[].docRefIdstringrequired
sellers[].corrDocRefIdstring

Try it

dac7.generate

$0.15/seller

 

Response

Run the request to see the live response here.

Errors

Errors are JSON {"error":{"code","message"}}. An operation may add its own 400 codes; the message says what to fix.

StatusCode and meaning
400invalid_input

The body does not match the request schema. The message names each field.

400invalid_json

The body is missing or is not valid JSON.

400invalid_idempotency_key

Idempotency-Key must be 1–128 visible ASCII characters.

401invalid_api_key

The Bearer key is missing, malformed, invalid or inactive.

402free_allowance_exhausted

This month's free usage is used up and the account has no subscription. Subscribe from the dashboard, or wait for the next UTC month; Retry-After gives the seconds left.

404not_found

No operation at this path.

409idempotency_conflict

The Idempotency-Key was already used with a different body.

413payload_too_large

JSON bodies may be at most 64 KiB.

500internal_error

The call failed on our side. It is not billed; retry with the same Idempotency-Key.

JSON Schema

Request schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "destination": {
      "oneOf": [
        {
          "type": "object",
          "properties": {
            "profile": {
              "type": "string",
              "const": "eu"
            },
            "transmittingCountry": {
              "type": "string",
              "pattern": "^[A-Z]{2}$"
            },
            "receivingCountry": {
              "type": "string",
              "pattern": "^[A-Z]{2}$"
            }
          },
          "required": [
            "profile",
            "transmittingCountry",
            "receivingCountry"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "profile": {
              "type": "string",
              "const": "ireland"
            },
            "sendingEntityId": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200,
              "pattern": "\\S"
            }
          },
          "required": [
            "profile"
          ],
          "additionalProperties": false
        }
      ]
    },
    "reportingYear": {
      "type": "integer",
      "minimum": 2023,
      "maximum": 9999
    },
    "timestamp": {
      "type": "string",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d))|(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?)$"
    },
    "messageId": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_.-]{1,64}$"
    },
    "report": {
      "oneOf": [
        {
          "type": "object",
          "properties": {
            "kind": {
              "type": "string",
              "const": "new"
            },
            "operator": {
              "type": "object",
              "properties": {
                "residenceCountries": {
                  "minItems": 1,
                  "maxItems": 30,
                  "type": "array",
                  "items": {
                    "type": "string",
                    "pattern": "^[A-Z]{2}$"
                  }
                },
                "addresses": {
                  "minItems": 1,
                  "maxItems": 10,
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "country": {
                        "type": "string",
                        "pattern": "^[A-Z]{2}$"
                      },
                      "text": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 4000,
                        "pattern": "\\S"
                      }
                    },
                    "required": [
                      "country",
                      "text"
                    ],
                    "additionalProperties": false
                  }
                },
                "vatId": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 200,
                  "pattern": "\\S"
                },
                "tins": {
                  "minItems": 1,
                  "maxItems": 20,
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "value": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 200,
                        "pattern": "\\S"
                      },
                      "issuedBy": {
                        "type": "string",
                        "pattern": "^[A-Z]{2}$"
                      }
                    },
                    "required": [
                      "value",
                      "issuedBy"
                    ],
                    "additionalProperties": false
                  }
                },
                "registrations": {
                  "maxItems": 20,
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string",
                        "enum": [
                          "BRN",
                          "LEI",
                          "EIN",
                          "IIN",
                          "Other"
                        ]
                      },
                      "value": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 200,
                        "pattern": "\\S"
                      },
                      "issuedBy": {
                        "type": "string",
                        "pattern": "^[A-Z]{2}$"
                      }
                    },
                    "required": [
                      "type",
                      "value"
                    ],
                    "additionalProperties": false
                  }
                },
                "name": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 200,
                  "pattern": "\\S"
                },
                "businessNames": {
                  "minItems": 1,
                  "maxItems": 20,
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200,
                    "pattern": "\\S"
                  }
                },
                "nexus": {
                  "type": "string",
                  "enum": [
                    "RPONEX1",
                    "RPONEX2",
                    "RPONEX3",
                    "RPONEX4",
                    "RPONEX5"
                  ]
                }
              },
              "required": [
                "residenceCountries",
                "addresses",
                "tins",
                "name",
                "businessNames"
              ],
              "additionalProperties": false
            },
            "sellers": {
              "minItems": 1,
              "maxItems": 500,
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9_.-]{1,64}$"
                  },
                  "seller": {
                    "type": "object",
                    "properties": {
                      "identity": {
                        "oneOf": [
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "individual"
                              },
                              "residenceCountries": {
                                "minItems": 1,
                                "maxItems": 30,
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "pattern": "^[A-Z]{2}$"
                                }
                              },
                              "addresses": {
                                "minItems": 1,
                                "maxItems": 10,
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "country": {
                                      "type": "string",
                                      "pattern": "^[A-Z]{2}$"
                                    },
                                    "text": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 4000,
                                      "pattern": "\\S"
                                    }
                                  },
                                  "required": [
                                    "country",
                                    "text"
                                  ],
                                  "additionalProperties": false
                                }
                              },
                              "vatId": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 200,
                                "pattern": "\\S"
                              },
                              "tins": {
                                "anyOf": [
                                  {
                                    "minItems": 1,
                                    "maxItems": 20,
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "value": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 200,
                                          "pattern": "\\S"
                                        },
                                        "issuedBy": {
                                          "type": "string",
                                          "pattern": "^[A-Z]{2}$"
                                        }
                                      },
                                      "required": [
                                        "value",
                                        "issuedBy"
                                      ],
                                      "additionalProperties": false
                                    }
                                  },
                                  {
                                    "type": "string",
                                    "const": "unknown"
                                  }
                                ]
                              },
                              "firstName": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 200,
                                "pattern": "\\S"
                              },
                              "lastName": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 200,
                                "pattern": "\\S"
                              },
                              "birthDate": {
                                "type": "string",
                                "format": "date",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                              },
                              "birthPlace": {
                                "type": "object",
                                "properties": {
                                  "city": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 200,
                                    "pattern": "\\S"
                                  },
                                  "country": {
                                    "oneOf": [
                                      {
                                        "type": "object",
                                        "properties": {
                                          "kind": {
                                            "type": "string",
                                            "const": "current"
                                          },
                                          "code": {
                                            "type": "string",
                                            "pattern": "^[A-Z]{2}$"
                                          }
                                        },
                                        "required": [
                                          "kind",
                                          "code"
                                        ],
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "kind": {
                                            "type": "string",
                                            "const": "former"
                                          },
                                          "name": {
                                            "type": "string",
                                            "minLength": 1,
                                            "maxLength": 200,
                                            "pattern": "\\S"
                                          }
                                        },
                                        "required": [
                                          "kind",
                                          "name"
                                        ],
                                        "additionalProperties": false
                                      }
                                    ]
                                  }
                                },
                                "required": [
                                  "city",
                                  "country"
                                ],
                                "additionalProperties": false
                              },
                              "financialAccounts": {
                                "maxItems": 20,
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "identifier": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 200,
                                      "pattern": "\\S"
                                    },
                                    "type": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 200,
                                      "pattern": "\\S"
                                    },
                                    "accountHolderName": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 200,
                                      "pattern": "\\S"
                                    },
                                    "otherInfo": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 400
                                    }
                                  },
                                  "required": [
                                    "identifier"
                                  ],
                                  "additionalProperties": false
                                }
                              }
                            },
                            "required": [
                              "kind",
                              "residenceCountries",
                              "addresses",
                              "tins",
                              "firstName",
                              "lastName",
                              "birthDate"
                            ],
                            "additionalProperties": false
                          },
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "entity"
                              },
                              "residenceCountries": {
                                "minItems": 1,
                                "maxItems": 30,
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "pattern": "^[A-Z]{2}$"
                                }
                              },
                              "addresses": {
                                "minItems": 1,
                                "maxItems": 10,
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "country": {
                                      "type": "string",
                                      "pattern": "^[A-Z]{2}$"
                                    },
                                    "text": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 4000,
                                      "pattern": "\\S"
                                    }
                                  },
                                  "required": [
                                    "country",
                                    "text"
                                  ],
                                  "additionalProperties": false
                                }
                              },
                              "vatId": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 200,
                                "pattern": "\\S"
                              },
                              "tins": {
                                "anyOf": [
                                  {
                                    "minItems": 1,
                                    "maxItems": 20,
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "value": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 200,
                                          "pattern": "\\S"
                                        },
                                        "issuedBy": {
                                          "type": "string",
                                          "pattern": "^[A-Z]{2}$"
                                        }
                                      },
                                      "required": [
                                        "value",
                                        "issuedBy"
                                      ],
                                      "additionalProperties": false
                                    }
                                  },
                                  {
                                    "type": "string",
                                    "const": "unknown"
                                  }
                                ]
                              },
                              "name": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 200,
                                "pattern": "\\S"
                              },
                              "registrations": {
                                "maxItems": 20,
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "BRN",
                                        "LEI",
                                        "EIN",
                                        "IIN",
                                        "Other"
                                      ]
                                    },
                                    "value": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 200,
                                      "pattern": "\\S"
                                    },
                                    "issuedBy": {
                                      "type": "string",
                                      "pattern": "^[A-Z]{2}$"
                                    }
                                  },
                                  "required": [
                                    "type",
                                    "value"
                                  ],
                                  "additionalProperties": false
                                }
                              },
                              "permanentEstablishments": {
                                "minItems": 1,
                                "maxItems": 27,
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "pattern": "^[A-Z]{2}$"
                                }
                              },
                              "financialAccounts": {
                                "maxItems": 20,
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "identifier": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 200,
                                      "pattern": "\\S"
                                    },
                                    "type": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 200,
                                      "pattern": "\\S"
                                    },
                                    "accountHolderName": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 200,
                                      "pattern": "\\S"
                                    },
                                    "otherInfo": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 400
                                    }
                                  },
                                  "required": [
                                    "identifier"
                                  ],
                                  "additionalProperties": false
                                }
                              }
                            },
                            "required": [
                              "kind",
                              "residenceCountries",
                              "addresses",
                              "tins",
                              "name"
                            ],
                            "additionalProperties": false
                          }
                        ]
                      },
                      "activities": {
                        "type": "object",
                        "properties": {
                          "immovableProperty": {
                            "minItems": 1,
                            "maxItems": 50,
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "address": {
                                  "type": "object",
                                  "properties": {
                                    "country": {
                                      "type": "string",
                                      "pattern": "^[A-Z]{2}$"
                                    },
                                    "text": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 4000,
                                      "pattern": "\\S"
                                    }
                                  },
                                  "required": [
                                    "country",
                                    "text"
                                  ],
                                  "additionalProperties": false
                                },
                                "landRegistrationNumber": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 200,
                                  "pattern": "\\S"
                                },
                                "quarters": {
                                  "type": "array",
                                  "prefixItems": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "consideration": {
                                          "type": "object",
                                          "properties": {
                                            "amount": {
                                              "type": "string",
                                              "pattern": "^-?\\d{1,18}$"
                                            },
                                            "currency": {
                                              "type": "string",
                                              "pattern": "^[A-Z]{3}$"
                                            }
                                          },
                                          "required": [
                                            "amount",
                                            "currency"
                                          ],
                                          "additionalProperties": false
                                        },
                                        "activities": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 9007199254740991
                                        },
                                        "fees": {
                                          "type": "object",
                                          "properties": {
                                            "amount": {
                                              "type": "string",
                                              "pattern": "^-?\\d{1,18}$"
                                            },
                                            "currency": {
                                              "type": "string",
                                              "pattern": "^[A-Z]{3}$"
                                            }
                                          },
                                          "required": [
                                            "amount",
                                            "currency"
                                          ],
                                          "additionalProperties": false
                                        },
                                        "taxes": {
                                          "type": "object",
                                          "properties": {
                                            "amount": {
                                              "type": "string",
                                              "pattern": "^-?\\d{1,18}$"
                                            },
                                            "currency": {
                                              "type": "string",
                                              "pattern": "^[A-Z]{3}$"
                                            }
                                          },
                                          "required": [
                                            "amount",
                                            "currency"
                                          ],
                                          "additionalProperties": false
                                        }
                                      },
                                      "required": [
                                        "consideration",
                                        "activities",
                                        "fees",
                                        "taxes"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "consideration": {
                                          "type": "object",
                                          "properties": {
                                            "amount": {
                                              "type": "string",
                                              "pattern": "^-?\\d{1,18}$"
                                            },
                                            "currency": {
                                              "type": "string",
                                              "pattern": "^[A-Z]{3}$"
                                            }
                                          },
                                          "required": [
                                            "amount",
                                            "currency"
                                          ],
                                          "additionalProperties": false
                                        },
                                        "activities": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 9007199254740991
                                        },
                                        "fees": {
                                          "type": "object",
                                          "properties": {
                                            "amount": {
                                              "type": "string",
                                              "pattern": "^-?\\d{1,18}$"
                                            },
                                            "currency": {
                                              "type": "string",
                                              "pattern": "^[A-Z]{3}$"
                                            }
                                          },
                                          "required": [
                                            "amount",
                                            "currency"
                                          ],
                                          "additionalProperties": false
                                        },
                                        "taxes": {
                                          "type": "object",
                                          "properties": {
                                            "amount": {
                                              "type": "string",
                                              "pattern": "^-?\\d{1,18}$"
                                            },
                                            "currency": {
                                              "type": "string",
                                              "pattern": "^[A-Z]{3}$"
                                            }
                                          },
                                          "required": [
                                            "amount",
                                            "currency"
                                          ],
                                          "additionalProperties": false
                                        }
                                      },
                                      "required": [
                                        "consideration",
                                        "activities",
                                        "fees",
                                        "taxes"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "consideration": {
                                          "type": "object",
                                          "properties": {
                                            "amount": {
                                              "type": "string",
                                              "pattern": "^-?\\d{1,18}$"
                                            },
                                            "currency": {
                                              "type": "string",
                                              "pattern": "^[A-Z]{3}$"
                                            }
                                          },
                                          "required": [
                                            "amount",
                                            "currency"
                                          ],
                                          "additionalProperties": false
                                        },
                                        "activities": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 9007199254740991
                                        },
                                        "fees": {
                                          "type": "object",
                                          "properties": {
                                            "amount": {
                                              "type": "string",
                                              "pattern": "^-?\\d{1,18}$"
                                            },
                                            "currency": {
                                              "type": "string",
                                              "pattern": "^[A-Z]{3}$"
                                            }
                                          },
                                          "required": [
                                            "amount",
                                            "currency"
                                          ],
                                          "additionalProperties": false
                                        },
                                        "taxes": {
                                          "type": "object",
                                          "properties": {
                                            "amount": {
                                              "type": "string",
                                              "pattern": "^-?\\d{1,18}$"
                                            },
                                            "currency": {
                                              "type": "string",
                                              "pattern": "^[A-Z]{3}$"
                                            }
                                          },
                                          "required": [
                                            "amount",
                                            "currency"
                                          ],
                                          "additionalProperties": false
                                        }
                                      },
                                      "required": [
                                        "consideration",
                                        "activities",
                                        "fees",
                                        "taxes"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "consideration": {
                                          "type": "object",
                                          "properties": {
                                            "amount": {
                                              "type": "string",
                                              "pattern": "^-?\\d{1,18}$"
                                            },
                                            "currency": {
                                              "type": "string",
                                              "pattern": "^[A-Z]{3}$"
                                            }
                                          },
                                          "required": [
                                            "amount",
                                            "currency"
                                          ],
                                          "additionalProperties": false
                                        },
                                        "activities": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 9007199254740991
                                        },
                                        "fees": {
                                          "type": "object",
                                          "properties": {
                                            "amount": {
                                              "type": "string",
                                              "pattern": "^-?\\d{1,18}$"
                                            },
                                            "currency": {
                                              "type": "string",
                                              "pattern": "^[A-Z]{3}$"
                                            }
                                          },
                                          "required": [
                                            "amount",
                                            "currency"
                                          ],
                                          "additionalProperties": false
                                        },
                                        "taxes": {
                                          "type": "object",
                                          "properties": {
                                            "amount": {
                                              "type": "string",
                                              "pattern": "^-?\\d{1,18}$"
                                            },
                                            "currency": {
                                              "type": "string",
                                              "pattern": "^[A-Z]{3}$"
                                            }
                                          },
                                          "required": [
                                            "amount",
                                            "currency"
                                          ],
                                          "additionalProperties": false
                                        }
                                      },
                                      "required": [
                                        "consideration",
                                        "activities",
                                        "fees",
                                        "taxes"
                                      ],
                                      "additionalProperties": false
                                    }
                                  ],
                                  "items": false,
                                  "minItems": 4,
                                  "maxItems": 4
                                },
                                "category": {
                                  "type": "string",
                                  "enum": [
                                    "DPI901",
                                    "DPI902",
                                    "DPI903",
                                    "DPI904",
                                    "DPI905",
                                    "DPI906",
                                    "DPI907",
                                    "DPI908",
                                    "DPI909",
                                    "DPI910"
                                  ]
                                },
                                "otherCategory": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 200,
                                  "pattern": "\\S"
                                },
                                "rentedDays": {
                                  "type": "integer",
                                  "exclusiveMinimum": 0,
                                  "maximum": 9007199254740991
                                }
                              },
                              "required": [
                                "address",
                                "quarters"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "personalServices": {
                            "type": "array",
                            "prefixItems": [
                              {
                                "type": "object",
                                "properties": {
                                  "consideration": {
                                    "type": "object",
                                    "properties": {
                                      "amount": {
                                        "type": "string",
                                        "pattern": "^-?\\d{1,18}$"
                                      },
                                      "currency": {
                                        "type": "string",
                                        "pattern": "^[A-Z]{3}$"
                                      }
                                    },
                                    "required": [
                                      "amount",
                                      "currency"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "activities": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "fees": {
                                    "type": "object",
                                    "properties": {
                                      "amount": {
                                        "type": "string",
                                        "pattern": "^-?\\d{1,18}$"
                                      },
                                      "currency": {
                                        "type": "string",
                                        "pattern": "^[A-Z]{3}$"
                                      }
                                    },
                                    "required": [
                                      "amount",
                                      "currency"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "taxes": {
                                    "type": "object",
                                    "properties": {
                                      "amount": {
                                        "type": "string",
                                        "pattern": "^-?\\d{1,18}$"
                                      },
                                      "currency": {
                                        "type": "string",
                                        "pattern": "^[A-Z]{3}$"
                                      }
                                    },
                                    "required": [
                                      "amount",
                                      "currency"
                                    ],
                                    "additionalProperties": false
                                  }
                                },
                                "required": [
                                  "consideration",
                                  "activities",
                                  "fees",
                                  "taxes"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "consideration": {
                                    "type": "object",
                                    "properties": {
                                      "amount": {
                                        "type": "string",
                                        "pattern": "^-?\\d{1,18}$"
                                      },
                                      "currency": {
                                        "type": "string",
                                        "pattern": "^[A-Z]{3}$"
                                      }
                                    },
                                    "required": [
                                      "amount",
                                      "currency"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "activities": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "fees": {
                                    "type": "object",
                                    "properties": {
                                      "amount": {
                                        "type": "string",
                                        "pattern": "^-?\\d{1,18}$"
                                      },
                                      "currency": {
                                        "type": "string",
                                        "pattern": "^[A-Z]{3}$"
                                      }
                                    },
                                    "required": [
                                      "amount",
                                      "currency"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "taxes": {
                                    "type": "object",
                                    "properties": {
                                      "amount": {
                                        "type": "string",
                                        "pattern": "^-?\\d{1,18}$"
                                      },
                                      "currency": {
                                        "type": "string",
                                        "pattern": "^[A-Z]{3}$"
                                      }
                                    },
                                    "required": [
                                      "amount",
                                      "currency"
                                    ],
                                    "additionalProperties": false
                                  }
                                },
                                "required": [
                                  "consideration",
                                  "activities",
                                  "fees",
                                  "taxes"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "consideration": {
                                    "type": "object",
                                    "properties": {
                                      "amount": {
                                        "type": "string",
                                        "pattern": "^-?\\d{1,18}$"
                                      },
                                      "currency": {
                                        "type": "string",
                                        "pattern": "^[A-Z]{3}$"
                                      }
                                    },
                                    "required": [
                                      "amount",
                                      "currency"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "activities": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "fees": {
                                    "type": "object",
                                    "properties": {
                                      "amount": {
                                        "type": "string",
                                        "pattern": "^-?\\d{1,18}$"
                                      },
                                      "currency": {
                                        "type": "string",
                                        "pattern": "^[A-Z]{3}$"
                                      }
                                    },
                                    "required": [
                                      "amount",
                                      "currency"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "taxes": {
                                    "type": "object",
                                    "properties": {
                                      "amount": {
                                        "type": "string",
                                        "pattern": "^-?\\d{1,18}$"
                                      },
                                      "currency": {
                                        "type": "string",
                                        "pattern": "^[A-Z]{3}$"
                                      }
                                    },
                                    "required": [
                                      "amount",
                                      "currency"
                                    ],
                                    "additionalProperties": false
                                  }
                                },
                                "required": [
                                  "consideration",
                                  "activities",
                                  "fees",
                                  "taxes"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "consideration": {
                                    "type": "object",
                                    "properties": {
                                      "amount": {
                                        "type": "string",
                                        "pattern": "^-?\\d{1,18}$"
                                      },
                                      "currency": {
                                        "type": "string",
                                        "pattern": "^[A-Z]{3}$"
                                      }
                                    },
                                    "required": [
                                      "amount",
                                      "currency"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "activities": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "fees": {
                                    "type": "object",
                                    "properties": {
                                      "amount": {
                                        "type": "string",
                                        "pattern": "^-?\\d{1,18}$"
                                      },
                                      "currency": {
                                        "type": "string",
                                        "pattern": "^[A-Z]{3}$"
                                      }
                                    },
                                    "required": [
                                      "amount",
                                      "currency"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "taxes": {
                                    "type": "object",
                                    "properties": {
                                      "amount": {
                                        "type": "string",
                                        "pattern": "^-?\\d{1,18}$"
                                      },
                                      "currency": {
                                        "type": "string",
                                        "pattern": "^[A-Z]{3}$"
                                      }
                                    },
                                    "required": [
                                      "amount",
                                      "currency"
                                    ],
                                    "additionalProperties": false
                                  }
                                },
                                "required": [
                                  "consideration",
                                  "activities",
                                  "fees",
                                  "taxes"
                                ],
                                "additionalProperties": false
                              }
                            ],
                            "items": false,
                            "minItems": 4,
                            "maxItems": 4
                          },
                          "saleOfGoods": {
                            "type": "array",
                            "prefixItems": [
                              {
                                "type": "object",
                                "properties": {
                                  "consideration": {
                                    "type": "object",
                                    "properties": {
                                      "amount": {
                                        "type": "string",
                                        "pattern": "^-?\\d{1,18}$"
                                      },
                                      "currency": {
                                        "type": "string",
                                        "pattern": "^[A-Z]{3}$"
                                      }
                                    },
                                    "required": [
                                      "amount",
                                      "currency"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "activities": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "fees": {
                                    "type": "object",
                                    "properties": {
                                      "amount": {
                                        "type": "string",
                                        "pattern": "^-?\\d{1,18}$"
                                      },
                                      "currency": {
                                        "type": "string",
                                        "pattern": "^[A-Z]{3}$"
                                      }
                                    },
                                    "required": [
                                      "amount",
                                      "currency"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "taxes": {
                                    "type": "object",
                                    "properties": {
                                      "amount": {
                                        "type": "string",
                                        "pattern": "^-?\\d{1,18}$"
                                      },
                                      "currency": {
                                        "type": "string",
                                        "pattern": "^[A-Z]{3}$"
                                      }
                                    },
                                    "required": [
                                      "amount",
                                      "currency"
                                    ],
                                    "additionalProperties": false
                                  }
                                },
                                "required": [
                                  "consideration",
                                  "activities",
                                  "fees",
                                  "taxes"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "consideration": {
                                    "type": "object",
                                    "properties": {
                                      "amount": {
                                        "type": "string",
                                        "pattern": "^-?\\d{1,18}$"
                                      },
                                      "currency": {
                                        "type": "string",
                                        "pattern": "^[A-Z]{3}$"
                                      }
                                    },
                                    "required": [
                                      "amount",
                                      "currency"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "activities": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "fees": {
                                    "type": "object",
                                    "properties": {
                                      "amount": {
                                        "type": "string",
                                        "pattern": "^-?\\d{1,18}$"
                                      },
                                      "currency": {
                                        "type": "string",
                                        "pattern": "^[A-Z]{3}$"
                                      }
                                    },
                                    "required": [
                                      "amount",
                                      "currency"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "taxes": {
                                    "type": "object",
                                    "properties": {
                                      "amount": {
                                        "type": "string",
                                        "pattern": "^-?\\d{1,18}$"
                                      },
                                      "currency": {
                                        "type": "string",
                                        "pattern": "^[A-Z]{3}$"
                                      }
                                    },
                                    "required": [
                                      "amount",
                                      "currency"
                                    ],
                                    "additionalProperties": false
                                  }
                                },
                                "required": [
                                  "consideration",
                                  "activities",
                                  "fees",
                                  "taxes"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "consideration": {
                                    "type": "object",
                                    "properties": {
                                      "amount": {
                                        "type": "string",
                                        "pattern": "^-?\\d{1,18}$"
                                      },
                                      "currency": {
                                        "type": "string",
                                        "pattern": "^[A-Z]{3}$"
                                      }
                                    },
                                    "required": [
                                      "amount",
                                      "currency"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "activities": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "fees": {
                                    "type": "object",
                                    "properties": {
                                      "amount": {
                                        "type": "string",
                                        "pattern": "^-?\\d{1,18}$"
                                      },
                                      "currency": {
                                        "type": "string",
                                        "pattern": "^[A-Z]{3}$"
                                      }
                                    },
                                    "required": [
                                      "amount",
                                      "currency"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "taxes": {
                                    "type": "object",
                                    "properties": {
                                      "amount": {
                                        "type": "string",
                                        "pattern": "^-?\\d{1,18}$"
                                      },
                                      "currency": {
                                        "type": "string",
                                        "pattern": "^[A-Z]{3}$"
                                      }
                                    },
                                    "required": [
                                      "amount",
                                      "currency"
                                    ],
                                    "additionalProperties": false
                                  }
                                },
                                "required": [
                                  "consideration",
                                  "activities",
                                  "fees",
                                  "taxes"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "consideration": {
                                    "type": "object",
                                    "properties": {
                                      "amount": {
                                        "type": "string",
                                        "pattern": "^-?\\d{1,18}$"
                                      },
                                      "currency": {
                                        "type": "string",
                                        "pattern": "^[A-Z]{3}$"
                                      }
                                    },
                                    "required": [
                                      "amount",
                                      "currency"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "activities": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "fees": {
                                    "type": "object",
                                    "properties": {
                                      "amount": {
                                        "type": "string",
                                        "pattern": "^-?\\d{1,18}$"
                                      },
                                      "currency": {
                                        "type": "string",
                                        "pattern": "^[A-Z]{3}$"
                                      }
                                    },
                                    "required": [
                                      "amount",
                                      "currency"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "taxes": {
                                    "type": "object",
                                    "properties": {
                                      "amount": {
                                        "type": "string",
                                        "pattern": "^-?\\d{1,18}$"
                                      },
                                      "currency": {
                                        "type": "string",
                                        "pattern": "^[A-Z]{3}$"
                                      }
                                    },
                                    "required": [
                                      "amount",
                                      "currency"
                                    ],
                                    "additionalProperties": false
                                  }
                                },
                                "required": [
                                  "consideration",
                                  "activities",
                                  "fees",
                                  "taxes"
                                ],
                                "additionalProperties": false
                              }
                            ],
                            "items": false,
                            "minItems": 4,
                            "maxItems": 4
                          },
                          "transportationRental": {
                            "type": "array",
                            "prefixItems": [
                              {
                                "type": "object",
                                "properties": {
                                  "consideration": {
                                    "type": "object",
                                    "properties": {
                                      "amount": {
                                        "type": "string",
                                        "pattern": "^-?\\d{1,18}$"
                                      },
                                      "currency": {
                                        "type": "string",
                                        "pattern": "^[A-Z]{3}$"
                                      }
                                    },
                                    "required": [
                                      "amount",
                                      "currency"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "activities": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "fees": {
                                    "type": "object",
                                    "properties": {
                                      "amount": {
                                        "type": "string",
                                        "pattern": "^-?\\d{1,18}$"
                                      },
                                      "currency": {
                                        "type": "string",
                                        "pattern": "^[A-Z]{3}$"
                                      }
                                    },
                                    "required": [
                                      "amount",
                                      "currency"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "taxes": {
                                    "type": "object",
                                    "properties": {
                                      "amount": {
                                        "type": "string",
                                        "pattern": "^-?\\d{1,18}$"
                                      },
                                      "currency": {
                                        "type": "string",
                                        "pattern": "^[A-Z]{3}$"
                                      }
                                    },
                                    "required": [
                                      "amount",
                                      "currency"
                                    ],
                                    "additionalProperties": false
                                  }
                                },
                                "required": [
                                  "consideration",
                                  "activities",
                                  "fees",
                                  "taxes"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "consideration": {
                                    "type": "object",
                                    "properties": {
                                      "amount": {
                                        "type": "string",
                                        "pattern": "^-?\\d{1,18}$"
                                      },
                                      "currency": {
                                        "type": "string",
                                        "pattern": "^[A-Z]{3}$"
                                      }
                                    },
                                    "required": [
                                      "amount",
                                      "currency"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "activities": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "fees": {
                                    "type": "object",
                                    "properties": {
                                      "amount": {
                                        "type": "string",
                                        "pattern": "^-?\\d{1,18}$"
                                      },
                                      "currency": {
                                        "type": "string",
                                        "pattern": "^[A-Z]{3}$"
                                      }
                                    },
                                    "required": [
                                      "amount",
                                      "currency"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "taxes": {
                                    "type": "object",
                                    "properties": {
                                      "amount": {
                                        "type": "string",
                                        "pattern": "^-?\\d{1,18}$"
                                      },
                                      "currency": {
                                        "type": "string",
                                        "pattern": "^[A-Z]{3}$"
                                      }
                                    },
                                    "required": [
                                      "amount",
                                      "currency"
                                    ],
                                    "additionalProperties": false
                                  }
                                },
                                "required": [
                                  "consideration",
                                  "activities",
                                  "fees",
                                  "taxes"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "consideration": {
                                    "type": "object",
                                    "properties": {
                                      "amount": {
                                        "type": "string",
                                        "pattern": "^-?\\d{1,18}$"
                                      },
                                      "currency": {
                                        "type": "string",
                                        "pattern": "^[A-Z]{3}$"
                                      }
                                    },
                                    "required": [
                                      "amount",
                                      "currency"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "activities": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "fees": {
                                    "type": "object",
                                    "properties": {
                                      "amount": {
                                        "type": "string",
                                        "pattern": "^-?\\d{1,18}$"
                                      },
                                      "currency": {
                                        "type": "string",
                                        "pattern": "^[A-Z]{3}$"
                                      }
                                    },
                                    "required": [
                                      "amount",
                                      "currency"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "taxes": {
                                    "type": "object",
                                    "properties": {
                                      "amount": {
                                        "type": "string",
                                        "pattern": "^-?\\d{1,18}$"
                                      },
                                      "currency": {
                                        "type": "string",
                                        "pattern": "^[A-Z]{3}$"
                                      }
                                    },
                                    "required": [
                                      "amount",
                                      "currency"
                                    ],
                                    "additionalProperties": false
                                  }
                                },
                                "required": [
                                  "consideration",
                                  "activities",
                                  "fees",
                                  "taxes"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "consideration": {
                                    "type": "object",
                                    "properties": {
                                      "amount": {
                                        "type": "string",
                                        "pattern": "^-?\\d{1,18}$"
                                      },
                                      "currency": {
                                        "type": "string",
                                        "pattern": "^[A-Z]{3}$"
                                      }
                                    },
                                    "required": [
                                      "amount",
                                      "currency"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "activities": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "fees": {
                                    "type": "object",
                                    "properties": {
                                      "amount": {
                                        "type": "string",
                                        "pattern": "^-?\\d{1,18}$"
                                      },
                                      "currency": {
                                        "type": "string",
                                        "pattern": "^[A-Z]{3}$"
                                      }
                                    },
                                    "required": [
                                      "amount",
                                      "currency"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "taxes": {
                                    "type": "object",
                                    "properties": {
                                      "amount": {
                                        "type": "string",
                                        "pattern": "^-?\\d{1,18}$"
                                      },
                                      "currency": {
                                        "type": "string",
                                        "pattern": "^[A-Z]{3}$"
                                      }
                                    },
                                    "required": [
                                      "amount",
                                      "currency"
                                    ],
                                    "additionalProperties": false
                                  }
                                },
                                "required": [
                                  "consideration",
                                  "activities",
                                  "fees",
                                  "taxes"
                                ],
                                "additionalProperties": false
                              }
                            ],
                            "items": false,
                            "minItems": 4,
                            "maxItems": 4
                          }
                        },
                        "additionalProperties": false
                      }
                    },
                    "required": [
                      "identity",
                      "activities"
                    ],
                    "additionalProperties": false
                  }
                },
                "required": [
                  "id",
                  "seller"
                ],
                "additionalProperties": false
              }
            },
            "history": {
              "maxItems": 20,
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1,
                "maxLength": 4194304
              }
            }
          },
          "required": [
            "kind",
            "operator",
            "sellers"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "kind": {
              "type": "string",
              "const": "additional"
            },
            "operatorDocRefId": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            },
            "sellers": {
              "minItems": 1,
              "maxItems": 500,
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9_.-]{1,64}$"
                  },
                  "seller": {
                    "type": "object",
                    "properties": {
                      "identity": {
                        "oneOf": [
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "individual"
                              },
                              "residenceCountries": {
                                "minItems": 1,
                                "maxItems": 30,
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "pattern": "^[A-Z]{2}$"
                                }
                              },
                              "addresses": {
                                "minItems": 1,
                                "maxItems": 10,
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "country": {
                                      "type": "string",
                                      "pattern": "^[A-Z]{2}$"
                                    },
                                    "text": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 4000,
                                      "pattern": "\\S"
                                    }
                                  },
                                  "required": [
                                    "country",
                                    "text"
                                  ],
                                  "additionalProperties": false
                                }
                              },
                              "vatId": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 200,
                                "pattern": "\\S"
                              },
                              "tins": {
                                "anyOf": [
                                  {
                                    "minItems": 1,
                                    "maxItems": 20,
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "value": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 200,
                                          "pattern": "\\S"
                                        },
                                        "issuedBy": {
                                          "type": "string",
                                          "pattern": "^[A-Z]{2}$"
                                        }
                                      },
                                      "required": [
                                        "value",
                                        "issuedBy"
                                      ],
                                      "additionalProperties": false
                                    }
                                  },
                                  {
                                    "type": "string",
                                    "const": "unknown"
                                  }
                                ]
                              },
                              "firstName": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 200,
                                "pattern": "\\S"
                              },
                              "lastName": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 200,
                                "pattern": "\\S"
                              },
                              "birthDate": {
                                "type": "string",
                                "format": "date",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                              },
                              "birthPlace": {
                                "type": "object",
                                "properties": {
                                  "city": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 200,
                                    "pattern": "\\S"
                                  },
                                  "country": {
                                    "oneOf": [
                                      {
                                        "type": "object",
                                        "properties": {
                                          "kind": {
                                            "type": "string",
                                            "const": "current"
                                          },
                                          "code": {
                                            "type": "string",
                                            "pattern": "^[A-Z]{2}$"
                                          }
                                        },
                                        "required": [
                                          "kind",
                                          "code"
                                        ],
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "kind": {
                                            "type": "string",
                                            "const": "former"
                                          },
                                          "name": {
                                            "type": "string",
                                            "minLength": 1,
                                            "maxLength": 200,
                                            "pattern": "\\S"
                                          }
                                        },
                                        "required": [
                                          "kind",
                                          "name"
                                        ],
                                        "additionalProperties": false
                                      }
                                    ]
                                  }
                                },
                                "required": [
                                  "city",
                                  "country"
                                ],
                                "additionalProperties": false
                              },
                              "financialAccounts": {
                                "maxItems": 20,
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "identifier": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 200,
                                      "pattern": "\\S"
                                    },
                                    "type": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 200,
                                      "pattern": "\\S"
                                    },
                                    "accountHolderName": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 200,
                                      "pattern": "\\S"
                                    },
                                    "otherInfo": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 400
                                    }
                                  },
                                  "required": [
                                    "identifier"
                                  ],
                                  "additionalProperties": false
                                }
                              }
                            },
                            "required": [
                              "kind",
                              "residenceCountries",
                              "addresses",
                              "tins",
                              "firstName",
                              "lastName",
                              "birthDate"
                            ],
                            "additionalProperties": false
                          },
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "entity"
                              },
                              "residenceCountries": {
                                "minItems": 1,
                                "maxItems": 30,
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "pattern": "^[A-Z]{2}$"
                                }
                              },
                              "addresses": {
                                "minItems": 1,
                                "maxItems": 10,
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "country": {
                                      "type": "string",
                                      "pattern": "^[A-Z]{2}$"
                                    },
                                    "text": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 4000,
                                      "pattern": "\\S"
                                    }
                                  },
                                  "required": [
                                    "country",
                                    "text"
                                  ],
                                  "additionalProperties": false
                                }
                              },
                              "vatId": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 200,
                                "pattern": "\\S"
                              },
                              "tins": {
                                "anyOf": [
                                  {
                                    "minItems": 1,
                                    "maxItems": 20,
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "value": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 200,
                                          "pattern": "\\S"
                                        },
                                        "issuedBy": {
                                          "type": "string",
                                          "pattern": "^[A-Z]{2}$"
                                        }
                                      },
                                      "required": [
                                        "value",
                                        "issuedBy"
                                      ],
                                      "additionalProperties": false
                                    }
                                  },
                                  {
                                    "type": "string",
                                    "const": "unknown"
                                  }
                                ]
                              },
                              "name": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 200,
                                "pattern": "\\S"
                              },
                              "registrations": {
                                "maxItems": 20,
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "BRN",
                                        "LEI",
                                        "EIN",
                                        "IIN",
                                        "Other"
                                      ]
                                    },
                                    "value": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 200,
                                      "pattern": "\\S"
                                    },
                                    "issuedBy": {
                                      "type": "string",
                                      "pattern": "^[A-Z]{2}$"
                                    }
                                  },
                                  "required": [
                                    "type",
                                    "value"
                                  ],
                                  "additionalProperties": false
                                }
                              },
                              "permanentEstablishments": {
                                "minItems": 1,
                                "maxItems": 27,
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "pattern": "^[A-Z]{2}$"
                                }
                              },
                              "financialAccounts": {
                                "maxItems": 20,
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "identifier": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 200,
                                      "pattern": "\\S"
                                    },
                                    "type": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 200,
                                      "pattern": "\\S"
                                    },
                                    "accountHolderName": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 200,
                                      "pattern": "\\S"
                                    },
                                    "otherInfo": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 400
                                    }
                                  },
                                  "required": [
                                    "identifier"
                                  ],
                                  "additionalProperties": false
                                }
                              }
                            },
                            "required": [
                              "kind",
                              "residenceCountries",
                              "addresses",
                              "tins",
                              "name"
                            ],
                            "additionalProperties": false
                          }
                        ]
                      },
                      "activities": {
                        "type": "object",
                        "properties": {
                          "immovableProperty": {
                            "minItems": 1,
                            "maxItems": 50,
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "address": {
                                  "type": "object",
                                  "properties": {
                                    "country": {
                                      "type": "string",
                                      "pattern": "^[A-Z]{2}$"
                                    },
                                    "text": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 4000,
                                      "pattern": "\\S"
                                    }
                                  },
                                  "required": [
                                    "country",
                                    "text"
                                  ],
                                  "additionalProperties": false
                                },
                                "landRegistrationNumber": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 200,
                                  "pattern": "\\S"
                                },
                                "quarters": {
                                  "type": "array",
                                  "prefixItems": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "consideration": {
                                          "type": "object",
                                          "properties": {
                                            "amount": {
                                              "type": "string",
                                              "pattern": "^-?\\d{1,18}$"
                                            },
                                            "currency": {
                                              "type": "string",
                                              "pattern": "^[A-Z]{3}$"
                                            }
                                          },
                                          "required": [
                                            "amount",
                                            "currency"
                                          ],
                                          "additionalProperties": false
                                        },
                                        "activities": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 9007199254740991
                                        },
                                        "fees": {
                                          "type": "object",
                                          "properties": {
                                            "amount": {
                                              "type": "string",
                                              "pattern": "^-?\\d{1,18}$"
                                            },
                                            "currency": {
                                              "type": "string",
                                              "pattern": "^[A-Z]{3}$"
                                            }
                                          },
                                          "required": [
                                            "amount",
                                            "currency"
                                          ],
                                          "additionalProperties": false
                                        },
                                        "taxes": {
                                          "type": "object",
                                          "properties": {
                                            "amount": {
                                              "type": "string",
                                              "pattern": "^-?\\d{1,18}$"
                                            },
                                            "currency": {
                                              "type": "string",
                                              "pattern": "^[A-Z]{3}$"
                                            }
                                          },
                                          "required": [
                                            "amount",
                                            "currency"
                                          ],
                                          "additionalProperties": false
                                        }
                                      },
                                      "required": [
                                        "consideration",
                                        "activities",
                                        "fees",
                                        "taxes"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "consideration": {
                                          "type": "object",
                                          "properties": {
                                            "amount": {
                                              "type": "string",
                                              "pattern": "^-?\\d{1,18}$"
                                            },
                                            "currency": {
                                              "type": "string",
                                              "pattern": "^[A-Z]{3}$"
                                            }
                                          },
                                          "required": [
                                            "amount",
                                            "currency"
                                          ],
                                          "additionalProperties": false
                                        },
                                        "activities": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 9007199254740991
                                        },
                                        "fees": {
                                          "type": "object",
                                          "properties": {
                                            "amount": {
                                              "type": "string",
                                              "pattern": "^-?\\d{1,18}$"
                                            },
                                            "currency": {
                                              "type": "string",
                                              "pattern": "^[A-Z]{3}$"
                                            }
                                          },
                                          "required": [
                                            "amount",
                                            "currency"
                                          ],
                                          "additionalProperties": false
                                        },
                                        "taxes": {
                                          "type": "object",
                                          "properties": {
                                            "amount": {
                                              "type": "string",
                                              "pattern": "^-?\\d{1,18}$"
                                            },
                                            "currency": {
                                              "type": "string",
                                              "pattern": "^[A-Z]{3}$"
                                            }
                                          },
                                          "required": [
                                            "amount",
                                            "currency"
                                          ],
                                          "additionalProperties": false
                                        }
                                      },
                                      "required": [
                                        "consideration",
                                        "activities",
                                        "fees",
                                        "taxes"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "consideration": {
                                          "type": "object",
                                          "properties": {
                                            "amount": {
                                              "type": "string",
                                              "pattern": "^-?\\d{1,18}$"
                                            },
                                            "currency": {
                                              "type": "string",
                                              "pattern": "^[A-Z]{3}$"
                                            }
                                          },
                                          "required": [
                                            "amount",
                                            "currency"
                                          ],
                                          "additionalProperties": false
                                        },
                                        "activities": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 9007199254740991
                                        },
                                        "fees": {
                                          "type": "object",
                                          "properties": {
                                            "amount": {
                                              "type": "string",
                                              "pattern": "^-?\\d{1,18}$"
                                            },
                                            "currency": {
                                              "type": "string",
                                              "pattern": "^[A-Z]{3}$"
                                            }
                                          },
                                          "required": [
                                            "amount",
                                            "currency"
                                          ],
                                          "additionalProperties": false
                                        },
                                        "taxes": {
                                          "type": "object",
                                          "properties": {
                                            "amount": {
                                              "type": "string",
                                              "pattern": "^-?\\d{1,18}$"
                                            },
                                            "currency": {
                                              "type": "string",
                                              "pattern": "^[A-Z]{3}$"
                                            }
                                          },
                                          "required": [
                                            "amount",
                                            "currency"
                                          ],
                                          "additionalProperties": false
                                        }
                                      },
                                      "required": [
                                        "consideration",
                                        "activities",
                                        "fees",
                                        "taxes"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "consideration": {
                                          "type": "object",
                                          "properties": {
                                            "amount": {
                                              "type": "string",
                                              "pattern": "^-?\\d{1,18}$"
                                            },
                                            "currency": {
                                              "type": "string",
                                              "pattern": "^[A-Z]{3}$"
                                            }
                                          },
                                          "required": [
                                            "amount",
                                            "currency"
                                          ],
                                          "additionalProperties": false
                                        },
                                        "activities": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 9007199254740991
                                        },
                                        "fees": {
                                          "type": "object",
                                          "properties": {
                                            "amount": {
                                              "type": "string",
                                              "pattern": "^-?\\d{1,18}$"
                                            },
                                            "currency": {
                                              "type": "string",
                                              "pattern": "^[A-Z]{3}$"
                                            }
                                          },
                                          "required": [
                                            "amount",
                                            "currency"
                                          ],
                                          "additionalProperties": false
                                        },
                                        "taxes": {
                                          "type": "object",
                                          "properties": {
                                            "amount": {
                                              "type": "string",
                                              "pattern": "^-?\\d{1,18}$"
                                            },
                                            "currency": {
                                              "type": "string",
                                              "pattern": "^[A-Z]{3}$"
                                            }
                                          },
                                          "required": [
                                            "amount",
                                            "currency"
                                          ],
                                          "additionalProperties": false
                                        }
                                      },
                                      "required": [
                                        "consideration",
                                        "activities",
                                        "fees",
                                        "taxes"
                                      ],
                                      "additionalProperties": false
                                    }
                                  ],
                                  "items": false,
                                  "minItems": 4,
                                  "maxItems": 4
                                },
                                "category": {
                                  "type": "string",
                                  "enum": [
                                    "DPI901",
                                    "DPI902",
                                    "DPI903",
                                    "DPI904",
                                    "DPI905",
                                    "DPI906",
                                    "DPI907",
                                    "DPI908",
                                    "DPI909",
                                    "DPI910"
                                  ]
                                },
                                "otherCategory": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 200,
                                  "pattern": "\\S"
                                },
                                "rentedDays": {
                                  "type": "integer",
                                  "exclusiveMinimum": 0,
                                  "maximum": 9007199254740991
                                }
                              },
                              "required": [
                                "address",
                                "quarters"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "personalServices": {
                            "type": "array",
                            "prefixItems": [
                              {
                                "type": "object",
                                "properties": {
                                  "consideration": {
                                    "type": "object",
                                    "properties": {
                                      "amount": {
                                        "type": "string",
                                        "pattern": "^-?\\d{1,18}$"
                                      },
                                      "currency": {
                                        "type": "string",
                                        "pattern": "^[A-Z]{3}$"
                                      }
                                    },
                                    "required": [
                                      "amount",
                                      "currency"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "activities": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "fees": {
                                    "type": "object",
                                    "properties": {
                                      "amount": {
                                        "type": "string",
                                        "pattern": "^-?\\d{1,18}$"
                                      },
                                      "currency": {
                                        "type": "string",
                                        "pattern": "^[A-Z]{3}$"
                                      }
                                    },
                                    "required": [
                                      "amount",
                                      "currency"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "taxes": {
                                    "type": "object",
                                    "properties": {
                                      "amount": {
                                        "type": "string",
                                        "pattern": "^-?\\d{1,18}$"
                                      },
                                      "currency": {
                                        "type": "string",
                                        "pattern": "^[A-Z]{3}$"
                                      }
                                    },
                                    "required": [
                                      "amount",
                                      "currency"
                                    ],
                                    "additionalProperties": false
                                  }
                                },
                                "required": [
                                  "consideration",
                                  "activities",
                                  "fees",
                                  "taxes"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "consideration": {
                                    "type": "object",
                                    "properties": {
                                      "amount": {
                                        "type": "string",
                                        "pattern": "^-?\\d{1,18}$"
                                      },
                                      "currency": {
                                        "type": "string",
                                        "pattern": "^[A-Z]{3}$"
                                      }
                                    },
                                    "required": [
                                      "amount",
                                      "currency"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "activities": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "fees": {
                                    "type": "object",
                                    "properties": {
                                      "amount": {
                                        "type": "string",
                                        "pattern": "^-?\\d{1,18}$"
                                      },
                                      "currency": {
                                        "type": "string",
                                        "pattern": "^[A-Z]{3}$"
                                      }
                                    },
                                    "required": [
                                      "amount",
                                      "currency"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "taxes": {
                                    "type": "object",
                                    "properties": {
                                      "amount": {
                                        "type": "string",
                                        "pattern": "^-?\\d{1,18}$"
                                      },
                                      "currency": {
                                        "type": "string",
                                        "pattern": "^[A-Z]{3}$"
                                      }
                                    },
                                    "required": [
                                      "amount",
                                      "currency"
                                    ],
                                    "additionalProperties": false
                                  }
                                },
                                "required": [
                                  "consideration",
                                  "activities",
                                  "fees",
                                  "taxes"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "consideration": {
                                    "type": "object",
                                    "properties": {
                                      "amount": {
                                        "type": "string",
                                        "pattern": "^-?\\d{1,18}$"
                                      },
                                      "currency": {
                                        "type": "string",
                                        "pattern": "^[A-Z]{3}$"
                                      }
                                    },
                                    "required": [
                                      "amount",
                                      "currency"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "activities": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "fees": {
                                    "type": "object",
                                    "properties": {
                                      "amount": {
                                        "type": "string",
                                        "pattern": "^-?\\d{1,18}$"
                                      },
                                      "currency": {
                                        "type": "string",
                                        "pattern": "^[A-Z]{3}$"
                                      }
                                    },
                                    "required": [
                                      "amount",
                                      "currency"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "taxes": {
                                    "type": "object",
                                    "properties": {
                                      "amount": {
                                        "type": "string",
                                        "pattern": "^-?\\d{1,18}$"
                                      },
                                      "currency": {
                                        "type": "string",
                                        "pattern": "^[A-Z]{3}$"
                                      }
                                    },
                                    "required": [
                                      "amount",
                                      "currency"
                                    ],
                                    "additionalProperties": false
                                  }
                                },
                                "required": [
                                  "consideration",
                                  "activities",
                                  "fees",
                                  "taxes"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "consideration": {
                                    "type": "object",
                                    "properties": {
                                      "amount": {
                                        "type": "string",
                                        "pattern": "^-?\\d{1,18}$"
                                      },
                                      "currency": {
                                        "type": "string",
                                        "pattern": "^[A-Z]{3}$"
                                      }
                                    },
                                    "required": [
                                      "amount",
                                      "currency"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "activities": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "fees": {
                                    "type": "object",
                                    "properties": {
                                      "amount": {
                                        "type": "string",
                                        "pattern": "^-?\\d{1,18}$"
                                      },
                                      "currency": {
                                        "type": "string",
                                        "pattern": "^[A-Z]{3}$"
                                      }
                                    },
                                    "required": [
                                      "amount",
                                      "currency"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "taxes": {
                                    "type": "object",
                                    "properties": {
                                      "amount": {
                                        "type": "string",
                                        "pattern": "^-?\\d{1,18}$"
                                      },
                                      "currency": {
                                        "type": "string",
                                        "pattern": "^[A-Z]{3}$"
                                      }
                                    },
                                    "required": [
                                      "amount",
                                      "currency"
                                    ],
                                    "additionalProperties": false
                                  }
                                },
                                "required": [
                                  "consideration",
                                  "activities",
                                  "fees",
                                  "taxes"
                                ],
                                "additionalProperties": false
                              }
                            ],
                            "items": false,
                            "minItems": 4,
                            "maxItems": 4
                          },
                          "saleOfGoods": {
                            "type": "array",
                            "prefixItems": [
                              {
                                "type": "object",
                                "properties": {
                                  "consideration": {
                                    "type": "object",
                                    "properties": {
                                      "amount": {
                                        "type": "string",
                                        "pattern": "^-?\\d{1,18}$"
                                      },
                                      "currency": {
                                        "type": "string",
                                        "pattern": "^[A-Z]{3}$"
                                      }
                                    },
                                    "required": [
                                      "amount",
                                      "currency"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "activities": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "fees": {
                                    "type": "object",
                                    "properties": {
                                      "amount": {
                                        "type": "string",
                                        "pattern": "^-?\\d{1,18}$"
                                      },
                                      "currency": {
                                        "type": "string",
                                        "pattern": "^[A-Z]{3}$"
                                      }
                                    },
                                    "required": [
                                      "amount",
                                      "currency"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "taxes": {
                                    "type": "object",
                                    "properties": {
                                      "amount": {
                                        "type": "string",
                                        "pattern": "^-?\\d{1,18}$"
                                      },
                                      "currency": {
                                        "type": "string",
                                        "pattern": "^[A-Z]{3}$"
                                      }
                                    },
                                    "required": [
                                      "amount",
                                      "currency"
                                    ],
                                    "additionalProperties": false
                                  }
                                },
                                "required": [
                                  "consideration",
                                  "activities",
                                  "fees",
                                  "taxes"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "consideration": {
                                    "type": "object",
                                    "properties": {
                                      "amount": {
                                        "type": "string",
                                        "pattern": "^-?\\d{1,18}$"
                                      },
                                      "currency": {
                                        "type": "string",
                                        "pattern": "^[A-Z]{3}$"
                                      }
                                    },
                                    "required": [
                                      "amount",
                                      "currency"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "activities": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "fees": {
                                    "type": "object",
                                    "properties": {
                                      "amount": {
                                        "type": "string",
                                        "pattern": "^-?\\d{1,18}$"
                                      },
                                      "currency": {
                                        "type": "string",
                                        "pattern": "^[A-Z]{3}$"
                                      }
                                    },
                                    "required": [
                                      "amount",
                                      "currency"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "taxes": {
                                    "type": "object",
                                    "properties": {
                                      "amount": {
                                        "type": "string",
                                        "pattern": "^-?\\d{1,18}$"
                                      },
                                      "currency": {
                                        "type": "string",
                                        "pattern": "^[A-Z]{3}$"
                                      }
                                    },
                                    "required": [
                                      "amount",
                                      "currency"
                                    ],
                                    "additionalProperties": false
                                  }
                                },
                                "required": [
                                  "consideration",
                                  "activities",
                                  "fees",
                                  "taxes"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "consideration": {
                                    "type": "object",
                                    "properties": {
                                      "amount": {
                                        "type": "string",
                                        "pattern": "^-?\\d{1,18}$"
                                      },
                                      "currency": {
                                        "type": "string",
                                        "pattern": "^[A-Z]{3}$"
                                      }
                                    },
                                    "required": [
                                      "amount",
                                      "currency"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "activities": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "fees": {
                                    "type": "object",
                                    "properties": {
                                      "amount": {
                                        "type": "string",
                                        "pattern": "^-?\\d{1,18}$"
                                      },
                                      "currency": {
                                        "type": "string",
                                        "pattern": "^[A-Z]{3}$"
                                      }
                                    },
                                    "required": [
                                      "amount",
                                      "currency"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "taxes": {
                                    "type": "object",
                                    "properties": {
                                      "amount": {
                                        "type": "string",
                                        "pattern": "^-?\\d{1,18}$"
                                      },
                                      "currency": {
                                        "type": "string",
                                        "pattern": "^[A-Z]{3}$"
                                      }
                                    },
                                    "required": [
                                      "amount",
                                      "currency"
                                    ],
                                    "additionalProperties": false
                                  }
                                },
                                "required": [
                                  "consideration",
                                  "activities",
                                  "fees",
                                  "taxes"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "consideration": {
                                    "type": "object",
                                    "properties": {
                                      "amount": {
                                        "type": "string",
                                        "pattern": "^-?\\d{1,18}$"
                                      },
                                      "currency": {
                                        "type": "string",
                                        "pattern": "^[A-Z]{3}$"
                                      }
                                    },
                                    "required": [
                                      "amount",
                                      "currency"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "activities": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "fees": {
                                    "type": "object",
                                    "properties": {
                                      "amount": {
                                        "type": "string",
                                        "pattern": "^-?\\d{1,18}$"
                                      },
                                      "currency": {
                                        "type": "string",
                                        "pattern": "^[A-Z]{3}$"
                                      }
                                    },
                                    "required": [
                                      "amount",
                                      "currency"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "taxes": {
                                    "type": "object",
                                    "properties": {
                                      "amount": {
                                        "type": "string",
                                        "pattern": "^-?\\d{1,18}$"
                                      },
                                      "currency": {
                                        "type": "string",
                                        "pattern": "^[A-Z]{3}$"
                                      }
                                    },
                                    "required": [
                                      "amount",
                                      "currency"
                                    ],
                                    "additionalProperties": false
                                  }
                                },
                                "required": [
                                  "consideration",
                                  "activities",
                                  "fees",
                                  "taxes"
                                ],
                                "additionalProperties": false
                              }
                            ],
                            "items": false,
                            "minItems": 4,
                            "maxItems": 4
                          },
                          "transportationRental": {
                            "type": "array",
                            "prefixItems": [
                              {
                                "type": "object",
                                "properties": {
                                  "consideration": {
                                    "type": "object",
                                    "properties": {
                                      "amount": {
                                        "type": "string",
                                        "pattern": "^-?\\d{1,18}$"
                                      },
                                      "currency": {
                                        "type": "string",
                                        "pattern": "^[A-Z]{3}$"
                                      }
                                    },
                                    "required": [
                                      "amount",
                                      "currency"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "activities": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "fees": {
                                    "type": "object",
                                    "properties": {
                                      "amount": {
                                        "type": "string",
                                        "pattern": "^-?\\d{1,18}$"
                                      },
                                      "currency": {
                                        "type": "string",
                                        "pattern": "^[A-Z]{3}$"
                                      }
                                    },
                                    "required": [
                                      "amount",
                                      "currency"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "taxes": {
                                    "type": "object",
                                    "properties": {
                                      "amount": {
                                        "type": "string",
                                        "pattern": "^-?\\d{1,18}$"
                                      },
                                      "currency": {
                                        "type": "string",
                                        "pattern": "^[A-Z]{3}$"
                                      }
                                    },
                                    "required": [
                                      "amount",
                                      "currency"
                                    ],
                                    "additionalProperties": false
                                  }
                                },
                                "required": [
                                  "consideration",
                                  "activities",
                                  "fees",
                                  "taxes"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "consideration": {
                                    "type": "object",
                                    "properties": {
                                      "amount": {
                                        "type": "string",
                                        "pattern": "^-?\\d{1,18}$"
                                      },
                                      "currency": {
                                        "type": "string",
                                        "pattern": "^[A-Z]{3}$"
                                      }
                                    },
                                    "required": [
                                      "amount",
                                      "currency"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "activities": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "fees": {
                                    "type": "object",
                                    "properties": {
                                      "amount": {
                                        "type": "string",
                                        "pattern": "^-?\\d{1,18}$"
                                      },
                                      "currency": {
                                        "type": "string",
                                        "pattern": "^[A-Z]{3}$"
                                      }
                                    },
                                    "required": [
                                      "amount",
                                      "currency"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "taxes": {
                                    "type": "object",
                                    "properties": {
                                      "amount": {
                                        "type": "string",
                                        "pattern": "^-?\\d{1,18}$"
                                      },
                                      "currency": {
                                        "type": "string",
                                        "pattern": "^[A-Z]{3}$"
                                      }
                                    },
                                    "required": [
                                      "amount",
                                      "currency"
                                    ],
                                    "additionalProperties": false
                                  }
                                },
                                "required": [
                                  "consideration",
                                  "activities",
                                  "fees",
                                  "taxes"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "consideration": {
                                    "type": "object",
                                    "properties": {
                                      "amount": {
                                        "type": "string",
                                        "pattern": "^-?\\d{1,18}$"
                                      },
                                      "currency": {
                                        "type": "string",
                                        "pattern": "^[A-Z]{3}$"
                                      }
                                    },
                                    "required": [
                                      "amount",
                                      "currency"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "activities": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "fees": {
                                    "type": "object",
                                    "properties": {
                                      "amount": {
                                        "type": "string",
                                        "pattern": "^-?\\d{1,18}$"
                                      },
                                      "currency": {
                                        "type": "string",
                                        "pattern": "^[A-Z]{3}$"
                                      }
                                    },
                                    "required": [
                                      "amount",
                                      "currency"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "taxes": {
                                    "type": "object",
                                    "properties": {
                                      "amount": {
                                        "type": "string",
                                        "pattern": "^-?\\d{1,18}$"
                                      },
                                      "currency": {
                                        "type": "string",
                                        "pattern": "^[A-Z]{3}$"
                                      }
                                    },
                                    "required": [
                                      "amount",
                                      "currency"
                                    ],
                                    "additionalProperties": false
                                  }
                                },
                                "required": [
                                  "consideration",
                                  "activities",
                                  "fees",
                                  "taxes"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "consideration": {
                                    "type": "object",
                                    "properties": {
                                      "amount": {
                                        "type": "string",
                                        "pattern": "^-?\\d{1,18}$"
                                      },
                                      "currency": {
                                        "type": "string",
                                        "pattern": "^[A-Z]{3}$"
                                      }
                                    },
                                    "required": [
                                      "amount",
                                      "currency"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "activities": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "fees": {
                                    "type": "object",
                                    "properties": {
                                      "amount": {
                                        "type": "string",
                                        "pattern": "^-?\\d{1,18}$"
                                      },
                                      "currency": {
                                        "type": "string",
                                        "pattern": "^[A-Z]{3}$"
                                      }
                                    },
                                    "required": [
                                      "amount",
                                      "currency"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "taxes": {
                                    "type": "object",
                                    "properties": {
                                      "amount": {
                                        "type": "string",
                                        "pattern": "^-?\\d{1,18}$"
                                      },
                                      "currency": {
                                        "type": "string",
                                        "pattern": "^[A-Z]{3}$"
                                      }
                                    },
                                    "required": [
                                      "amount",
                                      "currency"
                                    ],
                                    "additionalProperties": false
                                  }
                                },
                                "required": [
                                  "consideration",
                                  "activities",
                                  "fees",
                                  "taxes"
                                ],
                                "additionalProperties": false
                              }
                            ],
                            "items": false,
                            "minItems": 4,
                            "maxItems": 4
                          }
                        },
                        "additionalProperties": false
                      }
                    },
                    "required": [
                      "identity",
                      "activities"
                    ],
                    "additionalProperties": false
                  }
                },
                "required": [
                  "id",
                  "seller"
                ],
                "additionalProperties": false
              }
            },
            "history": {
              "minItems": 1,
              "maxItems": 20,
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1,
                "maxLength": 4194304
              }
            }
          },
          "required": [
            "kind",
            "operatorDocRefId",
            "sellers",
            "history"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "kind": {
              "type": "string",
              "const": "amendment"
            },
            "operatorDocRefId": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            },
            "sellers": {
              "minItems": 1,
              "maxItems": 500,
              "type": "array",
              "items": {
                "oneOf": [
                  {
                    "type": "object",
                    "properties": {
                      "action": {
                        "type": "string",
                        "const": "replace"
                      },
                      "previousDocRefId": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 200
                      },
                      "id": {
                        "type": "string",
                        "pattern": "^[A-Za-z0-9_.-]{1,64}$"
                      },
                      "seller": {
                        "type": "object",
                        "properties": {
                          "identity": {
                            "oneOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "kind": {
                                    "type": "string",
                                    "const": "individual"
                                  },
                                  "residenceCountries": {
                                    "minItems": 1,
                                    "maxItems": 30,
                                    "type": "array",
                                    "items": {
                                      "type": "string",
                                      "pattern": "^[A-Z]{2}$"
                                    }
                                  },
                                  "addresses": {
                                    "minItems": 1,
                                    "maxItems": 10,
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "country": {
                                          "type": "string",
                                          "pattern": "^[A-Z]{2}$"
                                        },
                                        "text": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 4000,
                                          "pattern": "\\S"
                                        }
                                      },
                                      "required": [
                                        "country",
                                        "text"
                                      ],
                                      "additionalProperties": false
                                    }
                                  },
                                  "vatId": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 200,
                                    "pattern": "\\S"
                                  },
                                  "tins": {
                                    "anyOf": [
                                      {
                                        "minItems": 1,
                                        "maxItems": 20,
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "value": {
                                              "type": "string",
                                              "minLength": 1,
                                              "maxLength": 200,
                                              "pattern": "\\S"
                                            },
                                            "issuedBy": {
                                              "type": "string",
                                              "pattern": "^[A-Z]{2}$"
                                            }
                                          },
                                          "required": [
                                            "value",
                                            "issuedBy"
                                          ],
                                          "additionalProperties": false
                                        }
                                      },
                                      {
                                        "type": "string",
                                        "const": "unknown"
                                      }
                                    ]
                                  },
                                  "firstName": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 200,
                                    "pattern": "\\S"
                                  },
                                  "lastName": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 200,
                                    "pattern": "\\S"
                                  },
                                  "birthDate": {
                                    "type": "string",
                                    "format": "date",
                                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                                  },
                                  "birthPlace": {
                                    "type": "object",
                                    "properties": {
                                      "city": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 200,
                                        "pattern": "\\S"
                                      },
                                      "country": {
                                        "oneOf": [
                                          {
                                            "type": "object",
                                            "properties": {
                                              "kind": {
                                                "type": "string",
                                                "const": "current"
                                              },
                                              "code": {
                                                "type": "string",
                                                "pattern": "^[A-Z]{2}$"
                                              }
                                            },
                                            "required": [
                                              "kind",
                                              "code"
                                            ],
                                            "additionalProperties": false
                                          },
                                          {
                                            "type": "object",
                                            "properties": {
                                              "kind": {
                                                "type": "string",
                                                "const": "former"
                                              },
                                              "name": {
                                                "type": "string",
                                                "minLength": 1,
                                                "maxLength": 200,
                                                "pattern": "\\S"
                                              }
                                            },
                                            "required": [
                                              "kind",
                                              "name"
                                            ],
                                            "additionalProperties": false
                                          }
                                        ]
                                      }
                                    },
                                    "required": [
                                      "city",
                                      "country"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "financialAccounts": {
                                    "maxItems": 20,
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "identifier": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 200,
                                          "pattern": "\\S"
                                        },
                                        "type": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 200,
                                          "pattern": "\\S"
                                        },
                                        "accountHolderName": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 200,
                                          "pattern": "\\S"
                                        },
                                        "otherInfo": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 400
                                        }
                                      },
                                      "required": [
                                        "identifier"
                                      ],
                                      "additionalProperties": false
                                    }
                                  }
                                },
                                "required": [
                                  "kind",
                                  "residenceCountries",
                                  "addresses",
                                  "tins",
                                  "firstName",
                                  "lastName",
                                  "birthDate"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "kind": {
                                    "type": "string",
                                    "const": "entity"
                                  },
                                  "residenceCountries": {
                                    "minItems": 1,
                                    "maxItems": 30,
                                    "type": "array",
                                    "items": {
                                      "type": "string",
                                      "pattern": "^[A-Z]{2}$"
                                    }
                                  },
                                  "addresses": {
                                    "minItems": 1,
                                    "maxItems": 10,
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "country": {
                                          "type": "string",
                                          "pattern": "^[A-Z]{2}$"
                                        },
                                        "text": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 4000,
                                          "pattern": "\\S"
                                        }
                                      },
                                      "required": [
                                        "country",
                                        "text"
                                      ],
                                      "additionalProperties": false
                                    }
                                  },
                                  "vatId": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 200,
                                    "pattern": "\\S"
                                  },
                                  "tins": {
                                    "anyOf": [
                                      {
                                        "minItems": 1,
                                        "maxItems": 20,
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "value": {
                                              "type": "string",
                                              "minLength": 1,
                                              "maxLength": 200,
                                              "pattern": "\\S"
                                            },
                                            "issuedBy": {
                                              "type": "string",
                                              "pattern": "^[A-Z]{2}$"
                                            }
                                          },
                                          "required": [
                                            "value",
                                            "issuedBy"
                                          ],
                                          "additionalProperties": false
                                        }
                                      },
                                      {
                                        "type": "string",
                                        "const": "unknown"
                                      }
                                    ]
                                  },
                                  "name": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 200,
                                    "pattern": "\\S"
                                  },
                                  "registrations": {
                                    "maxItems": 20,
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "type": {
                                          "type": "string",
                                          "enum": [
                                            "BRN",
                                            "LEI",
                                            "EIN",
                                            "IIN",
                                            "Other"
                                          ]
                                        },
                                        "value": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 200,
                                          "pattern": "\\S"
                                        },
                                        "issuedBy": {
                                          "type": "string",
                                          "pattern": "^[A-Z]{2}$"
                                        }
                                      },
                                      "required": [
                                        "type",
                                        "value"
                                      ],
                                      "additionalProperties": false
                                    }
                                  },
                                  "permanentEstablishments": {
                                    "minItems": 1,
                                    "maxItems": 27,
                                    "type": "array",
                                    "items": {
                                      "type": "string",
                                      "pattern": "^[A-Z]{2}$"
                                    }
                                  },
                                  "financialAccounts": {
                                    "maxItems": 20,
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "identifier": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 200,
                                          "pattern": "\\S"
                                        },
                                        "type": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 200,
                                          "pattern": "\\S"
                                        },
                                        "accountHolderName": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 200,
                                          "pattern": "\\S"
                                        },
                                        "otherInfo": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 400
                                        }
                                      },
                                      "required": [
                                        "identifier"
                                      ],
                                      "additionalProperties": false
                                    }
                                  }
                                },
                                "required": [
                                  "kind",
                                  "residenceCountries",
                                  "addresses",
                                  "tins",
                                  "name"
                                ],
                                "additionalProperties": false
                              }
                            ]
                          },
                          "activities": {
                            "type": "object",
                            "properties": {
                              "immovableProperty": {
                                "minItems": 1,
                                "maxItems": 50,
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "address": {
                                      "type": "object",
                                      "properties": {
                                        "country": {
                                          "type": "string",
                                          "pattern": "^[A-Z]{2}$"
                                        },
                                        "text": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 4000,
                                          "pattern": "\\S"
                                        }
                                      },
                                      "required": [
                                        "country",
                                        "text"
                                      ],
                                      "additionalProperties": false
                                    },
                                    "landRegistrationNumber": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 200,
                                      "pattern": "\\S"
                                    },
                                    "quarters": {
                                      "type": "array",
                                      "prefixItems": [
                                        {
                                          "type": "object",
                                          "properties": {
                                            "consideration": {
                                              "type": "object",
                                              "properties": {
                                                "amount": {
                                                  "type": "string",
                                                  "pattern": "^-?\\d{1,18}$"
                                                },
                                                "currency": {
                                                  "type": "string",
                                                  "pattern": "^[A-Z]{3}$"
                                                }
                                              },
                                              "required": [
                                                "amount",
                                                "currency"
                                              ],
                                              "additionalProperties": false
                                            },
                                            "activities": {
                                              "type": "integer",
                                              "minimum": 0,
                                              "maximum": 9007199254740991
                                            },
                                            "fees": {
                                              "type": "object",
                                              "properties": {
                                                "amount": {
                                                  "type": "string",
                                                  "pattern": "^-?\\d{1,18}$"
                                                },
                                                "currency": {
                                                  "type": "string",
                                                  "pattern": "^[A-Z]{3}$"
                                                }
                                              },
                                              "required": [
                                                "amount",
                                                "currency"
                                              ],
                                              "additionalProperties": false
                                            },
                                            "taxes": {
                                              "type": "object",
                                              "properties": {
                                                "amount": {
                                                  "type": "string",
                                                  "pattern": "^-?\\d{1,18}$"
                                                },
                                                "currency": {
                                                  "type": "string",
                                                  "pattern": "^[A-Z]{3}$"
                                                }
                                              },
                                              "required": [
                                                "amount",
                                                "currency"
                                              ],
                                              "additionalProperties": false
                                            }
                                          },
                                          "required": [
                                            "consideration",
                                            "activities",
                                            "fees",
                                            "taxes"
                                          ],
                                          "additionalProperties": false
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "consideration": {
                                              "type": "object",
                                              "properties": {
                                                "amount": {
                                                  "type": "string",
                                                  "pattern": "^-?\\d{1,18}$"
                                                },
                                                "currency": {
                                                  "type": "string",
                                                  "pattern": "^[A-Z]{3}$"
                                                }
                                              },
                                              "required": [
                                                "amount",
                                                "currency"
                                              ],
                                              "additionalProperties": false
                                            },
                                            "activities": {
                                              "type": "integer",
                                              "minimum": 0,
                                              "maximum": 9007199254740991
                                            },
                                            "fees": {
                                              "type": "object",
                                              "properties": {
                                                "amount": {
                                                  "type": "string",
                                                  "pattern": "^-?\\d{1,18}$"
                                                },
                                                "currency": {
                                                  "type": "string",
                                                  "pattern": "^[A-Z]{3}$"
                                                }
                                              },
                                              "required": [
                                                "amount",
                                                "currency"
                                              ],
                                              "additionalProperties": false
                                            },
                                            "taxes": {
                                              "type": "object",
                                              "properties": {
                                                "amount": {
                                                  "type": "string",
                                                  "pattern": "^-?\\d{1,18}$"
                                                },
                                                "currency": {
                                                  "type": "string",
                                                  "pattern": "^[A-Z]{3}$"
                                                }
                                              },
                                              "required": [
                                                "amount",
                                                "currency"
                                              ],
                                              "additionalProperties": false
                                            }
                                          },
                                          "required": [
                                            "consideration",
                                            "activities",
                                            "fees",
                                            "taxes"
                                          ],
                                          "additionalProperties": false
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "consideration": {
                                              "type": "object",
                                              "properties": {
                                                "amount": {
                                                  "type": "string",
                                                  "pattern": "^-?\\d{1,18}$"
                                                },
                                                "currency": {
                                                  "type": "string",
                                                  "pattern": "^[A-Z]{3}$"
                                                }
                                              },
                                              "required": [
                                                "amount",
                                                "currency"
                                              ],
                                              "additionalProperties": false
                                            },
                                            "activities": {
                                              "type": "integer",
                                              "minimum": 0,
                                              "maximum": 9007199254740991
                                            },
                                            "fees": {
                                              "type": "object",
                                              "properties": {
                                                "amount": {
                                                  "type": "string",
                                                  "pattern": "^-?\\d{1,18}$"
                                                },
                                                "currency": {
                                                  "type": "string",
                                                  "pattern": "^[A-Z]{3}$"
                                                }
                                              },
                                              "required": [
                                                "amount",
                                                "currency"
                                              ],
                                              "additionalProperties": false
                                            },
                                            "taxes": {
                                              "type": "object",
                                              "properties": {
                                                "amount": {
                                                  "type": "string",
                                                  "pattern": "^-?\\d{1,18}$"
                                                },
                                                "currency": {
                                                  "type": "string",
                                                  "pattern": "^[A-Z]{3}$"
                                                }
                                              },
                                              "required": [
                                                "amount",
                                                "currency"
                                              ],
                                              "additionalProperties": false
                                            }
                                          },
                                          "required": [
                                            "consideration",
                                            "activities",
                                            "fees",
                                            "taxes"
                                          ],
                                          "additionalProperties": false
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "consideration": {
                                              "type": "object",
                                              "properties": {
                                                "amount": {
                                                  "type": "string",
                                                  "pattern": "^-?\\d{1,18}$"
                                                },
                                                "currency": {
                                                  "type": "string",
                                                  "pattern": "^[A-Z]{3}$"
                                                }
                                              },
                                              "required": [
                                                "amount",
                                                "currency"
                                              ],
                                              "additionalProperties": false
                                            },
                                            "activities": {
                                              "type": "integer",
                                              "minimum": 0,
                                              "maximum": 9007199254740991
                                            },
                                            "fees": {
                                              "type": "object",
                                              "properties": {
                                                "amount": {
                                                  "type": "string",
                                                  "pattern": "^-?\\d{1,18}$"
                                                },
                                                "currency": {
                                                  "type": "string",
                                                  "pattern": "^[A-Z]{3}$"
                                                }
                                              },
                                              "required": [
                                                "amount",
                                                "currency"
                                              ],
                                              "additionalProperties": false
                                            },
                                            "taxes": {
                                              "type": "object",
                                              "properties": {
                                                "amount": {
                                                  "type": "string",
                                                  "pattern": "^-?\\d{1,18}$"
                                                },
                                                "currency": {
                                                  "type": "string",
                                                  "pattern": "^[A-Z]{3}$"
                                                }
                                              },
                                              "required": [
                                                "amount",
                                                "currency"
                                              ],
                                              "additionalProperties": false
                                            }
                                          },
                                          "required": [
                                            "consideration",
                                            "activities",
                                            "fees",
                                            "taxes"
                                          ],
                                          "additionalProperties": false
                                        }
                                      ],
                                      "items": false,
                                      "minItems": 4,
                                      "maxItems": 4
                                    },
                                    "category": {
                                      "type": "string",
                                      "enum": [
                                        "DPI901",
                                        "DPI902",
                                        "DPI903",
                                        "DPI904",
                                        "DPI905",
                                        "DPI906",
                                        "DPI907",
                                        "DPI908",
                                        "DPI909",
                                        "DPI910"
                                      ]
                                    },
                                    "otherCategory": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 200,
                                      "pattern": "\\S"
                                    },
                                    "rentedDays": {
                                      "type": "integer",
                                      "exclusiveMinimum": 0,
                                      "maximum": 9007199254740991
                                    }
                                  },
                                  "required": [
                                    "address",
                                    "quarters"
                                  ],
                                  "additionalProperties": false
                                }
                              },
                              "personalServices": {
                                "type": "array",
                                "prefixItems": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "consideration": {
                                        "type": "object",
                                        "properties": {
                                          "amount": {
                                            "type": "string",
                                            "pattern": "^-?\\d{1,18}$"
                                          },
                                          "currency": {
                                            "type": "string",
                                            "pattern": "^[A-Z]{3}$"
                                          }
                                        },
                                        "required": [
                                          "amount",
                                          "currency"
                                        ],
                                        "additionalProperties": false
                                      },
                                      "activities": {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 9007199254740991
                                      },
                                      "fees": {
                                        "type": "object",
                                        "properties": {
                                          "amount": {
                                            "type": "string",
                                            "pattern": "^-?\\d{1,18}$"
                                          },
                                          "currency": {
                                            "type": "string",
                                            "pattern": "^[A-Z]{3}$"
                                          }
                                        },
                                        "required": [
                                          "amount",
                                          "currency"
                                        ],
                                        "additionalProperties": false
                                      },
                                      "taxes": {
                                        "type": "object",
                                        "properties": {
                                          "amount": {
                                            "type": "string",
                                            "pattern": "^-?\\d{1,18}$"
                                          },
                                          "currency": {
                                            "type": "string",
                                            "pattern": "^[A-Z]{3}$"
                                          }
                                        },
                                        "required": [
                                          "amount",
                                          "currency"
                                        ],
                                        "additionalProperties": false
                                      }
                                    },
                                    "required": [
                                      "consideration",
                                      "activities",
                                      "fees",
                                      "taxes"
                                    ],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "consideration": {
                                        "type": "object",
                                        "properties": {
                                          "amount": {
                                            "type": "string",
                                            "pattern": "^-?\\d{1,18}$"
                                          },
                                          "currency": {
                                            "type": "string",
                                            "pattern": "^[A-Z]{3}$"
                                          }
                                        },
                                        "required": [
                                          "amount",
                                          "currency"
                                        ],
                                        "additionalProperties": false
                                      },
                                      "activities": {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 9007199254740991
                                      },
                                      "fees": {
                                        "type": "object",
                                        "properties": {
                                          "amount": {
                                            "type": "string",
                                            "pattern": "^-?\\d{1,18}$"
                                          },
                                          "currency": {
                                            "type": "string",
                                            "pattern": "^[A-Z]{3}$"
                                          }
                                        },
                                        "required": [
                                          "amount",
                                          "currency"
                                        ],
                                        "additionalProperties": false
                                      },
                                      "taxes": {
                                        "type": "object",
                                        "properties": {
                                          "amount": {
                                            "type": "string",
                                            "pattern": "^-?\\d{1,18}$"
                                          },
                                          "currency": {
                                            "type": "string",
                                            "pattern": "^[A-Z]{3}$"
                                          }
                                        },
                                        "required": [
                                          "amount",
                                          "currency"
                                        ],
                                        "additionalProperties": false
                                      }
                                    },
                                    "required": [
                                      "consideration",
                                      "activities",
                                      "fees",
                                      "taxes"
                                    ],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "consideration": {
                                        "type": "object",
                                        "properties": {
                                          "amount": {
                                            "type": "string",
                                            "pattern": "^-?\\d{1,18}$"
                                          },
                                          "currency": {
                                            "type": "string",
                                            "pattern": "^[A-Z]{3}$"
                                          }
                                        },
                                        "required": [
                                          "amount",
                                          "currency"
                                        ],
                                        "additionalProperties": false
                                      },
                                      "activities": {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 9007199254740991
                                      },
                                      "fees": {
                                        "type": "object",
                                        "properties": {
                                          "amount": {
                                            "type": "string",
                                            "pattern": "^-?\\d{1,18}$"
                                          },
                                          "currency": {
                                            "type": "string",
                                            "pattern": "^[A-Z]{3}$"
                                          }
                                        },
                                        "required": [
                                          "amount",
                                          "currency"
                                        ],
                                        "additionalProperties": false
                                      },
                                      "taxes": {
                                        "type": "object",
                                        "properties": {
                                          "amount": {
                                            "type": "string",
                                            "pattern": "^-?\\d{1,18}$"
                                          },
                                          "currency": {
                                            "type": "string",
                                            "pattern": "^[A-Z]{3}$"
                                          }
                                        },
                                        "required": [
                                          "amount",
                                          "currency"
                                        ],
                                        "additionalProperties": false
                                      }
                                    },
                                    "required": [
                                      "consideration",
                                      "activities",
                                      "fees",
                                      "taxes"
                                    ],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "consideration": {
                                        "type": "object",
                                        "properties": {
                                          "amount": {
                                            "type": "string",
                                            "pattern": "^-?\\d{1,18}$"
                                          },
                                          "currency": {
                                            "type": "string",
                                            "pattern": "^[A-Z]{3}$"
                                          }
                                        },
                                        "required": [
                                          "amount",
                                          "currency"
                                        ],
                                        "additionalProperties": false
                                      },
                                      "activities": {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 9007199254740991
                                      },
                                      "fees": {
                                        "type": "object",
                                        "properties": {
                                          "amount": {
                                            "type": "string",
                                            "pattern": "^-?\\d{1,18}$"
                                          },
                                          "currency": {
                                            "type": "string",
                                            "pattern": "^[A-Z]{3}$"
                                          }
                                        },
                                        "required": [
                                          "amount",
                                          "currency"
                                        ],
                                        "additionalProperties": false
                                      },
                                      "taxes": {
                                        "type": "object",
                                        "properties": {
                                          "amount": {
                                            "type": "string",
                                            "pattern": "^-?\\d{1,18}$"
                                          },
                                          "currency": {
                                            "type": "string",
                                            "pattern": "^[A-Z]{3}$"
                                          }
                                        },
                                        "required": [
                                          "amount",
                                          "currency"
                                        ],
                                        "additionalProperties": false
                                      }
                                    },
                                    "required": [
                                      "consideration",
                                      "activities",
                                      "fees",
                                      "taxes"
                                    ],
                                    "additionalProperties": false
                                  }
                                ],
                                "items": false,
                                "minItems": 4,
                                "maxItems": 4
                              },
                              "saleOfGoods": {
                                "type": "array",
                                "prefixItems": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "consideration": {
                                        "type": "object",
                                        "properties": {
                                          "amount": {
                                            "type": "string",
                                            "pattern": "^-?\\d{1,18}$"
                                          },
                                          "currency": {
                                            "type": "string",
                                            "pattern": "^[A-Z]{3}$"
                                          }
                                        },
                                        "required": [
                                          "amount",
                                          "currency"
                                        ],
                                        "additionalProperties": false
                                      },
                                      "activities": {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 9007199254740991
                                      },
                                      "fees": {
                                        "type": "object",
                                        "properties": {
                                          "amount": {
                                            "type": "string",
                                            "pattern": "^-?\\d{1,18}$"
                                          },
                                          "currency": {
                                            "type": "string",
                                            "pattern": "^[A-Z]{3}$"
                                          }
                                        },
                                        "required": [
                                          "amount",
                                          "currency"
                                        ],
                                        "additionalProperties": false
                                      },
                                      "taxes": {
                                        "type": "object",
                                        "properties": {
                                          "amount": {
                                            "type": "string",
                                            "pattern": "^-?\\d{1,18}$"
                                          },
                                          "currency": {
                                            "type": "string",
                                            "pattern": "^[A-Z]{3}$"
                                          }
                                        },
                                        "required": [
                                          "amount",
                                          "currency"
                                        ],
                                        "additionalProperties": false
                                      }
                                    },
                                    "required": [
                                      "consideration",
                                      "activities",
                                      "fees",
                                      "taxes"
                                    ],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "consideration": {
                                        "type": "object",
                                        "properties": {
                                          "amount": {
                                            "type": "string",
                                            "pattern": "^-?\\d{1,18}$"
                                          },
                                          "currency": {
                                            "type": "string",
                                            "pattern": "^[A-Z]{3}$"
                                          }
                                        },
                                        "required": [
                                          "amount",
                                          "currency"
                                        ],
                                        "additionalProperties": false
                                      },
                                      "activities": {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 9007199254740991
                                      },
                                      "fees": {
                                        "type": "object",
                                        "properties": {
                                          "amount": {
                                            "type": "string",
                                            "pattern": "^-?\\d{1,18}$"
                                          },
                                          "currency": {
                                            "type": "string",
                                            "pattern": "^[A-Z]{3}$"
                                          }
                                        },
                                        "required": [
                                          "amount",
                                          "currency"
                                        ],
                                        "additionalProperties": false
                                      },
                                      "taxes": {
                                        "type": "object",
                                        "properties": {
                                          "amount": {
                                            "type": "string",
                                            "pattern": "^-?\\d{1,18}$"
                                          },
                                          "currency": {
                                            "type": "string",
                                            "pattern": "^[A-Z]{3}$"
                                          }
                                        },
                                        "required": [
                                          "amount",
                                          "currency"
                                        ],
                                        "additionalProperties": false
                                      }
                                    },
                                    "required": [
                                      "consideration",
                                      "activities",
                                      "fees",
                                      "taxes"
                                    ],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "consideration": {
                                        "type": "object",
                                        "properties": {
                                          "amount": {
                                            "type": "string",
                                            "pattern": "^-?\\d{1,18}$"
                                          },
                                          "currency": {
                                            "type": "string",
                                            "pattern": "^[A-Z]{3}$"
                                          }
                                        },
                                        "required": [
                                          "amount",
                                          "currency"
                                        ],
                                        "additionalProperties": false
                                      },
                                      "activities": {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 9007199254740991
                                      },
                                      "fees": {
                                        "type": "object",
                                        "properties": {
                                          "amount": {
                                            "type": "string",
                                            "pattern": "^-?\\d{1,18}$"
                                          },
                                          "currency": {
                                            "type": "string",
                                            "pattern": "^[A-Z]{3}$"
                                          }
                                        },
                                        "required": [
                                          "amount",
                                          "currency"
                                        ],
                                        "additionalProperties": false
                                      },
                                      "taxes": {
                                        "type": "object",
                                        "properties": {
                                          "amount": {
                                            "type": "string",
                                            "pattern": "^-?\\d{1,18}$"
                                          },
                                          "currency": {
                                            "type": "string",
                                            "pattern": "^[A-Z]{3}$"
                                          }
                                        },
                                        "required": [
                                          "amount",
                                          "currency"
                                        ],
                                        "additionalProperties": false
                                      }
                                    },
                                    "required": [
                                      "consideration",
                                      "activities",
                                      "fees",
                                      "taxes"
                                    ],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "consideration": {
                                        "type": "object",
                                        "properties": {
                                          "amount": {
                                            "type": "string",
                                            "pattern": "^-?\\d{1,18}$"
                                          },
                                          "currency": {
                                            "type": "string",
                                            "pattern": "^[A-Z]{3}$"
                                          }
                                        },
                                        "required": [
                                          "amount",
                                          "currency"
                                        ],
                                        "additionalProperties": false
                                      },
                                      "activities": {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 9007199254740991
                                      },
                                      "fees": {
                                        "type": "object",
                                        "properties": {
                                          "amount": {
                                            "type": "string",
                                            "pattern": "^-?\\d{1,18}$"
                                          },
                                          "currency": {
                                            "type": "string",
                                            "pattern": "^[A-Z]{3}$"
                                          }
                                        },
                                        "required": [
                                          "amount",
                                          "currency"
                                        ],
                                        "additionalProperties": false
                                      },
                                      "taxes": {
                                        "type": "object",
                                        "properties": {
                                          "amount": {
                                            "type": "string",
                                            "pattern": "^-?\\d{1,18}$"
                                          },
                                          "currency": {
                                            "type": "string",
                                            "pattern": "^[A-Z]{3}$"
                                          }
                                        },
                                        "required": [
                                          "amount",
                                          "currency"
                                        ],
                                        "additionalProperties": false
                                      }
                                    },
                                    "required": [
                                      "consideration",
                                      "activities",
                                      "fees",
                                      "taxes"
                                    ],
                                    "additionalProperties": false
                                  }
                                ],
                                "items": false,
                                "minItems": 4,
                                "maxItems": 4
                              },
                              "transportationRental": {
                                "type": "array",
                                "prefixItems": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "consideration": {
                                        "type": "object",
                                        "properties": {
                                          "amount": {
                                            "type": "string",
                                            "pattern": "^-?\\d{1,18}$"
                                          },
                                          "currency": {
                                            "type": "string",
                                            "pattern": "^[A-Z]{3}$"
                                          }
                                        },
                                        "required": [
                                          "amount",
                                          "currency"
                                        ],
                                        "additionalProperties": false
                                      },
                                      "activities": {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 9007199254740991
                                      },
                                      "fees": {
                                        "type": "object",
                                        "properties": {
                                          "amount": {
                                            "type": "string",
                                            "pattern": "^-?\\d{1,18}$"
                                          },
                                          "currency": {
                                            "type": "string",
                                            "pattern": "^[A-Z]{3}$"
                                          }
                                        },
                                        "required": [
                                          "amount",
                                          "currency"
                                        ],
                                        "additionalProperties": false
                                      },
                                      "taxes": {
                                        "type": "object",
                                        "properties": {
                                          "amount": {
                                            "type": "string",
                                            "pattern": "^-?\\d{1,18}$"
                                          },
                                          "currency": {
                                            "type": "string",
                                            "pattern": "^[A-Z]{3}$"
                                          }
                                        },
                                        "required": [
                                          "amount",
                                          "currency"
                                        ],
                                        "additionalProperties": false
                                      }
                                    },
                                    "required": [
                                      "consideration",
                                      "activities",
                                      "fees",
                                      "taxes"
                                    ],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "consideration": {
                                        "type": "object",
                                        "properties": {
                                          "amount": {
                                            "type": "string",
                                            "pattern": "^-?\\d{1,18}$"
                                          },
                                          "currency": {
                                            "type": "string",
                                            "pattern": "^[A-Z]{3}$"
                                          }
                                        },
                                        "required": [
                                          "amount",
                                          "currency"
                                        ],
                                        "additionalProperties": false
                                      },
                                      "activities": {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 9007199254740991
                                      },
                                      "fees": {
                                        "type": "object",
                                        "properties": {
                                          "amount": {
                                            "type": "string",
                                            "pattern": "^-?\\d{1,18}$"
                                          },
                                          "currency": {
                                            "type": "string",
                                            "pattern": "^[A-Z]{3}$"
                                          }
                                        },
                                        "required": [
                                          "amount",
                                          "currency"
                                        ],
                                        "additionalProperties": false
                                      },
                                      "taxes": {
                                        "type": "object",
                                        "properties": {
                                          "amount": {
                                            "type": "string",
                                            "pattern": "^-?\\d{1,18}$"
                                          },
                                          "currency": {
                                            "type": "string",
                                            "pattern": "^[A-Z]{3}$"
                                          }
                                        },
                                        "required": [
                                          "amount",
                                          "currency"
                                        ],
                                        "additionalProperties": false
                                      }
                                    },
                                    "required": [
                                      "consideration",
                                      "activities",
                                      "fees",
                                      "taxes"
                                    ],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "consideration": {
                                        "type": "object",
                                        "properties": {
                                          "amount": {
                                            "type": "string",
                                            "pattern": "^-?\\d{1,18}$"
                                          },
                                          "currency": {
                                            "type": "string",
                                            "pattern": "^[A-Z]{3}$"
                                          }
                                        },
                                        "required": [
                                          "amount",
                                          "currency"
                                        ],
                                        "additionalProperties": false
                                      },
                                      "activities": {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 9007199254740991
                                      },
                                      "fees": {
                                        "type": "object",
                                        "properties": {
                                          "amount": {
                                            "type": "string",
                                            "pattern": "^-?\\d{1,18}$"
                                          },
                                          "currency": {
                                            "type": "string",
                                            "pattern": "^[A-Z]{3}$"
                                          }
                                        },
                                        "required": [
                                          "amount",
                                          "currency"
                                        ],
                                        "additionalProperties": false
                                      },
                                      "taxes": {
                                        "type": "object",
                                        "properties": {
                                          "amount": {
                                            "type": "string",
                                            "pattern": "^-?\\d{1,18}$"
                                          },
                                          "currency": {
                                            "type": "string",
                                            "pattern": "^[A-Z]{3}$"
                                          }
                                        },
                                        "required": [
                                          "amount",
                                          "currency"
                                        ],
                                        "additionalProperties": false
                                      }
                                    },
                                    "required": [
                                      "consideration",
                                      "activities",
                                      "fees",
                                      "taxes"
                                    ],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "consideration": {
                                        "type": "object",
                                        "properties": {
                                          "amount": {
                                            "type": "string",
                                            "pattern": "^-?\\d{1,18}$"
                                          },
                                          "currency": {
                                            "type": "string",
                                            "pattern": "^[A-Z]{3}$"
                                          }
                                        },
                                        "required": [
                                          "amount",
                                          "currency"
                                        ],
                                        "additionalProperties": false
                                      },
                                      "activities": {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 9007199254740991
                                      },
                                      "fees": {
                                        "type": "object",
                                        "properties": {
                                          "amount": {
                                            "type": "string",
                                            "pattern": "^-?\\d{1,18}$"
                                          },
                                          "currency": {
                                            "type": "string",
                                            "pattern": "^[A-Z]{3}$"
                                          }
                                        },
                                        "required": [
                                          "amount",
                                          "currency"
                                        ],
                                        "additionalProperties": false
                                      },
                                      "taxes": {
                                        "type": "object",
                                        "properties": {
                                          "amount": {
                                            "type": "string",
                                            "pattern": "^-?\\d{1,18}$"
                                          },
                                          "currency": {
                                            "type": "string",
                                            "pattern": "^[A-Z]{3}$"
                                          }
                                        },
                                        "required": [
                                          "amount",
                                          "currency"
                                        ],
                                        "additionalProperties": false
                                      }
                                    },
                                    "required": [
                                      "consideration",
                                      "activities",
                                      "fees",
                                      "taxes"
                                    ],
                                    "additionalProperties": false
                                  }
                                ],
                                "items": false,
                                "minItems": 4,
                                "maxItems": 4
                              }
                            },
                            "additionalProperties": false
                          }
                        },
                        "required": [
                          "identity",
                          "activities"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "required": [
                      "action",
                      "previousDocRefId",
                      "id",
                      "seller"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "action": {
                        "type": "string",
                        "const": "delete"
                      },
                      "previousDocRefId": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 200
                      },
                      "id": {
                        "type": "string",
                        "pattern": "^[A-Za-z0-9_.-]{1,64}$"
                      }
                    },
                    "required": [
                      "action",
                      "previousDocRefId",
                      "id"
                    ],
                    "additionalProperties": false
                  }
                ]
              }
            },
            "history": {
              "minItems": 1,
              "maxItems": 20,
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1,
                "maxLength": 4194304
              }
            }
          },
          "required": [
            "kind",
            "operatorDocRefId",
            "sellers",
            "history"
          ],
          "additionalProperties": false
        }
      ]
    }
  },
  "required": [
    "destination",
    "reportingYear",
    "timestamp",
    "messageId",
    "report"
  ],
  "additionalProperties": false,
  "examples": [
    {
      "destination": {
        "profile": "ireland"
      },
      "reportingYear": 2026,
      "messageId": "example-marketplace-01",
      "timestamp": "2027-01-07T13:00:00Z",
      "report": {
        "kind": "new",
        "history": [],
        "operator": {
          "name": "North Quay Markets Ltd",
          "businessNames": [
            "North Quay Markets"
          ],
          "residenceCountries": [
            "IE"
          ],
          "tins": [
            {
              "issuedBy": "IE",
              "value": "1234567AB"
            }
          ],
          "addresses": [
            {
              "country": "IE",
              "text": "10 Quay Road, Dublin"
            }
          ]
        },
        "sellers": [
          {
            "id": "seller-42",
            "seller": {
              "identity": {
                "kind": "individual",
                "firstName": "Orla",
                "lastName": "Byrne",
                "birthDate": "1991-06-14",
                "residenceCountries": [
                  "IE"
                ],
                "tins": [
                  {
                    "issuedBy": "IE",
                    "value": "2345678CD"
                  }
                ],
                "addresses": [
                  {
                    "country": "IE",
                    "text": "14 Market Street, Galway"
                  }
                ]
              },
              "activities": {
                "saleOfGoods": [
                  {
                    "consideration": {
                      "amount": "2400",
                      "currency": "EUR"
                    },
                    "activities": 31,
                    "fees": {
                      "amount": "0",
                      "currency": "EUR"
                    },
                    "taxes": {
                      "amount": "0",
                      "currency": "EUR"
                    }
                  },
                  {
                    "consideration": {
                      "amount": "0",
                      "currency": "EUR"
                    },
                    "activities": 0,
                    "fees": {
                      "amount": "0",
                      "currency": "EUR"
                    },
                    "taxes": {
                      "amount": "0",
                      "currency": "EUR"
                    }
                  },
                  {
                    "consideration": {
                      "amount": "0",
                      "currency": "EUR"
                    },
                    "activities": 0,
                    "fees": {
                      "amount": "0",
                      "currency": "EUR"
                    },
                    "taxes": {
                      "amount": "0",
                      "currency": "EUR"
                    }
                  },
                  {
                    "consideration": {
                      "amount": "0",
                      "currency": "EUR"
                    },
                    "activities": 0,
                    "fees": {
                      "amount": "0",
                      "currency": "EUR"
                    },
                    "taxes": {
                      "amount": "0",
                      "currency": "EUR"
                    }
                  }
                ]
              }
            }
          }
        ]
      }
    }
  ]
}
Response schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "valid": {
      "type": "boolean"
    },
    "profile": {
      "type": "string",
      "enum": [
        "eu",
        "ireland"
      ]
    },
    "xsd": {
      "type": "object",
      "properties": {
        "version": {
          "type": "string",
          "const": "1.0"
        },
        "source": {
          "type": "string"
        },
        "status": {
          "type": "string",
          "enum": [
            "passed",
            "failed",
            "not_run"
          ]
        }
      },
      "required": [
        "version",
        "source",
        "status"
      ],
      "additionalProperties": false
    },
    "reportableSellers": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    },
    "errors": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string"
          },
          "line": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "rule": {
            "type": "string"
          },
          "expected": {
            "type": "string"
          },
          "actual": {
            "type": "string"
          },
          "source": {
            "type": "string"
          }
        },
        "required": [
          "path",
          "rule",
          "expected",
          "actual",
          "source"
        ],
        "additionalProperties": false
      }
    },
    "needsReview": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string"
          },
          "line": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "rule": {
            "type": "string"
          },
          "expected": {
            "type": "string"
          },
          "actual": {
            "type": "string"
          },
          "source": {
            "type": "string"
          }
        },
        "required": [
          "path",
          "rule",
          "expected",
          "actual",
          "source"
        ],
        "additionalProperties": false
      }
    },
    "xml": {
      "type": [
        "string",
        "null"
      ]
    },
    "messageRefId": {
      "type": [
        "string",
        "null"
      ]
    },
    "operatorDocRefId": {
      "type": [
        "string",
        "null"
      ]
    },
    "sellers": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "row": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "docRefId": {
            "type": "string"
          },
          "corrDocRefId": {
            "type": "string"
          }
        },
        "required": [
          "row",
          "docRefId"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "valid",
    "profile",
    "xsd",
    "reportableSellers",
    "errors",
    "needsReview",
    "xml",
    "messageRefId",
    "operatorDocRefId",
    "sellers"
  ],
  "additionalProperties": false
}