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

# Get Quote Intended Layer

> **Quote door.** A quote's intended layer is the layer of the
[pricing stack](/api-reference/invoicing/quote-invoicing#intended-layer)
the quote is meant to bind at: `base`, `pricing`, `billing` or
`invoicing`. This reads it and changes nothing. A quote with no layer
chosen reads `null`.

The intended layer is stored on the quote apart from its fields, so
[Get Entity](/api-reference/entities/get-entity) does not return it.
Every quote starts with none: it is never copied from another quote, so
a quote saved from a generated draft or copied in the app reads `null`
until someone chooses.

Binds do not check the intended layer yet:
[Bind Quote](/api-reference/field-model-policy-transactions/bind-quote),
[Check Bind Conditions](/api-reference/field-model-policy-validation/check-bind-conditions)
and Complete behave the same whatever it says.

Every quote type has one: new business, renewal, endorsement,
cancellation and reinstatement. A bound or cancelled quote can still be
read. With policy invoicing disabled, this returns
`403 finv2-policy-invoicing-disabled`.

**Required permission:** `quote.view`




## OpenAPI

````yaml /openapi/generated-external-api.yaml get /api/v1/companies/{companyId}/quotes/{quoteId}/intended-layer
openapi: 3.0.3
info:
  title: AI Insurance External API
  description: External API for AI Insurance platform
  version: 1.0.0
  contact:
    email: support@aiinsurance.io
servers:
  - url: https://go.aiinsurance.io
    description: Production
security:
  - ApiKeyAuth: []
paths:
  /api/v1/companies/{companyId}/quotes/{quoteId}/intended-layer:
    get:
      tags:
        - Policy Invoicing
      summary: Get Quote Intended Layer
      description: >
        **Quote door.** A quote's intended layer is the layer of the

        [pricing stack](/api-reference/invoicing/quote-invoicing#intended-layer)

        the quote is meant to bind at: `base`, `pricing`, `billing` or

        `invoicing`. This reads it and changes nothing. A quote with no layer

        chosen reads `null`.


        The intended layer is stored on the quote apart from its fields, so

        [Get Entity](/api-reference/entities/get-entity) does not return it.

        Every quote starts with none: it is never copied from another quote, so

        a quote saved from a generated draft or copied in the app reads `null`

        until someone chooses.


        Binds do not check the intended layer yet:

        [Bind Quote](/api-reference/field-model-policy-transactions/bind-quote),

        [Check Bind
        Conditions](/api-reference/field-model-policy-validation/check-bind-conditions)

        and Complete behave the same whatever it says.


        Every quote type has one: new business, renewal, endorsement,

        cancellation and reinstatement. A bound or cancelled quote can still be

        read. With policy invoicing disabled, this returns

        `403 finv2-policy-invoicing-disabled`.


        **Required permission:** `quote.view`
      operationId: getQuoteIntendedLayer
      parameters:
        - $ref: '#/components/parameters/companyId'
        - $ref: '#/components/parameters/quoteIdPath'
      responses:
        '200':
          description: The quote's intended layer, or `null` while none is chosen.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/QuoteIntendedLayer'
              examples:
                noneChosen:
                  summary: No layer chosen yet
                  value:
                    quoteId: 550e8400-e29b-41d4-a716-446655440002
                    intendedLayer: null
                billingLayer:
                  summary: Meant to bind with pricing and billing, and no invoices
                  value:
                    quoteId: 550e8400-e29b-41d4-a716-446655440002
                    intendedLayer: billing
        '400':
          description: The quote id is not a uuid.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                invalidQuoteId:
                  summary: The quote id is not a uuid
                  value:
                    error:
                      code: VALIDATION_ERROR
                      message: 'quoteId: Invalid GUID'
                      userMessages:
                        - Invalid GUID
                      details:
                        - field: quoteId
                          message: Invalid GUID
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/ForbiddenQuoteInvoicing'
        '404':
          description: No quote with the given id exists for this company.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                quoteNotFound:
                  summary: Quote not found
                  value:
                    error:
                      code: NotFoundError
                      message: Quote not found
                      userMessages:
                        - Quote not found
        '500':
          $ref: '#/components/responses/InternalServerError'
components:
  parameters:
    companyId:
      name: companyId
      in: path
      required: true
      schema:
        type: string
        format: uuid
      description: Company identifier
    quoteIdPath:
      name: quoteId
      in: path
      required: true
      schema:
        type: string
        format: uuid
      description: Quote identifier
  schemas:
    QuoteIntendedLayer:
      type: object
      additionalProperties: false
      description: >-
        A quote's intended layer: the layer of the pricing stack the quote is
        meant to bind at, or `null` while none is chosen. Get Quote Intended
        Layer and Set Quote Intended Layer both return this.
      required:
        - quoteId
        - intendedLayer
      properties:
        quoteId:
          type: string
          format: uuid
        intendedLayer:
          description: >-
            The layer the quote is meant to bind at, or `null` while none is
            chosen.
          anyOf:
            - $ref: '#/components/schemas/PricingStackLayer'
            - type: string
              nullable: true
              enum:
                - null
    ErrorResponse:
      type: object
      description: Standard error response for all external API endpoints
      required:
        - error
      properties:
        error:
          type: object
          required:
            - code
            - message
          properties:
            code:
              type: string
              description: Machine-readable error code
              example: VALIDATION_ERROR
            message:
              type: string
              description: Human-readable error message
              example: 'submissionId: Required field is missing'
            userMessages:
              type: array
              description: >-
                Clean, verbatim-displayable messages — one entry per failure,
                free of error-code tags, field paths, and internal noise.
                Suitable for showing to end users as-is.
              items:
                type: string
              example:
                - Exposures of type 'company' require an address
            details:
              type: array
              description: Additional details for validation errors (field-level errors)
              items:
                type: object
                properties:
                  field:
                    type: string
                    description: The field that caused the error
                    example: submissionId
                  code:
                    type: string
                    description: Stable problem code for this individual validation failure
                    example: BLANK_LIST_ELEMENT
                  reason:
                    type: string
                    description: Stable reason the value violates its canonical contract
                    example: blank-list-element
                  expected:
                    type: string
                    description: The expected canonical value contract
                    example: nonblank trimmed string
                  message:
                    type: string
                    description: Description of the field error
                    example: Required field is missing
    PricingStackLayer:
      type: string
      enum:
        - base
        - pricing
        - billing
        - invoicing
      description: >-
        A layer of the pricing stack, bottom-up. A layer is read from three
        things: the pricing (`fullTermPricingInfo`), the billing
        (`fullTermBillingInfo`) and the active policy invoices. `base` has no
        pricing, billing or invoices. `pricing` has pricing only. `billing` has
        pricing and billing, and no active invoices; a `fullTermBillingInfo`
        with no lines counts as billing. `invoicing` has pricing, billing and
        active invoices that add up to the billing. Billing that owes nothing
        needs no invoices, so a zero bill with no invoices sits at both
        `billing` and `invoicing`.
  responses:
    Unauthorized:
      description: Unauthorized - Invalid or missing API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          examples:
            missingApiKey:
              summary: Missing API key
              value:
                error:
                  code: AuthenticationError
                  message: API key authentication required
                  userMessages:
                    - API key authentication required
            invalidApiKey:
              summary: >-
                Invalid API key (e.g. unknown key, or a Bearer token used
                instead of an API key)
              value:
                error:
                  code: AuthenticationError
                  message: Invalid API key
                  userMessages:
                    - Invalid API key
    ForbiddenQuoteInvoicing:
      description: >
        Forbidden. The API key lacks the endpoint's permission, or the company
        does

        not invoice (`finv2-policy-invoicing-disabled`): its policy invoicing is
        not

        turned on, or it is on while its Quote billing calculation is still

        `NO_BILLING()`. Support turns invoicing on; replacing `NO_BILLING()` is
        a

        configuration change ([Quote billing
        calculations](/api-reference/configuration/overview#quote-billing-calculations)).

        Nothing is saved.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          examples:
            invoicingDisabled:
              summary: Policy invoicing is disabled
              value:
                error:
                  code: finv2-policy-invoicing-disabled
                  message: >-
                    Policy invoicing is not turned on for your company yet, so
                    policy invoices cannot be created or changed. Contact
                    support to enable it.
                  userMessages:
                    - >-
                      Policy invoicing is not turned on for your company yet, so
                      policy invoices cannot be created or changed. Contact
                      support to enable it.
            insufficientPermissions:
              summary: Insufficient permissions
              value:
                error:
                  code: AuthorizationError
                  message: User is not authorized to perform the requested action
                  userMessages:
                    - User is not authorized to perform the requested action
            companyMismatch:
              summary: A valid API key naming another company in the URL
              value:
                error:
                  code: AuthorizationError
                  message: API key is not scoped to the requested company
                  userMessages:
                    - API key is not scoped to the requested company
    InternalServerError:
      description: Internal Server Error - Unexpected error occurred
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          examples:
            internalError:
              summary: Unexpected server error
              value:
                error:
                  code: UncaughtActionError
                  message: Uncaught error occurred in <actionName>
                  userMessages:
                    - An unexpected error occurred. Please try again later.
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
      description: >-
        API key authentication. Send your raw API key as the `Authorization`
        header value with NO scheme prefix — `Authorization: YOUR-API-KEY`. Do
        NOT prefix it with `Bearer ` or `ApiKey `, and do not use an `X-API-Key`
        header; those are not accepted.

````

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