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

# List the policy's premiums

> Every premium row the policy term carries, one row each (its newest policy version, or its own transaction for a line's premium): a line's premium on a transaction with its written, billed, full term and annualized figures, the companies and sub-customers it is split among, and the transaction it belongs to; each rated coverage or class with its location, limits, deductibles, rate and premium; and a line's premium totals.



## OpenAPI

````yaml /openapi.generated.json get /records/policies/{id}/premiums
openapi: 3.1.0
info:
  description: >-
    Public API reference. Generated from apps/engine/openapi.yaml by make
    docs-openapi-write. Do not edit.
  title: Nexio platform API
  version: '1'
servers:
  - url: https://api.usenexio.com
security: []
tags:
  - name: Access
  - name: Catalog
  - name: Conversations
  - name: Documents
  - name: Engines
  - name: Events
  - name: Feedback
  - name: Graph
  - name: Records
  - name: Roadmap
  - name: Runs
  - name: Webhooks
  - name: accounts
  - name: actions
  - name: activities
  - name: activity-feed
  - name: attachments
  - name: audit
  - name: benefit-plans
  - name: billing-transactions
  - name: carrier_documents
  - name: certificate-holders
  - name: certificate_drafts
  - name: certificates
  - name: change_feed
  - name: claims
  - name: classes
  - name: codes
  - name: commission_facts
  - name: connections
  - name: contacts
  - name: contingencies
  - name: conversations
  - name: customer
  - name: customer_contacts
  - name: deals
  - name: dependents
  - name: document_extractions
  - name: documents
  - name: drivers
  - name: eforms
  - name: employees
  - name: events
  - name: feature_requests
  - name: form-templates
  - name: invoices
  - name: leads
  - name: line_schedules_other
  - name: loss_history
  - name: machines
  - name: markets
  - name: motor-carriers
  - name: notes
  - name: opportunities
  - name: opportunity-signals
  - name: pages
  - name: personal_lines_detail
  - name: placement_choices
  - name: placement_feedback
  - name: placements
  - name: policies
  - name: policy_parties
  - name: policy_personnel
  - name: policy_transactions
  - name: premium_rows
  - name: procedures
  - name: proposals
  - name: quote_comparisons
  - name: quotes
  - name: records
  - name: register-views
  - name: renewal-entries
  - name: risk_review_choices
  - name: rollups
  - name: seats
  - name: sec-filings
  - name: service_agreements
  - name: submissions
  - name: suspenses
  - name: tasks
  - name: umbrella_underlying
  - name: underwriting_questions
  - name: uploaded_documents
  - name: vehicles
  - name: workflows
paths:
  /records/policies/{id}/premiums:
    get:
      tags:
        - policies
      summary: List the policy's premiums
      description: >-
        Every premium row the policy term carries, one row each (its newest
        policy version, or its own transaction for a line's premium): a line's
        premium on a transaction with its written, billed, full term and
        annualized figures, the companies and sub-customers it is split among,
        and the transaction it belongs to; each rated coverage or class with its
        location, limits, deductibles, rate and premium; and a line's premium
        totals.
      operationId: listPolicyPremiums
      parameters:
        - description: >-
            The member the read is made for (a WorkOS user id). Unset keeps the
            org-wide posture the key alone grants.
          in: header
          name: Nexio-Act-As
          schema:
            description: >-
              The member the read is made for (a WorkOS user id). Unset keeps
              the org-wide posture the key alone grants.
            type: string
        - description: >-
            The acting member's verified email, lowercased. Ignored without
            Nexio-Act-As.
          in: header
          name: Nexio-Act-As-Email
          schema:
            description: >-
              The acting member's verified email, lowercased. Ignored without
              Nexio-Act-As.
            type: string
        - description: The calling application (workbench).
          in: header
          name: Nexio-Consumer
          schema:
            description: The calling application (workbench).
            type: string
        - description: The calling application's build.
          in: header
          name: Nexio-Consumer-Build
          schema:
            description: The calling application's build.
            type: string
        - description: The access vocabulary hash the calling build was generated against.
          in: header
          name: Nexio-Consumer-Vocabulary
          schema:
            description: >-
              The access vocabulary hash the calling build was generated
              against.
            type: string
        - description: >-
            A caller-chosen request id, echoed in the Nexio-Request-Id response
            header.
          in: header
          name: Nexio-Request-Id
          schema:
            description: >-
              A caller-chosen request id, echoed in the Nexio-Request-Id
              response header.
            type: string
        - description: >-
            The caller's remaining budget for this request, in whole
            milliseconds (1 to 10 digits, greater than zero), relative to
            receipt. The engine stops work at the shorter of this and the
            route's own budget, and answers 504 request_timeout when it expires.
            A value above the route budget is capped to it; a malformed value is
            ignored.
          in: header
          name: Nexio-Timeout
          schema:
            description: >-
              The caller's remaining budget for this request, in whole
              milliseconds (1 to 10 digits, greater than zero), relative to
              receipt. The engine stops work at the shorter of this and the
              route's own budget, and answers 504 request_timeout when it
              expires. A value above the route budget is capped to it; a
              malformed value is ignored.
            type: string
        - description: >-
            Serve every item's newest version, removed ones with them
            (row_status D), as the policy's history shows them. Only a
            collection that serves current rows (vehicles, drivers, locations)
            reads it; it has no as-of date.
          explode: false
          in: query
          name: include_removed
          schema:
            description: >-
              Serve every item's newest version, removed ones with them
              (row_status D), as the policy's history shows them. Only a
              collection that serves current rows (vehicles, drivers, locations)
              reads it; it has no as-of date.
            type: boolean
        - description: >-
            The date (YYYY-MM-DD) a current-rows collection is read as of: each
            item's version in effect on it. Defaults to today in the agency's
            time zone (America/Los_Angeles).
          explode: false
          in: query
          name: as_of
          schema:
            description: >-
              The date (YYYY-MM-DD) a current-rows collection is read as of:
              each item's version in effect on it. Defaults to today in the
              agency's time zone (America/Los_Angeles).
            format: date
            type: string
        - description: The policy id (its instance key).
          in: path
          name: id
          required: true
          schema:
            description: The policy id (its instance key).
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListPolicyPremiumsResponse'
          description: OK
        '400':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
          description: Bad Request
        '401':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
          description: Unauthorized
        '403':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
          description: Forbidden
        '404':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
          description: Not Found
        '424':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
          description: Failed Dependency
        '429':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
          description: Too Many Requests
        '500':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
          description: Internal Server Error
        '503':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
          description: Service Unavailable
        '504':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
          description: Gateway Timeout
      security:
        - bearer: []
components:
  schemas:
    ListPolicyPremiumsResponse:
      additionalProperties: false
      properties:
        data:
          description: One page of the collection, in the requested sort order.
          items:
            $ref: '#/components/schemas/PolicyPremium'
          type:
            - array
            - 'null'
        facets:
          additionalProperties:
            items:
              $ref: '#/components/schemas/FacetValue'
            type:
              - array
              - 'null'
          description: Present only for the facets the request named in facets=.
          type: object
        missing_count:
          description: >-
            For a hierarchy read, source records missing the requested level
            after source filters, before name/ID filters and pagination. Present
            even when zero or the page is empty.
          format: int64
          type: integer
        page:
          $ref: '#/components/schemas/Page'
        request_id:
          description: The request id, as echoed in the Nexio-Request-Id response header.
          type: string
        source:
          $ref: '#/components/schemas/Source'
        total:
          $ref: '#/components/schemas/Total'
          description: Present only when the request sent include_total=true.
        unreachable:
          description: >-
            Parts of the answer no source could fill, each with its reason.
            Empty when every part was filled.
          items:
            $ref: '#/components/schemas/Unreachable'
          type:
            - array
            - 'null'
        warnings:
          description: >-
            Adjustments the platform made to the request (a coerced limit, a
            dropped facet).
          items:
            $ref: '#/components/schemas/Warning'
          type:
            - array
            - 'null'
      required:
        - data
        - page
        - source
        - unreachable
        - warnings
        - request_id
      type: object
    Problem:
      additionalProperties: false
      properties:
        code:
          description: >-
            The stable machine-readable error code, UPPER_SNAKE_CASE, one
            meaning forever.
          enum:
            - INVALID_ARGUMENT
            - UNAUTHENTICATED
            - CAPABILITY_DENIED
            - NOT_VISIBLE_OR_ABSENT
            - IDEMPOTENT_REQUEST_IN_FLIGHT
            - ETAG_MISMATCH
            - VALIDATION_FAILED
            - IDEMPOTENCY_KEY_PAYLOAD_MISMATCH
            - SOURCE_UNAVAILABLE
            - RATE_LIMITED
            - INTERNAL
            - DEADLINE_EXCEEDED
            - UNAVAILABLE
            - CLIENT_CLOSED_REQUEST
          type: string
        detail:
          description: A human-readable sentence about this occurrence.
          type: string
        details:
          description: >-
            Structured detail for the reason (for example which owner selection
            rule failed). A Records refusal names its reason code in
            details.reason; a projection refusal (SOURCE_UNAVAILABLE) also names
            its closed subtype in details.subtype (admission_pending, no_build,
            binding_changed, agency_admission_unbounded,
            authority_coordinates_changed, guard_absent, derivation_unaccepted),
            and only admission_pending, which clears by itself, also carries
            details.retry_after_ms, equal to retry_after_ms and the Retry-After
            header.
        errors:
          description: Each invalid parameter, for INVALID_ARGUMENT.
          items:
            $ref: '#/components/schemas/ProblemError'
          type:
            - array
            - 'null'
        instance:
          description: The request path this occurrence answered.
          type: string
        reason:
          description: >-
            The finer cause within the code, UPPER_SNAKE_CASE (for example
            SCOPE_UNAVAILABLE under CAPABILITY_DENIED).
          type: string
        request_id:
          description: The request id, as echoed in the Nexio-Request-Id response header.
          type: string
        retry_after_ms:
          description: When a retry may succeed, the wait before it.
          format: int64
          type: integer
        status:
          description: The HTTP status code.
          format: int64
          type: integer
        title:
          description: The HTTP status phrase.
          type: string
        type:
          description: A URI naming the problem type, derived from the code.
          type: string
      required:
        - type
        - title
        - status
        - code
        - request_id
      type: object
    PolicyPremium:
      additionalProperties: false
      properties:
        acres:
          description: The most acres on the initial farm premises.
          type:
            - string
            - 'null'
        aggregate_applies_to:
          description: What the general aggregate limit applies to.
          type:
            - string
            - 'null'
        aggregate_applies_to_other:
          type:
            - string
            - 'null'
        annualized_estimated_revenue:
          description: An exact number, as decimal text.
          type:
            - string
            - 'null'
        annualized_premium:
          description: An exact number, as decimal text.
          type:
            - string
            - 'null'
        attached_id:
          type:
            - string
            - 'null'
        attached_type:
          description: >-
            The kind of record the row is attached to, as AMS 360 numbers its
            tables.
          type:
            - string
            - 'null'
        billed_premium:
          description: An exact number, as decimal text.
          type:
            - string
            - 'null'
        breakouts:
          description: >-
            The line premium's split across the agency's divisions, branches,
            departments and groups.
          items:
            $ref: '#/components/schemas/PolicyPremiumBreakouts'
          type:
            - array
            - 'null'
        changed_at:
          description: When the row last changed. An ISO 8601 timestamp.
          type:
            - string
            - 'null'
        changed_by:
          description: The employee code of who last changed the row.
          type:
            - string
            - 'null'
        charge_category:
          anyOf:
            - $ref: '#/components/schemas/CatalogCodeValue'
            - type: 'null'
        charge_code:
          type:
            - string
            - 'null'
        charge_recipient:
          anyOf:
            - $ref: '#/components/schemas/CatalogCodeValue'
            - type: 'null'
        code:
          description: The ISO, AAIS or company code of the coverage or class.
          type:
            - string
            - 'null'
        coinsurance_percent:
          type:
            - string
            - 'null'
        companies:
          description: The subscription companies the line premium is split among.
          items:
            $ref: '#/components/schemas/PolicyPremiumCompanies'
          type:
            - array
            - 'null'
        company_code:
          type:
            - string
            - 'null'
        company_type:
          description: The kind of company the premium is written for.
          type:
            - string
            - 'null'
        corrected:
          description: A correction of a posted row.
          type:
            - boolean
            - 'null'
        coverage_description:
          description: >-
            The words the agency's AMS 360 coverage code list gives the
            coverage, when the coverage is one of its codes (EQ Bldg for EQBDG).
            Null when the coverage is not a code as the list spells it, when the
            list describes the code by the code itself, or when it describes the
            code more than one way.
          type:
            - string
            - 'null'
        coverage_group:
          description: An exact number, as decimal text.
          type:
            - string
            - 'null'
        coverage_level:
          anyOf:
            - $ref: '#/components/schemas/CatalogCodeValue'
            - type: 'null'
        coverage_listed:
          description: >-
            Whether the agency's AMS 360 coverage code list holds the coverage
            as one of its codes, however it describes it: TSMPR is, a coverage
            spelled BAILEE is not. Derived: whether the lookup's code list holds
            the value as one of its codes, whatever words it gives the code:
            true for a code it holds (even one it describes by the code itself
            or more than one way), false for a value it does not hold, and null
            for a blank value.
          type:
            - boolean
            - 'null'
        coverage_type:
          description: B blanket, S specific, or another type.
          type:
            - string
            - 'null'
        crime_rate_group:
          type:
            - string
            - 'null'
        crop_dusting_cost:
          description: An exact number, as decimal text.
          type:
            - string
            - 'null'
        custom_farming_receipts:
          description: An exact number, as decimal text.
          type:
            - string
            - 'null'
        customers:
          description: The sub-customers the line premium is billed to.
          items:
            $ref: '#/components/schemas/PolicyPremiumCustomers'
          type:
            - array
            - 'null'
        day_care_one_to_three:
          type:
            - boolean
            - 'null'
        deductible:
          description: An exact number, as decimal text.
          type:
            - string
            - 'null'
        deductible_2:
          description: An exact number, as decimal text.
          type:
            - string
            - 'null'
        deductible_3:
          description: An exact number, as decimal text.
          type:
            - string
            - 'null'
        deductible_applies_to:
          description: As the agency's codes describe it.
          type:
            - string
            - 'null'
        deductible_basis:
          description: As the agency's codes describe it.
          type:
            - string
            - 'null'
        deductible_premium_adjustment:
          description: >-
            The flood deductible's premium reduction or increase. An exact
            number, as decimal text.
          type:
            - string
            - 'null'
        deductible_type:
          description: As the agency's codes describe it.
          type:
            - string
            - 'null'
        deductible_type_2:
          description: As the agency's codes describe it.
          type:
            - string
            - 'null'
        deductible_type_3:
          description: As the agency's codes describe it.
          type:
            - string
            - 'null'
        default_vehicle_coverages:
          description: Whether a business auto line's vehicle coverages default.
          type:
            - string
            - 'null'
        dependent_contributing_location:
          type:
            - boolean
            - 'null'
        dependent_leader_location:
          type:
            - boolean
            - 'null'
        dependent_manufacturing_location:
          type:
            - boolean
            - 'null'
        dependent_recipient_location:
          type:
            - boolean
            - 'null'
        description:
          type:
            - string
            - 'null'
        domestic_worker_inservant:
          type:
            - boolean
            - 'null'
        domestic_worker_outservant:
          type:
            - boolean
            - 'null'
        domestic_workers:
          type:
            - string
            - 'null'
        effective_date:
          description: >-
            The policy version's effective date: the term's or an endorsement's.
            A date, YYYY-MM-DD.
          type:
            - string
            - 'null'
        employee_benefits_note:
          type:
            - string
            - 'null'
        employees_covered:
          type:
            - string
            - 'null'
        entered_at:
          description: When the row was entered. An ISO 8601 timestamp.
          type:
            - string
            - 'null'
        equipment_level:
          description: 'Where data processing equipment sits: A above ground, B below.'
          type:
            - string
            - 'null'
        estimated_revenue:
          description: An exact number, as decimal text.
          type:
            - string
            - 'null'
        exposure:
          type:
            - string
            - 'null'
        forms_and_conditions:
          type:
            - string
            - 'null'
        full_term_premium:
          description: >-
            The premium as if the endorsement were in effect for the whole term.
            An exact number, as decimal text.
          type:
            - string
            - 'null'
        full_time_employees:
          type:
            - string
            - 'null'
        garage_operations:
          description: L limited, U unlimited.
          type:
            - string
            - 'null'
        how_billed:
          anyOf:
            - $ref: '#/components/schemas/CatalogCodeValue'
            - type: 'null'
        id:
          description: 'The row''s id: {instance}:{segment}:{policy}:{policy version}:{key}.'
          type: string
        included_in_totals:
          type:
            - boolean
            - 'null'
        inflation_guard_percent:
          type:
            - string
            - 'null'
        installment_treatment:
          description: How a non-premium charge is spread over the installments.
          type:
            - string
            - 'null'
        insured_loss_participation_percent:
          description: An exact number, as decimal text.
          type:
            - string
            - 'null'
        kind:
          description: 'The row''s kind: line, coverage, total.'
          type: string
        limit_1:
          description: An exact number, as decimal text.
          type:
            - string
            - 'null'
        limit_1_text:
          type:
            - string
            - 'null'
        limit_2:
          description: An exact number, as decimal text.
          type:
            - string
            - 'null'
        limit_2_text:
          type:
            - string
            - 'null'
        limit_3:
          description: An exact number, as decimal text.
          type:
            - string
            - 'null'
        limit_3_text:
          type:
            - string
            - 'null'
        limit_4:
          description: An exact number, as decimal text.
          type:
            - string
            - 'null'
        limit_4_text:
          type:
            - string
            - 'null'
        line_id:
          description: The policy line the row belongs to, when it belongs to one.
          type:
            - string
            - 'null'
        line_of_business:
          type:
            - string
            - 'null'
        livestock_head:
          type:
            - string
            - 'null'
        location_id:
          description: >-
            The location the coverage is rated at. Derived: the id of the row of
            another collection on the same policy version: the arg is its id
            segment, the inputs its key.
          type:
            - string
            - 'null'
        loss_payment_limit:
          anyOf:
            - $ref: '#/components/schemas/CatalogCodeValue'
              description: 'Extra expense: the percentages of the limit paid per period.'
            - type: 'null'
        miscellaneous:
          type:
            - string
            - 'null'
        number_of_days:
          type:
            - string
            - 'null'
        off_premises_communication:
          type:
            - boolean
            - 'null'
        off_premises_power:
          type:
            - boolean
            - 'null'
        off_premises_water:
          type:
            - boolean
            - 'null'
        on_application:
          description: The row prints on its ACORD form.
          type:
            - boolean
            - 'null'
        part_time_employees:
          type:
            - string
            - 'null'
        payroll:
          description: An exact number, as decimal text.
          type:
            - string
            - 'null'
        percent_of_risk:
          description: An exact number, as decimal text.
          type:
            - string
            - 'null'
        plan_type:
          type:
            - string
            - 'null'
        policy_id:
          description: The policy's id.
          type: string
        posted:
          description: Posted to the general ledger.
          type:
            - boolean
            - 'null'
        premium:
          description: An exact number, as decimal text.
          type:
            - string
            - 'null'
        rate:
          description: An exact number, as decimal text.
          type:
            - string
            - 'null'
        rate_description:
          type:
            - string
            - 'null'
        rating_basis:
          anyOf:
            - $ref: '#/components/schemas/CatalogCodeValue'
            - type: 'null'
        reconciled:
          anyOf:
            - $ref: '#/components/schemas/CatalogCodeValue'
            - type: 'null'
        refrigeration_maintenance:
          description: >-
            The spoilage coverage includes a refrigeration maintenance
            agreement.
          type:
            - boolean
            - 'null'
        restoration_days:
          description: Days of the period of restoration.
          type:
            - string
            - 'null'
        retroactive_date:
          description: A date, YYYY-MM-DD.
          type:
            - string
            - 'null'
        roadside_stand_sales:
          description: An exact number, as decimal text.
          type:
            - string
            - 'null'
        row_status:
          description: >-
            The row's state on its policy version: A added, C changed, D
            deleted.
          type:
            - string
            - 'null'
        seasonal:
          description: An additional non-farm premises is seasonal.
          type:
            - boolean
            - 'null'
        sequence:
          description: An exact number, as decimal text.
          type:
            - string
            - 'null'
        state:
          type:
            - string
            - 'null'
        suspended:
          description: Has billing transactions not yet posted.
          type:
            - boolean
            - 'null'
        territory:
          type:
            - string
            - 'null'
        tiered_commission_id:
          type:
            - string
            - 'null'
        total_asset_value:
          description: >-
            ERISA: the plan's total asset value. An exact number, as decimal
            text.
          type:
            - string
            - 'null'
        total_group:
          description: >-
            The form group the total prints in. An exact number, as decimal
            text.
          type:
            - string
            - 'null'
        transaction:
          anyOf:
            - $ref: '#/components/schemas/PolicyPremiumTransaction'
              description: >-
                The policy transaction the line premium belongs to. Null when
                the row has none.
            - type: 'null'
        valuation:
          anyOf:
            - $ref: '#/components/schemas/CatalogCodeValue'
            - type: 'null'
        waiting_period_days:
          description: An exact number, as decimal text.
          type:
            - string
            - 'null'
        writing_company_code:
          type:
            - string
            - 'null'
        written_premium:
          description: >-
            The premium for the time the endorsement is in effect. An exact
            number, as decimal text.
          type:
            - string
            - 'null'
        zone:
          description: An exact number, as decimal text.
          type:
            - string
            - 'null'
      required:
        - id
        - kind
        - policy_id
        - line_id
        - effective_date
        - entered_at
        - changed_at
        - changed_by
        - row_status
        - description
        - coverage_description
        - coverage_listed
        - line_of_business
        - premium
        - written_premium
        - billed_premium
        - full_term_premium
        - annualized_premium
        - estimated_revenue
        - annualized_estimated_revenue
        - charge_code
        - charge_category
        - company_code
        - writing_company_code
        - company_type
        - plan_type
        - how_billed
        - included_in_totals
        - corrected
        - posted
        - suspended
        - reconciled
        - charge_recipient
        - installment_treatment
        - percent_of_risk
        - tiered_commission_id
        - sequence
        - location_id
        - attached_type
        - attached_id
        - code
        - coverage_group
        - coverage_level
        - coverage_type
        - state
        - territory
        - zone
        - exposure
        - rating_basis
        - rate
        - rate_description
        - limit_1
        - limit_1_text
        - limit_2
        - limit_2_text
        - limit_3
        - limit_3_text
        - limit_4
        - limit_4_text
        - deductible
        - deductible_type
        - deductible_2
        - deductible_type_2
        - deductible_3
        - deductible_type_3
        - deductible_basis
        - deductible_applies_to
        - deductible_premium_adjustment
        - coinsurance_percent
        - valuation
        - inflation_guard_percent
        - waiting_period_days
        - restoration_days
        - number_of_days
        - loss_payment_limit
        - insured_loss_participation_percent
        - forms_and_conditions
        - retroactive_date
        - aggregate_applies_to
        - aggregate_applies_to_other
        - payroll
        - full_time_employees
        - part_time_employees
        - employees_covered
        - employee_benefits_note
        - domestic_workers
        - domestic_worker_inservant
        - domestic_worker_outservant
        - crime_rate_group
        - total_asset_value
        - equipment_level
        - garage_operations
        - off_premises_communication
        - off_premises_power
        - off_premises_water
        - refrigeration_maintenance
        - dependent_contributing_location
        - dependent_leader_location
        - dependent_manufacturing_location
        - dependent_recipient_location
        - day_care_one_to_three
        - seasonal
        - acres
        - livestock_head
        - crop_dusting_cost
        - custom_farming_receipts
        - roadside_stand_sales
        - miscellaneous
        - on_application
        - total_group
        - default_vehicle_coverages
        - transaction
        - companies
        - customers
        - breakouts
      type: object
    FacetValue:
      additionalProperties: false
      properties:
        count:
          format: int64
          type: integer
        description:
          type: string
        label:
          type: string
        parent:
          type: string
        value:
          type: string
      required:
        - value
        - count
      type: object
    Page:
      additionalProperties: false
      properties:
        cursor:
          description: The cursor that produced this page; null for the first page.
          type:
            - string
            - 'null'
        limit:
          description: >-
            The page size the platform applied, after any coercion (see
            warnings).
          format: int64
          type: integer
        max_limit:
          description: >-
            The largest page size this collection serves for this request's
            view; a larger limit is coerced to it (see warnings). A reader that
            wants the whole set in one page reads at this ceiling. Absent where
            the collection states none.
          format: int64
          type: integer
        next:
          description: The cursor of the following page; null at the end of the collection.
          type:
            - string
            - 'null'
        offset:
          description: >-
            The rows skipped before this page, echoed only when the request sent
            offset (a register's page jump).
          format: int64
          type: integer
        prev:
          description: The cursor of the preceding page; null on the first page.
          type:
            - string
            - 'null'
      required:
        - cursor
        - next
        - prev
        - limit
      type: object
    Source:
      additionalProperties: false
      properties:
        actor:
          $ref: '#/components/schemas/Actor'
        connection:
          description: >-
            The id of the connection that answered; empty when the read had no
            connection.
          type: string
        coverage:
          $ref: '#/components/schemas/SourceCoverage'
          description: >-
            What the family's data has: late only when its source is older than
            its measured window, and the gaps a reader states where it shows an
            absence for the family.
        elapsed_ms:
          description: A live source's call time for this read.
          format: int64
          type: integer
        family:
          description: The registry family that answered.
          type: string
        freshness:
          description: >-
            The freshness word as served before freshness_promised and
            freshness_observed existed; read those two instead.
          type: string
        freshness_observed:
          description: >-
            What this read observed: settled or prior_stable (the warehouse
            pin), reused (a kept answer of the same statement and data version),
            live (a call answered now), fresh or stale.
          type: string
        freshness_promised:
          description: >-
            What the source promises: pinned (the warehouse, read at a pinned
            instant), live (the system of record, per call), store (the
            platform's own store) or computed (a derived function over other
            reads).
          type: string
        id:
          description: >-
            The registry source id (warehouse, ams360_ems, ...), empty when
            absent.
          type: string
        kind:
          description: >-
            The kind of source that answered: the warehouse, the customer's
            system of record (whichever vendor; the vendor is in id), the
            platform's own store, or absent when no source serves the family.
          enum:
            - warehouse
            - system
            - store
            - absent
          type: string
        operations:
          description: >-
            What ran to serve this answer, in order: the warehouse statements,
            vendor operations, store families or functions. Empty only when no
            source serves the family.
          items:
            $ref: '#/components/schemas/SourceOperation'
          type:
            - array
            - 'null'
        origin:
          description: Which input decided the source.
          enum:
            - default
            - connection
            - seat
          type: string
        reason:
          $ref: '#/components/schemas/SourceReason'
          description: Why the family is absent, when kind is absent.
        snapshot_at:
          description: >-
            The instant the rows were read at: the warehouse pin, or the live
            call's time.
          format: date-time
          type:
            - string
            - 'null'
        snapshot_id:
          description: The warehouse snapshot the rows came from, when one names them.
          type: string
        stale_since:
          description: When the snapshot stopped being current, for a stale read.
          format: date-time
          type: string
        subject:
          $ref: '#/components/schemas/Subject'
        system:
          deprecated: true
          description: >-
            deprecated: read kind; removed with generation 1. The system behind
            the source.
          enum:
            - warehouse
            - ams360
            - store
            - absent
          type: string
      required:
        - coverage
        - family
        - kind
        - connection
        - system
        - id
        - origin
        - freshness
        - freshness_promised
        - snapshot_at
        - operations
        - subject
        - actor
      type: object
    Total:
      additionalProperties: false
      properties:
        exact:
          type: boolean
        value:
          format: int64
          type: integer
      required:
        - value
        - exact
      type: object
    Unreachable:
      additionalProperties: false
      properties:
        detail:
          type: string
        part:
          description: The envelope part (a field path or a child family).
          type: string
        reason:
          description: 'Why: no_adapter, not_documented, absent, source_unavailable, ...'
          type: string
        ref:
          description: The vendor reference id of the call that failed, when one did.
          type: string
      required:
        - part
        - reason
      type: object
    Warning:
      additionalProperties: false
      properties:
        code:
          description: >-
            UPPER_SNAKE_CASE, one meaning forever (LIMIT_COERCED, FACET_DROPPED,
            ...).
          type: string
        detail:
          type: string
      required:
        - code
      type: object
    ProblemError:
      additionalProperties: false
      properties:
        location:
          description: Where the input was, for example query.limit.
          type: string
        message:
          type: string
        value: {}
      required:
        - message
      type: object
    PolicyPremiumBreakouts:
      additionalProperties: false
      properties:
        billed_premium:
          description: An exact number, as decimal text.
          type:
            - string
            - 'null'
        branch_code:
          type:
            - string
            - 'null'
        changed_at:
          description: When the row last changed. An ISO 8601 timestamp.
          type:
            - string
            - 'null'
        changed_by:
          description: The employee code of who last changed the row.
          type:
            - string
            - 'null'
        department_code:
          type:
            - string
            - 'null'
        division_code:
          type:
            - string
            - 'null'
        entered_at:
          description: When the row was entered. An ISO 8601 timestamp.
          type:
            - string
            - 'null'
        group_code:
          type:
            - string
            - 'null'
        id:
          description: The breakouts row's id.
          type: string
        override:
          type:
            - boolean
            - 'null'
        percent:
          description: An exact number, as decimal text.
          type:
            - string
            - 'null'
        posted:
          type:
            - boolean
            - 'null'
        premium:
          description: An exact number, as decimal text.
          type:
            - string
            - 'null'
        row_status:
          description: >-
            The row's state on its policy version: A added, C changed, D
            deleted.
          type:
            - string
            - 'null'
      required:
        - id
        - entered_at
        - changed_at
        - changed_by
        - row_status
        - division_code
        - branch_code
        - department_code
        - group_code
        - percent
        - premium
        - billed_premium
        - override
        - posted
      type: object
    CatalogCodeValue:
      additionalProperties: false
      properties:
        code:
          description: The code as the system of record holds it.
          type: string
        label:
          description: >-
            The code's label in the connection's codes; null when the codes
            carry none.
          type:
            - string
            - 'null'
      required:
        - code
        - label
      type: object
    PolicyPremiumCompanies:
      additionalProperties: false
      properties:
        billed_premium:
          description: An exact number, as decimal text.
          type:
            - string
            - 'null'
        changed_at:
          description: When the row last changed. An ISO 8601 timestamp.
          type:
            - string
            - 'null'
        changed_by:
          description: The employee code of who last changed the row.
          type:
            - string
            - 'null'
        company_code:
          type:
            - string
            - 'null'
        company_type:
          description: N insurance, B brokerage.
          type:
            - string
            - 'null'
        entered_at:
          description: When the row was entered. An ISO 8601 timestamp.
          type:
            - string
            - 'null'
        group_percent:
          description: An exact number, as decimal text.
          type:
            - string
            - 'null'
        id:
          description: The companies row's id.
          type: string
        notes:
          type:
            - string
            - 'null'
        parent_group_percent:
          description: An exact number, as decimal text.
          type:
            - string
            - 'null'
        participation_percent:
          description: An exact number, as decimal text.
          type:
            - string
            - 'null'
        plan_type:
          type:
            - string
            - 'null'
        policy_number:
          description: The subscription company's policy number.
          type:
            - string
            - 'null'
        policy_percent:
          description: An exact number, as decimal text.
          type:
            - string
            - 'null'
        posted:
          type:
            - boolean
            - 'null'
        premium:
          description: An exact number, as decimal text.
          type:
            - string
            - 'null'
        risk_percent:
          description: An exact number, as decimal text.
          type:
            - string
            - 'null'
        row_status:
          description: >-
            The row's state on its policy version: A added, C changed, D
            deleted.
          type:
            - string
            - 'null'
        sort_order:
          description: An exact number, as decimal text.
          type:
            - string
            - 'null'
        writing_company_code:
          type:
            - string
            - 'null'
      required:
        - id
        - entered_at
        - changed_at
        - changed_by
        - row_status
        - company_code
        - writing_company_code
        - company_type
        - policy_number
        - plan_type
        - premium
        - billed_premium
        - participation_percent
        - policy_percent
        - risk_percent
        - group_percent
        - parent_group_percent
        - sort_order
        - posted
        - notes
      type: object
    PolicyPremiumCustomers:
      additionalProperties: false
      properties:
        account_id:
          description: 'Derived: the account''s id, {instance}:customer:{the input}.'
          type:
            - string
            - 'null'
        billed_premium:
          description: An exact number, as decimal text.
          type:
            - string
            - 'null'
        changed_at:
          description: When the row last changed. An ISO 8601 timestamp.
          type:
            - string
            - 'null'
        changed_by:
          description: The employee code of who last changed the row.
          type:
            - string
            - 'null'
        company_premium_id:
          type:
            - string
            - 'null'
        entered_at:
          description: When the row was entered. An ISO 8601 timestamp.
          type:
            - string
            - 'null'
        id:
          description: The customers row's id.
          type: string
        inactive_date:
          description: A date, YYYY-MM-DD.
          type:
            - string
            - 'null'
        notes:
          type:
            - string
            - 'null'
        posted:
          type:
            - boolean
            - 'null'
        premium:
          description: An exact number, as decimal text.
          type:
            - string
            - 'null'
        row_status:
          description: >-
            The row's state on its policy version: A added, C changed, D
            deleted.
          type:
            - string
            - 'null'
      required:
        - id
        - entered_at
        - changed_at
        - changed_by
        - row_status
        - account_id
        - company_premium_id
        - premium
        - billed_premium
        - inactive_date
        - posted
        - notes
      type: object
    PolicyPremiumTransaction:
      additionalProperties: false
      properties:
        annualized_estimated_revenue:
          description: An exact number, as decimal text.
          type:
            - string
            - 'null'
        annualized_premium:
          description: An exact number, as decimal text.
          type:
            - string
            - 'null'
        billed_non_premium:
          description: An exact number, as decimal text.
          type:
            - string
            - 'null'
        billing_method:
          anyOf:
            - $ref: '#/components/schemas/CatalogCodeValue'
            - type: 'null'
        binder_replaced_on:
          description: A date, YYYY-MM-DD.
          type:
            - string
            - 'null'
        cancellation_reason:
          anyOf:
            - $ref: '#/components/schemas/CatalogCodeValue'
            - type: 'null'
        changed_at:
          description: When the row last changed. An ISO 8601 timestamp.
          type:
            - string
            - 'null'
        changed_by:
          description: The employee code of who last changed the row.
          type:
            - string
            - 'null'
        description:
          type:
            - string
            - 'null'
        entered_at:
          description: When the row was entered. An ISO 8601 timestamp.
          type:
            - string
            - 'null'
        estimated_revenue_percent:
          description: An exact number, as decimal text.
          type:
            - string
            - 'null'
        id:
          description: The transaction row's id.
          type: string
        installment_day:
          description: An exact number, as decimal text.
          type:
            - string
            - 'null'
        payment_plan_id:
          type:
            - string
            - 'null'
        posted:
          type:
            - boolean
            - 'null'
        premium_billed_on_effective_date:
          description: An exact number, as decimal text.
          type:
            - string
            - 'null'
        replaced_binder_effective_date:
          description: A date, YYYY-MM-DD.
          type:
            - string
            - 'null'
        row_status:
          description: >-
            The row's state on its policy version: A added, C changed, D
            deleted.
          type:
            - string
            - 'null'
        source:
          description: Where the transaction row was entered from.
          type:
            - string
            - 'null'
        transaction_type:
          anyOf:
            - $ref: '#/components/schemas/CatalogCodeValue'
            - type: 'null'
        uploaded:
          type:
            - boolean
            - 'null'
      required:
        - id
        - entered_at
        - changed_at
        - changed_by
        - row_status
        - transaction_type
        - description
        - billing_method
        - cancellation_reason
        - premium_billed_on_effective_date
        - billed_non_premium
        - annualized_premium
        - annualized_estimated_revenue
        - estimated_revenue_percent
        - installment_day
        - payment_plan_id
        - posted
        - uploaded
        - source
        - replaced_binder_effective_date
        - binder_replaced_on
      type: object
    Actor:
      additionalProperties: false
      properties:
        impersonation_kind:
          enum:
            - act_as
            - workos
          type: string
        impersonator:
          description: The operator behind an impersonated session.
          type: string
        member:
          description: The acting member (Nexio-Act-As); empty for a key acting as itself.
          type: string
      type: object
    SourceCoverage:
      additionalProperties: false
      properties:
        as_of:
          description: >-
            The earliest as-of among the family's sources, present only when the
            state is late.
          format: date-time
          type: string
        gaps:
          description: >-
            The family's absence gaps, each stated in plain words with its share
            and whose it is to fill. Empty when the family has none.
          items:
            $ref: '#/components/schemas/CoverageGap'
          type: array
        late:
          $ref: '#/components/schemas/CoverageLate'
          description: Present only when the state is late.
        state:
          description: >-
            late: a source is older than its measured window. current: no source
            is late. unmeasured: no source with a refresh cadence has two stored
            commits yet, so no window is known.
          enum:
            - current
            - late
            - unmeasured
          type: string
      required:
        - state
        - gaps
      type: object
    SourceOperation:
      additionalProperties: false
      properties:
        kind:
          description: >-
            statement: a registered warehouse statement; vendor: a system of
            record operation; store: a platform store family; compute: a derived
            function.
          enum:
            - statement
            - vendor
            - store
            - compute
          type: string
        ref:
          description: >-
            The statement name, the Records operation ref, the store family or
            the function.
          type: string
        reused:
          description: >-
            True when a kept answer of the same statement and data version was
            replayed instead of run.
          type: boolean
      required:
        - kind
        - ref
        - reused
      type: object
    SourceReason:
      additionalProperties: false
      properties:
        kind:
          type: string
        note:
          type: string
        ref:
          type: string
      required:
        - kind
      type: object
    Subject:
      additionalProperties: false
      properties:
        member:
          $ref: '#/components/schemas/SubjectMember'
          description: >-
            The member whose book was read, when the request read as another
            member.
        scope:
          description: The scope kind the acting seat resolved to (self, office, all, ...).
          type: string
        selection:
          description: >-
            The subject selection served, as subject= tokens (own,
            book:&lt;code&gt;, producer:&lt;code|me&gt;,
            client_manager:&lt;code|me&gt;, member:&lt;id&gt;). Empty when none
            was sent.
          items:
            type: string
          type:
            - array
            - 'null'
        selection_kind:
          description: >-
            own, code, client_manager, account, boundary or whole: what the
            served relation is.
          type: string
        selection_source:
          description: >-
            request when the caller chose the selection; none when it chose
            nothing.
          type: string
      required:
        - scope
        - selection
        - selection_kind
        - selection_source
      type: object
    CoverageGap:
      additionalProperties: false
      properties:
        code:
          description: Stable gap code.
          type: string
        owner:
          description: Who keeps the source that would fill the gap.
          enum:
            - firm
            - vertafore
            - nexio
          type: string
        section_field:
          description: >-
            Dotted path inside a derived read's section that holds this gap's
            fact: the gap applies when that value is empty.
          type: string
        section_lines:
          description: >-
            AMS 360 line codes the gap speaks to: it applies only when the
            read's line_codes name one.
          items:
            type: string
          type:
            - array
            - 'null'
        sentence:
          description: >-
            The gap in plain words: the source, the share it covers and whose it
            is to fill.
          type: string
      required:
        - code
        - sentence
        - owner
      type: object
    CoverageLate:
      additionalProperties: false
      properties:
        sentence:
          type: string
      required:
        - sentence
      type: object
    SubjectMember:
      additionalProperties: false
      properties:
        display_name:
          type: string
        id:
          type: string
        scope:
          type: string
      required:
        - id
        - display_name
        - scope
      type: object
  securitySchemes:
    bearer:
      description: The org's platform API key.
      scheme: bearer
      type: http

````

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