Skip to content
UK CARF

carf.generate

Build UK HMRC CARF XML v1.5 from reportable users and transaction totals. Up to 10,000 users.

POSThttps://api.kanagu.dev/v1/carf/generate
Price
$0.10 per user, on successful calls only
Without a key
10 free calls per IP per UTC day, shared by REST and MCP.
MCP tool
carf.generate at https://api.kanagu.dev/mcp
curl https://api.kanagu.dev/v1/carf/generate \
  -H "Content-Type: application/json" \
  -d '{"rcaspId":"XRCASP000001234","reportingYear":2026,"timestamp":"2027-05-01T09:00:00","messageSuffix":"batch-1","provider":{"party":{"kind":"entity","name":"Bramble Digital Markets Ltd","residenceCountries":["GB"],"tins":[{"value":"08801357","issuedBy":"GB"}],"addresses":[{"country":"GB","city":"London","street":"10 Exchange Road","postCode":"EC2A 1AA"}]},"nexus":"CARF901","docSuffix":"provider"},"users":[{"docSuffix":"user-42","record":{"kind":"individual","firstName":"Avery","lastName":"Carter","birthDate":"1982-06-15","residenceCountries":["GB"],"tins":[{"value":"AB123456C","issuedBy":"GB"}],"addresses":[{"country":"GB","city":"York","postCode":"YO1 1AA"}],"transactions":[{"asset":"Bitcoin","cryptoFiatIn":[{"count":4,"units":"0.02150000","amount":"1450.00","currency":"GBP"}]}]}}]}'
curl https://api.kanagu.dev/v1/carf/generate \
  -H "Authorization: Bearer $KANAGU_KEY" \
  -H "Content-Type: application/json" \
  -d '{"rcaspId":"XRCASP000001234","reportingYear":2026,"timestamp":"2027-05-01T09:00:00","messageSuffix":"batch-1","provider":{"party":{"kind":"entity","name":"Bramble Digital Markets Ltd","residenceCountries":["GB"],"tins":[{"value":"08801357","issuedBy":"GB"}],"addresses":[{"country":"GB","city":"London","street":"10 Exchange Road","postCode":"EC2A 1AA"}]},"nexus":"CARF901","docSuffix":"provider"},"users":[{"docSuffix":"user-42","record":{"kind":"individual","firstName":"Avery","lastName":"Carter","birthDate":"1982-06-15","residenceCountries":["GB"],"tins":[{"value":"AB123456C","issuedBy":"GB"}],"addresses":[{"country":"GB","city":"York","postCode":"YO1 1AA"}],"transactions":[{"asset":"Bitcoin","cryptoFiatIn":[{"count":4,"units":"0.02150000","amount":"1450.00","currency":"GBP"}]}]}}]}'
const res = await fetch("https://api.kanagu.dev/v1/carf/generate", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.KANAGU_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "rcaspId": "XRCASP000001234",
    "reportingYear": 2026,
    "timestamp": "2027-05-01T09:00:00",
    "messageSuffix": "batch-1",
    "provider": {
      "party": {
        "kind": "entity",
        "name": "Bramble Digital Markets Ltd",
        "residenceCountries": [
          "GB"
        ],
        "tins": [
          {
            "value": "08801357",
            "issuedBy": "GB"
          }
        ],
        "addresses": [
          {
            "country": "GB",
            "city": "London",
            "street": "10 Exchange Road",
            "postCode": "EC2A 1AA"
          }
        ]
      },
      "nexus": "CARF901",
      "docSuffix": "provider"
    },
    "users": [
      {
        "docSuffix": "user-42",
        "record": {
          "kind": "individual",
          "firstName": "Avery",
          "lastName": "Carter",
          "birthDate": "1982-06-15",
          "residenceCountries": [
            "GB"
          ],
          "tins": [
            {
              "value": "AB123456C",
              "issuedBy": "GB"
            }
          ],
          "addresses": [
            {
              "country": "GB",
              "city": "York",
              "postCode": "YO1 1AA"
            }
          ],
          "transactions": [
            {
              "asset": "Bitcoin",
              "cryptoFiatIn": [
                {
                  "count": 4,
                  "units": "0.02150000",
                  "amount": "1450.00",
                  "currency": "GBP"
                }
              ]
            }
          ]
        }
      }
    ]
  }),
});
if (!res.ok) throw new Error((await res.json()).error.message);
const result = await res.json();
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "carf.generate",
    "arguments": {
      "rcaspId": "XRCASP000001234",
      "reportingYear": 2026,
      "timestamp": "2027-05-01T09:00:00",
      "messageSuffix": "batch-1",
      "provider": {
        "party": {
          "kind": "entity",
          "name": "Bramble Digital Markets Ltd",
          "residenceCountries": [
            "GB"
          ],
          "tins": [
            {
              "value": "08801357",
              "issuedBy": "GB"
            }
          ],
          "addresses": [
            {
              "country": "GB",
              "city": "London",
              "street": "10 Exchange Road",
              "postCode": "EC2A 1AA"
            }
          ]
        },
        "nexus": "CARF901",
        "docSuffix": "provider"
      },
      "users": [
        {
          "docSuffix": "user-42",
          "record": {
            "kind": "individual",
            "firstName": "Avery",
            "lastName": "Carter",
            "birthDate": "1982-06-15",
            "residenceCountries": [
              "GB"
            ],
            "tins": [
              {
                "value": "AB123456C",
                "issuedBy": "GB"
              }
            ],
            "addresses": [
              {
                "country": "GB",
                "city": "York",
                "postCode": "YO1 1AA"
              }
            ],
            "transactions": [
              {
                "asset": "Bitcoin",
                "cryptoFiatIn": [
                  {
                    "count": 4,
                    "units": "0.02150000",
                    "amount": "1450.00",
                    "currency": "GBP"
                  }
                ]
              }
            ]
          }
        }
      ]
    }
  }
}
Request body
{
  "rcaspId": "XRCASP000001234",
  "reportingYear": 2026,
  "timestamp": "2027-05-01T09:00:00",
  "messageSuffix": "batch-1",
  "provider": {
    "party": {
      "kind": "entity",
      "name": "Bramble Digital Markets Ltd",
      "residenceCountries": [
        "GB"
      ],
      "tins": [
        {
          "value": "08801357",
          "issuedBy": "GB"
        }
      ],
      "addresses": [
        {
          "country": "GB",
          "city": "London",
          "street": "10 Exchange Road",
          "postCode": "EC2A 1AA"
        }
      ]
    },
    "nexus": "CARF901",
    "docSuffix": "provider"
  },
  "users": [
    {
      "docSuffix": "user-42",
      "record": {
        "kind": "individual",
        "firstName": "Avery",
        "lastName": "Carter",
        "birthDate": "1982-06-15",
        "residenceCountries": [
          "GB"
        ],
        "tins": [
          {
            "value": "AB123456C",
            "issuedBy": "GB"
          }
        ],
        "addresses": [
          {
            "country": "GB",
            "city": "York",
            "postCode": "YO1 1AA"
          }
        ],
        "transactions": [
          {
            "asset": "Bitcoin",
            "cryptoFiatIn": [
              {
                "count": 4,
                "units": "0.02150000",
                "amount": "1450.00",
                "currency": "GBP"
              }
            ]
          }
        ]
      }
    }
  ]
}
Response · 200
{
  "valid": true,
  "reportableUsers": 1,
  "errors": [],
  "needsReview": [],
  "schemaVersion": "1.5",
  "xml": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<CARF_OECD xmlns=\"urn:oecd:ties:carf:v1\" xmlns:stf=\"urn:oecd:ties:carfstf:v5\" version=\"1.5\">\n<MessageSpec><SendingEntityIN>XRCASP000001234</SendingEntityIN><TransmittingCountry>GB</TransmittingCountry><ReceivingCountry>GB</ReceivingCountry><MessageType>CARF</MessageType><MessageRefId>GB2026GB-XRCASP000001234-batch-1</MessageRefId><MessageTypeIndic>CARF701</MessageTypeIndic><ReportingPeriod>2026-12-31</ReportingPeriod><Timestamp>2027-05-01T09:00:00</Timestamp></MessageSpec>\n<CARFBody>\n<RCASP><RCASP_ID><Entity><ResCountryCode>GB</ResCountryCode><TIN issuedBy=\"GB\">08801357</TIN><Name>Bramble Digital Markets Ltd</Name><Address><CountryCode>GB</CountryCode><AddressFix><Street>10 Exchange Road</Street><PostCode>EC2A 1AA</PostCode><City>London</City></AddressFix></Address></Entity></RCASP_ID><Nexus>CARF901</Nexus><DocSpec><stf:DocTypeIndic>OECD1</stf:DocTypeIndic><stf:DocRefId>GB2026GB-XRCASP000001234-batch-1-provider</stf:DocRefId></DocSpec></RCASP>\n<CryptoUsers><UserID><Individual><ResCountryCode>GB</ResCountryCode><TIN issuedBy=\"GB\">AB123456C</TIN><Name><FirstName>Avery</FirstName><LastName>Carter</LastName></Name><Address><CountryCode>GB</CountryCode><AddressFix><PostCode>YO1 1AA</PostCode><City>York</City></AddressFix></Address><BirthInfo><BirthDate>1982-06-15</BirthDate></BirthInfo></Individual></UserID><RelevantTransactions><CryptoAsset>Bitcoin</CryptoAsset><CryptoFiatIn><NumberofTransactions>4</NumberofTransactions><Amount currCode=\"GBP\">1450.00</Amount><NumberofUnits>0.02150000</NumberofUnits></CryptoFiatIn></RelevantTransactions><DocSpec><stf:DocTypeIndic>OECD1</stf:DocTypeIndic><stf:DocRefId>GB2026GB-XRCASP000001234-batch-1-user-42</stf:DocRefId></DocSpec></CryptoUsers>\n</CARFBody>\n</CARF_OECD>",
  "filename": "GB2026GB-XRCASP000001234-batch-1.xml",
  "messageRefId": "GB2026GB-XRCASP000001234-batch-1"
}

Request body

application/json

historyarray of string
Complete prior accepted CARF XML, oldest first. For correct, supply the files before previousXml.
messageSuffixstring (max 75 chars)required
timestampstringrequired
rcaspIdstring (max 15 chars)required
reportingYearinteger (2026 to 9999)required
providerobjectrequired
provider.partyobjectrequired
provider.nexus"CARF901" | "CARF902" | "CARF903" | "CARF904" | "CARF905"required
provider.otherNexusobject
provider.otherNexus.nexus"CARF901" | "CARF902" | "CARF903" | "CARF904" | "CARF905"required
provider.otherNexus.countrystringrequired
provider.docSuffixstringrequired
provider.previousDocRefIdstring
usersarray of objectrequired
users[].docSuffixstringrequired
users[].recordobjectrequired

Response

200 · application/json

validbooleanrequired
reportableUsersinteger (0 to 10000)required
errorsarray of objectrequired
errors[].rulestringrequired
errors[].pathstringrequired
errors[].lineinteger (≤ 9007199254740991)
errors[].expectedstringrequired
errors[].actualstringrequired
errors[].sourcestringrequired
needsReviewarray of objectrequired
needsReview[].rulestringrequired
needsReview[].pathstringrequired
needsReview[].lineinteger (≤ 9007199254740991)
needsReview[].expectedstringrequired
needsReview[].actualstringrequired
needsReview[].sourcestringrequired
schemaVersion"1.5"required
xmlstring | nullrequired
filenamestring | nullrequired
messageRefIdstring | nullrequired

Try it

carf.generate

$0.10/user

No key needed · 10 free calls per IP per day

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.

429trial_limit

The anonymous trial allows 10 calls per IP per UTC day, shared by REST and MCP. Retry-After gives the seconds left.

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": {
    "history": {
      "description": "Complete prior accepted CARF XML, oldest first. For correct, supply the files before previousXml.",
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1
      }
    },
    "messageSuffix": {
      "type": "string",
      "minLength": 1,
      "maxLength": 75,
      "pattern": "^[A-Za-z0-9_.-]+$"
    },
    "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+)?)?)$"
    },
    "rcaspId": {
      "type": "string",
      "minLength": 15,
      "maxLength": 15,
      "pattern": "^[A-Za-z0-9_.-]+$"
    },
    "reportingYear": {
      "type": "integer",
      "minimum": 2026,
      "maximum": 9999
    },
    "provider": {
      "type": "object",
      "properties": {
        "party": {
          "oneOf": [
            {
              "type": "object",
              "properties": {
                "kind": {
                  "type": "string",
                  "const": "individual"
                },
                "residenceCountries": {
                  "minItems": 1,
                  "type": "array",
                  "items": {
                    "type": "string",
                    "pattern": "^[A-Z]{2}$"
                  }
                },
                "tins": {
                  "minItems": 1,
                  "type": "array",
                  "items": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "value": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 200
                          },
                          "issuedBy": {
                            "type": "string",
                            "pattern": "^[A-Z]{2}$"
                          }
                        },
                        "required": [
                          "value",
                          "issuedBy"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "properties": {
                          "value": {
                            "type": "string",
                            "const": "NOTIN"
                          }
                        },
                        "required": [
                          "value"
                        ],
                        "additionalProperties": false
                      }
                    ]
                  }
                },
                "addresses": {
                  "minItems": 1,
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "country": {
                        "type": "string",
                        "pattern": "^[A-Z]{2}$"
                      },
                      "street": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 200
                      },
                      "buildingIdentifier": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 200
                      },
                      "suiteIdentifier": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 200
                      },
                      "floorIdentifier": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 200
                      },
                      "districtName": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 200
                      },
                      "poBox": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 200
                      },
                      "postCode": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 200
                      },
                      "city": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 200
                      },
                      "countrySubentity": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 200
                      },
                      "additionalInfo": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 4000
                      }
                    },
                    "required": [
                      "country",
                      "city"
                    ],
                    "additionalProperties": false
                  }
                },
                "individualIds": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "value": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 200
                      },
                      "issuedBy": {
                        "type": "string",
                        "pattern": "^[A-Z]{2}$"
                      }
                    },
                    "required": [
                      "value"
                    ],
                    "additionalProperties": false
                  }
                },
                "firstName": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 200
                },
                "middleNames": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  }
                },
                "lastName": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 200
                },
                "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
                    },
                    "citySubentity": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 200
                    },
                    "country": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "countryCode": {
                              "type": "string",
                              "pattern": "^[A-Z]{2}$"
                            }
                          },
                          "required": [
                            "countryCode"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "formerCountryName": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 200
                            }
                          },
                          "required": [
                            "formerCountryName"
                          ],
                          "additionalProperties": false
                        }
                      ]
                    }
                  },
                  "required": [
                    "city",
                    "country"
                  ],
                  "additionalProperties": false
                }
              },
              "required": [
                "kind",
                "residenceCountries",
                "tins",
                "addresses",
                "firstName",
                "lastName",
                "birthDate"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "kind": {
                  "type": "string",
                  "const": "entity"
                },
                "residenceCountries": {
                  "minItems": 1,
                  "type": "array",
                  "items": {
                    "type": "string",
                    "pattern": "^[A-Z]{2}$"
                  }
                },
                "tins": {
                  "minItems": 1,
                  "type": "array",
                  "items": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "value": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 200
                          },
                          "issuedBy": {
                            "type": "string",
                            "pattern": "^[A-Z]{2}$"
                          }
                        },
                        "required": [
                          "value",
                          "issuedBy"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "properties": {
                          "value": {
                            "type": "string",
                            "const": "NOTIN"
                          }
                        },
                        "required": [
                          "value"
                        ],
                        "additionalProperties": false
                      }
                    ]
                  }
                },
                "addresses": {
                  "minItems": 1,
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "country": {
                        "type": "string",
                        "pattern": "^[A-Z]{2}$"
                      },
                      "street": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 200
                      },
                      "buildingIdentifier": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 200
                      },
                      "suiteIdentifier": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 200
                      },
                      "floorIdentifier": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 200
                      },
                      "districtName": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 200
                      },
                      "poBox": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 200
                      },
                      "postCode": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 200
                      },
                      "city": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 200
                      },
                      "countrySubentity": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 200
                      },
                      "additionalInfo": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 4000
                      }
                    },
                    "required": [
                      "country",
                      "city"
                    ],
                    "additionalProperties": false
                  }
                },
                "individualIds": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "value": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 200
                      },
                      "issuedBy": {
                        "type": "string",
                        "pattern": "^[A-Z]{2}$"
                      }
                    },
                    "required": [
                      "value"
                    ],
                    "additionalProperties": false
                  }
                },
                "name": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 200
                },
                "organisationIds": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "value": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 200
                      },
                      "issuedBy": {
                        "type": "string",
                        "pattern": "^[A-Z]{2}$"
                      },
                      "type": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 200
                      }
                    },
                    "required": [
                      "value"
                    ],
                    "additionalProperties": false
                  }
                }
              },
              "required": [
                "kind",
                "residenceCountries",
                "tins",
                "addresses",
                "name"
              ],
              "additionalProperties": false
            }
          ]
        },
        "nexus": {
          "type": "string",
          "enum": [
            "CARF901",
            "CARF902",
            "CARF903",
            "CARF904",
            "CARF905"
          ]
        },
        "otherNexus": {
          "type": "object",
          "properties": {
            "nexus": {
              "type": "string",
              "enum": [
                "CARF901",
                "CARF902",
                "CARF903",
                "CARF904",
                "CARF905"
              ]
            },
            "country": {
              "type": "string",
              "pattern": "^[A-Z]{2}$"
            }
          },
          "required": [
            "nexus",
            "country"
          ],
          "additionalProperties": false
        },
        "docSuffix": {
          "type": "string",
          "pattern": "^[\\s\\S]{1,63}$"
        },
        "previousDocRefId": {
          "type": "string",
          "pattern": "^[\\s\\S]{28,164}$"
        }
      },
      "required": [
        "party",
        "nexus",
        "docSuffix"
      ],
      "additionalProperties": false
    },
    "users": {
      "maxItems": 10000,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "docSuffix": {
            "type": "string",
            "pattern": "^[\\s\\S]{1,63}$"
          },
          "record": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "const": "individual"
                  },
                  "residenceCountries": {
                    "minItems": 1,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "pattern": "^[A-Z]{2}$"
                    }
                  },
                  "tins": {
                    "minItems": 1,
                    "type": "array",
                    "items": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "value": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 200
                            },
                            "issuedBy": {
                              "type": "string",
                              "pattern": "^[A-Z]{2}$"
                            }
                          },
                          "required": [
                            "value",
                            "issuedBy"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "value": {
                              "type": "string",
                              "const": "NOTIN"
                            }
                          },
                          "required": [
                            "value"
                          ],
                          "additionalProperties": false
                        }
                      ]
                    }
                  },
                  "addresses": {
                    "minItems": 1,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "country": {
                          "type": "string",
                          "pattern": "^[A-Z]{2}$"
                        },
                        "street": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 200
                        },
                        "buildingIdentifier": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 200
                        },
                        "suiteIdentifier": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 200
                        },
                        "floorIdentifier": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 200
                        },
                        "districtName": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 200
                        },
                        "poBox": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 200
                        },
                        "postCode": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 200
                        },
                        "city": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 200
                        },
                        "countrySubentity": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 200
                        },
                        "additionalInfo": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 4000
                        }
                      },
                      "required": [
                        "country",
                        "city"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "individualIds": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "value": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 200
                        },
                        "issuedBy": {
                          "type": "string",
                          "pattern": "^[A-Z]{2}$"
                        }
                      },
                      "required": [
                        "value"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "firstName": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  },
                  "middleNames": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 200
                    }
                  },
                  "lastName": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  },
                  "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
                      },
                      "citySubentity": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 200
                      },
                      "country": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "countryCode": {
                                "type": "string",
                                "pattern": "^[A-Z]{2}$"
                              }
                            },
                            "required": [
                              "countryCode"
                            ],
                            "additionalProperties": false
                          },
                          {
                            "type": "object",
                            "properties": {
                              "formerCountryName": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 200
                              }
                            },
                            "required": [
                              "formerCountryName"
                            ],
                            "additionalProperties": false
                          }
                        ]
                      }
                    },
                    "required": [
                      "city",
                      "country"
                    ],
                    "additionalProperties": false
                  },
                  "transactions": {
                    "minItems": 1,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "asset": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 200
                        },
                        "cryptoToCryptoIn": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "amount": {
                                "type": "string",
                                "maxLength": 100,
                                "pattern": "^\\d+(?:\\.\\d{1,2})?$"
                              },
                              "currency": {
                                "type": "string",
                                "pattern": "^[A-Z]{3}$"
                              },
                              "units": {
                                "type": "string",
                                "maxLength": 100,
                                "pattern": "^\\d+(?:\\.\\d+)?$"
                              },
                              "count": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "exchangeType": {
                                "type": "string",
                                "enum": [
                                  "CARF401",
                                  "CARF402",
                                  "CARF403",
                                  "CARF404"
                                ]
                              }
                            },
                            "required": [
                              "amount",
                              "currency",
                              "units",
                              "count"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "cryptoToCryptoOut": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "amount": {
                                "type": "string",
                                "maxLength": 100,
                                "pattern": "^\\d+(?:\\.\\d{1,2})?$"
                              },
                              "currency": {
                                "type": "string",
                                "pattern": "^[A-Z]{3}$"
                              },
                              "units": {
                                "type": "string",
                                "maxLength": 100,
                                "pattern": "^\\d+(?:\\.\\d+)?$"
                              },
                              "count": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "exchangeType": {
                                "type": "string",
                                "enum": [
                                  "CARF401",
                                  "CARF402",
                                  "CARF403",
                                  "CARF404"
                                ]
                              }
                            },
                            "required": [
                              "amount",
                              "currency",
                              "units",
                              "count"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "cryptoFiatIn": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "amount": {
                                "type": "string",
                                "maxLength": 100,
                                "pattern": "^\\d+(?:\\.\\d{1,2})?$"
                              },
                              "currency": {
                                "type": "string",
                                "pattern": "^[A-Z]{3}$"
                              },
                              "units": {
                                "type": "string",
                                "maxLength": 100,
                                "pattern": "^\\d+(?:\\.\\d+)?$"
                              },
                              "count": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "exchangeType": {
                                "type": "string",
                                "enum": [
                                  "CARF401",
                                  "CARF402",
                                  "CARF403",
                                  "CARF404"
                                ]
                              }
                            },
                            "required": [
                              "amount",
                              "currency",
                              "units",
                              "count"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "cryptoFiatOut": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "amount": {
                                "type": "string",
                                "maxLength": 100,
                                "pattern": "^\\d+(?:\\.\\d{1,2})?$"
                              },
                              "currency": {
                                "type": "string",
                                "pattern": "^[A-Z]{3}$"
                              },
                              "units": {
                                "type": "string",
                                "maxLength": 100,
                                "pattern": "^\\d+(?:\\.\\d+)?$"
                              },
                              "count": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "exchangeType": {
                                "type": "string",
                                "enum": [
                                  "CARF401",
                                  "CARF402",
                                  "CARF403",
                                  "CARF404"
                                ]
                              }
                            },
                            "required": [
                              "amount",
                              "currency",
                              "units",
                              "count"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "cryptoTransferIn": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "amount": {
                                "type": "string",
                                "maxLength": 100,
                                "pattern": "^\\d+(?:\\.\\d{1,2})?$"
                              },
                              "currency": {
                                "type": "string",
                                "pattern": "^[A-Z]{3}$"
                              },
                              "units": {
                                "type": "string",
                                "maxLength": 100,
                                "pattern": "^\\d+(?:\\.\\d+)?$"
                              },
                              "count": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "transferType": {
                                "type": "string",
                                "pattern": "^CARF50[1-9]$"
                              },
                              "alternativeValuation": {
                                "type": "string",
                                "pattern": "^CARF100[1-4]$"
                              }
                            },
                            "required": [
                              "amount",
                              "currency",
                              "units",
                              "count",
                              "transferType"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "cryptoTransferOut": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "amount": {
                                "type": "string",
                                "maxLength": 100,
                                "pattern": "^\\d+(?:\\.\\d{1,2})?$"
                              },
                              "currency": {
                                "type": "string",
                                "pattern": "^[A-Z]{3}$"
                              },
                              "units": {
                                "type": "string",
                                "maxLength": 100,
                                "pattern": "^\\d+(?:\\.\\d+)?$"
                              },
                              "count": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "transferType": {
                                "type": "string",
                                "pattern": "^CARF60[1-6]$"
                              },
                              "alternativeValuation": {
                                "type": "string",
                                "pattern": "^CARF100[1-4]$"
                              }
                            },
                            "required": [
                              "amount",
                              "currency",
                              "units",
                              "count",
                              "transferType"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "walletTransfersOut": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "amount": {
                                "type": "string",
                                "maxLength": 100,
                                "pattern": "^\\d+(?:\\.\\d{1,2})?$"
                              },
                              "currency": {
                                "type": "string",
                                "pattern": "^[A-Z]{3}$"
                              },
                              "units": {
                                "type": "string",
                                "maxLength": 100,
                                "pattern": "^\\d+(?:\\.\\d+)?$"
                              },
                              "alternativeValuation": {
                                "type": "string",
                                "pattern": "^CARF100[1-4]$"
                              }
                            },
                            "required": [
                              "amount",
                              "currency",
                              "units"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "retailPayments": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "amount": {
                                "type": "string",
                                "maxLength": 100,
                                "pattern": "^\\d+(?:\\.\\d{1,2})?$"
                              },
                              "currency": {
                                "type": "string",
                                "pattern": "^[A-Z]{3}$"
                              },
                              "units": {
                                "type": "string",
                                "maxLength": 100,
                                "pattern": "^\\d+(?:\\.\\d+)?$"
                              },
                              "count": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              }
                            },
                            "required": [
                              "amount",
                              "currency",
                              "units",
                              "count"
                            ],
                            "additionalProperties": false
                          }
                        }
                      },
                      "required": [
                        "asset"
                      ],
                      "additionalProperties": false
                    }
                  }
                },
                "required": [
                  "kind",
                  "residenceCountries",
                  "tins",
                  "addresses",
                  "firstName",
                  "lastName",
                  "birthDate",
                  "transactions"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "const": "entity"
                  },
                  "residenceCountries": {
                    "minItems": 1,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "pattern": "^[A-Z]{2}$"
                    }
                  },
                  "tins": {
                    "minItems": 1,
                    "type": "array",
                    "items": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "value": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 200
                            },
                            "issuedBy": {
                              "type": "string",
                              "pattern": "^[A-Z]{2}$"
                            }
                          },
                          "required": [
                            "value",
                            "issuedBy"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "value": {
                              "type": "string",
                              "const": "NOTIN"
                            }
                          },
                          "required": [
                            "value"
                          ],
                          "additionalProperties": false
                        }
                      ]
                    }
                  },
                  "addresses": {
                    "minItems": 1,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "country": {
                          "type": "string",
                          "pattern": "^[A-Z]{2}$"
                        },
                        "street": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 200
                        },
                        "buildingIdentifier": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 200
                        },
                        "suiteIdentifier": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 200
                        },
                        "floorIdentifier": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 200
                        },
                        "districtName": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 200
                        },
                        "poBox": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 200
                        },
                        "postCode": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 200
                        },
                        "city": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 200
                        },
                        "countrySubentity": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 200
                        },
                        "additionalInfo": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 4000
                        }
                      },
                      "required": [
                        "country",
                        "city"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "individualIds": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "value": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 200
                        },
                        "issuedBy": {
                          "type": "string",
                          "pattern": "^[A-Z]{2}$"
                        }
                      },
                      "required": [
                        "value"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  },
                  "organisationIds": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "value": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 200
                        },
                        "issuedBy": {
                          "type": "string",
                          "pattern": "^[A-Z]{2}$"
                        },
                        "type": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 200
                        }
                      },
                      "required": [
                        "value"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "transactions": {
                    "minItems": 1,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "asset": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 200
                        },
                        "cryptoToCryptoIn": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "amount": {
                                "type": "string",
                                "maxLength": 100,
                                "pattern": "^\\d+(?:\\.\\d{1,2})?$"
                              },
                              "currency": {
                                "type": "string",
                                "pattern": "^[A-Z]{3}$"
                              },
                              "units": {
                                "type": "string",
                                "maxLength": 100,
                                "pattern": "^\\d+(?:\\.\\d+)?$"
                              },
                              "count": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "exchangeType": {
                                "type": "string",
                                "enum": [
                                  "CARF401",
                                  "CARF402",
                                  "CARF403",
                                  "CARF404"
                                ]
                              }
                            },
                            "required": [
                              "amount",
                              "currency",
                              "units",
                              "count"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "cryptoToCryptoOut": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "amount": {
                                "type": "string",
                                "maxLength": 100,
                                "pattern": "^\\d+(?:\\.\\d{1,2})?$"
                              },
                              "currency": {
                                "type": "string",
                                "pattern": "^[A-Z]{3}$"
                              },
                              "units": {
                                "type": "string",
                                "maxLength": 100,
                                "pattern": "^\\d+(?:\\.\\d+)?$"
                              },
                              "count": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "exchangeType": {
                                "type": "string",
                                "enum": [
                                  "CARF401",
                                  "CARF402",
                                  "CARF403",
                                  "CARF404"
                                ]
                              }
                            },
                            "required": [
                              "amount",
                              "currency",
                              "units",
                              "count"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "cryptoFiatIn": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "amount": {
                                "type": "string",
                                "maxLength": 100,
                                "pattern": "^\\d+(?:\\.\\d{1,2})?$"
                              },
                              "currency": {
                                "type": "string",
                                "pattern": "^[A-Z]{3}$"
                              },
                              "units": {
                                "type": "string",
                                "maxLength": 100,
                                "pattern": "^\\d+(?:\\.\\d+)?$"
                              },
                              "count": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "exchangeType": {
                                "type": "string",
                                "enum": [
                                  "CARF401",
                                  "CARF402",
                                  "CARF403",
                                  "CARF404"
                                ]
                              }
                            },
                            "required": [
                              "amount",
                              "currency",
                              "units",
                              "count"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "cryptoFiatOut": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "amount": {
                                "type": "string",
                                "maxLength": 100,
                                "pattern": "^\\d+(?:\\.\\d{1,2})?$"
                              },
                              "currency": {
                                "type": "string",
                                "pattern": "^[A-Z]{3}$"
                              },
                              "units": {
                                "type": "string",
                                "maxLength": 100,
                                "pattern": "^\\d+(?:\\.\\d+)?$"
                              },
                              "count": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "exchangeType": {
                                "type": "string",
                                "enum": [
                                  "CARF401",
                                  "CARF402",
                                  "CARF403",
                                  "CARF404"
                                ]
                              }
                            },
                            "required": [
                              "amount",
                              "currency",
                              "units",
                              "count"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "cryptoTransferIn": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "amount": {
                                "type": "string",
                                "maxLength": 100,
                                "pattern": "^\\d+(?:\\.\\d{1,2})?$"
                              },
                              "currency": {
                                "type": "string",
                                "pattern": "^[A-Z]{3}$"
                              },
                              "units": {
                                "type": "string",
                                "maxLength": 100,
                                "pattern": "^\\d+(?:\\.\\d+)?$"
                              },
                              "count": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "transferType": {
                                "type": "string",
                                "pattern": "^CARF50[1-9]$"
                              },
                              "alternativeValuation": {
                                "type": "string",
                                "pattern": "^CARF100[1-4]$"
                              }
                            },
                            "required": [
                              "amount",
                              "currency",
                              "units",
                              "count",
                              "transferType"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "cryptoTransferOut": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "amount": {
                                "type": "string",
                                "maxLength": 100,
                                "pattern": "^\\d+(?:\\.\\d{1,2})?$"
                              },
                              "currency": {
                                "type": "string",
                                "pattern": "^[A-Z]{3}$"
                              },
                              "units": {
                                "type": "string",
                                "maxLength": 100,
                                "pattern": "^\\d+(?:\\.\\d+)?$"
                              },
                              "count": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "transferType": {
                                "type": "string",
                                "pattern": "^CARF60[1-6]$"
                              },
                              "alternativeValuation": {
                                "type": "string",
                                "pattern": "^CARF100[1-4]$"
                              }
                            },
                            "required": [
                              "amount",
                              "currency",
                              "units",
                              "count",
                              "transferType"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "walletTransfersOut": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "amount": {
                                "type": "string",
                                "maxLength": 100,
                                "pattern": "^\\d+(?:\\.\\d{1,2})?$"
                              },
                              "currency": {
                                "type": "string",
                                "pattern": "^[A-Z]{3}$"
                              },
                              "units": {
                                "type": "string",
                                "maxLength": 100,
                                "pattern": "^\\d+(?:\\.\\d+)?$"
                              },
                              "alternativeValuation": {
                                "type": "string",
                                "pattern": "^CARF100[1-4]$"
                              }
                            },
                            "required": [
                              "amount",
                              "currency",
                              "units"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "retailPayments": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "amount": {
                                "type": "string",
                                "maxLength": 100,
                                "pattern": "^\\d+(?:\\.\\d{1,2})?$"
                              },
                              "currency": {
                                "type": "string",
                                "pattern": "^[A-Z]{3}$"
                              },
                              "units": {
                                "type": "string",
                                "maxLength": 100,
                                "pattern": "^\\d+(?:\\.\\d+)?$"
                              },
                              "count": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              }
                            },
                            "required": [
                              "amount",
                              "currency",
                              "units",
                              "count"
                            ],
                            "additionalProperties": false
                          }
                        }
                      },
                      "required": [
                        "asset"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "controllingPersons": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "person": {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "const": "individual"
                            },
                            "residenceCountries": {
                              "minItems": 1,
                              "type": "array",
                              "items": {
                                "type": "string",
                                "pattern": "^[A-Z]{2}$"
                              }
                            },
                            "tins": {
                              "minItems": 1,
                              "type": "array",
                              "items": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "value": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 200
                                      },
                                      "issuedBy": {
                                        "type": "string",
                                        "pattern": "^[A-Z]{2}$"
                                      }
                                    },
                                    "required": [
                                      "value",
                                      "issuedBy"
                                    ],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "value": {
                                        "type": "string",
                                        "const": "NOTIN"
                                      }
                                    },
                                    "required": [
                                      "value"
                                    ],
                                    "additionalProperties": false
                                  }
                                ]
                              }
                            },
                            "addresses": {
                              "minItems": 1,
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "country": {
                                    "type": "string",
                                    "pattern": "^[A-Z]{2}$"
                                  },
                                  "street": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 200
                                  },
                                  "buildingIdentifier": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 200
                                  },
                                  "suiteIdentifier": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 200
                                  },
                                  "floorIdentifier": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 200
                                  },
                                  "districtName": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 200
                                  },
                                  "poBox": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 200
                                  },
                                  "postCode": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 200
                                  },
                                  "city": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 200
                                  },
                                  "countrySubentity": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 200
                                  },
                                  "additionalInfo": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 4000
                                  }
                                },
                                "required": [
                                  "country",
                                  "city"
                                ],
                                "additionalProperties": false
                              }
                            },
                            "individualIds": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "value": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 200
                                  },
                                  "issuedBy": {
                                    "type": "string",
                                    "pattern": "^[A-Z]{2}$"
                                  }
                                },
                                "required": [
                                  "value"
                                ],
                                "additionalProperties": false
                              }
                            },
                            "firstName": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 200
                            },
                            "middleNames": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 200
                              }
                            },
                            "lastName": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 200
                            },
                            "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
                                },
                                "citySubentity": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 200
                                },
                                "country": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "countryCode": {
                                          "type": "string",
                                          "pattern": "^[A-Z]{2}$"
                                        }
                                      },
                                      "required": [
                                        "countryCode"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "formerCountryName": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 200
                                        }
                                      },
                                      "required": [
                                        "formerCountryName"
                                      ],
                                      "additionalProperties": false
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "city",
                                "country"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "required": [
                            "kind",
                            "residenceCountries",
                            "tins",
                            "addresses",
                            "firstName",
                            "lastName",
                            "birthDate"
                          ],
                          "additionalProperties": false
                        },
                        "roles": {
                          "minItems": 1,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "pattern": "^CARF8(?:0[1-9]|1[0-3])$"
                          }
                        }
                      },
                      "required": [
                        "person",
                        "roles"
                      ],
                      "additionalProperties": false
                    }
                  }
                },
                "required": [
                  "kind",
                  "residenceCountries",
                  "tins",
                  "addresses",
                  "name",
                  "transactions"
                ],
                "additionalProperties": false
              }
            ]
          }
        },
        "required": [
          "docSuffix",
          "record"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "messageSuffix",
    "timestamp",
    "rcaspId",
    "reportingYear",
    "provider",
    "users"
  ],
  "additionalProperties": false,
  "examples": [
    {
      "rcaspId": "XRCASP000001234",
      "reportingYear": 2026,
      "timestamp": "2027-05-01T09:00:00",
      "messageSuffix": "batch-1",
      "provider": {
        "party": {
          "kind": "entity",
          "name": "Bramble Digital Markets Ltd",
          "residenceCountries": [
            "GB"
          ],
          "tins": [
            {
              "value": "08801357",
              "issuedBy": "GB"
            }
          ],
          "addresses": [
            {
              "country": "GB",
              "city": "London",
              "street": "10 Exchange Road",
              "postCode": "EC2A 1AA"
            }
          ]
        },
        "nexus": "CARF901",
        "docSuffix": "provider"
      },
      "users": [
        {
          "docSuffix": "user-42",
          "record": {
            "kind": "individual",
            "firstName": "Avery",
            "lastName": "Carter",
            "birthDate": "1982-06-15",
            "residenceCountries": [
              "GB"
            ],
            "tins": [
              {
                "value": "AB123456C",
                "issuedBy": "GB"
              }
            ],
            "addresses": [
              {
                "country": "GB",
                "city": "York",
                "postCode": "YO1 1AA"
              }
            ],
            "transactions": [
              {
                "asset": "Bitcoin",
                "cryptoFiatIn": [
                  {
                    "count": 4,
                    "units": "0.02150000",
                    "amount": "1450.00",
                    "currency": "GBP"
                  }
                ]
              }
            ]
          }
        }
      ]
    }
  ]
}
Response schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "valid": {
      "type": "boolean"
    },
    "reportableUsers": {
      "type": "integer",
      "minimum": 0,
      "maximum": 10000
    },
    "errors": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "rule": {
            "type": "string"
          },
          "path": {
            "type": "string"
          },
          "line": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "expected": {
            "type": "string"
          },
          "actual": {
            "type": "string"
          },
          "source": {
            "type": "string"
          }
        },
        "required": [
          "rule",
          "path",
          "expected",
          "actual",
          "source"
        ],
        "additionalProperties": false
      }
    },
    "needsReview": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "rule": {
            "type": "string"
          },
          "path": {
            "type": "string"
          },
          "line": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "expected": {
            "type": "string"
          },
          "actual": {
            "type": "string"
          },
          "source": {
            "type": "string"
          }
        },
        "required": [
          "rule",
          "path",
          "expected",
          "actual",
          "source"
        ],
        "additionalProperties": false
      }
    },
    "schemaVersion": {
      "type": "string",
      "const": "1.5"
    },
    "xml": {
      "type": [
        "string",
        "null"
      ]
    },
    "filename": {
      "type": [
        "string",
        "null"
      ]
    },
    "messageRefId": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "required": [
    "valid",
    "reportableUsers",
    "errors",
    "needsReview",
    "schemaVersion",
    "xml",
    "filename",
    "messageRefId"
  ],
  "additionalProperties": false
}