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

# Get P32 for a full tax year

> Returns 12 monthly records. Months with no FPS/EPS data are null.



## OpenAPI

````yaml /api-reference/preview.json get /gb/organizations/{organization_id}/p32/{tax_year}
openapi: 3.1.0
info:
  title: FastAPI
  version: 0.1.0
servers: []
security: []
paths:
  /gb/organizations/{organization_id}/p32/{tax_year}:
    get:
      tags:
        - Great Britain
        - P32
      summary: Get P32 for a full tax year
      description: Returns 12 monthly records. Months with no FPS/EPS data are null.
      operationId: get_p32_year_gb_organizations__organization_id__p32__tax_year__get
      parameters:
        - name: organization_id
          in: path
          required: true
          schema:
            anyOf:
              - type: string
              - type: string
                format: uuid
            title: Organization Id
        - name: tax_year
          in: path
          required: true
          schema:
            type: integer
            title: Tax Year
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/P32YearResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - BearerToken: []
components:
  schemas:
    P32YearResponse:
      properties:
        tax_year:
          type: integer
          title: Tax Year
        months:
          items:
            anyOf:
              - $ref: '#/components/schemas/P32MonthResponse'
              - type: 'null'
          type: array
          title: Months
      additionalProperties: true
      type: object
      required:
        - tax_year
        - months
      title: P32YearResponse
      description: 12-month P32 summary. Months with no FPS/EPS data are null.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    P32MonthResponse:
      properties:
        income_tax_paye:
          type: string
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
          title: Income Tax Paye
          default: '0'
        student_loan_plan1:
          type: string
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
          title: Student Loan Plan1
          default: '0'
        student_loan_plan2:
          type: string
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
          title: Student Loan Plan2
          default: '0'
        student_loan_plan4:
          type: string
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
          title: Student Loan Plan4
          default: '0'
        student_loan_pg:
          type: string
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
          title: Student Loan Pg
          default: '0'
        employee_nic:
          type: string
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
          title: Employee Nic
          default: '0'
        employer_nic:
          type: string
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
          title: Employer Nic
          default: '0'
        class_1a_nic:
          type: string
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
          title: Class 1A Nic
          default: '0'
        smp:
          type: string
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
          title: Smp
          default: '0'
        spp:
          type: string
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
          title: Spp
          default: '0'
        sap:
          type: string
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
          title: Sap
          default: '0'
        shpp:
          type: string
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
          title: Shpp
          default: '0'
        spbp:
          type: string
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
          title: Spbp
          default: '0'
        sncp:
          type: string
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
          title: Sncp
          default: '0'
        nic_compensation:
          type: string
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
          title: Nic Compensation
          default: '0'
        cis:
          type: string
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
          title: Cis
          default: '0'
        employment_allowance_applied:
          type: string
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
          title: Employment Allowance Applied
          default: '0'
        apprenticeship_levy:
          type: string
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
          title: Apprenticeship Levy
          default: '0'
        ea_balance_brought_forward:
          type: string
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
          title: Ea Balance Brought Forward
          default: '0'
        surplus_brought_forward:
          type: string
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
          title: Surplus Brought Forward
          default: '0'
        tax_year:
          type: integer
          title: Tax Year
        tax_month:
          type: integer
          title: Tax Month
        version:
          type: integer
          title: Version
        gross_liability:
          type: string
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
          title: Gross Liability
          readOnly: true
        total_reclaims:
          type: string
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
          title: Total Reclaims
          readOnly: true
        net_payable:
          type: string
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
          title: Net Payable
          readOnly: true
        ea_balance_carried_forward:
          type: string
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
          title: Ea Balance Carried Forward
          readOnly: true
        surplus_carried_forward:
          type: string
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
          title: Surplus Carried Forward
          readOnly: true
      additionalProperties: true
      type: object
      required:
        - tax_year
        - tax_month
        - version
        - gross_liability
        - total_reclaims
        - net_payable
        - ea_balance_carried_forward
        - surplus_carried_forward
      title: P32MonthResponse
      description: P32 liability record for a single tax month, as returned by the API.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    BearerToken:
      type: oauth2
      flows:
        password:
          scopes:
            read:all: Read all
            write:all: Write all
            read:health_check: Read health check
            write:health_check: Write health check
            read:wage_types: Read wage types
            write:wage_types: Write wage types
          tokenUrl: >-
            https://auth-preview.intermezzo.ai/authorize?audience=api-preview.intermezzo.ai

````