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

# Decide a certificate draft

> Decides a certificate of insurance for a saved certificate or an unsaved holder: status issuable, blocked or incomplete with a reason per holder requirement (met, action, gap, unknown) and per input the draft could not source, the draft the studio renders, the policies a new certificate starts with, and where the draft lands on the ACORD 25. Every coverage fact is read from Records under the caller's seat; nothing is stored.



## OpenAPI

````yaml /openapi.generated.json post /documents/certificates/drafts
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:
  /documents/certificates/drafts:
    post:
      tags:
        - Documents
      summary: Decide a certificate draft
      description: >-
        Decides a certificate of insurance for a saved certificate or an unsaved
        holder: status issuable, blocked or incomplete with a reason per holder
        requirement (met, action, gap, unknown) and per input the draft could
        not source, the draft the studio renders, the policies a new certificate
        starts with, and where the draft lands on the ACORD 25. Every coverage
        fact is read from Records under the caller's seat; nothing is stored.
      operationId: documentsDecideCertificateDraft
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DocumentCertificateDraftRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CertificateDraftJSON'
          description: OK
        '400':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
          description: Bad Request
        '401':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
          description: Unauthorized
        '403':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
          description: Forbidden
        '404':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
          description: Not Found
        '409':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
          description: Conflict
        '422':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
          description: Unprocessable Entity
        '500':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
          description: Internal Server Error
        '503':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
          description: Service Unavailable
      security:
        - bearer: []
components:
  schemas:
    DocumentCertificateDraftRequest:
      additionalProperties: false
      properties:
        account_id:
          description: >-
            The account the certificate is for, by its Records id or account
            key.
          type: string
        as_of:
          description: >-
            The date a draft or preview is decided for, YYYY-MM-DD. Default:
            today (UTC). Refused on an issued copy, whose date is always the
            server's today.
          type: string
        certificate_id:
          description: A saved certificate on the account.
          type: string
        holder:
          $ref: '#/components/schemas/DocumentCertificateHolder'
          description: >-
            Who the certificate is addressed to. Replaces a saved certificate's
            holder for this answer; a draft with no holder name names it as
            missing.
        policy_ids:
          description: >-
            The policies chosen to print, by Records id. Absent: the saved
            choice, or every policy in force.
          items:
            type: string
          maxItems: 500
          type: array
        requirements:
          $ref: '#/components/schemas/DocumentCertificateRequirements'
          description: >-
            What the holder demands. Absent on an unsaved draft: evidence of
            coverage only.
      required:
        - account_id
      type: object
    CertificateDraftJSON:
      additionalProperties: false
      properties:
        data:
          $ref: '#/components/schemas/DocumentCertificateDraftAnswer'
      required:
        - data
      type: object
    Problem:
      additionalProperties: false
      properties:
        code:
          description: >-
            The stable machine-readable error code, UPPER_SNAKE_CASE, one
            meaning forever.
          enum:
            - INVALID_ARGUMENT
            - UNAUTHENTICATED
            - CAPABILITY_DENIED
            - NOT_VISIBLE_OR_ABSENT
            - IDEMPOTENT_REQUEST_IN_FLIGHT
            - ETAG_MISMATCH
            - VALIDATION_FAILED
            - IDEMPOTENCY_KEY_PAYLOAD_MISMATCH
            - SOURCE_UNAVAILABLE
            - RATE_LIMITED
            - INTERNAL
            - DEADLINE_EXCEEDED
            - UNAVAILABLE
            - CLIENT_CLOSED_REQUEST
          type: string
        detail:
          description: A human-readable sentence about this occurrence.
          type: string
        details:
          description: >-
            Structured detail for the reason (for example which owner selection
            rule failed). A Records refusal names its reason code in
            details.reason; a projection refusal (SOURCE_UNAVAILABLE) also names
            its closed subtype in details.subtype (admission_pending, no_build,
            binding_changed, agency_admission_unbounded,
            authority_coordinates_changed, guard_absent, derivation_unaccepted),
            and only admission_pending, which clears by itself, also carries
            details.retry_after_ms, equal to retry_after_ms and the Retry-After
            header.
        errors:
          description: Each invalid parameter, for INVALID_ARGUMENT.
          items:
            $ref: '#/components/schemas/ProblemError'
          type:
            - array
            - 'null'
        instance:
          description: The request path this occurrence answered.
          type: string
        reason:
          description: >-
            The finer cause within the code, UPPER_SNAKE_CASE (for example
            SCOPE_UNAVAILABLE under CAPABILITY_DENIED).
          type: string
        request_id:
          description: The request id, as echoed in the Nexio-Request-Id response header.
          type: string
        retry_after_ms:
          description: When a retry may succeed, the wait before it.
          format: int64
          type: integer
        status:
          description: The HTTP status code.
          format: int64
          type: integer
        title:
          description: The HTTP status phrase.
          type: string
        type:
          description: A URI naming the problem type, derived from the code.
          type: string
      required:
        - type
        - title
        - status
        - code
        - request_id
      type: object
    DocumentCertificateHolder:
      additionalProperties: false
      properties:
        address_line1:
          type: string
        address_line2:
          type: string
        city:
          type: string
        name:
          description: The holder's legal name.
          type: string
        operations:
          description: The description of operations the certificate prints.
          type: string
        postal_code:
          type: string
        reference:
          description: The job, project or reference number the holder quoted.
          type: string
        state:
          type: string
      required:
        - name
      type: object
    DocumentCertificateRequirements:
      additionalProperties: false
      properties:
        abuse_molestation:
          type: boolean
        additional_insured:
          type: boolean
        additional_insured_note:
          type: string
        holder:
          type: string
        notice_of_cancellation_days:
          format: int64
          type: integer
        primary_non_contributory:
          type: boolean
        wc_waiver_of_subrogation:
          type: boolean
      required:
        - holder
        - additional_insured
        - primary_non_contributory
        - abuse_molestation
        - wc_waiver_of_subrogation
      type: object
    DocumentCertificateDraftAnswer:
      additionalProperties: false
      properties:
        default_policy_ids:
          description: >-
            What a new certificate on this account starts with: one in-force
            policy per ACORD 25 section.
          items:
            type: string
          type:
            - array
            - 'null'
        draft:
          $ref: '#/components/schemas/DocumentCertificateDraft'
        placement:
          $ref: '#/components/schemas/DocumentCertificatePlacement'
        status:
          $ref: '#/components/schemas/DocumentCertificateDraftStatus'
      required:
        - status
        - draft
        - default_policy_ids
        - placement
      type: object
    ProblemError:
      additionalProperties: false
      properties:
        location:
          description: Where the input was, for example query.limit.
          type: string
        message:
          type: string
        value: {}
      required:
        - message
      type: object
    DocumentCertificateDraft:
      additionalProperties: false
      properties:
        advisories:
          items:
            type: string
          type:
            - array
            - 'null'
        blocks:
          description: >-
            Verified reasons the certificate cannot issue as requested; each is
            a carrier ask.
          items:
            type: string
          type:
            - array
            - 'null'
        check:
          $ref: '#/components/schemas/DocumentCertificateCheck'
        description_of_operations:
          type: string
        excluded:
          items:
            $ref: '#/components/schemas/DocumentCertificateDraftExcluded'
          type:
            - array
            - 'null'
        holder:
          $ref: '#/components/schemas/DocumentCertificateHolder'
        insured_name:
          type:
            - string
            - 'null'
        issues:
          items:
            $ref: '#/components/schemas/DocumentCertificateDraftIssue'
          type:
            - array
            - 'null'
        lines:
          items:
            $ref: '#/components/schemas/DocumentCertificateDraftLine'
          type:
            - array
            - 'null'
        missing:
          description: Inputs needed before the certificate can finish; not carrier asks.
          items:
            type: string
          type:
            - array
            - 'null'
        status:
          enum:
            - issuable
            - blocked
            - incomplete
          type: string
      required:
        - holder
        - insured_name
        - lines
        - excluded
        - description_of_operations
        - check
        - status
        - blocks
        - missing
        - issues
        - advisories
      type: object
    DocumentCertificatePlacement:
      additionalProperties: false
      properties:
        authorized_representative:
          type: string
        automobile:
          $ref: '#/components/schemas/DocumentCertificateAutomobile'
        certificate_date:
          type: string
        certificate_holder:
          $ref: '#/components/schemas/DocumentCertificatePrintedParty'
        description_of_operations:
          items:
            type: string
          type:
            - array
            - 'null'
        general_liability:
          $ref: '#/components/schemas/DocumentCertificateGeneralLiability'
        insured:
          $ref: '#/components/schemas/DocumentCertificatePrintedParty'
        insurers:
          items:
            $ref: '#/components/schemas/DocumentCertificateInsurer'
          type:
            - array
            - 'null'
        other:
          items:
            $ref: '#/components/schemas/DocumentCertificateOtherRow'
          type:
            - array
            - 'null'
        producer:
          $ref: '#/components/schemas/DocumentCertificatePrintedProducer'
        revision_note:
          type: string
        umbrella:
          $ref: '#/components/schemas/DocumentCertificateUmbrella'
        workers_comp:
          $ref: '#/components/schemas/DocumentCertificateWorkersComp'
      required:
        - certificate_date
        - producer
        - insured
        - insurers
        - description_of_operations
        - certificate_holder
        - authorized_representative
      type: object
    DocumentCertificateDraftStatus:
      additionalProperties: false
      properties:
        as_of:
          description: The issue date the draft was decided for, YYYY-MM-DD.
          type: string
        basis:
          $ref: '#/components/schemas/DocumentCertificateDraftBasis'
        reasons:
          items:
            $ref: '#/components/schemas/DocumentCertificateDraftReason'
          type:
            - array
            - 'null'
        value:
          enum:
            - issuable
            - blocked
            - incomplete
          type: string
      required:
        - value
        - reasons
        - basis
        - as_of
      type: object
    DocumentCertificateCheck:
      additionalProperties: false
      properties:
        blockers:
          items:
            type: string
          type:
            - array
            - 'null'
        findings:
          items:
            $ref: '#/components/schemas/DocumentCertificateFinding'
          type:
            - array
            - 'null'
        holder:
          type: string
        status:
          enum:
            - ready
            - blocked
            - indeterminate
          type: string
        unresolved:
          items:
            type: string
          type:
            - array
            - 'null'
      required:
        - holder
        - findings
        - status
        - blockers
        - unresolved
      type: object
    DocumentCertificateDraftExcluded:
      additionalProperties: false
      properties:
        carrier_name:
          type:
            - string
            - 'null'
        line_label:
          type: string
        policy_id:
          type: string
        policy_number:
          type:
            - string
            - 'null'
      required:
        - policy_id
        - line_label
        - policy_number
        - carrier_name
      type: object
    DocumentCertificateDraftIssue:
      additionalProperties: false
      properties:
        detail:
          type: string
        key:
          type: string
        label:
          type: string
        section_id:
          enum:
            - holder
            - description-of-operations
            - holder-requirements
            - coverages
            - findings
          type: string
      required:
        - key
        - section_id
        - label
        - detail
      type: object
    DocumentCertificateDraftLine:
      additionalProperties: false
      properties:
        additional_insured:
          enum:
            - granted
            - not_granted
            - unknown
          type: string
        attributes:
          additionalProperties:
            type: string
          description: >-
            The ACORD 25 tick boxes the coverage answer controls, a person's
            confirmed value or else AMS 360's, by attribute code.
          type: object
        carrier_name:
          type:
            - string
            - 'null'
        deductibles:
          items:
            $ref: '#/components/schemas/DocumentCertificateAmount'
          type:
            - array
            - 'null'
        effective_date:
          type:
            - string
            - 'null'
        expiration_date:
          type:
            - string
            - 'null'
        limits:
          items:
            $ref: '#/components/schemas/DocumentCertificateAmount'
          type:
            - array
            - 'null'
        limits_known:
          type: boolean
        limits_note:
          type:
            - string
            - 'null'
        limits_note_code:
          description: Why the limits note is there; null exactly when limits_note is.
          enum:
            - unread
            - partial
            - ams_none
            - not_recorded
            - conflict
          type:
            - string
            - 'null'
        limits_source:
          type:
            - string
            - 'null'
        line_label:
          type: string
        policy_id:
          type: string
        policy_number:
          type:
            - string
            - 'null'
        sources:
          items:
            $ref: '#/components/schemas/DocumentCertificateSourceRef'
          type:
            - array
            - 'null'
        sublimits:
          items:
            $ref: '#/components/schemas/DocumentCertificateAmount'
          type:
            - array
            - 'null'
        waiver_of_subrogation:
          enum:
            - granted
            - not_granted
            - unknown
          type: string
      required:
        - policy_id
        - line_label
        - policy_number
        - carrier_name
        - effective_date
        - expiration_date
        - additional_insured
        - waiver_of_subrogation
        - limits
        - limits_known
        - limits_source
        - limits_note
        - limits_note_code
        - sublimits
        - sources
      type: object
    DocumentCertificateAutomobile:
      additionalProperties: false
      properties:
        additional_insured:
          type: boolean
        bodily_injury_per_accident:
          type: string
        bodily_injury_per_person:
          type: string
        combined_single_limit:
          type: string
        effective_date:
          type: string
        expiration_date:
          type: string
        insurer_letter:
          type: string
        policy_number:
          type: string
        property_damage:
          type: string
        scope:
          type: string
        subrogation_waived:
          type: boolean
      type: object
    DocumentCertificatePrintedParty:
      additionalProperties: false
      properties:
        address:
          $ref: '#/components/schemas/DocumentCertificatePrintedAddress'
        name:
          type: string
      required:
        - name
        - address
      type: object
    DocumentCertificateGeneralLiability:
      additionalProperties: false
      properties:
        additional_insured:
          type: boolean
        aggregate_applies_per:
          enum:
            - POLICY
            - PROJECT
            - LOC
          type: string
        damage_to_rented:
          type: string
        each_occurrence:
          type: string
        effective_date:
          type: string
        expiration_date:
          type: string
        form:
          enum:
            - OCCUR
            - CLAIMS-MADE
          type: string
        general_aggregate:
          type: string
        insurer_letter:
          type: string
        med_exp:
          type: string
        personal_adv_injury:
          type: string
        policy_number:
          type: string
        products_comp_op_agg:
          type: string
        subrogation_waived:
          type: boolean
        type_suffix:
          type: string
      type: object
    DocumentCertificateInsurer:
      additionalProperties: false
      properties:
        letter:
          type: string
        naic:
          type: string
        name:
          type: string
      required:
        - letter
        - name
        - naic
      type: object
    DocumentCertificateOtherRow:
      additionalProperties: false
      properties:
        additional_insured:
          type: boolean
        effective_date:
          type: string
        expiration_date:
          type: string
        insurer_letter:
          type: string
        limits:
          items:
            $ref: '#/components/schemas/DocumentCertificateLabeledValue'
          type:
            - array
            - 'null'
        policy_number:
          type: string
        subrogation_waived:
          type: boolean
        type_of_insurance:
          type: string
      required:
        - type_of_insurance
        - limits
      type: object
    DocumentCertificatePrintedProducer:
      additionalProperties: false
      properties:
        address:
          $ref: '#/components/schemas/DocumentCertificatePrintedAddress'
        contact_name:
          type: string
        email:
          type: string
        fax:
          type: string
        name:
          type: string
        phone:
          type: string
      required:
        - name
        - address
      type: object
    DocumentCertificateUmbrella:
      additionalProperties: false
      properties:
        additional_insured:
          type: boolean
        aggregate:
          type: string
        deductible_or_retention:
          type: string
        each_occurrence:
          type: string
        effective_date:
          type: string
        expiration_date:
          type: string
        form:
          enum:
            - OCCUR
            - CLAIMS-MADE
          type: string
        insurer_letter:
          type: string
        is_excess:
          type: boolean
        policy_number:
          type: string
        subrogation_waived:
          type: boolean
      type: object
    DocumentCertificateWorkersComp:
      additionalProperties: false
      properties:
        additional_insured:
          type: boolean
        effective_date:
          type: string
        el_disease_ea_employee:
          type: string
        el_disease_policy_limit:
          type: string
        el_each_accident:
          type: string
        expiration_date:
          type: string
        insurer_letter:
          type: string
        per_statute:
          type: boolean
        policy_number:
          type: string
        subrogation_waived:
          type: boolean
      type: object
    DocumentCertificateDraftBasis:
      additionalProperties: false
      properties:
        judgment:
          enum:
            - certificate_draft
          type: string
        policies:
          items:
            $ref: '#/components/schemas/DocumentCertificateBasisPolicy'
          type:
            - array
            - 'null'
      required:
        - judgment
        - policies
      type: object
    DocumentCertificateDraftReason:
      additionalProperties: false
      properties:
        code:
          type: string
        kind:
          enum:
            - requirement
            - input
          type: string
        requirement:
          type: string
        state:
          enum:
            - met
            - action
            - gap
            - unknown
          type: string
        text:
          type: string
      required:
        - code
        - kind
        - state
        - text
      type: object
    DocumentCertificateFinding:
      additionalProperties: false
      properties:
        finding:
          type: string
        key:
          type: string
        requirement:
          type: string
        sources:
          items:
            $ref: '#/components/schemas/DocumentCertificateSourceRef'
          type:
            - array
            - 'null'
        status:
          enum:
            - met
            - action
            - gap
            - unknown
          type: string
      required:
        - key
        - requirement
        - status
        - finding
        - sources
      type: object
    DocumentCertificateAmount:
      additionalProperties: false
      properties:
        label:
          type: string
        part:
          type: string
        slot:
          description: The ACORD 25 box the coverage answer served; absent for a free row.
          type: string
        source:
          $ref: '#/components/schemas/DocumentCertificateValueSource'
        value:
          type: string
      required:
        - label
        - value
      type: object
    DocumentCertificateSourceRef:
      additionalProperties: false
      properties:
        id:
          type: string
        kind:
          type: string
        label:
          type: string
        ref:
          type: string
      required:
        - kind
        - id
        - label
      type: object
    DocumentCertificatePrintedAddress:
      additionalProperties: false
      properties:
        city_state_zip:
          type: string
        line1:
          type: string
      required:
        - line1
        - city_state_zip
      type: object
    DocumentCertificateLabeledValue:
      additionalProperties: false
      properties:
        label:
          type: string
        value:
          type: string
      required:
        - label
        - value
      type: object
    DocumentCertificateBasisPolicy:
      additionalProperties: false
      properties:
        policy_id:
          type: string
        record_revision:
          description: >-
            The coverage record revision the values printed from; null when no
            coverage answer was served.
          format: int64
          type:
            - integer
            - 'null'
      required:
        - policy_id
        - record_revision
      type: object
    DocumentCertificateValueSource:
      additionalProperties: false
      properties:
        acted_by:
          type: string
        ams_value:
          type: string
        confirmed_at:
          type: string
        confirmed_by:
          type: string
        conflict:
          enum:
            - entered_differs
            - ams_changed
          type: string
        controlling:
          enum:
            - ams
            - record
            - none
          type: string
        document:
          $ref: '#/components/schemas/DocumentCertificateValueDocument'
        entered_at:
          type: string
        entered_by:
          type: string
        matches_ams:
          type: boolean
        record_value:
          type: string
        rule:
          format: int64
          type: integer
        source:
          enum:
            - ams
            - manual
            - extraction
            - carry_forward
          type: string
        state:
          enum:
            - confirmed
            - unverified
          type: string
      required:
        - controlling
        - rule
        - source
        - state
      type: object
    DocumentCertificateValueDocument:
      additionalProperties: false
      properties:
        document_id:
          type: string
        page:
          format: int64
          type: integer
        quote:
          type: string
      required:
        - document_id
        - page
        - quote
      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.