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

# Duplicate quote

> Create a draft duplicate of an existing quote.



## OpenAPI

````yaml post /v1/quotes/{id}/duplicate
openapi: 3.1.0
info:
  title: Hyperline API
  version: 0.0.0
servers:
  - url: https://api.hyperline.co
  - url: https://sandbox.api.hyperline.co
security: []
paths:
  /v1/quotes/{id}/duplicate:
    post:
      tags:
        - Quoting
      summary: Duplicate quote
      description: Create a draft duplicate of an existing quote.
      operationId: duplicateQuote
      parameters:
        - schema:
            type: string
          required: true
          name: id
          in: path
      responses:
        '201':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Quote'
        '404':
          description: Quote not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                required:
                  - message
      security:
        - bearer: []
components:
  schemas:
    Quote:
      anyOf:
        - $ref: '#/components/schemas/QuoteDraft'
        - $ref: '#/components/schemas/QuoteAwaitingApproval'
        - $ref: '#/components/schemas/QuoteReadyForSignature'
        - $ref: '#/components/schemas/QuoteSigned'
        - $ref: '#/components/schemas/QuoteVoided'
    QuoteDraft:
      type: object
      properties:
        id:
          type: string
          description: Quote ID.
          example: quo_hXQCd5y8P3GYXa
        type:
          type:
            - string
            - 'null'
          enum:
            - subscription
            - subscription_update
            - one_off
            - mixed
          description: >

            Quote type.


            - `subscription`: The quote will create one or more subscriptions.

            - `subscription_update`: The quote will update one or more existing
            subscriptions.

            - `one_off`: The quote will issue one or more one-off invoices.

            - `mixed`: Mixed configuration types.

            - `null`: Empty quote.
        status:
          type: string
          enum:
            - draft
          description: >

            Quote status.


            - `draft`: The quote is a draft.

            - `pending_approval`: The quote is pending manager review and
            approval.

            - `changes_requested`: Some changes have been requested following
            manager review.

            - `approved`: The quote is approved and ready to be sent to the
            customer.

            - `pending_signature`: The quote is awaiting the customer's
            signature.

            - `signed`: The quote is signed and fully finalized.

            - `voided`: The quote is voided.
          example: draft
        amount:
          type:
            - number
            - 'null'
          description: >-
            Estimated contract value. When computed, a subscription phase with
            neither an end date nor a fixed duration is counted over a
            conventional horizon: the contract's length for a single phase on a
            contract that has one, otherwise 12 months or the longest billing
            interval if longer. That horizon is not an end date: the
            subscription can run past it. Usage-based and connected seat lines
            are priced at their estimated quantity when it exceeds the committed
            quantity and, for seats, the live seat count.
          example: 200000
        customer_id:
          type: string
          description: ID of the customer the quote is addressed to.
          example: cus_QalW2vTAdkR6IY
        invoicing_entity_id:
          type: string
          description: ID of the invoicing entity attached to the quote.
          example: ive_47484fjdhy5
        configurations:
          type: array
          items:
            $ref: '#/components/schemas/QuoteConfiguration'
          description: Ordered configurations included in the quote.
        template_id:
          type:
            - string
            - 'null'
          description: ID of the quote template the quote is built from.
          example: quot_9hNWq4c84Z146W
        crm_opportunity_id:
          type:
            - string
            - 'null'
          description: ID of the related opportunity/deal in the connected CRM.
          example: opp_Z2oSqnBCUoo1bQ
        custom_properties:
          type:
            - object
            - 'null'
          additionalProperties:
            anyOf:
              - type: string
              - type: number
              - type: boolean
              - type: string
                format: date-time
                description: >-
                  UTC date time string in the [ISO
                  8601](https://en.wikipedia.org/wiki/ISO_8601) format.
                example: '2024-12-20T16:04:11Z'
              - type: array
                items:
                  type: string
              - type: 'null'
          description: >-
            Custom property values set on the quote itself, keyed by slug.
            Custom property values of a quote's subscription are returned on the
            subscription.
        contract_value:
          type:
            - number
            - 'null'
          description: >-
            What the customer pays over the contract, each coupon counted on the
            invoices it applies to. Computed from the subscription for
            `subscription` and `subscription_update` quotes, unless set
            manually. Not set on `one_off` quotes.
          example: 18000
        number:
          type: string
          description: Quote sequential number.
          example: '327'
        comments:
          type:
            - string
            - 'null'
          description: Custom comments displayed on the quote.
          example: Please find the contract and subscription details we discussed.
        terms:
          type:
            - string
            - 'null'
          description: Custom quotation terms.
          example: >-
            By signing this quote, you accept our conditions of use for the use
            of our products and services.
        owner_email:
          type:
            - string
            - 'null'
          format: email
          description: >-
            Email address of the Hyperline user acting as the quote owner. The
            user must be a member of your Hyperline account. The owner requests
            approval when the quote is finalized using an API key or finalized
            during creation.
          example: joe@acme.com
        collect_payment_details:
          type: boolean
          description: >-
            Collect customer payment method mandate during signature flow or
            not.
          example: true
        collect_custom_property_ids:
          type: array
          items:
            type: string
          description: >-
            IDs of the customer custom properties required to be filled during
            the signature flow.
          example: []
        require_tax_id:
          type: boolean
          description: Require the customer to provide a tax ID during the signature flow.
          example: false
        display_quote_value:
          type: boolean
          description: Display the total quote value on the quote.
          example: true
        display_quote_value_with_tax:
          type: boolean
          description: Display the total quote value including tax on the quote.
          example: false
        display_taxes:
          type: boolean
          description: Display tax breakdown on the quote.
          example: true
        display_price_tiers:
          type: string
          enum:
            - all
            - matching
            - none
            - unit_price
          description: >
            Controls which price tiers are displayed on the quote.


            - `all`: Display all pricing tiers.

            - `matching`: Only display the tiers used to compute the price based
            on quantity.

            - `none`: Hide all pricing tiers.

            - `unit_price`: Show only the unit price, without tiers.
          example: matching
        display_phase_value:
          type: boolean
          description: Display per-phase value breakdown on the quote.
          example: false
        display_discounts_on_total:
          type: boolean
          description: >-
            Display discounts on the totals, with product prices before
            discount. Totals then follow the contract value, so discounts with a
            limited duration are included.
          example: false
        display_first_invoice_amount:
          type: boolean
          description: Display the first invoice amount on the quote.
          example: false
        display_documents_in_preview:
          type: boolean
          description: Display attached documents in the quote preview.
          example: false
        subscription_update_display:
          type: string
          enum:
            - quote_update_details
            - subscription_details
            - both
          description: >-
            Sections displayed on subscription update quotes:
            quote_update_details, subscription_details, or both. Takes
            precedence over display_subscription_on_update.
          example: quote_update_details
        post_signature_activation_enabled:
          type: boolean
          description: >-
            Whether the subscription is automatically orchestrated after the
            quote is signed. Only applies to the Hyperline CPQ-only product.
          example: true
        generate_draft_invoices:
          type: boolean
          description: >-
            When `true`, the invoice issued after signature stays in `draft`
            status instead of being emitted for payment. Use this when you want
            to review the final invoice manually before sending it. Defaults to
            `false`.
          example: false
        attachments:
          type: array
          items:
            $ref: '#/components/schemas/QuoteFile'
          description: List of documents attached to the quote.
          example:
            - id: quof_5GYXy8P3QCdaXh
              name: General Conditions of Sale
              mimetype: application/pdf
        signed_file:
          allOf:
            - $ref: '#/components/schemas/QuoteFile'
            - type:
                - object
                - 'null'
              description: Final signed quote (manually uploaded).
              example: null
        url:
          type:
            - string
            - 'null'
          format: uri
          description: >-
            URL to access the quote publicly. Only applies to the
            `pending_signature` or `signed` quote.
          example: https://billing.hyperline.co/quote/quo_hXQCd5y8P3GYXa
        created_at:
          type: string
          format: date-time
          description: >-
            Quote creation date. UTC date time string in the [ISO
            8601](https://en.wikipedia.org/wiki/ISO_8601) format.
          example: '2024-04-23T09:10:00.220Z'
        updated_at:
          type: string
          format: date-time
          description: >-
            Quote update date. UTC date time string in the [ISO
            8601](https://en.wikipedia.org/wiki/ISO_8601) format.
          example: '2024-04-23T10:22:08.100Z'
        expires_at:
          type:
            - string
            - 'null'
          format: date-time
          description: >-
            Quote expiration date. UTC date time string in the [ISO
            8601](https://en.wikipedia.org/wiki/ISO_8601) format.
          example: null
        subscription_id:
          type:
            - string
            - 'null'
          deprecated: true
          description: Deprecated field, please use `configurations[].subscription_id`.
        invoice_id:
          type:
            - string
            - 'null'
          deprecated: true
          description: Deprecated field, please use `configurations[].invoice_id`.
        child_subscription_ids:
          type: array
          items:
            type: string
          deprecated: true
          description: >-
            Deprecated field, please use `GET /v2/subscriptions` with the
            `original_quote_id` filter.
        display_subscription_on_update:
          type: boolean
          deprecated: true
          description: >-
            Deprecated. Use subscription_update_display. False displays quote
            update details; true displays both sections.
          example: false
      required:
        - id
        - type
        - status
        - amount
        - customer_id
        - invoicing_entity_id
        - configurations
        - template_id
        - crm_opportunity_id
        - custom_properties
        - contract_value
        - number
        - comments
        - terms
        - owner_email
        - collect_payment_details
        - collect_custom_property_ids
        - require_tax_id
        - display_quote_value
        - display_quote_value_with_tax
        - display_taxes
        - display_price_tiers
        - display_phase_value
        - display_discounts_on_total
        - display_first_invoice_amount
        - display_documents_in_preview
        - subscription_update_display
        - post_signature_activation_enabled
        - generate_draft_invoices
        - attachments
        - signed_file
        - url
        - created_at
        - updated_at
        - expires_at
        - subscription_id
        - display_subscription_on_update
      title: Draft
    QuoteAwaitingApproval:
      type: object
      properties:
        id:
          type: string
          description: Quote ID.
          example: quo_hXQCd5y8P3GYXa
        type:
          type:
            - string
            - 'null'
          enum:
            - subscription
            - subscription_update
            - one_off
            - mixed
          description: >

            Quote type.


            - `subscription`: The quote will create one or more subscriptions.

            - `subscription_update`: The quote will update one or more existing
            subscriptions.

            - `one_off`: The quote will issue one or more one-off invoices.

            - `mixed`: Mixed configuration types.

            - `null`: Empty quote.
        status:
          type: string
          enum:
            - pending_approval
            - changes_requested
          description: >

            Quote status.


            - `draft`: The quote is a draft.

            - `pending_approval`: The quote is pending manager review and
            approval.

            - `changes_requested`: Some changes have been requested following
            manager review.

            - `approved`: The quote is approved and ready to be sent to the
            customer.

            - `pending_signature`: The quote is awaiting the customer's
            signature.

            - `signed`: The quote is signed and fully finalized.

            - `voided`: The quote is voided.
          example: pending_approval
        amount:
          type: number
          description: >-
            Estimated contract value. When computed, a subscription phase with
            neither an end date nor a fixed duration is counted over a
            conventional horizon: the contract's length for a single phase on a
            contract that has one, otherwise 12 months or the longest billing
            interval if longer. That horizon is not an end date: the
            subscription can run past it. Usage-based and connected seat lines
            are priced at their estimated quantity when it exceeds the committed
            quantity and, for seats, the live seat count.
          example: 20000
        customer_id:
          type: string
          description: ID of the customer the quote is addressed to.
          example: cus_QalW2vTAdkR6IY
        invoicing_entity_id:
          type: string
          description: ID of the invoicing entity attached to the quote.
          example: ive_47484fjdhy5
        configurations:
          type: array
          items:
            $ref: '#/components/schemas/QuoteConfiguration'
          description: Ordered configurations included in the quote.
        template_id:
          type:
            - string
            - 'null'
          description: ID of the quote template the quote is built from.
          example: quot_9hNWq4c84Z146W
        crm_opportunity_id:
          type:
            - string
            - 'null'
          description: ID of the related opportunity/deal in the connected CRM.
          example: opp_Z2oSqnBCUoo1bQ
        custom_properties:
          type:
            - object
            - 'null'
          additionalProperties:
            anyOf:
              - type: string
              - type: number
              - type: boolean
              - type: string
                format: date-time
                description: >-
                  UTC date time string in the [ISO
                  8601](https://en.wikipedia.org/wiki/ISO_8601) format.
                example: '2024-12-20T16:04:11Z'
              - type: array
                items:
                  type: string
              - type: 'null'
          description: >-
            Custom property values set on the quote itself, keyed by slug.
            Custom property values of a quote's subscription are returned on the
            subscription.
        contract_value:
          type:
            - number
            - 'null'
          description: >-
            What the customer pays over the contract, each coupon counted on the
            invoices it applies to. Computed from the subscription for
            `subscription` and `subscription_update` quotes, unless set
            manually. Not set on `one_off` quotes.
          example: 18000
        number:
          type: string
          description: Quote sequential number.
          example: '327'
        comments:
          type:
            - string
            - 'null'
          description: Custom comments displayed on the quote.
          example: Please find the contract and subscription details we discussed.
        terms:
          type:
            - string
            - 'null'
          description: Custom quotation terms.
          example: >-
            By signing this quote, you accept our conditions of use for the use
            of our products and services.
        owner_email:
          type:
            - string
            - 'null'
          format: email
          description: >-
            Email address of the Hyperline user acting as the quote owner. The
            user must be a member of your Hyperline account. The owner requests
            approval when the quote is finalized using an API key or finalized
            during creation.
          example: joe@acme.com
        collect_payment_details:
          type: boolean
          description: >-
            Collect customer payment method mandate during signature flow or
            not.
          example: true
        collect_custom_property_ids:
          type: array
          items:
            type: string
          description: >-
            IDs of the customer custom properties required to be filled during
            the signature flow.
          example: []
        require_tax_id:
          type: boolean
          description: Require the customer to provide a tax ID during the signature flow.
          example: false
        display_quote_value:
          type: boolean
          description: Display the total quote value on the quote.
          example: true
        display_quote_value_with_tax:
          type: boolean
          description: Display the total quote value including tax on the quote.
          example: false
        display_taxes:
          type: boolean
          description: Display tax breakdown on the quote.
          example: true
        display_price_tiers:
          type: string
          enum:
            - all
            - matching
            - none
            - unit_price
          description: >
            Controls which price tiers are displayed on the quote.


            - `all`: Display all pricing tiers.

            - `matching`: Only display the tiers used to compute the price based
            on quantity.

            - `none`: Hide all pricing tiers.

            - `unit_price`: Show only the unit price, without tiers.
          example: matching
        display_phase_value:
          type: boolean
          description: Display per-phase value breakdown on the quote.
          example: false
        display_discounts_on_total:
          type: boolean
          description: >-
            Display discounts on the totals, with product prices before
            discount. Totals then follow the contract value, so discounts with a
            limited duration are included.
          example: false
        display_first_invoice_amount:
          type: boolean
          description: Display the first invoice amount on the quote.
          example: false
        display_documents_in_preview:
          type: boolean
          description: Display attached documents in the quote preview.
          example: false
        subscription_update_display:
          type: string
          enum:
            - quote_update_details
            - subscription_details
            - both
          description: >-
            Sections displayed on subscription update quotes:
            quote_update_details, subscription_details, or both. Takes
            precedence over display_subscription_on_update.
          example: quote_update_details
        post_signature_activation_enabled:
          type: boolean
          description: >-
            Whether the subscription is automatically orchestrated after the
            quote is signed. Only applies to the Hyperline CPQ-only product.
          example: true
        generate_draft_invoices:
          type: boolean
          description: >-
            When `true`, the invoice issued after signature stays in `draft`
            status instead of being emitted for payment. Use this when you want
            to review the final invoice manually before sending it. Defaults to
            `false`.
          example: false
        attachments:
          type: array
          items:
            $ref: '#/components/schemas/QuoteFile'
          description: List of documents attached to the quote.
          example:
            - id: quof_5GYXy8P3QCdaXh
              name: General Conditions of Sale
              mimetype: application/pdf
        signed_file:
          allOf:
            - $ref: '#/components/schemas/QuoteFile'
            - type:
                - object
                - 'null'
              description: Final signed quote (manually uploaded).
              example: null
        url:
          type:
            - string
            - 'null'
          format: uri
          description: >-
            URL to access the quote publicly. Only applies to the
            `pending_signature` or `signed` quote.
          example: https://billing.hyperline.co/quote/quo_hXQCd5y8P3GYXa
        created_at:
          type: string
          format: date-time
          description: >-
            Quote creation date. UTC date time string in the [ISO
            8601](https://en.wikipedia.org/wiki/ISO_8601) format.
          example: '2024-04-23T09:10:00.220Z'
        updated_at:
          type: string
          format: date-time
          description: >-
            Quote update date. UTC date time string in the [ISO
            8601](https://en.wikipedia.org/wiki/ISO_8601) format.
          example: '2024-04-23T10:22:08.100Z'
        expires_at:
          type: string
          format: date-time
          description: >-
            Quote expiration date. UTC date time string in the [ISO
            8601](https://en.wikipedia.org/wiki/ISO_8601) format.
          example: '2024-04-28T14:12:09.293Z'
        subscription_id:
          type:
            - string
            - 'null'
          deprecated: true
          description: Deprecated field, please use `configurations[].subscription_id`.
        invoice_id:
          type:
            - string
            - 'null'
          deprecated: true
          description: Deprecated field, please use `configurations[].invoice_id`.
        child_subscription_ids:
          type: array
          items:
            type: string
          deprecated: true
          description: >-
            Deprecated field, please use `GET /v2/subscriptions` with the
            `original_quote_id` filter.
        display_subscription_on_update:
          type: boolean
          deprecated: true
          description: >-
            Deprecated. Use subscription_update_display. False displays quote
            update details; true displays both sections.
          example: false
      required:
        - id
        - type
        - status
        - amount
        - customer_id
        - invoicing_entity_id
        - configurations
        - template_id
        - crm_opportunity_id
        - custom_properties
        - contract_value
        - number
        - comments
        - terms
        - owner_email
        - collect_payment_details
        - collect_custom_property_ids
        - require_tax_id
        - display_quote_value
        - display_quote_value_with_tax
        - display_taxes
        - display_price_tiers
        - display_phase_value
        - display_discounts_on_total
        - display_first_invoice_amount
        - display_documents_in_preview
        - subscription_update_display
        - post_signature_activation_enabled
        - generate_draft_invoices
        - attachments
        - signed_file
        - url
        - created_at
        - updated_at
        - expires_at
        - subscription_id
        - display_subscription_on_update
      title: Awaiting approval
    QuoteReadyForSignature:
      type: object
      properties:
        id:
          type: string
          description: Quote ID.
          example: quo_hXQCd5y8P3GYXa
        type:
          type:
            - string
            - 'null'
          enum:
            - subscription
            - subscription_update
            - one_off
            - mixed
          description: >

            Quote type.


            - `subscription`: The quote will create one or more subscriptions.

            - `subscription_update`: The quote will update one or more existing
            subscriptions.

            - `one_off`: The quote will issue one or more one-off invoices.

            - `mixed`: Mixed configuration types.

            - `null`: Empty quote.
        status:
          type: string
          enum:
            - approved
            - pending_signature
          description: >

            Quote status.


            - `draft`: The quote is a draft.

            - `pending_approval`: The quote is pending manager review and
            approval.

            - `changes_requested`: Some changes have been requested following
            manager review.

            - `approved`: The quote is approved and ready to be sent to the
            customer.

            - `pending_signature`: The quote is awaiting the customer's
            signature.

            - `signed`: The quote is signed and fully finalized.

            - `voided`: The quote is voided.
          example: pending_signature
        amount:
          type: number
          description: >-
            Estimated contract value. When computed, a subscription phase with
            neither an end date nor a fixed duration is counted over a
            conventional horizon: the contract's length for a single phase on a
            contract that has one, otherwise 12 months or the longest billing
            interval if longer. That horizon is not an end date: the
            subscription can run past it. Usage-based and connected seat lines
            are priced at their estimated quantity when it exceeds the committed
            quantity and, for seats, the live seat count.
          example: 20000
        customer_id:
          type: string
          description: ID of the customer the quote is addressed to.
          example: cus_QalW2vTAdkR6IY
        invoicing_entity_id:
          type: string
          description: ID of the invoicing entity attached to the quote.
          example: ive_47484fjdhy5
        configurations:
          type: array
          items:
            $ref: '#/components/schemas/QuoteConfiguration'
          description: Ordered configurations included in the quote.
        template_id:
          type:
            - string
            - 'null'
          description: ID of the quote template the quote is built from.
          example: quot_9hNWq4c84Z146W
        crm_opportunity_id:
          type:
            - string
            - 'null'
          description: ID of the related opportunity/deal in the connected CRM.
          example: opp_Z2oSqnBCUoo1bQ
        custom_properties:
          type:
            - object
            - 'null'
          additionalProperties:
            anyOf:
              - type: string
              - type: number
              - type: boolean
              - type: string
                format: date-time
                description: >-
                  UTC date time string in the [ISO
                  8601](https://en.wikipedia.org/wiki/ISO_8601) format.
                example: '2024-12-20T16:04:11Z'
              - type: array
                items:
                  type: string
              - type: 'null'
          description: >-
            Custom property values set on the quote itself, keyed by slug.
            Custom property values of a quote's subscription are returned on the
            subscription.
        contract_value:
          type:
            - number
            - 'null'
          description: >-
            What the customer pays over the contract, each coupon counted on the
            invoices it applies to. Computed from the subscription for
            `subscription` and `subscription_update` quotes, unless set
            manually. Not set on `one_off` quotes.
          example: 18000
        number:
          type: string
          description: Quote sequential number.
          example: '327'
        comments:
          type:
            - string
            - 'null'
          description: Custom comments displayed on the quote.
          example: Please find the contract and subscription details we discussed.
        terms:
          type:
            - string
            - 'null'
          description: Custom quotation terms.
          example: >-
            By signing this quote, you accept our conditions of use for the use
            of our products and services.
        owner_email:
          type:
            - string
            - 'null'
          format: email
          description: >-
            Email address of the Hyperline user acting as the quote owner. The
            user must be a member of your Hyperline account. The owner requests
            approval when the quote is finalized using an API key or finalized
            during creation.
          example: joe@acme.com
        collect_payment_details:
          type: boolean
          description: >-
            Collect customer payment method mandate during signature flow or
            not.
          example: true
        collect_custom_property_ids:
          type: array
          items:
            type: string
          description: >-
            IDs of the customer custom properties required to be filled during
            the signature flow.
          example: []
        require_tax_id:
          type: boolean
          description: Require the customer to provide a tax ID during the signature flow.
          example: false
        display_quote_value:
          type: boolean
          description: Display the total quote value on the quote.
          example: true
        display_quote_value_with_tax:
          type: boolean
          description: Display the total quote value including tax on the quote.
          example: false
        display_taxes:
          type: boolean
          description: Display tax breakdown on the quote.
          example: true
        display_price_tiers:
          type: string
          enum:
            - all
            - matching
            - none
            - unit_price
          description: >
            Controls which price tiers are displayed on the quote.


            - `all`: Display all pricing tiers.

            - `matching`: Only display the tiers used to compute the price based
            on quantity.

            - `none`: Hide all pricing tiers.

            - `unit_price`: Show only the unit price, without tiers.
          example: matching
        display_phase_value:
          type: boolean
          description: Display per-phase value breakdown on the quote.
          example: false
        display_discounts_on_total:
          type: boolean
          description: >-
            Display discounts on the totals, with product prices before
            discount. Totals then follow the contract value, so discounts with a
            limited duration are included.
          example: false
        display_first_invoice_amount:
          type: boolean
          description: Display the first invoice amount on the quote.
          example: false
        display_documents_in_preview:
          type: boolean
          description: Display attached documents in the quote preview.
          example: false
        subscription_update_display:
          type: string
          enum:
            - quote_update_details
            - subscription_details
            - both
          description: >-
            Sections displayed on subscription update quotes:
            quote_update_details, subscription_details, or both. Takes
            precedence over display_subscription_on_update.
          example: quote_update_details
        post_signature_activation_enabled:
          type: boolean
          description: >-
            Whether the subscription is automatically orchestrated after the
            quote is signed. Only applies to the Hyperline CPQ-only product.
          example: true
        generate_draft_invoices:
          type: boolean
          description: >-
            When `true`, the invoice issued after signature stays in `draft`
            status instead of being emitted for payment. Use this when you want
            to review the final invoice manually before sending it. Defaults to
            `false`.
          example: false
        attachments:
          type: array
          items:
            $ref: '#/components/schemas/QuoteFile'
          description: List of documents attached to the quote.
          example:
            - id: quof_5GYXy8P3QCdaXh
              name: General Conditions of Sale
              mimetype: application/pdf
        signed_file:
          allOf:
            - $ref: '#/components/schemas/QuoteFile'
            - type:
                - object
                - 'null'
              description: Final signed quote (manually uploaded).
              example: null
        url:
          type:
            - string
            - 'null'
          format: uri
          description: >-
            URL to access the quote publicly. Only applies to the
            `pending_signature` or `signed` quote.
          example: https://billing.hyperline.co/quote/quo_hXQCd5y8P3GYXa
        created_at:
          type: string
          format: date-time
          description: >-
            Quote creation date. UTC date time string in the [ISO
            8601](https://en.wikipedia.org/wiki/ISO_8601) format.
          example: '2024-04-23T09:10:00.220Z'
        updated_at:
          type: string
          format: date-time
          description: >-
            Quote update date. UTC date time string in the [ISO
            8601](https://en.wikipedia.org/wiki/ISO_8601) format.
          example: '2024-04-23T10:22:08.100Z'
        expires_at:
          type: string
          format: date-time
          description: >-
            Quote expiration date. UTC date time string in the [ISO
            8601](https://en.wikipedia.org/wiki/ISO_8601) format.
          example: '2024-04-28T14:12:09.293Z'
        approved_at:
          type: string
          format: date-time
          description: >-
            Quote approbation date. UTC date time string in the [ISO
            8601](https://en.wikipedia.org/wiki/ISO_8601) format.
          example: '2024-04-24T09:10:00.220Z'
        subscription_id:
          type:
            - string
            - 'null'
          deprecated: true
          description: Deprecated field, please use `configurations[].subscription_id`.
        invoice_id:
          type:
            - string
            - 'null'
          deprecated: true
          description: Deprecated field, please use `configurations[].invoice_id`.
        child_subscription_ids:
          type: array
          items:
            type: string
          deprecated: true
          description: >-
            Deprecated field, please use `GET /v2/subscriptions` with the
            `original_quote_id` filter.
        display_subscription_on_update:
          type: boolean
          deprecated: true
          description: >-
            Deprecated. Use subscription_update_display. False displays quote
            update details; true displays both sections.
          example: false
      required:
        - id
        - type
        - status
        - amount
        - customer_id
        - invoicing_entity_id
        - configurations
        - template_id
        - crm_opportunity_id
        - custom_properties
        - contract_value
        - number
        - comments
        - terms
        - owner_email
        - collect_payment_details
        - collect_custom_property_ids
        - require_tax_id
        - display_quote_value
        - display_quote_value_with_tax
        - display_taxes
        - display_price_tiers
        - display_phase_value
        - display_discounts_on_total
        - display_first_invoice_amount
        - display_documents_in_preview
        - subscription_update_display
        - post_signature_activation_enabled
        - generate_draft_invoices
        - attachments
        - signed_file
        - url
        - created_at
        - updated_at
        - expires_at
        - approved_at
        - subscription_id
        - display_subscription_on_update
      title: Ready for signature
    QuoteSigned:
      type: object
      properties:
        id:
          type: string
          description: Quote ID.
          example: quo_hXQCd5y8P3GYXa
        type:
          type:
            - string
            - 'null'
          enum:
            - subscription
            - subscription_update
            - one_off
            - mixed
          description: >

            Quote type.


            - `subscription`: The quote will create one or more subscriptions.

            - `subscription_update`: The quote will update one or more existing
            subscriptions.

            - `one_off`: The quote will issue one or more one-off invoices.

            - `mixed`: Mixed configuration types.

            - `null`: Empty quote.
        status:
          type: string
          enum:
            - signed
          description: >

            Quote status.


            - `draft`: The quote is a draft.

            - `pending_approval`: The quote is pending manager review and
            approval.

            - `changes_requested`: Some changes have been requested following
            manager review.

            - `approved`: The quote is approved and ready to be sent to the
            customer.

            - `pending_signature`: The quote is awaiting the customer's
            signature.

            - `signed`: The quote is signed and fully finalized.

            - `voided`: The quote is voided.
          example: signed
        amount:
          type: number
          description: >-
            Estimated contract value. When computed, a subscription phase with
            neither an end date nor a fixed duration is counted over a
            conventional horizon: the contract's length for a single phase on a
            contract that has one, otherwise 12 months or the longest billing
            interval if longer. That horizon is not an end date: the
            subscription can run past it. Usage-based and connected seat lines
            are priced at their estimated quantity when it exceeds the committed
            quantity and, for seats, the live seat count.
          example: 20000
        customer_id:
          type: string
          description: ID of the customer the quote is addressed to.
          example: cus_QalW2vTAdkR6IY
        invoicing_entity_id:
          type: string
          description: ID of the invoicing entity attached to the quote.
          example: ive_47484fjdhy5
        configurations:
          type: array
          items:
            $ref: '#/components/schemas/QuoteConfiguration'
          description: Ordered configurations included in the quote.
        template_id:
          type:
            - string
            - 'null'
          description: ID of the quote template the quote is built from.
          example: quot_9hNWq4c84Z146W
        crm_opportunity_id:
          type:
            - string
            - 'null'
          description: ID of the related opportunity/deal in the connected CRM.
          example: opp_Z2oSqnBCUoo1bQ
        custom_properties:
          type:
            - object
            - 'null'
          additionalProperties:
            anyOf:
              - type: string
              - type: number
              - type: boolean
              - type: string
                format: date-time
                description: >-
                  UTC date time string in the [ISO
                  8601](https://en.wikipedia.org/wiki/ISO_8601) format.
                example: '2024-12-20T16:04:11Z'
              - type: array
                items:
                  type: string
              - type: 'null'
          description: >-
            Custom property values set on the quote itself, keyed by slug.
            Custom property values of a quote's subscription are returned on the
            subscription.
        contract_value:
          type:
            - number
            - 'null'
          description: >-
            What the customer pays over the contract, each coupon counted on the
            invoices it applies to. Computed from the subscription for
            `subscription` and `subscription_update` quotes, unless set
            manually. Not set on `one_off` quotes.
          example: 18000
        number:
          type: string
          description: Quote sequential number.
          example: '327'
        comments:
          type:
            - string
            - 'null'
          description: Custom comments displayed on the quote.
          example: Please find the contract and subscription details we discussed.
        terms:
          type:
            - string
            - 'null'
          description: Custom quotation terms.
          example: >-
            By signing this quote, you accept our conditions of use for the use
            of our products and services.
        owner_email:
          type:
            - string
            - 'null'
          format: email
          description: >-
            Email address of the Hyperline user acting as the quote owner. The
            user must be a member of your Hyperline account. The owner requests
            approval when the quote is finalized using an API key or finalized
            during creation.
          example: joe@acme.com
        collect_payment_details:
          type: boolean
          description: >-
            Collect customer payment method mandate during signature flow or
            not.
          example: true
        collect_custom_property_ids:
          type: array
          items:
            type: string
          description: >-
            IDs of the customer custom properties required to be filled during
            the signature flow.
          example: []
        require_tax_id:
          type: boolean
          description: Require the customer to provide a tax ID during the signature flow.
          example: false
        display_quote_value:
          type: boolean
          description: Display the total quote value on the quote.
          example: true
        display_quote_value_with_tax:
          type: boolean
          description: Display the total quote value including tax on the quote.
          example: false
        display_taxes:
          type: boolean
          description: Display tax breakdown on the quote.
          example: true
        display_price_tiers:
          type: string
          enum:
            - all
            - matching
            - none
            - unit_price
          description: >
            Controls which price tiers are displayed on the quote.


            - `all`: Display all pricing tiers.

            - `matching`: Only display the tiers used to compute the price based
            on quantity.

            - `none`: Hide all pricing tiers.

            - `unit_price`: Show only the unit price, without tiers.
          example: matching
        display_phase_value:
          type: boolean
          description: Display per-phase value breakdown on the quote.
          example: false
        display_discounts_on_total:
          type: boolean
          description: >-
            Display discounts on the totals, with product prices before
            discount. Totals then follow the contract value, so discounts with a
            limited duration are included.
          example: false
        display_first_invoice_amount:
          type: boolean
          description: Display the first invoice amount on the quote.
          example: false
        display_documents_in_preview:
          type: boolean
          description: Display attached documents in the quote preview.
          example: false
        subscription_update_display:
          type: string
          enum:
            - quote_update_details
            - subscription_details
            - both
          description: >-
            Sections displayed on subscription update quotes:
            quote_update_details, subscription_details, or both. Takes
            precedence over display_subscription_on_update.
          example: quote_update_details
        post_signature_activation_enabled:
          type: boolean
          description: >-
            Whether the subscription is automatically orchestrated after the
            quote is signed. Only applies to the Hyperline CPQ-only product.
          example: true
        generate_draft_invoices:
          type: boolean
          description: >-
            When `true`, the invoice issued after signature stays in `draft`
            status instead of being emitted for payment. Use this when you want
            to review the final invoice manually before sending it. Defaults to
            `false`.
          example: false
        attachments:
          type: array
          items:
            $ref: '#/components/schemas/QuoteFile'
          description: List of documents attached to the quote.
          example:
            - id: quof_5GYXy8P3QCdaXh
              name: General Conditions of Sale
              mimetype: application/pdf
        signed_file:
          allOf:
            - $ref: '#/components/schemas/QuoteFile'
            - type:
                - object
                - 'null'
              description: Final signed quote (manually uploaded).
              example: null
        url:
          type:
            - string
            - 'null'
          format: uri
          description: >-
            URL to access the quote publicly. Only applies to the
            `pending_signature` or `signed` quote.
          example: https://billing.hyperline.co/quote/quo_hXQCd5y8P3GYXa
        created_at:
          type: string
          format: date-time
          description: >-
            Quote creation date. UTC date time string in the [ISO
            8601](https://en.wikipedia.org/wiki/ISO_8601) format.
          example: '2024-04-23T09:10:00.220Z'
        updated_at:
          type: string
          format: date-time
          description: >-
            Quote update date. UTC date time string in the [ISO
            8601](https://en.wikipedia.org/wiki/ISO_8601) format.
          example: '2024-04-23T10:22:08.100Z'
        expires_at:
          type: string
          format: date-time
          description: >-
            Quote expiration date. UTC date time string in the [ISO
            8601](https://en.wikipedia.org/wiki/ISO_8601) format.
          example: '2024-04-28T14:12:09.293Z'
        approved_at:
          type: string
          format: date-time
          description: >-
            Quote approbation date. UTC date time string in the [ISO
            8601](https://en.wikipedia.org/wiki/ISO_8601) format.
          example: '2024-04-24T09:10:00.220Z'
        signature:
          oneOf:
            - type: object
              properties:
                mode:
                  type: string
                  enum:
                    - basic
                  description: >

                    Signature mode.


                    - `basic`: Basic signature. The signer manually put his
                    name. No legal value.

                    - `electronic`: Certified electronic signature. Legally
                    compliant.

                    - `external`: Signed outside of Hyperline. A signed file has
                    been uploaded.
                  example: basic
                signerName:
                  type: string
                  description: Signer name of the quote.
                  example: Acme
              required:
                - mode
                - signerName
            - type: object
              properties:
                mode:
                  type: string
                  enum:
                    - electronic
                  description: >

                    Signature mode.


                    - `basic`: Basic signature. The signer manually put his
                    name. No legal value.

                    - `electronic`: Certified electronic signature. Legally
                    compliant.

                    - `external`: Signed outside of Hyperline. A signed file has
                    been uploaded.
                  example: electronic
                signerName:
                  type: string
                  description: Signer name of the quote.
                  example: Acme
              required:
                - mode
                - signerName
            - type: object
              properties:
                mode:
                  type: string
                  enum:
                    - external
                  description: >

                    Signature mode.


                    - `basic`: Basic signature. The signer manually put his
                    name. No legal value.

                    - `electronic`: Certified electronic signature. Legally
                    compliant.

                    - `external`: Signed outside of Hyperline. A signed file has
                    been uploaded.
                  example: external
              required:
                - mode
          description: Quote signature. Only applies to the `signed` quote.
          example:
            mode: basic
            signerName: Acme
        signed_at:
          type: string
          format: date-time
          description: Quote signature date. Only applies to the `signed` quote.
          example: '2024-04-25T12:22:08.100Z'
        subscription_id:
          type:
            - string
            - 'null'
          deprecated: true
          description: Deprecated field, please use `configurations[].subscription_id`.
        invoice_id:
          type:
            - string
            - 'null'
          deprecated: true
          description: Deprecated field, please use `configurations[].invoice_id`.
        child_subscription_ids:
          type: array
          items:
            type: string
          deprecated: true
          description: >-
            Deprecated field, please use `GET /v2/subscriptions` with the
            `original_quote_id` filter.
        display_subscription_on_update:
          type: boolean
          deprecated: true
          description: >-
            Deprecated. Use subscription_update_display. False displays quote
            update details; true displays both sections.
          example: false
      required:
        - id
        - type
        - status
        - amount
        - customer_id
        - invoicing_entity_id
        - configurations
        - template_id
        - crm_opportunity_id
        - custom_properties
        - contract_value
        - number
        - comments
        - terms
        - owner_email
        - collect_payment_details
        - collect_custom_property_ids
        - require_tax_id
        - display_quote_value
        - display_quote_value_with_tax
        - display_taxes
        - display_price_tiers
        - display_phase_value
        - display_discounts_on_total
        - display_first_invoice_amount
        - display_documents_in_preview
        - subscription_update_display
        - post_signature_activation_enabled
        - generate_draft_invoices
        - attachments
        - signed_file
        - url
        - created_at
        - updated_at
        - expires_at
        - approved_at
        - signature
        - signed_at
        - subscription_id
        - display_subscription_on_update
      title: Signed
    QuoteVoided:
      type: object
      properties:
        id:
          type: string
          description: Quote ID.
          example: quo_hXQCd5y8P3GYXa
        type:
          type:
            - string
            - 'null'
          enum:
            - subscription
            - subscription_update
            - one_off
            - mixed
          description: >

            Quote type.


            - `subscription`: The quote will create one or more subscriptions.

            - `subscription_update`: The quote will update one or more existing
            subscriptions.

            - `one_off`: The quote will issue one or more one-off invoices.

            - `mixed`: Mixed configuration types.

            - `null`: Empty quote.
        status:
          type: string
          enum:
            - voided
          description: >

            Quote status.


            - `draft`: The quote is a draft.

            - `pending_approval`: The quote is pending manager review and
            approval.

            - `changes_requested`: Some changes have been requested following
            manager review.

            - `approved`: The quote is approved and ready to be sent to the
            customer.

            - `pending_signature`: The quote is awaiting the customer's
            signature.

            - `signed`: The quote is signed and fully finalized.

            - `voided`: The quote is voided.
          example: voided
        amount:
          type:
            - number
            - 'null'
          description: >-
            Estimated contract value. When computed, a subscription phase with
            neither an end date nor a fixed duration is counted over a
            conventional horizon: the contract's length for a single phase on a
            contract that has one, otherwise 12 months or the longest billing
            interval if longer. That horizon is not an end date: the
            subscription can run past it. Usage-based and connected seat lines
            are priced at their estimated quantity when it exceeds the committed
            quantity and, for seats, the live seat count.
          example: 20000
        customer_id:
          type: string
          description: ID of the customer the quote is addressed to.
          example: cus_QalW2vTAdkR6IY
        invoicing_entity_id:
          type: string
          description: ID of the invoicing entity attached to the quote.
          example: ive_47484fjdhy5
        configurations:
          type: array
          items:
            $ref: '#/components/schemas/QuoteConfiguration'
          description: Ordered configurations included in the quote.
        template_id:
          type:
            - string
            - 'null'
          description: ID of the quote template the quote is built from.
          example: quot_9hNWq4c84Z146W
        crm_opportunity_id:
          type:
            - string
            - 'null'
          description: ID of the related opportunity/deal in the connected CRM.
          example: opp_Z2oSqnBCUoo1bQ
        custom_properties:
          type:
            - object
            - 'null'
          additionalProperties:
            anyOf:
              - type: string
              - type: number
              - type: boolean
              - type: string
                format: date-time
                description: >-
                  UTC date time string in the [ISO
                  8601](https://en.wikipedia.org/wiki/ISO_8601) format.
                example: '2024-12-20T16:04:11Z'
              - type: array
                items:
                  type: string
              - type: 'null'
          description: >-
            Custom property values set on the quote itself, keyed by slug.
            Custom property values of a quote's subscription are returned on the
            subscription.
        contract_value:
          type:
            - number
            - 'null'
          description: >-
            What the customer pays over the contract, each coupon counted on the
            invoices it applies to. Computed from the subscription for
            `subscription` and `subscription_update` quotes, unless set
            manually. Not set on `one_off` quotes.
          example: 18000
        number:
          type: string
          description: Quote sequential number.
          example: '327'
        comments:
          type:
            - string
            - 'null'
          description: Custom comments displayed on the quote.
          example: Please find the contract and subscription details we discussed.
        terms:
          type:
            - string
            - 'null'
          description: Custom quotation terms.
          example: >-
            By signing this quote, you accept our conditions of use for the use
            of our products and services.
        owner_email:
          type:
            - string
            - 'null'
          format: email
          description: >-
            Email address of the Hyperline user acting as the quote owner. The
            user must be a member of your Hyperline account. The owner requests
            approval when the quote is finalized using an API key or finalized
            during creation.
          example: joe@acme.com
        collect_payment_details:
          type: boolean
          description: >-
            Collect customer payment method mandate during signature flow or
            not.
          example: true
        collect_custom_property_ids:
          type: array
          items:
            type: string
          description: >-
            IDs of the customer custom properties required to be filled during
            the signature flow.
          example: []
        require_tax_id:
          type: boolean
          description: Require the customer to provide a tax ID during the signature flow.
          example: false
        display_quote_value:
          type: boolean
          description: Display the total quote value on the quote.
          example: true
        display_quote_value_with_tax:
          type: boolean
          description: Display the total quote value including tax on the quote.
          example: false
        display_taxes:
          type: boolean
          description: Display tax breakdown on the quote.
          example: true
        display_price_tiers:
          type: string
          enum:
            - all
            - matching
            - none
            - unit_price
          description: >
            Controls which price tiers are displayed on the quote.


            - `all`: Display all pricing tiers.

            - `matching`: Only display the tiers used to compute the price based
            on quantity.

            - `none`: Hide all pricing tiers.

            - `unit_price`: Show only the unit price, without tiers.
          example: matching
        display_phase_value:
          type: boolean
          description: Display per-phase value breakdown on the quote.
          example: false
        display_discounts_on_total:
          type: boolean
          description: >-
            Display discounts on the totals, with product prices before
            discount. Totals then follow the contract value, so discounts with a
            limited duration are included.
          example: false
        display_first_invoice_amount:
          type: boolean
          description: Display the first invoice amount on the quote.
          example: false
        display_documents_in_preview:
          type: boolean
          description: Display attached documents in the quote preview.
          example: false
        subscription_update_display:
          type: string
          enum:
            - quote_update_details
            - subscription_details
            - both
          description: >-
            Sections displayed on subscription update quotes:
            quote_update_details, subscription_details, or both. Takes
            precedence over display_subscription_on_update.
          example: quote_update_details
        post_signature_activation_enabled:
          type: boolean
          description: >-
            Whether the subscription is automatically orchestrated after the
            quote is signed. Only applies to the Hyperline CPQ-only product.
          example: true
        generate_draft_invoices:
          type: boolean
          description: >-
            When `true`, the invoice issued after signature stays in `draft`
            status instead of being emitted for payment. Use this when you want
            to review the final invoice manually before sending it. Defaults to
            `false`.
          example: false
        attachments:
          type: array
          items:
            $ref: '#/components/schemas/QuoteFile'
          description: List of documents attached to the quote.
          example:
            - id: quof_5GYXy8P3QCdaXh
              name: General Conditions of Sale
              mimetype: application/pdf
        signed_file:
          allOf:
            - $ref: '#/components/schemas/QuoteFile'
            - type:
                - object
                - 'null'
              description: Final signed quote (manually uploaded).
              example: null
        url:
          type:
            - string
            - 'null'
          format: uri
          description: >-
            URL to access the quote publicly. Only applies to the
            `pending_signature` or `signed` quote.
          example: https://billing.hyperline.co/quote/quo_hXQCd5y8P3GYXa
        created_at:
          type: string
          format: date-time
          description: >-
            Quote creation date. UTC date time string in the [ISO
            8601](https://en.wikipedia.org/wiki/ISO_8601) format.
          example: '2024-04-23T09:10:00.220Z'
        updated_at:
          type: string
          format: date-time
          description: >-
            Quote update date. UTC date time string in the [ISO
            8601](https://en.wikipedia.org/wiki/ISO_8601) format.
          example: '2024-04-23T10:22:08.100Z'
        void_reason:
          type: string
          description: Quote voiding reason. Only applies to the `voided` quote.
          example: The customer is ultimately not interested.
        voided_at:
          type: string
          format: date-time
          description: Quote voiding date. Only applies to the `voided` quote.
          example: '2024-04-26T12:00:01.320Z'
        expires_at:
          type:
            - string
            - 'null'
          format: date-time
          description: >-
            Quote expiration date. UTC date time string in the [ISO
            8601](https://en.wikipedia.org/wiki/ISO_8601) format.
          example: null
        approved_at:
          type:
            - string
            - 'null'
          format: date-time
          description: >-
            Quote approbation date. UTC date time string in the [ISO
            8601](https://en.wikipedia.org/wiki/ISO_8601) format.
          example: '2024-04-24T09:10:00.220Z'
        signature:
          anyOf:
            - type: object
              properties:
                mode:
                  type: string
                  enum:
                    - basic
                  description: >

                    Signature mode.


                    - `basic`: Basic signature. The signer manually put his
                    name. No legal value.

                    - `electronic`: Certified electronic signature. Legally
                    compliant.

                    - `external`: Signed outside of Hyperline. A signed file has
                    been uploaded.
                  example: basic
              required:
                - mode
            - type: object
              properties:
                mode:
                  type: string
                  enum:
                    - electronic
                  description: >

                    Signature mode.


                    - `basic`: Basic signature. The signer manually put his
                    name. No legal value.

                    - `electronic`: Certified electronic signature. Legally
                    compliant.

                    - `external`: Signed outside of Hyperline. A signed file has
                    been uploaded.
                  example: electronic
              required:
                - mode
            - type: object
              properties:
                mode:
                  type: string
                  enum:
                    - external
                  description: >

                    Signature mode.


                    - `basic`: Basic signature. The signer manually put his
                    name. No legal value.

                    - `electronic`: Certified electronic signature. Legally
                    compliant.

                    - `external`: Signed outside of Hyperline. A signed file has
                    been uploaded.
                  example: external
              required:
                - mode
            - type: object
              properties:
                mode:
                  type: string
                  enum:
                    - basic
                  description: >

                    Signature mode.


                    - `basic`: Basic signature. The signer manually put his
                    name. No legal value.

                    - `electronic`: Certified electronic signature. Legally
                    compliant.

                    - `external`: Signed outside of Hyperline. A signed file has
                    been uploaded.
                  example: basic
                signerName:
                  type: string
                  description: Signer name of the quote.
                  example: Acme
              required:
                - mode
                - signerName
            - type: object
              properties:
                mode:
                  type: string
                  enum:
                    - electronic
                  description: >

                    Signature mode.


                    - `basic`: Basic signature. The signer manually put his
                    name. No legal value.

                    - `electronic`: Certified electronic signature. Legally
                    compliant.

                    - `external`: Signed outside of Hyperline. A signed file has
                    been uploaded.
                  example: electronic
                signerName:
                  type: string
                  description: Signer name of the quote.
                  example: Acme
              required:
                - mode
                - signerName
            - type: object
              properties:
                mode:
                  type: string
                  enum:
                    - external
                  description: >

                    Signature mode.


                    - `basic`: Basic signature. The signer manually put his
                    name. No legal value.

                    - `electronic`: Certified electronic signature. Legally
                    compliant.

                    - `external`: Signed outside of Hyperline. A signed file has
                    been uploaded.
                  example: external
              required:
                - mode
            - type: 'null'
          description: Quote signature. Only applies to the `signed` quote.
          example:
            mode: basic
            signerName: Acme
        signed_at:
          type:
            - string
            - 'null'
          format: date-time
          description: Quote signature date. Only applies to the `signed` quote.
          example: '2024-04-25T12:22:08.100Z'
        subscription_id:
          type:
            - string
            - 'null'
          deprecated: true
          description: Deprecated field, please use `configurations[].subscription_id`.
        invoice_id:
          type:
            - string
            - 'null'
          deprecated: true
          description: Deprecated field, please use `configurations[].invoice_id`.
        child_subscription_ids:
          type: array
          items:
            type: string
          deprecated: true
          description: >-
            Deprecated field, please use `GET /v2/subscriptions` with the
            `original_quote_id` filter.
        display_subscription_on_update:
          type: boolean
          deprecated: true
          description: >-
            Deprecated. Use subscription_update_display. False displays quote
            update details; true displays both sections.
          example: false
      required:
        - id
        - type
        - status
        - amount
        - customer_id
        - invoicing_entity_id
        - configurations
        - template_id
        - crm_opportunity_id
        - custom_properties
        - contract_value
        - number
        - comments
        - terms
        - owner_email
        - collect_payment_details
        - collect_custom_property_ids
        - require_tax_id
        - display_quote_value
        - display_quote_value_with_tax
        - display_taxes
        - display_price_tiers
        - display_phase_value
        - display_discounts_on_total
        - display_first_invoice_amount
        - display_documents_in_preview
        - subscription_update_display
        - post_signature_activation_enabled
        - generate_draft_invoices
        - attachments
        - signed_file
        - url
        - created_at
        - updated_at
        - void_reason
        - voided_at
        - expires_at
        - approved_at
        - signature
        - signed_at
        - subscription_id
        - display_subscription_on_update
      title: Voided
    QuoteConfiguration:
      oneOf:
        - $ref: '#/components/schemas/QuoteSubscriptionConfiguration'
        - $ref: '#/components/schemas/QuoteInvoiceConfiguration'
      discriminator:
        propertyName: type
        mapping:
          subscription: '#/components/schemas/QuoteSubscriptionConfiguration'
          subscription_update: '#/components/schemas/QuoteSubscriptionConfiguration'
          one_off: '#/components/schemas/QuoteInvoiceConfiguration'
    QuoteFile:
      type: object
      properties:
        id:
          type: string
          description: Quote file ID.
        name:
          type: string
          description: Quote file name.
        mimetype:
          type: string
          description: Quote file MIME type.
      required:
        - id
        - name
        - mimetype
    QuoteSubscriptionConfiguration:
      type: object
      properties:
        id:
          type: string
          description: Quote configuration ID.
        customer_id:
          type:
            - string
            - 'null'
          description: >-
            ID of the child customer the configuration applies to, or null to
            use the quote customer.
        position:
          type: integer
          description: Configuration order within the quote, starting at zero.
        amount:
          type:
            - number
            - 'null'
          description: Configuration amount excluding tax, in minor currency units.
        applied_at:
          type:
            - string
            - 'null'
          format: date-time
          description: When the post-signature action completed, or null if not applied.
          example: '2024-12-20T16:04:11Z'
        type:
          type: string
          enum:
            - subscription
            - subscription_update
          description: Configuration type.
        subscription_id:
          type:
            - string
            - 'null'
          description: ID of the configuration's subscription, or null if not configured.
        contract_terms:
          type:
            - object
            - 'null'
          properties:
            status:
              type: string
              enum:
                - active
                - pending
                - finished
              description: >

                Contract status.


                - `active`: The contract is active.

                - `pending`: The contract is pending. It will be activated
                according to the activation strategy.

                - `finished`: The contract has ended.
              example: active
            activation_strategy:
              type: string
              enum:
                - start_date
                - immediately
                - manual
                - quote_signature
                - checkout
              description: >

                Activation strategy of the contract.


                - `immediately`: The contract will be activated immediately.

                - `manual`: The contract will be activated when a user manually
                activates it.

                - `start_date`: The contract will be activated on a specified
                date.

                - `quote_signature`: The contract will be activated when the
                subscription quote is signed.

                - `checkout`: The contract will be activated when the
                subscription checkout is completed.
              example: start_date
            end_strategy:
              type: string
              enum:
                - end_date
                - duration
                - manual
              description: >

                End strategy of contract.


                - `manual`: The contract ends when a user manually stops it.

                - `end_date`: The contract ends on a specified date.

                - `duration`: The contract ends after a specific relative
                duration, unless `renew_automatically` is true.
              example: duration
            starts_at:
              type:
                - string
                - 'null'
              format: date-time
              description: >-
                Start date of the contract. UTC date time string in the [ISO
                8601](https://en.wikipedia.org/wiki/ISO_8601) format.
              example: '2024-12-31T23:00:00.000Z'
            ends_at:
              type:
                - string
                - 'null'
              format: date-time
              description: >-
                End date of the contract. UTC date time string in the [ISO
                8601](https://en.wikipedia.org/wiki/ISO_8601) format.
              example: '2025-06-30T21:59:59.999Z'
            duration:
              type:
                - object
                - 'null'
              properties:
                period:
                  type: string
                  enum:
                    - days
                    - weeks
                    - months
                    - years
                count:
                  type: number
                  exclusiveMinimum: 0
              required:
                - period
                - count
              description: >-
                Interval over which the contract initially spans. Only applies
                to `duration` end strategy.
              example:
                count: 6
                period: months
            renew_automatically:
              anyOf:
                - type: boolean
                - type: string
                  enum:
                    - 'true'
                    - 'false'
              description: |

                Indicates if the contract should be renewed automatically.

                - `true`: The contract will be renewed automatically.
                - `false`: The contract will not be renewed automatically.
              example: true
            renew_for_duration:
              type:
                - object
                - 'null'
              properties:
                period:
                  type: string
                  enum:
                    - days
                    - weeks
                    - months
                    - years
                count:
                  type: number
                  exclusiveMinimum: 0
              required:
                - period
                - count
              description: >

                Interval over which the contract will be renewed. Only applies
                if `renew_automatically` is true.
              example:
                count: 1
                period: years
            price_adjustment:
              oneOf:
                - $ref: '#/components/schemas/ContractTermsRenewalPriceAdjustment'
                - $ref: '#/components/schemas/ContractTermsDurationPriceAdjustment'
                - type: 'null'
              description: >-
                Price adjustment applied to the subscription prices over the
                contract. `null` if the contract has no price adjustment.
              example:
                frequency: renewal
                percent: 7
            current_period_started_at:
              type:
                - string
                - 'null'
              format: date-time
              description: >-
                Start date of the current contract period. UTC date time string
                in the [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
                format.
              example: '2025-06-30T22:00:00.000Z'
            current_period_ends_at:
              type:
                - string
                - 'null'
              format: date-time
              description: >-
                End date of the current contract period. UTC date time string in
                the [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
              example: '2026-06-30T21:59:59.999Z'
          required:
            - status
            - activation_strategy
            - end_strategy
            - starts_at
            - ends_at
            - duration
            - renew_automatically
            - renew_for_duration
            - price_adjustment
            - current_period_started_at
            - current_period_ends_at
          description: >-
            Contract terms (start, duration, renewal) of the configuration's
            subscription, or null when it has no custom contract. On a
            `subscription_update` configuration, these are the terms the quote
            proposes, read from its draft copy of the subscription: `status` is
            the amended contract's status when the quote was created, and
            `current_period_started_at` and `current_period_ends_at` are null
            (read them on the subscription).
        estimates:
          type: array
          items:
            $ref: '#/components/schemas/QuoteProductEstimate'
          description: >-
            Estimated quantities declared on the quote for its usage-based and
            connected seat lines of the configuration. They price the quote
            value and are never billed. Once the quote is signed (a subscription
            update quote: once applied) they are frozen with their periods and
            amounts, as the record of what the quote sold.
      required:
        - id
        - customer_id
        - position
        - amount
        - applied_at
        - type
        - subscription_id
        - contract_terms
        - estimates
      title: Subscription or update
    QuoteInvoiceConfiguration:
      type: object
      properties:
        id:
          type: string
          description: Quote configuration ID.
        customer_id:
          type:
            - string
            - 'null'
          description: >-
            ID of the child customer the configuration applies to, or null to
            use the quote customer.
        position:
          type: integer
          description: Configuration order within the quote, starting at zero.
        amount:
          type:
            - number
            - 'null'
          description: Configuration amount excluding tax, in minor currency units.
        applied_at:
          type:
            - string
            - 'null'
          format: date-time
          description: When the post-signature action completed, or null if not applied.
          example: '2024-12-20T16:04:11Z'
        type:
          type: string
          enum:
            - one_off
          description: Configuration type.
        invoice_id:
          type:
            - string
            - 'null'
          description: ID of the configuration's draft invoice, or null if not configured.
      required:
        - id
        - customer_id
        - position
        - amount
        - applied_at
        - type
        - invoice_id
      title: One-off invoice
    ContractTermsRenewalPriceAdjustment:
      type: object
      properties:
        frequency:
          type: string
          enum:
            - renewal
          description: |

            When the price adjustment is applied.

            - `renewal`: At each contract renewal.
            - `duration`: Every `interval`, during the contract.
        percent:
          type: number
          description: >-
            Percentage applied to the prices each time the adjustment applies
            (e.g. `7` for +7%, `-5` for -5%).
          example: 7
      required:
        - frequency
        - percent
      additionalProperties: false
      title: Renewal
    ContractTermsDurationPriceAdjustment:
      type: object
      properties:
        frequency:
          type: string
          enum:
            - duration
          description: |

            When the price adjustment is applied.

            - `renewal`: At each contract renewal.
            - `duration`: Every `interval`, during the contract.
        percent:
          type: number
          description: >-
            Percentage applied to the prices each time the adjustment applies
            (e.g. `7` for +7%, `-5` for -5%).
          example: 7
        interval:
          type: object
          properties:
            period:
              type: string
              enum:
                - days
                - weeks
                - months
                - years
            count:
              type: number
              exclusiveMinimum: 0
          required:
            - period
            - count
          description: Interval between two price adjustments.
          example:
            count: 1
            period: years
      required:
        - frequency
        - percent
        - interval
      additionalProperties: false
      title: Duration
    QuoteProductEstimate:
      type: object
      properties:
        product_id:
          type: string
          description: ID of the estimated product in the catalog.
          example: itm_3kXODIM1sBwBbJ
        price_configuration_id:
          type:
            - string
            - 'null'
          description: >-
            ID of the catalog price configuration the line was priced from, if
            any.
          example: prc_8f3kXODIM1sBwB
        phase_order:
          type: integer
          description: Order of the quote phase holding the estimated line.
          example: 0
        period_start:
          type:
            - string
            - 'null'
          format: date-time
          description: >-
            Start of the period the estimate was sold for: its phase's start, or
            for a first phase starting only once the subscription does
            (signature, checkout, payment, a manual start) the contract's start,
            else the subscription's, else the signature date. For a subscription
            update quote, its first updated phase starts at the update's
            effective date. Null until the quote is signed, and for a phase
            starting after one that ends manually.
          example: '2026-01-01T00:00:00.000Z'
        period_end:
          type:
            - string
            - 'null'
          format: date-time
          description: >-
            End of the period the estimate was sold for: its phase's end (the
            contract's end for a phase ending with it), else, for an open-ended
            phase, the horizon the quote value counts: the contract's length for
            a single phase on a contract that has one, otherwise 12 months or
            the longest billing interval if longer. That horizon is a
            convention, not an end date: an open-ended subscription can run past
            it. Null when `period_start` is.
          example: '2026-12-31T23:59:59.999Z'
        estimated_count:
          type: number
          description: Estimated number of units per billing period.
          example: 200
        estimated_amount:
          type:
            - number
            - 'null'
          description: >-
            Amount of one billing period of the line (its billing interval)
            priced at the estimate: the first one, excluding taxes, with its
            discounts applied. Null when the estimate doesn't raise the price,
            and until the quote is signed.
          example: 2000
        estimated_total_amount:
          type:
            - number
            - 'null'
          description: >-
            What the line bills at the estimate over every billing period
            between `period_start` and `period_end`, excluding taxes, each
            period with the discounts applying to it. It can differ from the
            quote value, which counts a phase without dates over its own
            horizon. Null when `estimated_amount` or `period_start` is. The
            frozen record never follows later changes to the subscription: when
            several update quotes cover the same line and period, the latest
            signed one is the current estimate, which `GET
            /v1/subscriptions/{id}/estimates` resolves.
          example: 24000
      required:
        - product_id
        - price_configuration_id
        - phase_order
        - period_start
        - period_end
        - estimated_count
        - estimated_amount
        - estimated_total_amount
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
      bearerFormat: JWT

````

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