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

# Read one renewal call

> A scoped key needs actions:read beside book:read: every plan row is computed from the action ledger (workflow stage and retention outlook), so a key without it is refused with 403 insufficient_capability.



## OpenAPI

````yaml /openapi.generated.json get /engines/{engineSlug}/renewal-plans/{planID}
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/{planID}:
    get:
      tags:
        - Engines
      summary: Read one renewal call
      description: >-
        A scoped key needs actions:read beside book:read: every plan row is
        computed from the action ledger (workflow stage and retention outlook),
        so a key without it is refused with 403 insufficient_capability.
      operationId: getEngineRenewalPlan
      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
        - in: path
          name: planID
          required: true
          schema:
            type: string
        - explode: false
          in: query
          name: connection_id
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EngineRenewalPlanDetail'
          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:
    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
    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
    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
    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
    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.