> ## 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: per_xyz789
                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: per_xyz789
    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: per_xyz789
        countryCode:
          type: string
          example: DE
        fields:
          type: object
          additionalProperties:
            type: string
          description: Merged field data
          example:
            steuerID: '97148835200'
            sozialversicherungsnummer: 54211075L005
            firstName: Max
            lastName: Mustermann
    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

````