> ## 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.

# Preview P11Db

> Preview P11D(b) calculation without submitting.



## OpenAPI

````yaml /api-reference/preview.json get /gb/organizations/{organization_id}/exb/p11ds/submissions/p11db-preview
openapi: 3.1.0
info:
  title: FastAPI
  version: 0.1.0
servers: []
security: []
paths:
  /gb/organizations/{organization_id}/exb/p11ds/submissions/p11db-preview:
    get:
      tags:
        - Great Britain
        - Expenses and Benefits
        - Great Britain
        - EXB P11D
      summary: Preview P11Db
      description: Preview P11D(b) calculation without submitting.
      operationId: >-
        preview_p11db_gb_organizations__organization_id__exb_p11ds_submissions_p11db_preview_get
      parameters:
        - name: organization_id
          in: path
          required: true
          schema:
            anyOf:
              - type: string
              - type: string
                format: uuid
            title: Organization Id
        - name: tax_year
          in: query
          required: true
          schema:
            type: integer
            description: Tax year start, e.g. 2025 for 2025-26
            title: Tax Year
          description: Tax year start, e.g. 2025 for 2025-26
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/P11DbPreviewResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - BearerToken: []
components:
  schemas:
    P11DbPreviewResponse:
      properties:
        nics_rate:
          anyOf:
            - type: string
              pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
            - type: 'null'
          title: Nics Rate
        total_benefit:
          type: string
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
          title: Total Benefit
        nic_payable:
          anyOf:
            - type: string
              pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
            - type: 'null'
          title: Nic Payable
        payrolled_benefits:
          type: string
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
          title: Payrolled Benefits
        non_payrolled_benefits:
          type: string
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
          title: Non Payrolled Benefits
        p11d_count:
          type: integer
          title: P11D Count
      additionalProperties: true
      type: object
      required:
        - nics_rate
        - total_benefit
        - nic_payable
        - payrolled_benefits
        - non_payrolled_benefits
        - p11d_count
      title: P11DbPreviewResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    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

````