> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cadanapay.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get person filing data

> Returns statutory filing data for a person in a jurisdiction. The response
is a merged view: fields explicitly submitted via PUT are combined with
defaults read from the person service (e.g., firstName, lastName).




## OpenAPI

````yaml /openapi/statutory-compliance.yaml get /v1/statutory/persons/{person_id}/fields/{country_code}
openapi: 3.0.0
info:
  title: Statutory Compliance API
  version: 0.1.0
  description: Statutory filing, government remittance, and compliance tracking API
  termsOfService: https://cadanapay.com/terms-and-conditions
  contact:
    email: api@cadanapay.com
  license:
    name: Apache 2.0
    url: http://www.apache.org/licenses/LICENSE-2.0.html
servers:
  - url: https://api.cadanapay.com
    description: Prod Server
  - url: https://dev-api.cadanapay.com
    description: Dev Server
security:
  - Authorization: []
tags:
  - name: Jurisdictions
    description: Discover supported countries, required fields, and filing types
  - name: Filings
    description: >-
      Create, submit, and track statutory returns — from upcoming obligations
      through acceptance
  - name: Remittances
    description: Government payments linked to filings
  - name: Requirements
    description: Prerequisites that must be satisfied before filing
  - name: Events
    description: Immutable audit trail
  - name: Statutory Fields
    description: Submit and read entity-level statutory filing data
paths:
  /v1/statutory/persons/{person_id}/fields/{country_code}:
    get:
      tags:
        - Statutory Fields
      summary: Get person filing data
      description: >
        Returns statutory filing data for a person in a jurisdiction. The
        response

        is a merged view: fields explicitly submitted via PUT are combined with

        defaults read from the person service (e.g., firstName, lastName).
      operationId: getPersonFields
      parameters:
        - $ref: '#/components/parameters/XMultiTenantKey'
        - $ref: '#/components/parameters/PersonId'
        - $ref: '#/components/parameters/CountryCode'
      responses:
        '200':
          description: Person filing data
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StatutoryFieldsResponse'
              example:
                entityType: person
                entityId: 81933bed-97ba-4477-81a7-b8c5ab507b6f
                countryCode: DE
                fields:
                  steuerID: '97148835200'
                  sozialversicherungsnummer: 54211075L005
                  firstName: Max
                  lastName: Mustermann
        '404':
          $ref: '#/components/responses/NotFound'
components:
  parameters:
    XMultiTenantKey:
      name: X-MultiTenantKey
      in: header
      required: false
      schema:
        type: string
      description: >-
        Required when using a Platform API token. The tenant key identifying
        which business to operate on.
    PersonId:
      name: person_id
      in: path
      required: true
      schema:
        type: string
      description: Person identifier
      example: 81933bed-97ba-4477-81a7-b8c5ab507b6f
    CountryCode:
      name: country_code
      in: path
      required: true
      schema:
        type: string
        pattern: ^[A-Z]{2}$
      description: ISO 3166-1 alpha-2 country code
      example: MX
  schemas:
    StatutoryFieldsResponse:
      type: object
      description: |
        Merged view of statutory filing data for an entity. Combines fields
        explicitly submitted via PUT with defaults read from the upstream
        service (person service or business service).
      properties:
        entityType:
          type: string
          enum:
            - person
            - business
          description: Type of entity this data belongs to
          example: person
        entityId:
          type: string
          description: ID of the person or business
          example: 81933bed-97ba-4477-81a7-b8c5ab507b6f
        countryCode:
          type: string
          example: DE
        fields:
          type: object
          additionalProperties:
            oneOf:
              - type: string
              - $ref: '#/components/schemas/DocumentFieldValue'
          description: |
            Merged field data. `document`-typed fields are returned as an
            object with a short-lived download link (see `DocumentFieldValue`).
          example:
            steuerID: '97148835200'
            sozialversicherungsnummer: 54211075L005
            firstName: Max
            lastName: Mustermann
            idCard:
              fileId: f1e2d3c4-b5a6-4789-9abc-def012345678
              url: https://s3.eu-west-1.amazonaws.com/files/presigned-get-url
              fileUploaded: true
    DocumentFieldValue:
      type: object
      description: |
        Value of a `document`-typed statutory field in GET responses.
        The download URL is presigned and expires after ~15 minutes — fetch a
        fresh one when needed rather than storing it.
      properties:
        fileId:
          type: string
          format: uuid
          description: The file ID submitted for this field
          example: f1e2d3c4-b5a6-4789-9abc-def012345678
        url:
          type: string
          description: Short-lived presigned download URL for the document
          example: https://s3.eu-west-1.amazonaws.com/files/presigned-get-url
        fileUploaded:
          type: boolean
          description: Whether the file content exists in storage
          example: true
      required:
        - fileId
        - url
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              example: invalid_request
            message:
              type: string
              example: countryCode is required
            details:
              type: array
              nullable: true
              items:
                type: object
                properties:
                  field:
                    type: string
                  message:
                    type: string
  responses:
    NotFound:
      description: Resource not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    Authorization:
      type: http
      scheme: bearer
      bearerFormat: API_SECRET_KEY

````