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

> `ETag` is the edition read: send it as `If-Match` on the next PUT.



## OpenAPI

````yaml /api-reference/preview.json get /gb/organizations/{organization_id}/wage-types/{wage_type_id}/computation
openapi: 3.2.0
info:
  description: Intermezzo's global payroll apis, organized by country
  summary: Global Payroll Platform
  title: Intermezzo Global Payroll
  version: '2026-11-18'
  x-logo:
    url: /static/icon.svg
servers:
  - description: Preview
    url: https://preview.intermezzo.ai
security: []
paths:
  /gb/organizations/{organization_id}/wage-types/{wage_type_id}/computation:
    get:
      tags:
        - Great Britain
        - Wage Types
        - Computation
      summary: Get Computation
      description: '`ETag` is the edition read: send it as `If-Match` on the next PUT.'
      operationId: gb_wage_type_computation_get
      parameters:
        - in: path
          name: organization_id
          required: true
          schema:
            title: Organization Id
            type: string
        - in: path
          name: wage_type_id
          required: true
          schema:
            title: Wage Type Id
            type: string
        - description: >-
            Valid-time date to read, past or future. Defaults to today, or to
            the first upcoming edition when nothing is valid yet.
          in: query
          name: valid_at
          required: false
          schema:
            anyOf:
              - format: date
                type: string
              - type: 'null'
            description: >-
              Valid-time date to read, past or future. Defaults to today, or to
              the first upcoming edition when nothing is valid yet.
            title: Valid At
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WageTypeComputationSatellite'
          description: Successful Response
        '404':
          content:
            application/json:
              examples:
                HUB_NOT_FOUND:
                  summary: >-
                    Raised when a hub does not exist under the parent named in
                    the path.
                  value:
                    errors:
                      - code: HUB_NOT_FOUND
                        message: >-
                          Raised when a hub does not exist under the parent
                          named in the path.
                SATELLITE_NOT_FOUND:
                  summary: >-
                    Raised on a read of a satellite that was never written:
                    neither sent when its hub was created nor written by a PUT
                    since.
                  value:
                    errors:
                      - code: SATELLITE_NOT_FOUND
                        message: >-
                          Raised on a read of a satellite that was never
                          written: neither sent when its hub was created nor
                          written by a PUT since.
              schema:
                properties:
                  errors:
                    items:
                      additionalProperties: false
                      description: >-
                        Represents an error that occurred during processing.


                        Designed for client-side i18n:

                        - code: Use this to look up translation (e.g.,
                        "HUB_NOT_FOUND")

                        - message: English fallback if translation not available

                        - field: Field name for form validation highlighting

                        - params: Dynamic values for translation interpolation
                      properties:
                        code:
                          description: Unique error code for i18n lookup
                          enum:
                            - HUB_NOT_FOUND
                            - SATELLITE_NOT_FOUND
                          title: Code
                          type: string
                        field:
                          anyOf:
                            - type: string
                            - type: 'null'
                          description: Field that caused the error
                          title: Field
                        message:
                          description: English fallback error message
                          title: Message
                          type: string
                        params:
                          anyOf:
                            - additionalProperties: true
                              type: object
                            - type: 'null'
                          description: Parameters for translation interpolation
                          title: Params
                      required:
                        - code
                        - message
                      title: ErrorDetail
                      type: object
                    type: array
                required:
                  - errors
                title: ErrorResponse
                type: object
          description: >-
            - `HUB_NOT_FOUND`: Raised when a hub does not exist under the parent
            named in the path.

            - `SATELLITE_NOT_FOUND`: Raised on a read of a satellite that was
            never written: neither sent when its hub was created nor written by
            a PUT since.
        '422':
          content:
            application/json:
              examples:
                VALUE_OUT_OF_RANGE:
                  summary: Raised when a date lies outside the satellite's coverage.
                  value:
                    errors:
                      - code: VALUE_OUT_OF_RANGE
                        message: >-
                          Raised when a date lies outside the satellite's
                          coverage.
              schema:
                properties:
                  errors:
                    items:
                      additionalProperties: false
                      description: >-
                        Represents an error that occurred during processing.


                        Designed for client-side i18n:

                        - code: Use this to look up translation (e.g.,
                        "HUB_NOT_FOUND")

                        - message: English fallback if translation not available

                        - field: Field name for form validation highlighting

                        - params: Dynamic values for translation interpolation
                      properties:
                        code:
                          description: Unique error code for i18n lookup
                          enum:
                            - VALUE_OUT_OF_RANGE
                            - FIELD_REQUIRED
                            - FIELD_INVALID_TYPE_STRING
                            - FIELD_INVALID_TYPE_INT
                            - FIELD_INVALID_TYPE_FLOAT
                            - FIELD_INVALID_TYPE_BOOL
                            - FIELD_INVALID_TYPE_DICT
                            - FIELD_INVALID_TYPE_LIST
                            - FIELD_STRING_TOO_SHORT
                            - FIELD_STRING_TOO_LONG
                            - FIELD_STRING_PATTERN_MISMATCH
                            - FIELD_VALUE_TOO_SMALL
                            - FIELD_VALUE_TOO_LARGE
                            - FIELD_INVALID_DATE
                            - FIELD_INVALID_DATETIME
                            - FIELD_INVALID_TIME
                            - FIELD_INVALID_DATE_FORMAT
                            - FIELD_INVALID_DATETIME_FORMAT
                            - FIELD_INVALID_ENUM_VALUE
                            - FIELD_INVALID_EMAIL
                            - FIELD_INVALID_URL
                            - FIELD_LIST_TOO_SHORT
                            - FIELD_LIST_TOO_LONG
                            - FIELD_UNKNOWN
                            - FIELD_VALIDATION_ERROR
                          title: Code
                          type: string
                        field:
                          anyOf:
                            - type: string
                            - type: 'null'
                          description: Field that caused the error
                          title: Field
                        message:
                          description: English fallback error message
                          title: Message
                          type: string
                        params:
                          anyOf:
                            - additionalProperties: true
                              type: object
                            - type: 'null'
                          description: Parameters for translation interpolation
                          title: Params
                      required:
                        - code
                        - message
                      title: ErrorDetail
                      type: object
                    type: array
                required:
                  - errors
                title: ErrorResponse
                type: object
          description: >-
            The request failed validation. Type and format errors use the
            generic FIELD_* codes.

            - `VALUE_OUT_OF_RANGE`: Raised when a date lies outside the
            satellite's coverage.
      security:
        - BearerToken: []
components:
  schemas:
    WageTypeComputationSatellite:
      additionalProperties: false
      properties:
        computation:
          discriminator:
            mapping:
              capped: '#/components/schemas/CappedSpec-Output'
              conditional: '#/components/schemas/ConditionalSpec-Output'
              divide: '#/components/schemas/DivideSpec-Output'
              fixed: '#/components/schemas/FixedSpec-Output'
              lookup_param: '#/components/schemas/LookupParamSpec'
              max: '#/components/schemas/MaxSpec-Output'
              min: '#/components/schemas/MinSpec-Output'
              multiply: '#/components/schemas/MultiplySpec-Output'
              percent_of: '#/components/schemas/PercentOfSpec-Output'
              percent_of_param: '#/components/schemas/PercentOfParamSpec-Output'
              round: '#/components/schemas/RoundSpec-Output'
              subtract: '#/components/schemas/SubtractSpec-Output'
              sum: '#/components/schemas/SumSpec-Output'
              tiered: '#/components/schemas/TieredSpec-Output'
              wage_type_ref: '#/components/schemas/WageTypeRefSpec'
            propertyName: type
          oneOf:
            - $ref: '#/components/schemas/FixedSpec-Output'
            - $ref: '#/components/schemas/PercentOfSpec-Output'
            - $ref: '#/components/schemas/PercentOfParamSpec-Output'
            - $ref: '#/components/schemas/LookupParamSpec'
            - $ref: '#/components/schemas/WageTypeRefSpec'
            - $ref: '#/components/schemas/TieredSpec-Output'
            - $ref: '#/components/schemas/CappedSpec-Output'
            - $ref: '#/components/schemas/ConditionalSpec-Output'
            - $ref: '#/components/schemas/SumSpec-Output'
            - $ref: '#/components/schemas/SubtractSpec-Output'
            - $ref: '#/components/schemas/MultiplySpec-Output'
            - $ref: '#/components/schemas/DivideSpec-Output'
            - $ref: '#/components/schemas/MinSpec-Output'
            - $ref: '#/components/schemas/MaxSpec-Output'
            - $ref: '#/components/schemas/RoundSpec-Output'
          title: Computation
        created_at:
          format: date-time
          readOnly: true
          title: Created At
          type: string
        created_by:
          description: >-
            Who wrote the edition: the acting user (`X-Acting-User`, else the
            access credential), `system` for our own writes, or
            `<authority>:<notice>` for a write on an authority's behalf, e.g.
            `hmrc:P6`.
          readOnly: true
          title: Created By
          type: string
        depends_on:
          description: Codes whose amounts the computation reads
          items:
            type: string
          title: Depends On
          type: array
        edition:
          readOnly: true
          title: Edition
          type: integer
        locked_fields:
          description: >-
            Paths into `computation` that a write may not change; `*` locks the
            whole computation and `depends_on`
          items:
            type: string
          readOnly: true
          title: Locked Fields
          type: array
        precision:
          anyOf:
            - maximum: 6
              minimum: 0
              type: integer
            - type: 'null'
          default: 2
          description: >-
            Decimal places the result is rounded to; null leaves rounding to the
            computation itself
          title: Precision
        rounding:
          $ref: '#/components/schemas/RoundingMode'
          default: HALF_UP
        valid_from:
          format: date
          title: Valid From
          type: string
        valid_to:
          format: date
          title: Valid To
          type: string
      required:
        - computation
        - edition
        - valid_from
        - valid_to
        - created_at
        - created_by
      title: WageTypeComputationSatellite
      type: object
    CappedSpec-Output:
      properties:
        annual_cap:
          anyOf:
            - type: string
            - type: 'null'
          title: Annual Cap
        inner:
          discriminator:
            mapping:
              capped: '#/components/schemas/CappedSpec-Output'
              conditional: '#/components/schemas/ConditionalSpec-Output'
              divide: '#/components/schemas/DivideSpec-Output'
              fixed: '#/components/schemas/FixedSpec-Output'
              lookup_param: '#/components/schemas/LookupParamSpec'
              max: '#/components/schemas/MaxSpec-Output'
              min: '#/components/schemas/MinSpec-Output'
              multiply: '#/components/schemas/MultiplySpec-Output'
              percent_of: '#/components/schemas/PercentOfSpec-Output'
              percent_of_param: '#/components/schemas/PercentOfParamSpec-Output'
              round: '#/components/schemas/RoundSpec-Output'
              subtract: '#/components/schemas/SubtractSpec-Output'
              sum: '#/components/schemas/SumSpec-Output'
              tiered: '#/components/schemas/TieredSpec-Output'
              wage_type_ref: '#/components/schemas/WageTypeRefSpec'
            propertyName: type
          oneOf:
            - $ref: '#/components/schemas/FixedSpec-Output'
            - $ref: '#/components/schemas/PercentOfSpec-Output'
            - $ref: '#/components/schemas/PercentOfParamSpec-Output'
            - $ref: '#/components/schemas/LookupParamSpec'
            - $ref: '#/components/schemas/WageTypeRefSpec'
            - $ref: '#/components/schemas/TieredSpec-Output'
            - $ref: '#/components/schemas/CappedSpec-Output'
            - $ref: '#/components/schemas/ConditionalSpec-Output'
            - $ref: '#/components/schemas/SumSpec-Output'
            - $ref: '#/components/schemas/SubtractSpec-Output'
            - $ref: '#/components/schemas/MultiplySpec-Output'
            - $ref: '#/components/schemas/DivideSpec-Output'
            - $ref: '#/components/schemas/MinSpec-Output'
            - $ref: '#/components/schemas/MaxSpec-Output'
            - $ref: '#/components/schemas/RoundSpec-Output'
          title: Inner
        max_value:
          anyOf:
            - type: string
            - type: 'null'
          title: Max Value
        type:
          const: capped
          default: capped
          title: Type
          type: string
        ytd_key:
          anyOf:
            - type: string
            - type: 'null'
          title: Ytd Key
      required:
        - inner
      title: CappedSpec
      type: object
    ConditionalSpec-Output:
      properties:
        attribute:
          title: Attribute
          type: string
        branches:
          additionalProperties:
            discriminator:
              mapping:
                capped: '#/components/schemas/CappedSpec-Output'
                conditional: '#/components/schemas/ConditionalSpec-Output'
                divide: '#/components/schemas/DivideSpec-Output'
                fixed: '#/components/schemas/FixedSpec-Output'
                lookup_param: '#/components/schemas/LookupParamSpec'
                max: '#/components/schemas/MaxSpec-Output'
                min: '#/components/schemas/MinSpec-Output'
                multiply: '#/components/schemas/MultiplySpec-Output'
                percent_of: '#/components/schemas/PercentOfSpec-Output'
                percent_of_param: '#/components/schemas/PercentOfParamSpec-Output'
                round: '#/components/schemas/RoundSpec-Output'
                subtract: '#/components/schemas/SubtractSpec-Output'
                sum: '#/components/schemas/SumSpec-Output'
                tiered: '#/components/schemas/TieredSpec-Output'
                wage_type_ref: '#/components/schemas/WageTypeRefSpec'
              propertyName: type
            oneOf:
              - $ref: '#/components/schemas/FixedSpec-Output'
              - $ref: '#/components/schemas/PercentOfSpec-Output'
              - $ref: '#/components/schemas/PercentOfParamSpec-Output'
              - $ref: '#/components/schemas/LookupParamSpec'
              - $ref: '#/components/schemas/WageTypeRefSpec'
              - $ref: '#/components/schemas/TieredSpec-Output'
              - $ref: '#/components/schemas/CappedSpec-Output'
              - $ref: '#/components/schemas/ConditionalSpec-Output'
              - $ref: '#/components/schemas/SumSpec-Output'
              - $ref: '#/components/schemas/SubtractSpec-Output'
              - $ref: '#/components/schemas/MultiplySpec-Output'
              - $ref: '#/components/schemas/DivideSpec-Output'
              - $ref: '#/components/schemas/MinSpec-Output'
              - $ref: '#/components/schemas/MaxSpec-Output'
              - $ref: '#/components/schemas/RoundSpec-Output'
          title: Branches
          type: object
        default:
          anyOf:
            - discriminator:
                mapping:
                  capped: '#/components/schemas/CappedSpec-Output'
                  conditional: '#/components/schemas/ConditionalSpec-Output'
                  divide: '#/components/schemas/DivideSpec-Output'
                  fixed: '#/components/schemas/FixedSpec-Output'
                  lookup_param: '#/components/schemas/LookupParamSpec'
                  max: '#/components/schemas/MaxSpec-Output'
                  min: '#/components/schemas/MinSpec-Output'
                  multiply: '#/components/schemas/MultiplySpec-Output'
                  percent_of: '#/components/schemas/PercentOfSpec-Output'
                  percent_of_param: '#/components/schemas/PercentOfParamSpec-Output'
                  round: '#/components/schemas/RoundSpec-Output'
                  subtract: '#/components/schemas/SubtractSpec-Output'
                  sum: '#/components/schemas/SumSpec-Output'
                  tiered: '#/components/schemas/TieredSpec-Output'
                  wage_type_ref: '#/components/schemas/WageTypeRefSpec'
                propertyName: type
              oneOf:
                - $ref: '#/components/schemas/FixedSpec-Output'
                - $ref: '#/components/schemas/PercentOfSpec-Output'
                - $ref: '#/components/schemas/PercentOfParamSpec-Output'
                - $ref: '#/components/schemas/LookupParamSpec'
                - $ref: '#/components/schemas/WageTypeRefSpec'
                - $ref: '#/components/schemas/TieredSpec-Output'
                - $ref: '#/components/schemas/CappedSpec-Output'
                - $ref: '#/components/schemas/ConditionalSpec-Output'
                - $ref: '#/components/schemas/SumSpec-Output'
                - $ref: '#/components/schemas/SubtractSpec-Output'
                - $ref: '#/components/schemas/MultiplySpec-Output'
                - $ref: '#/components/schemas/DivideSpec-Output'
                - $ref: '#/components/schemas/MinSpec-Output'
                - $ref: '#/components/schemas/MaxSpec-Output'
                - $ref: '#/components/schemas/RoundSpec-Output'
            - type: 'null'
          title: Default
        type:
          const: conditional
          default: conditional
          title: Type
          type: string
      required:
        - attribute
        - branches
      title: ConditionalSpec
      type: object
    DivideSpec-Output:
      properties:
        items:
          items:
            discriminator:
              mapping:
                capped: '#/components/schemas/CappedSpec-Output'
                conditional: '#/components/schemas/ConditionalSpec-Output'
                divide: '#/components/schemas/DivideSpec-Output'
                fixed: '#/components/schemas/FixedSpec-Output'
                lookup_param: '#/components/schemas/LookupParamSpec'
                max: '#/components/schemas/MaxSpec-Output'
                min: '#/components/schemas/MinSpec-Output'
                multiply: '#/components/schemas/MultiplySpec-Output'
                percent_of: '#/components/schemas/PercentOfSpec-Output'
                percent_of_param: '#/components/schemas/PercentOfParamSpec-Output'
                round: '#/components/schemas/RoundSpec-Output'
                subtract: '#/components/schemas/SubtractSpec-Output'
                sum: '#/components/schemas/SumSpec-Output'
                tiered: '#/components/schemas/TieredSpec-Output'
                wage_type_ref: '#/components/schemas/WageTypeRefSpec'
              propertyName: type
            oneOf:
              - $ref: '#/components/schemas/FixedSpec-Output'
              - $ref: '#/components/schemas/PercentOfSpec-Output'
              - $ref: '#/components/schemas/PercentOfParamSpec-Output'
              - $ref: '#/components/schemas/LookupParamSpec'
              - $ref: '#/components/schemas/WageTypeRefSpec'
              - $ref: '#/components/schemas/TieredSpec-Output'
              - $ref: '#/components/schemas/CappedSpec-Output'
              - $ref: '#/components/schemas/ConditionalSpec-Output'
              - $ref: '#/components/schemas/SumSpec-Output'
              - $ref: '#/components/schemas/SubtractSpec-Output'
              - $ref: '#/components/schemas/MultiplySpec-Output'
              - $ref: '#/components/schemas/DivideSpec-Output'
              - $ref: '#/components/schemas/MinSpec-Output'
              - $ref: '#/components/schemas/MaxSpec-Output'
              - $ref: '#/components/schemas/RoundSpec-Output'
          title: Items
          type: array
        precision:
          anyOf:
            - type: integer
            - type: 'null'
          title: Precision
        rounding:
          $ref: '#/components/schemas/RoundingMode'
          default: HALF_UP
        type:
          const: divide
          default: divide
          title: Type
          type: string
      required:
        - items
      title: DivideSpec
      type: object
    FixedSpec-Output:
      properties:
        amount:
          title: Amount
          type: string
        type:
          const: fixed
          default: fixed
          title: Type
          type: string
      required:
        - amount
      title: FixedSpec
      type: object
    LookupParamSpec:
      properties:
        param:
          title: Param
          type: string
        type:
          const: lookup_param
          default: lookup_param
          title: Type
          type: string
      required:
        - param
      title: LookupParamSpec
      type: object
    MaxSpec-Output:
      properties:
        items:
          items:
            discriminator:
              mapping:
                capped: '#/components/schemas/CappedSpec-Output'
                conditional: '#/components/schemas/ConditionalSpec-Output'
                divide: '#/components/schemas/DivideSpec-Output'
                fixed: '#/components/schemas/FixedSpec-Output'
                lookup_param: '#/components/schemas/LookupParamSpec'
                max: '#/components/schemas/MaxSpec-Output'
                min: '#/components/schemas/MinSpec-Output'
                multiply: '#/components/schemas/MultiplySpec-Output'
                percent_of: '#/components/schemas/PercentOfSpec-Output'
                percent_of_param: '#/components/schemas/PercentOfParamSpec-Output'
                round: '#/components/schemas/RoundSpec-Output'
                subtract: '#/components/schemas/SubtractSpec-Output'
                sum: '#/components/schemas/SumSpec-Output'
                tiered: '#/components/schemas/TieredSpec-Output'
                wage_type_ref: '#/components/schemas/WageTypeRefSpec'
              propertyName: type
            oneOf:
              - $ref: '#/components/schemas/FixedSpec-Output'
              - $ref: '#/components/schemas/PercentOfSpec-Output'
              - $ref: '#/components/schemas/PercentOfParamSpec-Output'
              - $ref: '#/components/schemas/LookupParamSpec'
              - $ref: '#/components/schemas/WageTypeRefSpec'
              - $ref: '#/components/schemas/TieredSpec-Output'
              - $ref: '#/components/schemas/CappedSpec-Output'
              - $ref: '#/components/schemas/ConditionalSpec-Output'
              - $ref: '#/components/schemas/SumSpec-Output'
              - $ref: '#/components/schemas/SubtractSpec-Output'
              - $ref: '#/components/schemas/MultiplySpec-Output'
              - $ref: '#/components/schemas/DivideSpec-Output'
              - $ref: '#/components/schemas/MinSpec-Output'
              - $ref: '#/components/schemas/MaxSpec-Output'
              - $ref: '#/components/schemas/RoundSpec-Output'
          title: Items
          type: array
        type:
          const: max
          default: max
          title: Type
          type: string
      required:
        - items
      title: MaxSpec
      type: object
    MinSpec-Output:
      properties:
        items:
          items:
            discriminator:
              mapping:
                capped: '#/components/schemas/CappedSpec-Output'
                conditional: '#/components/schemas/ConditionalSpec-Output'
                divide: '#/components/schemas/DivideSpec-Output'
                fixed: '#/components/schemas/FixedSpec-Output'
                lookup_param: '#/components/schemas/LookupParamSpec'
                max: '#/components/schemas/MaxSpec-Output'
                min: '#/components/schemas/MinSpec-Output'
                multiply: '#/components/schemas/MultiplySpec-Output'
                percent_of: '#/components/schemas/PercentOfSpec-Output'
                percent_of_param: '#/components/schemas/PercentOfParamSpec-Output'
                round: '#/components/schemas/RoundSpec-Output'
                subtract: '#/components/schemas/SubtractSpec-Output'
                sum: '#/components/schemas/SumSpec-Output'
                tiered: '#/components/schemas/TieredSpec-Output'
                wage_type_ref: '#/components/schemas/WageTypeRefSpec'
              propertyName: type
            oneOf:
              - $ref: '#/components/schemas/FixedSpec-Output'
              - $ref: '#/components/schemas/PercentOfSpec-Output'
              - $ref: '#/components/schemas/PercentOfParamSpec-Output'
              - $ref: '#/components/schemas/LookupParamSpec'
              - $ref: '#/components/schemas/WageTypeRefSpec'
              - $ref: '#/components/schemas/TieredSpec-Output'
              - $ref: '#/components/schemas/CappedSpec-Output'
              - $ref: '#/components/schemas/ConditionalSpec-Output'
              - $ref: '#/components/schemas/SumSpec-Output'
              - $ref: '#/components/schemas/SubtractSpec-Output'
              - $ref: '#/components/schemas/MultiplySpec-Output'
              - $ref: '#/components/schemas/DivideSpec-Output'
              - $ref: '#/components/schemas/MinSpec-Output'
              - $ref: '#/components/schemas/MaxSpec-Output'
              - $ref: '#/components/schemas/RoundSpec-Output'
          title: Items
          type: array
        type:
          const: min
          default: min
          title: Type
          type: string
      required:
        - items
      title: MinSpec
      type: object
    MultiplySpec-Output:
      properties:
        items:
          items:
            discriminator:
              mapping:
                capped: '#/components/schemas/CappedSpec-Output'
                conditional: '#/components/schemas/ConditionalSpec-Output'
                divide: '#/components/schemas/DivideSpec-Output'
                fixed: '#/components/schemas/FixedSpec-Output'
                lookup_param: '#/components/schemas/LookupParamSpec'
                max: '#/components/schemas/MaxSpec-Output'
                min: '#/components/schemas/MinSpec-Output'
                multiply: '#/components/schemas/MultiplySpec-Output'
                percent_of: '#/components/schemas/PercentOfSpec-Output'
                percent_of_param: '#/components/schemas/PercentOfParamSpec-Output'
                round: '#/components/schemas/RoundSpec-Output'
                subtract: '#/components/schemas/SubtractSpec-Output'
                sum: '#/components/schemas/SumSpec-Output'
                tiered: '#/components/schemas/TieredSpec-Output'
                wage_type_ref: '#/components/schemas/WageTypeRefSpec'
              propertyName: type
            oneOf:
              - $ref: '#/components/schemas/FixedSpec-Output'
              - $ref: '#/components/schemas/PercentOfSpec-Output'
              - $ref: '#/components/schemas/PercentOfParamSpec-Output'
              - $ref: '#/components/schemas/LookupParamSpec'
              - $ref: '#/components/schemas/WageTypeRefSpec'
              - $ref: '#/components/schemas/TieredSpec-Output'
              - $ref: '#/components/schemas/CappedSpec-Output'
              - $ref: '#/components/schemas/ConditionalSpec-Output'
              - $ref: '#/components/schemas/SumSpec-Output'
              - $ref: '#/components/schemas/SubtractSpec-Output'
              - $ref: '#/components/schemas/MultiplySpec-Output'
              - $ref: '#/components/schemas/DivideSpec-Output'
              - $ref: '#/components/schemas/MinSpec-Output'
              - $ref: '#/components/schemas/MaxSpec-Output'
              - $ref: '#/components/schemas/RoundSpec-Output'
          title: Items
          type: array
        type:
          const: multiply
          default: multiply
          title: Type
          type: string
      required:
        - items
      title: MultiplySpec
      type: object
    PercentOfSpec-Output:
      properties:
        base:
          title: Base
          type: string
        rate:
          title: Rate
          type: string
        type:
          const: percent_of
          default: percent_of
          title: Type
          type: string
      required:
        - base
        - rate
      title: PercentOfSpec
      type: object
    PercentOfParamSpec-Output:
      properties:
        param:
          title: Param
          type: string
        rate:
          title: Rate
          type: string
        type:
          const: percent_of_param
          default: percent_of_param
          title: Type
          type: string
      required:
        - param
        - rate
      title: PercentOfParamSpec
      type: object
    RoundSpec-Output:
      properties:
        inner:
          discriminator:
            mapping:
              capped: '#/components/schemas/CappedSpec-Output'
              conditional: '#/components/schemas/ConditionalSpec-Output'
              divide: '#/components/schemas/DivideSpec-Output'
              fixed: '#/components/schemas/FixedSpec-Output'
              lookup_param: '#/components/schemas/LookupParamSpec'
              max: '#/components/schemas/MaxSpec-Output'
              min: '#/components/schemas/MinSpec-Output'
              multiply: '#/components/schemas/MultiplySpec-Output'
              percent_of: '#/components/schemas/PercentOfSpec-Output'
              percent_of_param: '#/components/schemas/PercentOfParamSpec-Output'
              round: '#/components/schemas/RoundSpec-Output'
              subtract: '#/components/schemas/SubtractSpec-Output'
              sum: '#/components/schemas/SumSpec-Output'
              tiered: '#/components/schemas/TieredSpec-Output'
              wage_type_ref: '#/components/schemas/WageTypeRefSpec'
            propertyName: type
          oneOf:
            - $ref: '#/components/schemas/FixedSpec-Output'
            - $ref: '#/components/schemas/PercentOfSpec-Output'
            - $ref: '#/components/schemas/PercentOfParamSpec-Output'
            - $ref: '#/components/schemas/LookupParamSpec'
            - $ref: '#/components/schemas/WageTypeRefSpec'
            - $ref: '#/components/schemas/TieredSpec-Output'
            - $ref: '#/components/schemas/CappedSpec-Output'
            - $ref: '#/components/schemas/ConditionalSpec-Output'
            - $ref: '#/components/schemas/SumSpec-Output'
            - $ref: '#/components/schemas/SubtractSpec-Output'
            - $ref: '#/components/schemas/MultiplySpec-Output'
            - $ref: '#/components/schemas/DivideSpec-Output'
            - $ref: '#/components/schemas/MinSpec-Output'
            - $ref: '#/components/schemas/MaxSpec-Output'
            - $ref: '#/components/schemas/RoundSpec-Output'
          title: Inner
        precision:
          default: 2
          title: Precision
          type: integer
        rounding:
          $ref: '#/components/schemas/RoundingMode'
          default: HALF_UP
        type:
          const: round
          default: round
          title: Type
          type: string
      required:
        - inner
      title: RoundSpec
      type: object
    SubtractSpec-Output:
      properties:
        items:
          items:
            discriminator:
              mapping:
                capped: '#/components/schemas/CappedSpec-Output'
                conditional: '#/components/schemas/ConditionalSpec-Output'
                divide: '#/components/schemas/DivideSpec-Output'
                fixed: '#/components/schemas/FixedSpec-Output'
                lookup_param: '#/components/schemas/LookupParamSpec'
                max: '#/components/schemas/MaxSpec-Output'
                min: '#/components/schemas/MinSpec-Output'
                multiply: '#/components/schemas/MultiplySpec-Output'
                percent_of: '#/components/schemas/PercentOfSpec-Output'
                percent_of_param: '#/components/schemas/PercentOfParamSpec-Output'
                round: '#/components/schemas/RoundSpec-Output'
                subtract: '#/components/schemas/SubtractSpec-Output'
                sum: '#/components/schemas/SumSpec-Output'
                tiered: '#/components/schemas/TieredSpec-Output'
                wage_type_ref: '#/components/schemas/WageTypeRefSpec'
              propertyName: type
            oneOf:
              - $ref: '#/components/schemas/FixedSpec-Output'
              - $ref: '#/components/schemas/PercentOfSpec-Output'
              - $ref: '#/components/schemas/PercentOfParamSpec-Output'
              - $ref: '#/components/schemas/LookupParamSpec'
              - $ref: '#/components/schemas/WageTypeRefSpec'
              - $ref: '#/components/schemas/TieredSpec-Output'
              - $ref: '#/components/schemas/CappedSpec-Output'
              - $ref: '#/components/schemas/ConditionalSpec-Output'
              - $ref: '#/components/schemas/SumSpec-Output'
              - $ref: '#/components/schemas/SubtractSpec-Output'
              - $ref: '#/components/schemas/MultiplySpec-Output'
              - $ref: '#/components/schemas/DivideSpec-Output'
              - $ref: '#/components/schemas/MinSpec-Output'
              - $ref: '#/components/schemas/MaxSpec-Output'
              - $ref: '#/components/schemas/RoundSpec-Output'
          title: Items
          type: array
        type:
          const: subtract
          default: subtract
          title: Type
          type: string
      required:
        - items
      title: SubtractSpec
      type: object
    SumSpec-Output:
      properties:
        items:
          items:
            discriminator:
              mapping:
                capped: '#/components/schemas/CappedSpec-Output'
                conditional: '#/components/schemas/ConditionalSpec-Output'
                divide: '#/components/schemas/DivideSpec-Output'
                fixed: '#/components/schemas/FixedSpec-Output'
                lookup_param: '#/components/schemas/LookupParamSpec'
                max: '#/components/schemas/MaxSpec-Output'
                min: '#/components/schemas/MinSpec-Output'
                multiply: '#/components/schemas/MultiplySpec-Output'
                percent_of: '#/components/schemas/PercentOfSpec-Output'
                percent_of_param: '#/components/schemas/PercentOfParamSpec-Output'
                round: '#/components/schemas/RoundSpec-Output'
                subtract: '#/components/schemas/SubtractSpec-Output'
                sum: '#/components/schemas/SumSpec-Output'
                tiered: '#/components/schemas/TieredSpec-Output'
                wage_type_ref: '#/components/schemas/WageTypeRefSpec'
              propertyName: type
            oneOf:
              - $ref: '#/components/schemas/FixedSpec-Output'
              - $ref: '#/components/schemas/PercentOfSpec-Output'
              - $ref: '#/components/schemas/PercentOfParamSpec-Output'
              - $ref: '#/components/schemas/LookupParamSpec'
              - $ref: '#/components/schemas/WageTypeRefSpec'
              - $ref: '#/components/schemas/TieredSpec-Output'
              - $ref: '#/components/schemas/CappedSpec-Output'
              - $ref: '#/components/schemas/ConditionalSpec-Output'
              - $ref: '#/components/schemas/SumSpec-Output'
              - $ref: '#/components/schemas/SubtractSpec-Output'
              - $ref: '#/components/schemas/MultiplySpec-Output'
              - $ref: '#/components/schemas/DivideSpec-Output'
              - $ref: '#/components/schemas/MinSpec-Output'
              - $ref: '#/components/schemas/MaxSpec-Output'
              - $ref: '#/components/schemas/RoundSpec-Output'
          title: Items
          type: array
        type:
          const: sum
          default: sum
          title: Type
          type: string
      required:
        - items
      title: SumSpec
      type: object
    TieredSpec-Output:
      properties:
        base:
          title: Base
          type: string
        brackets:
          items:
            $ref: '#/components/schemas/BracketSpec-Output'
          title: Brackets
          type: array
        type:
          const: tiered
          default: tiered
          title: Type
          type: string
      required:
        - base
        - brackets
      title: TieredSpec
      type: object
    WageTypeRefSpec:
      properties:
        code:
          title: Code
          type: string
        type:
          const: wage_type_ref
          default: wage_type_ref
          title: Type
          type: string
      required:
        - code
      title: WageTypeRefSpec
      type: object
    RoundingMode:
      description: >-
        The eight rounding modes from Python's ``decimal`` module.


        A closed mathematical set: every value maps 1:1 to a ``decimal.ROUND_*``

        constant, exposed via :attr:`decimal_mode`. Exposing all eight once
        keeps

        the set stable — a country needing e.g. ``HALF_DOWN`` never forces a

        library release. (Nearest-multiple rounding — Swiss 0.05, Swedish öre —
        is

        *not* a ``decimal`` mode and needs a richer ``Round``, not a new
        member.)
      enum:
        - HALF_UP
        - HALF_DOWN
        - HALF_EVEN
        - UP
        - DOWN
        - CEILING
        - FLOOR
        - ZERO_FIVE_UP
      title: RoundingMode
      type: string
    BracketSpec-Output:
      description: >-
        One tier of a :class:`TieredSpec`.


        Interval convention is ``(floor, ceiling]`` — floor exclusive (the prior

        bracket already took it), ceiling inclusive. A ``None`` ceiling means
        "open

        upward" and is only valid on the final bracket. The boundary is
        measure-zero

        for ``Decimal``, so exclusive/inclusive only matters at exact tier
        edges.
      properties:
        ceiling:
          anyOf:
            - type: string
            - type: 'null'
          title: Ceiling
        floor:
          title: Floor
          type: string
        rate:
          title: Rate
          type: string
      required:
        - floor
        - rate
      title: BracketSpec
      type: object
  securitySchemes:
    BearerToken:
      bearerFormat: JWT
      description: Get token from Auth0 and paste it here
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.