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

# Add a quote phase

> Stages a further priced phase on a new-business quote that has not been signed. Name its start as a date or as months after the billing start.



## OpenAPI

````yaml /api-reference/v2/specs/2026-04-01.json post /quotes/{id}/phases
openapi: 3.1.0
info:
  title: Alguna Public API
  version: '2026-04-01'
servers:
  - url: https://api.alguna.io
security:
  - bearerAuth: []
tags:
  - name: Billing Events and Metrics
  - name: Checkout Sessions
  - name: Credit Notes
  - name: Credits
  - name: Customer Portal Sessions
  - name: Customers
  - name: Insights
  - name: Integrations
  - name: Invoices
  - name: Merchants
  - name: Payments
  - name: Plans
  - name: Product Bundles
  - name: Products
  - name: Quotes
  - name: Refunds
  - name: Revenue Schedules
  - name: Subscription Changes
  - name: Subscription Versions
  - name: Subscriptions
  - name: Tags
  - name: Tax
  - name: Wallet Grants
  - name: Wallets
paths:
  /quotes/{id}/phases:
    post:
      tags:
        - Quotes
      summary: Add a quote phase
      description: >-
        Stages a further priced phase on a new-business quote that has not been
        signed. Name its start as a date or as months after the billing start.
      operationId: create-quote-phase
      parameters:
        - in: header
          name: Alguna-Version
          required: true
          schema:
            enum:
              - '2026-04-01'
            type: string
        - in: header
          name: Idempotency-Key
          schema:
            description: >-
              A unique string used to ensure the request is processed exactly
              once. If you retry a request with the same idempotency key within
              24 hours, the original response is returned without re-executing
              the operation.
            example: ik_a1b2c3d4e5f6
            maxLength: 255
            type: string
        - in: path
          name: id
          required: true
          schema:
            description: Unique identifier for the quote
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/QuotePhaseInput'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/QuotePhaseResponse'
          description: Success
          headers:
            Idempotency-Key:
              description: Echo of the idempotency key provided in the request
              schema:
                type: string
            Idempotent-Replayed:
              description: >-
                Whether this response was replayed from a previous request
                (true) or freshly executed (false)
              schema:
                type: boolean
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Bad Request
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Unauthorized
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Not Found
        '409':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: >-
            Conflict — a request with this idempotency key is currently being
            processed
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Unprocessable Entity
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Internal Server Error
components:
  schemas:
    QuotePhaseInput:
      properties:
        description:
          description: Human-readable note on the phase
          example: Year 2 step-up
          nullable: true
          type: string
        items:
          description: Complete set of priced items for this phase.
          items:
            $ref: '#/components/schemas/VersionItemInput'
          maxItems: 200
          type: array
        start_date:
          description: >-
            When the phase starts (YYYY-MM-DD). Alternative to
            start_month_offset.
          example: '2027-01-01'
          format: date
          nullable: true
          type: string
        start_month_offset:
          description: >-
            Months after the billing start when the phase begins; resolved into
            a date at signature. Alternative to start_date.
          example: 12
          format: int64
          maximum: 1200
          minimum: 0
          nullable: true
          type: integer
      required:
        - items
      type: object
    QuotePhaseResponse:
      properties:
        acv:
          description: Annual contract value
          example: '6000.00'
          type: string
        arr:
          description: Annual recurring revenue
          example: '6000.00'
          type: string
        currency:
          description: ISO 4217 currency code
          example: USD
          type: string
        description:
          description: Note on the phase
          example: Year 2 step-up
          nullable: true
          type: string
        end_date:
          description: When the phase ends
          example: '2027-10-01T00:00:00Z'
          format: date-time
          nullable: true
          type: string
        id:
          description: >-
            Phase ID. This is the subscription version the phase becomes: after
            signature the same row is readable at
            /subscriptions/{subscription_id}/versions/{id}.
          example: subv_abc123
          type: string
        mrr:
          description: Monthly recurring revenue
          example: '500.00'
          type: string
        plan_id:
          description: Plan the phase was seeded from
          example: pln_abc123
          nullable: true
          type: string
        quote_id:
          description: Quote ID
          example: qt_abc123
          type: string
        sequence:
          description: >-
            Position in the quote's schedule, from 1. Positional, not an
            identifier: deleting a phase renumbers the rest, so address a phase
            by id.
          example: 1
          format: int64
          type: integer
        start_date:
          description: >-
            When the phase starts; null for an undated ramp phase until
            signature
          example: '2026-10-01T00:00:00Z'
          format: date-time
          nullable: true
          type: string
        start_month_offset:
          description: Months after the billing start when an undated phase begins
          example: 12
          format: int64
          nullable: true
          type: integer
        tcv:
          description: >-
            Total contract value of the phase over its term; null when no term
            is knowable
          example: '6000.00'
          nullable: true
          type: string
      required:
        - acv
        - arr
        - currency
        - id
        - mrr
        - quote_id
        - sequence
      type: object
    ErrorResponse:
      properties:
        detail:
          type: string
        status:
          format: int64
          type: integer
      required:
        - status
        - detail
      type: object
    VersionItemInput:
      properties:
        bundle_id:
          description: Bundle ID (for bundle items)
          example: bun_abc123
          nullable: true
          type: string
        items:
          description: Bundle child items with full price definitions
          items:
            $ref: '#/components/schemas/VersionBundleChildInput'
          type: array
        price:
          allOf:
            - $ref: '#/components/schemas/PriceInput'
          description: Full price definition (required for standalone items)
          nullable: true
        product_id:
          description: Product ID (for standalone items)
          example: prod_abc123
          nullable: true
          type: string
      type: object
    VersionBundleChildInput:
      properties:
        price:
          allOf:
            - $ref: '#/components/schemas/PriceInput'
          description: Full price definition
        product_id:
          description: Product ID
          example: prod_abc123
          type: string
      required:
        - price
        - product_id
      type: object
    PriceInput:
      properties:
        billing_direction:
          description: Billing direction
          enum:
            - advance
            - arrears
          example: arrears
          type: string
        billing_frequency:
          description: Billing frequency (required for fixed fee type)
          enum:
            - recurring
            - one-off
          example: recurring
          nullable: true
          type: string
        billing_interval:
          description: Legacy named billing interval
          enum:
            - monthly
            - quarterly
            - semi_annual
            - yearly
          example: monthly
          type: string
        billing_interval_count:
          description: Positive count of BillingIntervalUnits per period
          example: 3
          format: int64
          nullable: true
          type: integer
        billing_interval_unit:
          description: Unit of the billing cadence (currently only 'month' accepted)
          enum:
            - day
            - week
            - month
            - year
          example: month
          nullable: true
          type: string
        charge_on_contract_start:
          description: Whether to charge on contract start
          example: false
          nullable: true
          type: boolean
        discount:
          allOf:
            - $ref: '#/components/schemas/DiscountInput'
          description: Price-level discount
          nullable: true
        display_order:
          description: Display order
          example: 1
          format: int64
          nullable: true
          type: integer
        expression_pricing_model:
          allOf:
            - $ref: '#/components/schemas/ExpressionPricingModelInput'
          description: Expression pricing model (required when type=expression)
          nullable: true
        fee_type:
          description: Fee type
          enum:
            - fixed
            - metered
          example: fixed
          type: string
        fixed_pricing_model:
          allOf:
            - $ref: '#/components/schemas/FixedPricingModelInput'
          description: Fixed pricing model (required when type=fixed)
          nullable: true
        graduated_percentage_pricing_model:
          allOf:
            - $ref: '#/components/schemas/GraduatedPercentagePricingModelInput'
          description: >-
            Graduated percentage pricing model (required when
            type=graduated_percentage)
          nullable: true
        graduated_tiered_pricing_model:
          allOf:
            - $ref: '#/components/schemas/GraduatedTieredPricingModelInput'
          description: Graduated tiered pricing model (required when type=graduated_tiered)
          nullable: true
        matrix_pricing_model:
          allOf:
            - $ref: '#/components/schemas/MatrixPricingModelInput'
          description: Matrix pricing model (required when type=matrix)
          nullable: true
        maximum_spend:
          allOf:
            - $ref: '#/components/schemas/SpendingThresholdInput'
          description: Maximum spend per period
          nullable: true
        metric_ids:
          description: Metric IDs (required for metered fee type)
          items:
            type: string
          type: array
        minimum_spend:
          allOf:
            - $ref: '#/components/schemas/SpendingThresholdInput'
          description: Minimum spend per period
          nullable: true
        prepaid_fixed_tiered_pricing_model:
          allOf:
            - $ref: '#/components/schemas/PrepaidFixedTieredPricingModelInput'
          description: >-
            Prepaid fixed tiered pricing model (required when
            type=prepaid_fixed_tiered)
          nullable: true
        prepaid_tiered_pricing_model:
          allOf:
            - $ref: '#/components/schemas/PrepaidTieredPricingModelInput'
          description: Prepaid tiered pricing model (required when type=prepaid_tiered)
          nullable: true
        recurring_instalment_interval_count:
          description: >-
            Positive count of RecurringInstalmentIntervalUnits per instalment;
            must divide cleanly into the billing interval
          example: 1
          format: int64
          nullable: true
          type: integer
        recurring_instalment_interval_unit:
          description: >-
            Optional sub-cadence unit splitting the advance charge into
            instalments within each billing cycle (currently only 'month'
            accepted)
          enum:
            - day
            - week
            - month
            - year
          example: month
          nullable: true
          type: string
        tiered_percentage_pricing_model:
          allOf:
            - $ref: '#/components/schemas/TieredPercentagePricingModelInput'
          description: >-
            Tiered percentage pricing model (required when
            type=tiered_percentage)
          nullable: true
        tiered_pricing_model:
          allOf:
            - $ref: '#/components/schemas/TieredPricingModelInput'
          description: Tiered pricing model (required when type=tiered)
          nullable: true
        trial_period_days:
          description: Trial period in days (minimum 1)
          example: 30
          format: int64
          nullable: true
          type: integer
        type:
          description: Pricing type
          enum:
            - unit
            - fixed
            - tiered
            - graduated_tiered
            - tiered_percentage
            - graduated_percentage
            - volume_percentage
            - prepaid_tiered
            - prepaid_fixed_tiered
            - expression
            - matrix
          example: fixed
          type: string
        unit_pricing_model:
          allOf:
            - $ref: '#/components/schemas/UnitPricingModelInput'
          description: Unit pricing model (required when type=unit)
          nullable: true
        volume_percentage_pricing_model:
          allOf:
            - $ref: '#/components/schemas/VolumePercentagePricingModelInput'
          description: >-
            Volume percentage pricing model (required when
            type=volume_percentage)
          nullable: true
      required:
        - billing_direction
        - fee_type
        - type
      type: object
    DiscountInput:
      properties:
        amount:
          description: Discount amount
          example: '10'
          type: string
        duration_type:
          description: Duration type
          enum:
            - fixed
            - monthly_rolling
          example: fixed
          type: string
        duration_unit:
          description: Duration unit
          example: months
          nullable: true
          type: string
        duration_value:
          description: Duration value
          example: 6
          format: int64
          nullable: true
          type: integer
        type:
          description: Discount type (percentage only for subscription-level)
          example: percentage
          type: string
      required:
        - amount
        - duration_type
        - type
      type: object
    ExpressionPricingModelInput:
      properties:
        charges:
          description: Expression-based charges
          items:
            $ref: '#/components/schemas/ExpressionChargeInput'
          type: array
        metric_bindings:
          description: Alias-to-metric bindings referenced in expressions
          items:
            $ref: '#/components/schemas/MetricBinding'
          type: array
      required:
        - charges
      type: object
    FixedPricingModelInput:
      properties:
        price_per_unit:
          description: Price per unit
          example: '500.00'
          type: string
        units:
          description: Number of units
          example: 1
          format: int64
          type: integer
      required:
        - price_per_unit
        - units
      type: object
    GraduatedPercentagePricingModelInput:
      properties:
        tiers:
          description: Percentage-based pricing tiers
          items:
            $ref: '#/components/schemas/PercentageTierInput'
          type: array
      required:
        - tiers
      type: object
    GraduatedTieredPricingModelInput:
      properties:
        tiers:
          description: Pricing tiers
          items:
            $ref: '#/components/schemas/PricingTierInput'
          type: array
        units:
          description: Fixed quantity of units (for fixed fee type only)
          example: 10
          format: int64
          nullable: true
          type: integer
      required:
        - tiers
      type: object
    MatrixPricingModelInput:
      properties:
        dimensions:
          description: Event property dimensions used by the matrix
          items:
            $ref: '#/components/schemas/MatrixDimensionDefinitionInput'
          type: array
        line_item_template:
          description: Default invoice line description template for matrix cells
          type: string
        root:
          allOf:
            - $ref: '#/components/schemas/MatrixNodeInput'
          description: Root of the matrix routing tree
      required:
        - dimensions
        - root
      type: object
    SpendingThresholdInput:
      properties:
        amount:
          description: Amount
          example: '500.00'
          type: string
        billing_direction:
          description: >-
            Bill a minimum spend in advance of each period, drawn down by spend,
            instead of trueing it up in arrears
          enum:
            - advance
            - arrears
          example: arrears
          type: string
        period:
          description: Billing period
          enum:
            - monthly
            - quarterly
            - semi_annual
            - yearly
          example: monthly
          type: string
      required:
        - amount
        - period
      type: object
    PrepaidFixedTieredPricingModelInput:
      properties:
        overages_charge_interval:
          description: Overage charge interval
          enum:
            - monthly
            - quarterly
            - semi_annual
            - yearly
          example: monthly
          type: string
        prepaid_units:
          description: Number of prepaid units
          example: 50000
          format: int64
          type: integer
        tiers:
          description: Overage pricing tiers
          items:
            $ref: '#/components/schemas/PricingTierInput'
          type: array
      required:
        - overages_charge_interval
        - prepaid_units
        - tiers
      type: object
    PrepaidTieredPricingModelInput:
      properties:
        prepaid_units:
          description: Number of prepaid units
          example: 50000
          format: int64
          type: integer
        tiers:
          description: Overage pricing tiers
          items:
            $ref: '#/components/schemas/PricingTierInput'
          type: array
      required:
        - prepaid_units
        - tiers
      type: object
    TieredPercentagePricingModelInput:
      properties:
        tiers:
          description: Percentage-based pricing tiers
          items:
            $ref: '#/components/schemas/PercentageTierInput'
          type: array
      required:
        - tiers
      type: object
    TieredPricingModelInput:
      properties:
        tiers:
          description: Pricing tiers
          items:
            $ref: '#/components/schemas/PricingTierInput'
          type: array
        units:
          description: Fixed quantity of units (for fixed fee type only)
          example: 10
          format: int64
          nullable: true
          type: integer
      required:
        - tiers
      type: object
    UnitPricingModelInput:
      properties:
        price_per_unit:
          description: Price per unit
          example: '0.05'
          type: string
      required:
        - price_per_unit
      type: object
    VolumePercentagePricingModelInput:
      properties:
        fixed_fee:
          description: Optional fixed fee
          example: '5.00'
          nullable: true
          type: string
        percentage:
          description: Percentage rate
          example: '2.0'
          type: string
        price_per_unit:
          description: Base price per unit
          example: '0.05'
          type: string
      required:
        - percentage
        - price_per_unit
      type: object
    ExpressionChargeInput:
      properties:
        billing_direction:
          description: Billing direction
          enum:
            - advance
            - arrears
          example: arrears
          type: string
        description:
          description: Charge description
          example: API usage charge
          type: string
        quantity_expression:
          description: Expression for quantity
          example: usage.api_calls
          type: string
        unit_price_expression:
          description: Expression for unit price
          example: '0.01'
          type: string
      required:
        - billing_direction
        - description
        - quantity_expression
        - unit_price_expression
      type: object
    MetricBinding:
      properties:
        alias:
          description: Alias referenced in charge expressions
          example: api_calls
          type: string
        metric_id:
          description: Metric ID bound to the alias
          type: string
      required:
        - alias
        - metric_id
      type: object
    PercentageTierInput:
      properties:
        fixed_fee:
          description: Fixed fee
          example: '10.00'
          nullable: true
          type: string
        max_units:
          description: Upper bound (null = unlimited)
          example: 10000
          format: int64
          nullable: true
          type: integer
        min_units:
          description: Lower bound of the tier (inclusive)
          example: 0
          format: int64
          type: integer
        percentage:
          description: Percentage rate
          example: '2.5'
          nullable: true
          type: string
      required:
        - min_units
      type: object
    PricingTierInput:
      properties:
        fixed_fee:
          description: Fixed fee for this tier
          example: '10.00'
          nullable: true
          type: string
        max_units:
          description: Upper bound (null = unlimited)
          example: 10000
          format: int64
          nullable: true
          type: integer
        min_units:
          description: Lower bound of the tier (inclusive)
          example: 0
          format: int64
          type: integer
        price_per_unit:
          description: Price per unit
          example: '0.02'
          nullable: true
          type: string
        unit_price:
          description: >-
            Committed per-unit rate for prepaid-with-overages commitment tiers;
            when set, the tier's fixed fee is derived as unit_price × committed
            units
          example: '5.00'
          nullable: true
          type: string
      required:
        - min_units
      type: object
    MatrixDimensionDefinitionInput:
      properties:
        key:
          description: Event property key used by this dimension
          type: string
        label:
          description: Display label for this dimension
          type: string
        values:
          description: Authored values offered for this dimension
          items:
            type: string
          type: array
      required:
        - key
        - label
      type: object
    MatrixNodeInput:
      properties:
        fallback:
          allOf:
            - $ref: '#/components/schemas/MatrixNodeInput'
          description: Route used when no split claims an event
          nullable: true
        leaf:
          allOf:
            - $ref: '#/components/schemas/MatrixPriceCellInput'
          description: Price applied when this node is a cell
          nullable: true
        splits:
          description: Ordered routing choices at this node
          items:
            $ref: '#/components/schemas/MatrixDimensionRuleInput'
          type: array
      type: object
    MatrixPriceCellInput:
      properties:
        cell_key:
          description: Stable identity of an existing matrix cell; omitted for a new cell
          type: string
        fixed_pricing_model:
          allOf:
            - $ref: '#/components/schemas/FixedPricingModelInput'
          description: Fixed pricing details
          nullable: true
        graduated_percentage_pricing_model:
          allOf:
            - $ref: '#/components/schemas/GraduatedPercentagePricingModelInput'
          description: Graduated percentage pricing details
          nullable: true
        graduated_tiered_pricing_model:
          allOf:
            - $ref: '#/components/schemas/GraduatedTieredPricingModelInput'
          description: Graduated tiered pricing details
          nullable: true
        label:
          description: >-
            Invoice line label for this cell, including an explicitly empty
            label
          nullable: true
          type: string
        tiered_percentage_pricing_model:
          allOf:
            - $ref: '#/components/schemas/TieredPercentagePricingModelInput'
          description: Tiered percentage pricing details
          nullable: true
        tiered_pricing_model:
          allOf:
            - $ref: '#/components/schemas/TieredPricingModelInput'
          description: Tiered pricing details
          nullable: true
        type:
          description: Pricing model used by this cell
          enum:
            - unit
            - fixed
            - tiered
            - graduated_tiered
            - tiered_percentage
            - graduated_percentage
            - volume_percentage
          type: string
        unit_pricing_model:
          allOf:
            - $ref: '#/components/schemas/UnitPricingModelInput'
          description: Unit pricing details
          nullable: true
        volume_percentage_pricing_model:
          allOf:
            - $ref: '#/components/schemas/VolumePercentagePricingModelInput'
          description: Volume percentage pricing details
          nullable: true
      required:
        - type
      type: object
    MatrixDimensionRuleInput:
      properties:
        branches:
          description: Exact property-value branches
          items:
            $ref: '#/components/schemas/MatrixExactMatchInput'
          type: array
        dimension_key:
          description: Dimension evaluated by this split
          type: string
        wildcard:
          allOf:
            - $ref: '#/components/schemas/MatrixNodeInput'
          description: Route for a present property value without an exact branch
          nullable: true
      required:
        - branches
        - dimension_key
      type: object
    MatrixExactMatchInput:
      properties:
        child:
          allOf:
            - $ref: '#/components/schemas/MatrixNodeInput'
          description: Route taken for this value
        value:
          description: Exact event property value matched by this branch
          type: string
      required:
        - child
        - value
      type: object
  securitySchemes:
    bearerAuth:
      bearerFormat: API Key
      description: API key authentication. Pass your API key as a Bearer token.
      scheme: bearer
      type: http

````