> ## 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 ranked renewal calls (parameters in the body)

> GET /engines/{engineSlug}/renewal-plans with its query parameters in a JSON body, keyed by their query names, so free text never travels in a URL. A repeatable parameter takes an array. The answer is the GET's; a query string is refused.



## OpenAPI

````yaml /openapi.generated.json post /engines/{engineSlug}/renewal-plans/search
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:
  /engines/{engineSlug}/renewal-plans/search:
    post:
      tags:
        - Engines
      summary: List ranked renewal calls (parameters in the body)
      description: >-
        GET /engines/{engineSlug}/renewal-plans with its query parameters in a
        JSON body, keyed by their query names, so free text never travels in a
        URL. A repeatable parameter takes an array. The answer is the GET's; a
        query string is refused.
      operationId: listEngineRenewalPlansSearch
      parameters:
        - description: >-
            The person 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 person the read is made for (a WorkOS user id). Unset keeps
              the org-wide posture the key alone grants.
            type: string
        - description: >-
            The acting principal's verified email, lowercased. Ignored without
            Nexio-Act-As.
          in: header
          name: Nexio-Act-As-Email
          schema:
            description: >-
              The acting principal's verified email, lowercased. Ignored without
              Nexio-Act-As.
            type: string
        - description: Read as another member, for a caller whose seat may.
          in: header
          name: Nexio-Book-Lens
          schema:
            description: Read as another member, for a caller whose seat may.
            type: string
        - description: >-
            The Renewal Plan Engine in the caller's org, by its id or its slug
            (renewal-plans).
          in: path
          name: engineSlug
          required: true
          schema:
            description: >-
              The Renewal Plan Engine in the caller's org, by its id or its slug
              (renewal-plans).
            type: string
      requestBody:
        content:
          application/json:
            schema:
              additionalProperties: false
              properties:
                account:
                  description: >-
                    An explicit account key; labels the served selection
                    account.
                  type: string
                bill_method:
                  description: >-
                    Keeps renewals billed by any of these methods as AMS 360
                    records them: agency or direct. Repeat the parameter to
                    select both.
                  items:
                    type: string
                  type:
                    - array
                    - 'null'
                book:
                  description: >-
                    One producer code whose book to read. Not combinable with
                    mine.
                  type: string
                carrier:
                  description: >-
                    Keeps renewals with any of these carriers. Repeat the
                    parameter to select several.
                  items:
                    type: string
                  type:
                    - array
                    - 'null'
                client_manager:
                  description: >-
                    A client manager code, a name key, or me. Repeat the
                    parameter to select several (an OR); ANDs with producer.
                  type: string
                connection_id:
                  type: string
                cursor:
                  description: >-
                    The page.next_cursor of the page before: the next page of
                    the same read, in the same order, with the rows it held when
                    the cursor was minted. It fixes nothing but the position, so
                    send the same filters and sort; another read's cursor is
                    refused (400 cursor_filter_mismatch), and one from before a
                    new run published is expired (409 cursor_expired). Not with
                    offset.
                  type: string
                detail_policy:
                  description: >-
                    With include=detail: the policy_id of the page row to
                    detail. Absent, the row of the term the account's renewal
                    workspace opens on (in force and expiring soonest) when the
                    page serves it; otherwise, and when the search names a
                    producer or client manager, the first open row, else the
                    first row. A named policy the page does not serve has no
                    detail.
                  type: string
                due_within_days:
                  description: Calls due within 1 to 180 days of the run pin.
                  type: string
                expires_within_days:
                  description: >-
                    Keeps renewals whose term expires before this many days past
                    the run pin, 0 to 3650; 0 is off.
                  type: string
                facets:
                  description: >-
                    producer, client_manager or both, comma separated: the owner
                    facets (facets.producer, facets.client_manager), the AMS 360
                    codes the seat's admitted plan rows name under every view
                    filter, each with its staff name and its renewals, busiest
                    first, counted without that owner selection, capped
                    (facets.producer_truncated, facets.client_manager_truncated
                    say it was cut). A code the staff register does not name is
                    not listed.
                  type: string
                figures_only:
                  description: >-
                    true serves total, premium_total, view and facets alone,
                    with no rows: data is empty, page.next_cursor is absent and
                    the answer says figures_only: true. They match the full
                    read's for the same filters. Not with rows_only, cursor or
                    offset (400).
                  enum:
                    - 'true'
                    - 'false'
                  type: string
                hide.closed_by:
                  description: >-
                    Comma-separated values to hide: producer_closed, a finished
                    term AMS 360 names the person who keyed or worked its live
                    successor for; not_producer_closed, every other row.
                  type: string
                hide.risk:
                  description: 'Comma-separated risk bands to hide: at_risk, watch, steady.'
                  type: string
                hide.stage:
                  description: >-
                    Comma-separated renewal_stage values to hide, read live
                    against the org's declared machine. Empty or none turns it
                    off.
                  type: string
                include:
                  description: >-
                    detail serves one row's detail beside the page (detail), as
                    getEngineRenewalPlan serves it; it needs account. marks
                    serves the market mark of every carrier the page and its
                    detail name (marks), as getMarketMarks serves them to the
                    caller.
                  items:
                    enum:
                      - detail
                      - marks
                    type: string
                  type:
                    - array
                    - 'null'
                limit:
                  description: Page size, 1 to 200; default 50.
                  type: string
                line:
                  description: >-
                    Keeps renewals on any of these lines, by the source's own
                    wording. Repeat the parameter to select several.
                  items:
                    type: string
                  type:
                    - array
                    - 'null'
                market:
                  description: >-
                    Keeps renewals of the offices the org units place in this
                    reporting market; all, or none sent, keeps every market. The
                    office options are counted without it, so they list every
                    market's offices.
                  type: string
                mine:
                  description: true narrows to the acting seat's own book.
                  enum:
                    - 'true'
                    - 'false'
                  type: string
                office:
                  description: >-
                    Keeps renewals of any of these offices, by agency code.
                    Repeat the parameter to select several.
                  items:
                    type: string
                  type:
                    - array
                    - 'null'
                offset:
                  description: Rows to skip, 0 to 10000.
                  type: string
                options_q.carrier:
                  description: >-
                    Narrows the carrier options to values with a word starting
                    each typed word, in any order, ignoring case and accents.
                  type: string
                options_q.line:
                  description: Narrows the line options.
                  type: string
                options_q.office:
                  description: Narrows the office options.
                  type: string
                options_q.world:
                  description: Narrows the book options.
                  type: string
                owner_q:
                  description: >-
                    Words that each start a word of an owner's name, or equal an
                    owner's AMS 360 code, in any order, at most 64 characters.
                    It narrows the owner facets' lists (search a list the facet
                    cap cut) and selects no renewal, moves no count and reads
                    under the same admission.
                  maxLength: 64
                  type: string
                premium_gte:
                  description: >-
                    Premium floor in whole dollars. A renewal with no premium
                    fails a floor.
                  pattern: ^[0-9]{1,12}$
                  type: string
                producer:
                  description: >-
                    A producer code, a name key, or me. Repeat the parameter to
                    select several (an OR); a comma is part of a value, never a
                    separator.
                  type: string
                q:
                  description: >-
                    Keeps renewals whose account name holds these words (any
                    case, spacing, punctuation and plural ignored), or whose
                    policy number or carrier contains this text.
                  type: string
                risk:
                  description: >-
                    Old links: comma-separated bands to keep, read as hide.risk
                    of the others.
                  type: string
                rows_only:
                  description: >-
                    true serves the page's rows and page.next_cursor alone: no
                    total, premium_total, view or facets is read, and the answer
                    says rows_only: true. The rows and their order are the full
                    read's for the same filters.
                  enum:
                    - 'true'
                    - 'false'
                  type: string
                sort:
                  description: >-
                    rank (the default) is the plan's order; due and expiration
                    are nearest first; premium is smallest first and -premium
                    largest first, a renewal with no premium last either way;
                    producer.name is the producer's name A to Z, each producer's
                    renewals in plan order and a renewal with no producer last.
                  enum:
                    - rank
                    - due
                    - expiration
                    - premium
                    - '-premium'
                    - producer.name
                  type: string
                state:
                  description: >-
                    open serves open work and is the default; top_quarter serves
                    the open renewals in their owner's top quarter: per owner
                    (the client manager, else the producer) among the open
                    renewals the read admits, the first quarter rounded up, at
                    least one, by commission revenue, a renewal with none after
                    those with some, by premium, or by premium alone for a seat
                    withheld revenue; q and due_within_days narrow the rows
                    shown, never the list ranked; refused with account and on
                    the summary; done serves terms AMS 360 finished or a person
                    closed; all serves both.
                  enum:
                    - open
                    - top_quarter
                    - done
                    - all
                  type: string
                steps:
                  description: >-
                    omit serves the rows without their last step and next step
                    (steps, next_step_args and next_step_due are null,
                    next_step_key, next_step_label and next_status_key are
                    absent, and steps_unread is false), so the page answers
                    without waiting on the steps read. Absent, each row carries
                    its steps.
                  enum:
                    - omit
                  type: string
                world:
                  description: >-
                    Keeps renewals in any of these books, by the line class the
                    plan row carries. Repeat the parameter to select several.
                  items:
                    type: string
                  type:
                    - array
                    - 'null'
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EngineRenewalPlanEnvelope'
          description: OK
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
          description: Bad Request
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
          description: Forbidden
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
          description: Not Found
        '429':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
          description: Too Many Requests
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
          description: Internal Server Error
        '503':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
          description: Service Unavailable
      security:
        - bearer: []
components:
  schemas:
    EngineRenewalPlanEnvelope:
      additionalProperties: false
      properties:
        data:
          items:
            $ref: '#/components/schemas/EngineRenewalPlanRow'
          type:
            - array
            - 'null'
        detail:
          $ref: '#/components/schemas/EngineRenewalPlanDetail'
          description: >-
            With include=detail: one page row, as the page serves it (steps
            included), with its renewal workspace as getEngineRenewalPlan serves
            it: the row whose policy_id is detail_policy, else the row
            detail_policy describes as the default. Absent when the page has no
            such row, or detail_unread.
        detail_unread:
          description: >-
            True when include=detail picked a row and its workspace could not be
            read; read the row with getEngineRenewalPlan.
          type: boolean
        facets:
          $ref: '#/components/schemas/EngineRenewalPlanFacets'
          description: 'With facets=: the owner facets it named.'
        figures_only:
          description: >-
            True when the request sent figures_only: the answer holds total,
            premium_total, view and facets alone. data is empty because no row
            was read, not because the plan is empty.
          type: boolean
        marks:
          additionalProperties:
            $ref: '#/components/schemas/MarketMarkJSON'
          description: >-
            With include=marks: each carrier label the page rows and the
            detail's offer name, keyed by the label as served, with its market
            mark exactly as getMarketMarks answers it to the caller (market_id
            null for a label that names no market). Absent when no row or offer
            names a carrier, or marks_unread.
          type: object
        marks_unread:
          description: >-
            True when include=marks was asked and the caller's marks read did
            not answer (it refused the seat, or failed); read the marks with
            getMarketMarks.
          type: boolean
        page:
          $ref: '#/components/schemas/BookPageJSON'
        premium_total:
          description: >-
            The premiums of every renewal the filters keep, summed as a decimal
            string; a renewal with no premium adds nothing. 0 when none carries
            one.
          type: string
        rows_only:
          description: >-
            True when the request sent rows_only: the answer holds the page and
            page.next_cursor alone. total, premium_total, view and facets are
            absent because no figure was read, not because they are zero.
          type: boolean
        serving:
          $ref: '#/components/schemas/EngineRenewalPlanServing'
        total:
          format: int64
          type: integer
        view:
          $ref: '#/components/schemas/View'
          description: >-
            The filters this read applied, with option counts, defaults and
            hidden counts. Absent before the first publish.
      required:
        - data
        - page
        - total
        - premium_total
        - serving
      type: object
    ErrorEnvelope:
      additionalProperties: false
      properties:
        code:
          description: The stable machine-readable error code. One meaning forever.
          type: string
        details:
          description: Structured detail for the code.
        message:
          description: A human-readable sentence about this occurrence.
          type: string
      required:
        - code
        - message
      type: object
    EngineRenewalPlanRow:
      additionalProperties: false
      properties:
        account_id:
          type: string
        account_name:
          type:
            - string
            - 'null'
        bill_method:
          anyOf:
            - $ref: '#/components/schemas/EngineRenewalPlanBillMethod'
              description: >-
                The policy's bill method in AMS 360, read from the current
                renewal terms build; null when AMS 360 records neither.
            - type: 'null'
        call_by:
          description: >-
            The day to call by; null for a term with no call to make: a one-time
            policy, or a multi-year term between its annual check-ins, either
            one steady.
          format: date
          type:
            - string
            - 'null'
        carrier:
          type:
            - string
            - 'null'
        choice:
          anyOf:
            - $ref: '#/components/schemas/EngineRenewalPlanChoice'
              description: >-
                How the renewal is worked as recorded now
                (renewal.strategy_record), read live; null when nothing recorded
                names an approach.
            - type: 'null'
        client_manager:
          $ref: '#/components/schemas/EngineRenewalPlanOwner'
        contact:
          $ref: '#/components/schemas/EngineRenewalPlanWho'
        customer_id:
          type: string
        datasource:
          type: string
        days_band:
          description: >-
            The days-to-renewal band from days_to_expiration: over_90 above 90
            days, within_90 from 61 to 90, within_60 at 60 or fewer, an expired
            term included.
          enum:
            - over_90
            - within_90
            - within_60
          type: string
        days_to_expiration:
          format: int64
          type: integer
        expiration_on:
          type: string
        next_status_key:
          description: The renewal register's status key when the term has no next action.
          type: string
        next_step_args:
          anyOf:
            - $ref: '#/components/schemas/RenewalActionArgs'
              description: The next step's arguments, set for annual_check_in only.
            - type: 'null'
        next_step_due:
          anyOf:
            - description: >-
                Due date of the next step; null when none is stated or
                steps_unread.
              type:
                - string
                - 'null'
            - type: 'null'
        next_step_key:
          description: >-
            The term's one next step: the plan workspace's (its checklist item
            id, or record_the_outcome once the term expired with no settled
            outcome); for a term the workspace names no step for (a settled
            term), the renewal register's next action key from its AMS 360
            activity and Workbench stage record. Empty when next_status_key is
            set or no step is served.
          type: string
        next_step_label:
          description: >-
            The next step's words: the plan workspace's item, or the org's
            renewal_stage machine's words for a register key.
          type: string
        next_term:
          anyOf:
            - $ref: '#/components/schemas/EngineRenewalNextTerm'
              description: >-
                The term AMS 360 held to follow this one when the plan ran,
                against the expiring term: premium, rating exposure and rate.
                Null when no next term was on file.
            - type: 'null'
        outcome:
          anyOf:
            - $ref: '#/components/schemas/MachineState'
              description: >-
                The renewal_outcome value with its label, tone and settled flag
                from the org's declared machine; null when the org declares no
                renewal_outcome machine.
            - type: 'null'
        outlook:
          type:
            - string
            - 'null'
        path:
          anyOf:
            - $ref: '#/components/schemas/EngineRenewalPlanPathRef'
              description: >-
                The path the renewal is worked on, from the plan Engine's config
                version; null when the version serves no workspace, or names no
                default path and the account premium is unknown.
            - type: 'null'
        plan_id:
          type: string
        policy_id:
          type: string
        policy_number:
          type:
            - string
            - 'null'
        premium:
          type:
            - string
            - 'null'
        producer:
          $ref: '#/components/schemas/EngineRenewalPlanOwner'
        product:
          $ref: '#/components/schemas/Reference'
          description: >-
            The term's product: the org's product id (resolve it from
            /records/products), or a listed reason there is none, beside the
            source's own line wording.
        rank_score:
          description: >-
            The rank key: the band's weight times the term's revenue. When the
            plan's version ranks overdue terms first, an overdue term with a
            risk sign adds 1e12, so overdue terms read first.
          format: double
          type: number
        renewal:
          $ref: '#/components/schemas/EngineRenewal'
          description: >-
            The renewal's members the seat may read, its lines and the members
            its placement does not carry. A member outside the seat's scope is
            never served.
        renewal_id:
          description: >-
            The renewal this term belongs to: the id is the same on every
            member's row. A renewal groups the account's terms that expire
            together (plan.renewal in the engine settings); the term keeps its
            own plan_id and policy_id.
          type: string
        renewal_nature:
          description: >-
            The term's renewal nature by the renewal register's rule. Null on a
            run that did not record it.
          enum:
            - renews
            - one_time
            - multi_year
            - bond_continuous
            - bond_term
            - non_renewed
          type:
            - string
            - 'null'
        renewal_open:
          description: >-
            Whether the renewal is open work now: false for a term AMS 360
            finished or one a person closed.
          type: boolean
        renewal_state:
          description: >-
            Where the expiring term stands, read from AMS 360 and the Workbench
            remarketing mark: a renewal_outcome value (GET
            /records/machines/renewal_outcome). renewal_open says whether it is
            open work.
          enum:
            - open
            - information
            - remarketing
            - quoted
            - proposal_out
            - bind_requested
            - offer_in
            - renewed
            - overdue
            - renewed_then_cancelled
            - rewritten
            - lost
            - cancelled
            - non_renewed
            - confirm
          type: string
        revenue:
          type:
            - string
            - 'null'
        risk:
          $ref: '#/components/schemas/EngineRenewalPlanRisk'
        stage:
          anyOf:
            - $ref: '#/components/schemas/EngineRenewalPlanStage'
              description: >-
                The renewal stage on record now, read live from the ledger
                renewal.strategy_record writes, not the run's workflow_stage;
                null when the ledger was not read.
            - type: 'null'
        stage_state:
          anyOf:
            - $ref: '#/components/schemas/MachineState'
              description: >-
                The renewal_stage value on record now with its label, step,
                settled flag, tone and next step from the org's declared
                machine; null when the ledger was not read or the org declares
                no renewal_stage machine.
            - type: 'null'
        status:
          anyOf:
            - $ref: '#/components/schemas/EngineRenewalPlanStatus'
              description: >-
                The status line the register shows for the term, decided here:
                the renewal_outcome label when AMS 360 or the Workbench records
                a state, else the next step and its due date. Null on a read
                that left the steps out (steps=later) for a term with nothing
                recorded: its steps read serves it.
            - type: 'null'
        steps:
          anyOf:
            - $ref: '#/components/schemas/BookRenewalStepsRow'
              description: >-
                The term's last AMS 360 activity, open step and last Workbench
                stage record, as the renewal register serves them; null when
                steps_unread.
            - type: 'null'
        steps_unread:
          description: >-
            True when the term's steps were not read: the step read failed, or
            the renewal register does not serve the term (outside its window).
            The step fields are then absent, never no recorded work.
          type: boolean
        suggestion:
          anyOf:
            - $ref: '#/components/schemas/EngineRenewalPlanSuggestion'
              description: >-
                How the plan suggests the renewal is worked, with one plain
                sentence that says why; null when the plan's version suggests
                nothing.
            - type: 'null'
        term_end:
          description: >-
            A multi-year term's or term bond's last expiration, or this
            expiration for any other nature; null when not known.
          format: date
          type:
            - string
            - 'null'
        term_state:
          description: >-
            The same value as renewal_state. Deprecated: read renewal_state and
            outcome.
          type: string
        term_years:
          description: A multi-year term's length in years; null when not known.
          format: int64
          maximum: 5
          minimum: 2
          type:
            - integer
            - 'null'
        workflow_stage:
          type: string
        world:
          type:
            - string
            - 'null'
      required:
        - plan_id
        - account_id
        - account_name
        - datasource
        - customer_id
        - policy_id
        - policy_number
        - product
        - world
        - carrier
        - bill_method
        - expiration_on
        - days_to_expiration
        - days_band
        - premium
        - revenue
        - producer
        - client_manager
        - workflow_stage
        - outlook
        - risk
        - rank_score
        - contact
        - call_by
        - renewal_nature
        - term_end
        - term_years
        - next_term
        - suggestion
        - choice
        - stage
        - path
        - term_state
        - renewal_state
        - renewal_open
        - outcome
        - stage_state
        - next_step_due
        - next_step_args
        - steps
        - renewal_id
        - renewal
        - status
      type: object
    EngineRenewalPlanDetail:
      additionalProperties: false
      properties:
        account_id:
          type: string
        account_name:
          type:
            - string
            - 'null'
        bill_method:
          anyOf:
            - $ref: '#/components/schemas/EngineRenewalPlanBillMethod'
              description: >-
                The policy's bill method in AMS 360, read from the current
                renewal terms build; null when AMS 360 records neither.
            - type: 'null'
        call_by:
          description: >-
            The day to call by; null for a term with no call to make: a one-time
            policy, or a multi-year term between its annual check-ins, either
            one steady.
          format: date
          type:
            - string
            - 'null'
        carrier:
          type:
            - string
            - 'null'
        choice:
          anyOf:
            - $ref: '#/components/schemas/EngineRenewalPlanChoice'
              description: >-
                How the renewal is worked as recorded now
                (renewal.strategy_record), read live; null when nothing recorded
                names an approach.
            - type: 'null'
        client_manager:
          $ref: '#/components/schemas/EngineRenewalPlanOwner'
        contact:
          $ref: '#/components/schemas/EngineRenewalPlanWho'
        customer_id:
          type: string
        datasource:
          type: string
        days_band:
          description: >-
            The days-to-renewal band from days_to_expiration: over_90 above 90
            days, within_90 from 61 to 90, within_60 at 60 or fewer, an expired
            term included.
          enum:
            - over_90
            - within_90
            - within_60
          type: string
        days_to_expiration:
          format: int64
          type: integer
        expiration_on:
          type: string
        next_status_key:
          description: The renewal register's status key when the term has no next action.
          type: string
        next_step_args:
          anyOf:
            - $ref: '#/components/schemas/RenewalActionArgs'
              description: The next step's arguments, set for annual_check_in only.
            - type: 'null'
        next_step_due:
          anyOf:
            - description: >-
                Due date of the next step; null when none is stated or
                steps_unread.
              type:
                - string
                - 'null'
            - type: 'null'
        next_step_key:
          description: >-
            The term's one next step: the plan workspace's (its checklist item
            id, or record_the_outcome once the term expired with no settled
            outcome); for a term the workspace names no step for (a settled
            term), the renewal register's next action key from its AMS 360
            activity and Workbench stage record. Empty when next_status_key is
            set or no step is served.
          type: string
        next_step_label:
          description: >-
            The next step's words: the plan workspace's item, or the org's
            renewal_stage machine's words for a register key.
          type: string
        next_term:
          anyOf:
            - $ref: '#/components/schemas/EngineRenewalNextTerm'
              description: >-
                The term AMS 360 held to follow this one when the plan ran,
                against the expiring term: premium, rating exposure and rate.
                Null when no next term was on file.
            - type: 'null'
        outcome:
          anyOf:
            - $ref: '#/components/schemas/MachineState'
              description: >-
                The renewal_outcome value with its label, tone and settled flag
                from the org's declared machine; null when the org declares no
                renewal_outcome machine.
            - type: 'null'
        outlook:
          type:
            - string
            - 'null'
        path:
          anyOf:
            - $ref: '#/components/schemas/EngineRenewalPlanPathRef'
              description: >-
                The path the renewal is worked on, from the plan Engine's config
                version; null when the version serves no workspace, or names no
                default path and the account premium is unknown.
            - type: 'null'
        plan_id:
          type: string
        policy_id:
          type: string
        policy_number:
          type:
            - string
            - 'null'
        premium:
          type:
            - string
            - 'null'
        producer:
          $ref: '#/components/schemas/EngineRenewalPlanOwner'
        product:
          $ref: '#/components/schemas/Reference'
          description: >-
            The term's product: the org's product id (resolve it from
            /records/products), or a listed reason there is none, beside the
            source's own line wording.
        rank_score:
          description: >-
            The rank key: the band's weight times the term's revenue. When the
            plan's version ranks overdue terms first, an overdue term with a
            risk sign adds 1e12, so overdue terms read first.
          format: double
          type: number
        renewal:
          $ref: '#/components/schemas/EngineRenewal'
          description: >-
            The renewal's members the seat may read, its lines and the members
            its placement does not carry. A member outside the seat's scope is
            never served.
        renewal_id:
          description: >-
            The renewal this term belongs to: the id is the same on every
            member's row. A renewal groups the account's terms that expire
            together (plan.renewal in the engine settings); the term keeps its
            own plan_id and policy_id.
          type: string
        renewal_nature:
          description: >-
            The term's renewal nature by the renewal register's rule. Null on a
            run that did not record it.
          enum:
            - renews
            - one_time
            - multi_year
            - bond_continuous
            - bond_term
            - non_renewed
          type:
            - string
            - 'null'
        renewal_open:
          description: >-
            Whether the renewal is open work now: false for a term AMS 360
            finished or one a person closed.
          type: boolean
        renewal_state:
          description: >-
            Where the expiring term stands, read from AMS 360 and the Workbench
            remarketing mark: a renewal_outcome value (GET
            /records/machines/renewal_outcome). renewal_open says whether it is
            open work.
          enum:
            - open
            - information
            - remarketing
            - quoted
            - proposal_out
            - bind_requested
            - offer_in
            - renewed
            - overdue
            - renewed_then_cancelled
            - rewritten
            - lost
            - cancelled
            - non_renewed
            - confirm
          type: string
        revenue:
          type:
            - string
            - 'null'
        risk:
          $ref: '#/components/schemas/EngineRenewalPlanRisk'
        stage:
          anyOf:
            - $ref: '#/components/schemas/EngineRenewalPlanStage'
              description: >-
                The renewal stage on record now, read live from the ledger
                renewal.strategy_record writes, not the run's workflow_stage;
                null when the ledger was not read.
            - type: 'null'
        stage_state:
          anyOf:
            - $ref: '#/components/schemas/MachineState'
              description: >-
                The renewal_stage value on record now with its label, step,
                settled flag, tone and next step from the org's declared
                machine; null when the ledger was not read or the org declares
                no renewal_stage machine.
            - type: 'null'
        status:
          anyOf:
            - $ref: '#/components/schemas/EngineRenewalPlanStatus'
              description: >-
                The status line the register shows for the term, decided here:
                the renewal_outcome label when AMS 360 or the Workbench records
                a state, else the next step and its due date. Null on a read
                that left the steps out (steps=later) for a term with nothing
                recorded: its steps read serves it.
            - type: 'null'
        steps:
          anyOf:
            - $ref: '#/components/schemas/BookRenewalStepsRow'
              description: >-
                The term's last AMS 360 activity, open step and last Workbench
                stage record, as the renewal register serves them; null when
                steps_unread.
            - type: 'null'
        steps_unread:
          description: >-
            True when the term's steps were not read: the step read failed, or
            the renewal register does not serve the term (outside its window).
            The step fields are then absent, never no recorded work.
          type: boolean
        suggestion:
          anyOf:
            - $ref: '#/components/schemas/EngineRenewalPlanSuggestion'
              description: >-
                How the plan suggests the renewal is worked, with one plain
                sentence that says why; null when the plan's version suggests
                nothing.
            - type: 'null'
        term_end:
          description: >-
            A multi-year term's or term bond's last expiration, or this
            expiration for any other nature; null when not known.
          format: date
          type:
            - string
            - 'null'
        term_state:
          description: >-
            The same value as renewal_state. Deprecated: read renewal_state and
            outcome.
          type: string
        term_years:
          description: A multi-year term's length in years; null when not known.
          format: int64
          maximum: 5
          minimum: 2
          type:
            - integer
            - 'null'
        workflow_stage:
          type: string
        workspace:
          anyOf:
            - $ref: '#/components/schemas/EngineRenewalWorkspace'
              description: >-
                The renewal workspace from the plan Engine's config version: the
                path, the stage timeline, the checklist and the carrier offer.
                Null when the version serves no workspace, or names neither a
                path rule nor a default path.
            - type: 'null'
        world:
          type:
            - string
            - 'null'
      required:
        - workspace
        - plan_id
        - account_id
        - account_name
        - datasource
        - customer_id
        - policy_id
        - policy_number
        - product
        - world
        - carrier
        - bill_method
        - expiration_on
        - days_to_expiration
        - days_band
        - premium
        - revenue
        - producer
        - client_manager
        - workflow_stage
        - outlook
        - risk
        - rank_score
        - contact
        - call_by
        - renewal_nature
        - term_end
        - term_years
        - next_term
        - suggestion
        - choice
        - stage
        - path
        - term_state
        - renewal_state
        - renewal_open
        - outcome
        - stage_state
        - next_step_due
        - next_step_args
        - steps
        - renewal_id
        - renewal
        - status
      type: object
    EngineRenewalPlanFacets:
      additionalProperties: false
      properties:
        client_manager:
          description: >-
            With facets=client_manager: as facets.producer, for the client
            manager codes, counted without the client_manager= selection.
          items:
            $ref: '#/components/schemas/BookOwnerFacet'
          type:
            - array
            - 'null'
        client_manager_truncated:
          description: True when facets.client_manager was cut at the owner facet cap.
          type: boolean
        producer:
          description: >-
            With facets=producer: the AMS 360 producer codes of the seat's
            admitted plan rows under every view filter, each with its staff name
            and its renewals, busiest first, ties by name, counted without the
            producer= selection.
          items:
            $ref: '#/components/schemas/BookOwnerFacet'
          type:
            - array
            - 'null'
        producer_truncated:
          description: True when facets.producer was cut at the owner facet cap.
          type: boolean
      type: object
    MarketMarkJSON:
      additionalProperties: false
      properties:
        logo:
          anyOf:
            - $ref: '#/components/schemas/MarketLogoJSON'
            - type: 'null'
        market_id:
          description: The market's entity key; null when the label names no market.
          type:
            - string
            - 'null'
        short_name:
          description: >-
            The market the way a producer says it on a card (Hanover for Hanover
            Insurance Group Property and Casualty Companies), as the market's
            own read serves short_name. A label that names no market is said by
            the same rule applied to the label as written (Safeco for Safeco (a
            Liberty Mutual Company)); null for a placeholder that names no
            carrier.
          type:
            - string
            - 'null'
        symbol:
          anyOf:
            - $ref: '#/components/schemas/MarketLogoJSON'
              description: >-
                The carrier's square symbol, for a tile too small to read its
                logo; null when none is on file. The bytes are at the logo read
                with mark=symbol.
            - type: 'null'
        website:
          type:
            - string
            - 'null'
      required:
        - market_id
        - short_name
        - website
        - logo
        - symbol
      type: object
    BookPageJSON:
      additionalProperties: false
      properties:
        limit:
          format: int64
          type: integer
        next_cursor:
          type:
            - string
            - 'null'
        offset:
          format: int64
          type: integer
        page_size:
          format: int64
          type: integer
      required:
        - limit
        - next_cursor
      type: object
    EngineRenewalPlanServing:
      additionalProperties: false
      properties:
        pin_on:
          type:
            - string
            - 'null'
        run_id:
          type:
            - string
            - 'null'
        source:
          type: string
      required:
        - run_id
        - pin_on
        - source
      type: object
    View:
      additionalProperties: false
      properties:
        columns:
          $ref: '#/components/schemas/Columns'
          description: >-
            Every column the seat may show, its role's default columns and the
            columns this person shows.
        filters:
          items:
            $ref: '#/components/schemas/Filter'
          type:
            - array
            - 'null'
        hidden:
          $ref: '#/components/schemas/Hidden'
      required:
        - filters
        - hidden
      type: object
    EngineRenewalPlanBillMethod:
      additionalProperties: false
      properties:
        label:
          type: string
        value:
          description: >-
            agency: the agency invoices the client; direct: the carrier bills
            the client.
          enum:
            - agency
            - direct
          type: string
      required:
        - value
        - label
      type: object
    EngineRenewalPlanChoice:
      additionalProperties: false
      properties:
        approach:
          enum:
            - as_is
            - review
            - remarket
          type: string
        reason:
          type:
            - string
            - 'null'
        recorded_at:
          description: >-
            When the stage was recorded, RFC 3339; null when the ledger holds no
            time.
          type:
            - string
            - 'null'
        stage:
          description: The renewal stage on record that names the approach.
          type: string
      required:
        - approach
        - stage
        - reason
        - recorded_at
      type: object
    EngineRenewalPlanOwner:
      additionalProperties: false
      properties:
        code:
          type:
            - string
            - 'null'
        name:
          type:
            - string
            - 'null'
      required:
        - code
        - name
      type: object
    EngineRenewalPlanWho:
      additionalProperties: false
      properties:
        code:
          description: The seat's AMS 360 employee code; empty for a client contact.
          type: string
        email:
          description: >-
            The client contact's email; null for a seat or when none is
            recorded.
          type:
            - string
            - 'null'
        name:
          type: string
        phone:
          description: >-
            The client contact's business phone with its extension, else the
            mobile; null for a seat or when none is recorded.
          type:
            - string
            - 'null'
        role:
          enum:
            - client_contact
            - client_manager
            - producer
            - desk
            - unassigned
          type: string
      required:
        - role
        - code
        - name
        - phone
        - email
      type: object
    RenewalActionArgs:
      additionalProperties: false
      properties:
        renewal_certificate:
          description: >-
            annual_check_in only: the line is a bond, surety, dealer or garage
            line, so the check-in also asks for what the renewal certificate
            needs. False on a row that serves no line.
          type: boolean
      required:
        - renewal_certificate
      type: object
    EngineRenewalNextTerm:
      additionalProperties: false
      properties:
        expiring_premium:
          description: >-
            The expiring term's premium; null when it carries none, or the book
            annualized it from transactions and it does not compare with a
            full-term premium.
          format: double
          type:
            - number
            - 'null'
        exposures:
          description: >-
            Each unit the line is rated on that either term carries, in rating
            unit order. Empty when the line has no rating unit or neither term
            carries one.
          items:
            $ref: '#/components/schemas/EngineRenewalTermExposure'
          type:
            - array
            - 'null'
        exposures_read:
          description: >-
            Whether the run read the two terms' rating exposure. False when the
            read failed: exposures is empty and rate null, and the premium
            change stands alone.
          type: boolean
        policy_id:
          description: The next term's AMS 360 policy id.
          type: string
        premium_change:
          description: >-
            The renewal premium over the expiring premium, minus one (0.05 is up
            5%); null unless both exist.
          format: double
          type:
            - number
            - 'null'
        rate:
          anyOf:
            - $ref: '#/components/schemas/EngineRenewalTermRate'
              description: >-
                The premium per rating unit on both terms. Null unless exactly
                one unit rates the line on both terms, the unit has a rate
                basis, and both premiums exist. An umbrella limit has none:
                umbrella premium does not scale with the limit, so its renewal
                shows the limit change alone.
            - type: 'null'
        renewal_premium:
          description: The next term's full-term premium; null when it carries none.
          format: double
          type:
            - number
            - 'null'
      required:
        - policy_id
        - expiring_premium
        - renewal_premium
        - premium_change
        - exposures_read
        - exposures
        - rate
      type: object
    MachineState:
      additionalProperties: false
      properties:
        label:
          description: >-
            The words a person sees for the value; null when the machine labels
            none.
          type:
            - string
            - 'null'
        machine:
          description: The machine's state field (GET /records/machines/{field}).
          type: string
        next:
          anyOf:
            - $ref: '#/components/schemas/MachineNextStep'
              description: The next step served for the value; null when it has none.
            - type: 'null'
        settled:
          description: True when the value ends the work.
          type: boolean
        step:
          description: The workflow step the value sits in; null when it sits in none.
          type:
            - string
            - 'null'
        tone:
          description: The tone the value is shown with; null when the machine gives none.
          enum:
            - neutral
            - positive
            - warning
            - danger
            - null
          type:
            - string
            - 'null'
        value:
          type: string
      required:
        - machine
        - value
        - label
        - step
        - settled
        - tone
        - next
      type: object
    EngineRenewalPlanPathRef:
      additionalProperties: false
      properties:
        id:
          description: The path id the plan Engine's config names.
          type: string
        label:
          description: >-
            The path name the plan Engine's config gives, e.g. Middle
            Large/Complex Accounts.
          type: string
        source:
          description: >-
            rule when the config's path rules over the account premium and the
            term's bill method placed the renewal; person when a person recorded
            the path, or a person's recorded remarket choice moved it; default
            when the config names no path rule and its default path applies.
          enum:
            - rule
            - person
            - default
          type: string
      required:
        - id
        - label
        - source
      type: object
    Reference:
      additionalProperties: false
      properties:
        product_grain:
          enum:
            - product
            - type
          type: string
        product_id:
          type:
            - string
            - 'null'
        product_source_text:
          type: string
        product_unmatched_reason:
          type:
            - string
            - 'null'
      required:
        - product_id
        - product_grain
        - product_source_text
        - product_unmatched_reason
      type: object
    EngineRenewal:
      additionalProperties: false
      properties:
        excluded:
          description: >-
            The members the placement does not carry, each with its reason
            (renewalscope.Of).
          items:
            $ref: '#/components/schemas/RenewalScopeExcluded'
          type:
            - array
            - 'null'
        expiration_date:
          description: >-
            The renewal's day: the earliest expiration among the members the
            seat may see.
          format: date
          type: string
        id:
          description: >-
            The renewal's identity, the same on every member's plan row and on
            the workspace of any member.
          type: string
        lines:
          description: >-
            The canonical line codes a placement of this renewal carries, each
            once, in member order (renewalscope.Of).
          items:
            type: string
          type:
            - array
            - 'null'
        members:
          description: >-
            The terms of the renewal the seat may read, the row's own term among
            them. A term outside the seat's scope is never a member of its
            response.
          items:
            $ref: '#/components/schemas/EngineRenewalMember'
          type:
            - array
            - 'null'
      required:
        - id
        - expiration_date
        - members
        - lines
        - excluded
      type: object
    EngineRenewalPlanRisk:
      additionalProperties: false
      properties:
        band:
          description: >-
            Rules plus the people's marks; there is no learned retention model
            behind it.
          enum:
            - at_risk
            - watch
            - steady
          type: string
      required:
        - band
      type: object
    EngineRenewalPlanStage:
      additionalProperties: false
      properties:
        choice_open:
          description: >-
            Whether renewal.strategy_record still accepts renew_as_is, review or
            remarket from this stage. False once the renewal is quoted, out for
            the client's decision, binding, bound or closed. It reads the stage
            alone: the action still refuses a renewal AMS 360 already finished.
          type: boolean
        holds_incumbent:
          description: >-
            Whether the stage keeps the incumbent on the hold path: hold,
            renewing_as_is, or a hold-path step (quoted, proposal_out,
            bind_requested, bound).
          type: boolean
        value:
          description: >-
            The renewal stage on record: a renewal_stage value (GET
            /records/machines/renewal_stage); not_started when nothing is
            recorded.
          enum:
            - not_started
            - reviewing
            - hold
            - remarketing
            - renewing_as_is
            - quoted
            - proposal_out
            - bind_requested
            - bound
            - non_renewed
            - lost
            - closed
          type: string
      required:
        - value
        - choice_open
        - holds_incumbent
      type: object
    EngineRenewalPlanStatus:
      additionalProperties: false
      properties:
        detail:
          description: >-
            The second line: Next: and the next step for a recorded state; Due
            and the day for a next step with a due date; null when there is
            none.
          type:
            - string
            - 'null'
        label:
          description: >-
            The first line: the renewal_outcome label for a term with a recorded
            state; for a term with nothing recorded, its next step (never the
            words Nothing recorded).
          type: string
        tone:
          description: >-
            The tone the label is shown with: the outcome's tone for a recorded
            state, neutral for a next step.
          enum:
            - neutral
            - positive
            - warning
            - danger
          type: string
      required:
        - label
        - detail
        - tone
      type: object
    BookRenewalStepsRow:
      additionalProperties: false
      properties:
        ams:
          $ref: '#/components/schemas/BookRenewalAMSStep'
        auto_id_on:
          type:
            - string
            - 'null'
        certificate_on:
          type:
            - string
            - 'null'
        datasource:
          type: string
        open_step:
          $ref: '#/components/schemas/BookRenewalOpenStep'
        policy_id:
          type: string
        workbench:
          $ref: '#/components/schemas/BookRenewalWorkbenchStep'
      required:
        - datasource
        - policy_id
        - ams
        - open_step
        - auto_id_on
        - certificate_on
        - workbench
      type: object
    EngineRenewalPlanSuggestion:
      additionalProperties: false
      properties:
        approach:
          description: >-
            as_is renews with the incumbent with no client review; review keeps
            the incumbent and reviews the renewal with the client; remarket
            takes it to market.
          enum:
            - as_is
            - review
            - remarket
          type: string
        reason:
          type: string
      required:
        - approach
        - reason
      type: object
    EngineRenewalWorkspace:
      additionalProperties: false
      properties:
        items:
          items:
            $ref: '#/components/schemas/EngineRenewalWorkspaceItem'
          type:
            - array
            - 'null'
        next:
          anyOf:
            - $ref: '#/components/schemas/EngineRenewalWorkspaceNext'
              description: >-
                Null when the term is settled, no item is open, or the term's
                outcome was not read; else the renewal's one next step, the same
                the list's status line, Today and the policy Renewal panel
                serve.
            - type: 'null'
        offer:
          anyOf:
            - $ref: '#/components/schemas/EngineRenewalWorkspaceOffer'
              description: >-
                Null when the current renewal terms build holds no row for the
                term.
            - type: 'null'
        path:
          $ref: '#/components/schemas/EngineRenewalWorkspacePath'
        path_options:
          items:
            $ref: '#/components/schemas/EngineRenewalWorkspacePathOption'
          type:
            - array
            - 'null'
        stages:
          items:
            $ref: '#/components/schemas/EngineRenewalWorkspaceStage'
          type:
            - array
            - 'null'
      required:
        - path
        - path_options
        - stages
        - items
        - offer
        - next
      type: object
    BookOwnerFacet:
      additionalProperties: false
      properties:
        code:
          type: string
        count:
          format: int64
          type: integer
        display_name:
          description: >-
            name as a producer reads it: AMS 360's Last, First in reading order
            without the dates, phone numbers, extensions or splits the agency
            typed into it. Filters take code; sorts read name.
          type: string
        name:
          type: string
      required:
        - code
        - name
        - count
      type: object
    MarketLogoJSON:
      additionalProperties: false
      properties:
        etag:
          description: >-
            The logo's version: a prefix of its sha256. Pass it as v= on the
            logo read to cache the bytes for good.
          type: string
        fit:
          description: >-
            How a square tile draws the file: fill is a near-square file that
            carries its own safe area (a bare mark inset in the file, or a
            filled tile to its edge), drawn edge to edge and clipped to the
            tile's corners; pad is a wordmark or a file stored before it was
            normalized, inset with even padding.
          enum:
            - fill
            - pad
          type: string
        format:
          enum:
            - svg
            - png
            - webp
            - jpeg
          type: string
        height:
          description: >-
            Pixels for a raster; the viewBox height for an SVG. Null when the
            file does not state it.
          format: int64
          type:
            - integer
            - 'null'
        width:
          description: >-
            Pixels for a raster; the viewBox width for an SVG. Null when the
            file does not state it.
          format: int64
          type:
            - integer
            - 'null'
      required:
        - etag
        - format
        - width
        - height
        - fit
      type: object
    Columns:
      additionalProperties: false
      properties:
        available:
          description: Every labeled field the register serves that this seat may read.
          items:
            $ref: '#/components/schemas/Column'
          type:
            - array
            - 'null'
        default:
          description: The columns the seat's role shows with nothing chosen, in order.
          items:
            type: string
          type:
            - array
            - 'null'
        shown:
          description: >-
            The columns this person shows, in order: their saved choice, else
            the default.
          items:
            type: string
          type:
            - array
            - 'null'
      required:
        - available
        - default
        - shown
      type: object
    Filter:
      additionalProperties: false
      properties:
        applied:
          description: The value this read used.
          oneOf:
            - items:
                type: string
              type: array
            - type: integer
            - type: boolean
            - type: string
        default:
          description: The value with nothing chosen.
          oneOf:
            - items:
                type: string
              type: array
            - type: integer
            - type: boolean
            - type: string
        key:
          type: string
        option_count:
          description: Values the filter holds.
          format: int64
          type: integer
        options:
          description: A multiselect's values with their counts, in the order they show.
          items:
            $ref: '#/components/schemas/Option'
          type:
            - array
            - 'null'
        truncated:
          description: More values than options; search with options_q.&lt;key&gt;.
          type: boolean
        type:
          enum:
            - multiselect
            - days
            - toggle
            - select
            - amount
          type: string
      required:
        - key
        - type
        - default
        - applied
      type: object
    Hidden:
      additionalProperties: false
      properties:
        by_filter:
          additionalProperties:
            format: int64
            type: integer
          description: >-
            Rows each filter removes from what every other filter keeps. These
            overlap and need not sum to total.
          type: object
        total:
          description: >-
            Rows the other filters keep minus the rows shown: turning every
            filter of this block off shows exactly this many more.
          format: int64
          type: integer
      required:
        - total
        - by_filter
      type: object
    EngineRenewalTermExposure:
      additionalProperties: false
      properties:
        change:
          description: >-
            The renewal over the expiring, minus one; null unless both terms
            carry the unit.
          format: double
          type:
            - number
            - 'null'
        expiring:
          description: The unit on the expiring term; null when the term carries none.
          format: double
          type:
            - number
            - 'null'
        label:
          description: >-
            The unit in plain words: Payroll, Gross sales, Vehicles, Dwelling
            limit, Umbrella limit, Locations.
          type: string
        renewal:
          description: The unit on the next term; null when the term carries none.
          format: double
          type:
            - number
            - 'null'
        unit:
          description: The AMS 360 rating unit.
          enum:
            - payroll
            - vehicles
            - personal_vehicles
            - locations
            - gl_sales
            - gl_payroll
            - dwelling_limit
            - umbrella_limit
          type: string
      required:
        - unit
        - label
        - expiring
        - renewal
        - change
      type: object
    EngineRenewalTermRate:
      additionalProperties: false
      properties:
        change:
          description: The renewal rate over the expiring rate, minus one.
          format: double
          type: number
        expiring:
          description: The expiring premium per Per of the unit.
          format: double
          type: number
        per:
          description: >-
            How much of the unit the rate is quoted per: 100 is per $100 of
            payroll, 1000 per $1,000 of sales or dwelling limit, 1 per vehicle.
          format: double
          type: number
        renewal:
          description: The renewal premium per Per of the unit.
          format: double
          type: number
        unit:
          description: The rating unit the rate is per.
          enum:
            - payroll
            - vehicles
            - personal_vehicles
            - gl_sales
            - gl_payroll
            - dwelling_limit
          type: string
      required:
        - unit
        - per
        - expiring
        - renewal
        - change
      type: object
    MachineNextStep:
      additionalProperties: false
      properties:
        key:
          description: The next step key.
          type: string
        label:
          description: The words a person sees for the step.
          type: string
        waiting_on:
          description: Who the work waits on at this step.
          type: string
      required:
        - key
      type: object
    RenewalScopeExcluded:
      additionalProperties: false
      properties:
        reason:
          description: >-
            Why the placement does not carry the term: line_not_placeable, the
            commercial placement engine places commercial lines and surety bonds
            only, so the term needs a separate placement.
          enum:
            - line_not_placeable
          type: string
        term:
          $ref: '#/components/schemas/RenewalScopeTerm'
      required:
        - term
        - reason
      type: object
    EngineRenewalMember:
      additionalProperties: false
      properties:
        carrier:
          type: string
        expiration_date:
          format: date
          type: string
        line:
          description: The term's line of business as AMS 360 holds it.
          type: string
        open:
          description: >-
            Whether the term was open work when the run planned; the row's own
            term is read live. Null on the account workspace, which does not
            read the plan run.
          type:
            - boolean
            - 'null'
        policy_id:
          description: The term's policy id; any member's id opens the renewal.
          type: string
        policy_number:
          type: string
        state:
          description: >-
            The term's renewal outcome when the run planned; the row's own term
            is read live.
          type: string
      required:
        - policy_id
        - line
        - expiration_date
        - open
      type: object
    BookRenewalAMSStep:
      additionalProperties: false
      properties:
        action:
          type: string
        occurred_on:
          type: string
        scope:
          enum:
            - policy
            - account
          type: string
        source:
          enum:
            - activity
            - suspense
          type: string
        step:
          type: string
      required:
        - action
        - step
        - scope
        - source
        - occurred_on
      type: object
    BookRenewalOpenStep:
      additionalProperties: false
      properties:
        action:
          type: string
        assigned_to_name:
          type:
            - string
            - 'null'
        due_on:
          type:
            - string
            - 'null'
        step:
          type: string
      required:
        - action
        - step
        - due_on
        - assigned_to_name
      type: object
    BookRenewalWorkbenchStep:
      additionalProperties: false
      properties:
        at:
          format: date-time
          type:
            - string
            - 'null'
        reason:
          type:
            - string
            - 'null'
        stage:
          type: string
      required:
        - stage
        - reason
        - at
      type: object
    EngineRenewalWorkspaceItem:
      additionalProperties: false
      properties:
        action_kind:
          description: >-
            The one thing the item opens. recommend_markets and compare_quotes
            open the Assistant on the account's market recommendation and quote
            comparison asks.
          enum:
            - download
            - open_outlook
            - record_choice
            - assistant_draft
            - open_ams
            - mark_done
            - mark_lost
            - recommend_markets
            - compare_quotes
          type: string
        action_label:
          type:
            - string
            - 'null'
        applies:
          description: >-
            False for a remarket item until the recorded choice is remarket, and
            for a no-offer item once an offer is in.
          type: boolean
        closed_by:
          description: >-
            The receipts that close the item; empty when no recorded receipt
            closes it.
          items:
            $ref: '#/components/schemas/EngineRenewalWorkspaceReceipt'
          type:
            - array
            - 'null'
        done:
          description: Whether any receipt in closed_by closes the item.
          type: boolean
        done_by:
          description: >-
            The person who recorded the receipt; null for a carrier download or
            an unnamed principal.
          type:
            - string
            - 'null'
        done_on:
          description: >-
            The day the earliest dated receipt in closed_by was recorded,
            YYYY-MM-DD; for an Assistant record (placement_run,
            quote_comparison), the day of the account's latest one, which the
            Placement tab shows. Null without one, as for a source receipt,
            which records no day. Never inferred from time.
          type:
            - string
            - 'null'
        done_when:
          type: string
        id:
          description: >-
            Stable across config versions:
            &lt;path&gt;.&lt;stage&gt;.&lt;item&gt;, or &lt;path&gt;.mark_lost.
          type: string
        label:
          type: string
        stage_id:
          description: The stage the item belongs to; null for the path's Mark lost item.
          type:
            - string
            - 'null'
      required:
        - id
        - stage_id
        - label
        - action_kind
        - action_label
        - done_when
        - done
        - done_on
        - done_by
        - applies
        - closed_by
      type: object
    EngineRenewalWorkspaceNext:
      additionalProperties: false
      properties:
        due_on:
          description: >-
            The stage's due day, YYYY-MM-DD; null when the stage states none or
            for record_the_outcome.
          type:
            - string
            - 'null'
        key:
          description: >-
            The checklist item's id, or record_the_outcome once the term expired
            with no settled outcome.
          type: string
        label:
          description: >-
            The next step's words: the current stage's first open item, or the
            org's record_the_outcome words.
          type: string
        stage_id:
          description: The stage the item belongs to; null for record_the_outcome.
          type:
            - string
            - 'null'
      required:
        - key
        - label
        - stage_id
        - due_on
      type: object
    EngineRenewalWorkspaceOffer:
      additionalProperties: false
      properties:
        carrier:
          type:
            - string
            - 'null'
        change_amount:
          description: Offer premium minus the expiring premium; null unless both exist.
          format: double
          type:
            - number
            - 'null'
        change_percent:
          description: >-
            The change over the expiring premium, in percent to one decimal;
            null unless both exist and the expiring premium is not zero.
          format: double
          type:
            - number
            - 'null'
        expected_by:
          description: >-
            The day the checklist asks the carrier when no offer is in,
            YYYY-MM-DD.
          type: string
        over_threshold:
          description: >-
            Whether the change is over the config's strategy line (15 percent,
            SOP step 6); null without a change percent.
          type:
            - boolean
            - 'null'
        premium:
          description: >-
            The next term's premium as AMS 360 holds it; null when no offer is
            in or it carries none.
          format: double
          type:
            - number
            - 'null'
      required:
        - premium
        - carrier
        - change_amount
        - change_percent
        - over_threshold
        - expected_by
      type: object
    EngineRenewalWorkspacePath:
      additionalProperties: false
      properties:
        changed_at:
          description: >-
            The day a person set the path, YYYY-MM-DD; null when the rules or
            the default set it.
          type:
            - string
            - 'null'
        changed_by:
          description: >-
            The person who recorded the path, or whose recorded remarket choice
            moved the renewal to it; null when the rules or the default set it,
            or no name is on record.
          type:
            - string
            - 'null'
        id:
          description: The path id the plan Engine's config names.
          type: string
        label:
          type: string
        source:
          enum:
            - rule
            - person
            - default
          type: string
      required:
        - id
        - label
        - source
        - changed_by
        - changed_at
      type: object
    EngineRenewalWorkspacePathOption:
      additionalProperties: false
      properties:
        id:
          description: >-
            The path id the plan Engine's config names; the value
            renewal.path_record records.
          type: string
        label:
          type: string
        rule:
          description: >-
            The path's rule in plain words, e.g. Account premium under $10,000,
            direct bill; null when the config names no path rule.
          type:
            - string
            - 'null'
      required:
        - id
        - label
        - rule
      type: object
    EngineRenewalWorkspaceStage:
      additionalProperties: false
      properties:
        done_on:
          description: >-
            The latest day a receipt recorded for the stage's items, YYYY-MM-DD;
            null when the stage is not done or no receipt records a day. A done
            stage may carry no day.
          type:
            - string
            - 'null'
        due_on:
          description: >-
            The stage's due day from the config's days before expiration,
            YYYY-MM-DD; null when no source states one.
          type:
            - string
            - 'null'
        id:
          type: string
        label:
          type: string
        state:
          enum:
            - done
            - current
            - upcoming
          type: string
      required:
        - id
        - label
        - due_on
        - done_on
        - state
      type: object
    Column:
      additionalProperties: false
      properties:
        description:
          description: What the field holds, from the API contract.
          type: string
        key:
          description: >-
            The served field, dotted for a field inside an object:
            producer.name.
          type: string
        label:
          type: string
        sortable:
          description: The list's sort parameter takes this key.
          type: boolean
        type:
          enum:
            - text
            - number
            - date
            - boolean
            - list
            - object
          type: string
      required:
        - key
        - label
        - type
        - sortable
      type: object
    Option:
      additionalProperties: false
      properties:
        count:
          format: int64
          type: integer
        label:
          type: string
        parent:
          description: >-
            The value this option sits under, where the filter groups its
            values: an office's reporting market. Absent when it has none.
          type: string
        uncounted:
          description: >-
            True when the read did not count this option; count is then 0 and
            states nothing. Absent when counted.
          type: boolean
        value:
          type: string
      required:
        - value
        - label
        - count
      type: object
    RenewalScopeTerm:
      additionalProperties: false
      properties:
        carrier:
          type:
            - string
            - 'null'
        line:
          description: The term's line of business as AMS 360 holds it.
          type:
            - string
            - 'null'
        policy_id:
          description: The term's policy id (its instance key).
          type: string
        policy_number:
          type:
            - string
            - 'null'
      required:
        - policy_id
        - line
        - policy_number
        - carrier
      type: object
    EngineRenewalWorkspaceReceipt:
      additionalProperties: false
      properties:
        field:
          enum:
            - renewal_stage
            - renewal_status
            - renewal_outcome
          type: string
        kind:
          description: >-
            ledger: a status.set of field to one of values on the policy;
            choice: the work choice recorded on the policy
            (renewal.strategy_record); carrier_offer: the carrier offer
            downloaded into AMS 360; placement_run: a market recommendation
            completed on the account during the expiring term; quote_comparison:
            a quote comparison saved on the account during the expiring term.
            The last two date the item and leave the stage timeline as the
            policy's own receipts set it.
          enum:
            - ledger
            - source
            - choice
            - carrier_offer
            - placement_run
            - quote_comparison
          type: string
        values:
          items:
            type: string
          type:
            - array
            - 'null'
      required:
        - kind
      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.