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

# Accept a published Quote

> Mark a quote as signed. This endpoint is disabled when e-signatures are active. The quote dashboard must be used instead.



## OpenAPI

````yaml quote.latest.product.live POST /quotes/{id}/accept
openapi: 3.0.0
info:
  title: ''
  description: ''
  version: 0.0.1
servers:
  - url: https://dev.seqhq.io
    description: E2E
  - url: https://dev.seqhq.io
    description: DEV
  - url: https://sandbox.sequencehq.com
    description: SANDBOX
  - url: https://eu.sequencehq.com
    description: PRODUCTION
security: []
tags:
  - name: Quotes
  - name: Quote Templates
paths:
  /quotes/{id}/accept:
    servers: []
    parameters: []
    post:
      tags:
        - Quotes
      summary: Accept a published Quote
      description: >-
        Mark a quote as signed. This endpoint is disabled when e-signatures are
        active. The quote dashboard must be used instead.
      operationId: postQuotesByIdAccept
      parameters:
        - name: id
          in: path
          description: Quote Id
          required: true
          schema:
            type: string
        - name: Authorization
          in: header
          description: >-
            Your [API credentials](/reference/authentication). Eg. `Basic
            {credentials}`.
          required: true
          schema:
            type: string
        - name: sequence-version
          in: header
          description: Use this header to select an API version
          required: false
          schema:
            type: string
            enum:
              - '2024-07-30'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AcceptQuoteRequestBody'
              example:
                purchaseOrderNumber: PO-12345
            examples:
              AcceptQuoteRequestBody:
                summary: ''
                value:
                  purchaseOrderNumber: PO-12345
        required: false
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicPublishedQuote'
                example:
                  id: 678ca125-8bc3-478f-9a96-6ba73605cf1e
                  createdBy: 4ffd439e-32e5-4046-bb40-3cb81f40e5da
                  customerId: 377bf97b-ca1d-4538-be06-4022afa6bde3
                  quoteNumber: Q00001
                  title: My quote
                  currency: GBP
                  status: EXECUTED
                  dealType: AMENDMENT
                  amendment:
                    billingScheduleId: 0192a3b4-5c6d-7e8f-9a0b-1c2d3e4f5a6b
                    effectiveFrom: '2022-11-01'
                    executableUntil: '2022-11-01'
                    appliedFrom: '2022-11-01'
                    original:
                      phases:
                        - name: Year 1
                          startDate: '2022-01-01'
                          endDate: '2022-12-31'
                          prices:
                            - productId: e007e884-5100-4183-8355-4771865cb4dd
                              name: API calls
                              structure:
                                tiers:
                                  - upperBound: '1000'
                                    price: '0.25'
                                    fee: '50'
                                    isPricePercentage: false
                                  - price: '0.1'
                                    fee: '0'
                                    isPricePercentage: false
                                usageMetricId: 04c62961-04ba-48e6-b985-758bb7d3e712
                                usageCalculationMode: PERIODIC
                                pricingType: GRADUATED
                              billingFrequency: MONTHLY
                              billingType: IN_ARREARS
                              usageCalculationPeriod:
                                frequency: MONTHLY
                                interval: 1
                              customMetricParameters:
                                - parameterId: 2963e49a-c8e0-4673-89f5-7a805c0faf14
                                  value: '10'
                          discounts:
                            - discountCalculationType: PERCENTAGE
                              amount: '10'
                              message: 10% off API calls
                              seatDiscountType: ALL_SEATS
                              productIds:
                                - e007e884-5100-4183-8355-4771865cb4dd
                          minimums:
                            - amount: '500'
                              productIds:
                                - e007e884-5100-4183-8355-4771865cb4dd
                    amended:
                      phases:
                        - name: Year 1
                          startDate: '2022-01-01'
                          endDate: '2022-12-31'
                          prices:
                            - productId: e007e884-5100-4183-8355-4771865cb4dd
                              name: API calls
                              structure:
                                tiers:
                                  - upperBound: '1000'
                                    price: '0.25'
                                    fee: '50'
                                    isPricePercentage: false
                                  - price: '0.1'
                                    fee: '0'
                                    isPricePercentage: false
                                usageMetricId: 04c62961-04ba-48e6-b985-758bb7d3e712
                                usageCalculationMode: PERIODIC
                                pricingType: GRADUATED
                              billingFrequency: MONTHLY
                              billingType: IN_ARREARS
                              usageCalculationPeriod:
                                frequency: MONTHLY
                                interval: 1
                              customMetricParameters:
                                - parameterId: 2963e49a-c8e0-4673-89f5-7a805c0faf14
                                  value: '10'
                          discounts:
                            - discountCalculationType: PERCENTAGE
                              amount: '10'
                              message: 10% off API calls
                              seatDiscountType: ALL_SEATS
                              productIds:
                                - e007e884-5100-4183-8355-4771865cb4dd
                          minimums:
                            - amount: '500'
                              productIds:
                                - e007e884-5100-4183-8355-4771865cb4dd
                    originalContractValue: '12000'
                    amendedContractValue: '15500'
                    adjustmentTotal: '3500'
                    supersededByQuoteId: 0192a3b4-6d7e-7f80-9a1b-2c3d4e5f6a7b
                    outForSignatureQuoteId: 0192a3b4-7e8f-7a91-8b2c-3d4e5f6a7b8c
                  preliminaryBillingStartDate: '2022-10-01'
                  expiresAt: '2022-10-01'
                  publishedAt: '2022-06-28T16:47:00Z'
                  readyToSignAt: '2022-06-28T16:47:00Z'
                  acceptedAt: '2022-06-28T16:47:00Z'
                  executedAt: '2022-06-28T16:47:00Z'
                  createdAt: '2022-06-28T16:47:00Z'
                  updatedAt: '2022-06-28T16:47:00Z'
                  createdFrom:
                    entityType: QUOTE
                    entityId: dc0e2104-7df5-4fc1-8f65-1823f427d111
                  salesforceOpportunityId: 006Hr00001MfnEIIAZ
                  merchantBranding:
                    logoUrl: logo
                    legalCompanyName: Acme Corp
                    primaryColour: colour
                    url: www.example.com
                    address:
                      line1: 1 Market Street
                      line2: Suite 100
                      town: San Francisco
                      state: CA
                      postcode: '94105'
                      country: US
                    email: accounting@example.com
                    showUsageInCustomerPortal: true
                    supportEmail: support@example.com
                    supportUrl: https://www.example.com/support
                  phases:
                    - id: abe4bf01-9b75-495d-f5fd-ca82b001f3a8
                      name: Onboarding
                      createdAt: '2022-06-28T16:47:00Z'
                      duration:
                        days: -1
                        weeks: 0
                        months: 6
                        years: 1
                      prices:
                        - id: 5100e884-e007-4183-8355-4771865cb4d7
                          productId: e007e884-5100-4183-8355-4771865cb4dd
                          name: Sample product
                          structure:
                            price: '150.00'
                            pricingType: ONE_TIME
                          billingFrequency: MONTHLY
                          billingType: IN_ARREARS
                          createdAt: '2021-08-25T12:00:00Z'
                          updatedAt: '2021-08-25T12:00:00Z'
                          integrationIds:
                            - service: Xero
                              id: '123'
                              isPending: false
                          customMetricParameters:
                            - parameterId: 2963e49a-c8e0-4673-89f5-7a805c0faf14
                              value: '10'
                          listPriceId: b4d7e884-e007-4183-8355-4771865c5100
                        - id: 5100e884-e007-4183-8355-4771865cb4d7
                          productId: e007e884-5100-4183-8355-4771865cb4dd
                          name: Sample product
                          structure:
                            price: '20.00'
                            pricingType: FIXED
                          billingFrequency: MONTHLY
                          billingType: IN_ARREARS
                          createdAt: '2021-08-25T12:00:00Z'
                          updatedAt: '2021-08-25T12:00:00Z'
                          integrationIds:
                            - service: Xero
                              id: '123'
                              isPending: false
                          customMetricParameters:
                            - parameterId: 2963e49a-c8e0-4673-89f5-7a805c0faf14
                              value: '10'
                          listPriceId: b4d7e884-e007-4183-8355-4771865c5100
                        - id: 5100e884-e007-4183-8355-4771865cb4d7
                          productId: e007e884-5100-4183-8355-4771865cb4dd
                          name: Sample product
                          structure:
                            pricePerUnit: '0.25'
                            usageMetricId: 04c62961-04ba-48e6-b985-758bb7d3e712
                            isPricePercentage: false
                            pricingType: LINEAR
                          billingFrequency: MONTHLY
                          billingType: IN_ARREARS
                          createdAt: '2021-08-25T12:00:00Z'
                          updatedAt: '2021-08-25T12:00:00Z'
                          integrationIds:
                            - service: Xero
                              id: '123'
                              isPending: false
                          customMetricParameters:
                            - parameterId: 2963e49a-c8e0-4673-89f5-7a805c0faf14
                              value: '10'
                          listPriceId: b4d7e884-e007-4183-8355-4771865c5100
                        - id: 5100e884-e007-4183-8355-4771865cb4d7
                          productId: e007e884-5100-4183-8355-4771865cb4dd
                          name: Sample product
                          structure:
                            seatMetricId: bc61d4b8-e9d6-4f4a-9bcf-f5dae874c730
                            pricePerSeat: '0.25'
                            prorationStrategy: USE_MAXIMUM
                            contractedMinimumSeats: 10
                            overagesBillingFrequency: YEARLY
                            tiers:
                              - upperBound: '100'
                                price: '1.00'
                                fee: '50.00'
                              - price: '0.75'
                                fee: '25.00'
                            prorateFlatFees: false
                            pricingType: SEAT_BASED
                          billingFrequency: MONTHLY
                          billingType: IN_ARREARS
                          createdAt: '2021-08-25T12:00:00Z'
                          updatedAt: '2021-08-25T12:00:00Z'
                          integrationIds:
                            - service: Xero
                              id: '123'
                              isPending: false
                          customMetricParameters:
                            - parameterId: 2963e49a-c8e0-4673-89f5-7a805c0faf14
                              value: '10'
                          listPriceId: b4d7e884-e007-4183-8355-4771865c5100
                        - id: 5100e884-e007-4183-8355-4771865cb4d7
                          productId: e007e884-5100-4183-8355-4771865cb4dd
                          name: Sample product
                          structure:
                            tiers:
                              - upperBound: '200'
                                price: '1.00'
                                fee: '50.00'
                                isPricePercentage: false
                              - upperBound: '400'
                                price: '0.75'
                                fee: '25.00'
                                isPricePercentage: false
                              - price: '0.50'
                                fee: '0.00'
                                isPricePercentage: false
                            usageMetricId: 04c62961-04ba-48e6-b985-758bb7d3e712
                            usageCalculationMode: BILLING_PERIOD
                            pricingType: GRADUATED
                          billingFrequency: MONTHLY
                          billingType: IN_ARREARS
                          createdAt: '2021-08-25T12:00:00Z'
                          updatedAt: '2021-08-25T12:00:00Z'
                          integrationIds:
                            - service: Xero
                              id: '123'
                              isPending: false
                          customMetricParameters:
                            - parameterId: 2963e49a-c8e0-4673-89f5-7a805c0faf14
                              value: '10'
                          listPriceId: b4d7e884-e007-4183-8355-4771865c5100
                          usageCalculationPeriod:
                            frequency: MONTHLY
                            interval: 1
                        - id: 5100e884-e007-4183-8355-4771865cb4d7
                          productId: e007e884-5100-4183-8355-4771865cb4dd
                          name: Sample product
                          structure:
                            tiers:
                              - upperBound: '100'
                                price: '1.00'
                                fee: '50.00'
                                isPricePercentage: true
                                maxPrice: '10'
                                minPrice: '5'
                              - price: '0.75'
                                fee: '25.00'
                                isPricePercentage: true
                                maxPrice: '10'
                                minPrice: '5'
                            usageMetricId: 04c62961-04ba-48e6-b985-758bb7d3e712
                            pricingType: VOLUME
                          billingFrequency: MONTHLY
                          billingType: IN_ARREARS
                          createdAt: '2021-08-25T12:00:00Z'
                          updatedAt: '2021-08-25T12:00:00Z'
                          integrationIds:
                            - service: Xero
                              id: '123'
                              isPending: false
                          customMetricParameters:
                            - parameterId: 2963e49a-c8e0-4673-89f5-7a805c0faf14
                              value: '10'
                          listPriceId: b4d7e884-e007-4183-8355-4771865c5100
                        - id: 5100e884-e007-4183-8355-4771865cb4d7
                          productId: e007e884-5100-4183-8355-4771865cb4dd
                          name: Sample product
                          structure:
                            packageSize: '50'
                            pricePerPackage: '2.00'
                            usageMetricId: 04c62961-04ba-48e6-b985-758bb7d3e712
                            pricingType: PACKAGE
                          billingFrequency: MONTHLY
                          billingType: IN_ARREARS
                          createdAt: '2021-08-25T12:00:00Z'
                          updatedAt: '2021-08-25T12:00:00Z'
                          integrationIds:
                            - service: Xero
                              id: '123'
                              isPending: false
                          customMetricParameters:
                            - parameterId: 2963e49a-c8e0-4673-89f5-7a805c0faf14
                              value: '10'
                          listPriceId: b4d7e884-e007-4183-8355-4771865c5100
                      discounts:
                        - id: 018f920a-40d1-7e62-91ca-f3a4b4ac5d9d
                          restrictToPrices:
                            - 5100e884-e007-4183-8355-4771865cb4d7
                          amount: '50'
                          discountCalculationType: PERCENTAGE
                          message: message
                          createdAt: '2021-08-25T12:00:00Z'
                          updatedAt: '2021-08-25T12:00:00Z'
                          seatDiscountType: ALL_SEATS
                      minimums:
                        - id: 018f9164-c2d9-7eb2-bb98-11ecb5454055
                          amount: '50'
                          restrictToPrices:
                            - 5100e884-e007-4183-8355-4771865cb4d7
                          createdAt: '2021-08-25T12:00:00Z'
                          updatedAt: '2021-08-25T12:00:00Z'
                  contacts:
                    - contactId: 9a1e38a9-4dc9-776f-f974-4e7ee9f4d6cc
                      name: Jane Doe
                      email: jane@example.com
                      signedAt: '2022-06-28T16:47:00Z'
                      notificationHistory:
                        - notifiedAt: '2022-06-28T16:47:00Z'
                          trigger: PUBLISH
                  ccContacts:
                    - contactId: 9a1e38a9-4dc9-776f-f974-4e7ee9f4d6cd
                      name: John Smith
                      email: john@example.com
                      notificationHistory:
                        - notifiedAt: '2022-06-28T16:47:00Z'
                          trigger: PUBLISH
                  counterSigners:
                    - id: 0190da0c-980d-7fa2-9b65-4c79784a95b1
                      name: Jane Doe
                      email: jane@example.com
                      signedAt: '2022-06-28T16:47:00Z'
                      notificationHistory:
                        - notifiedAt: '2022-06-28T16:47:00Z'
                          trigger: PUBLISH
                  isSignaturesEnabled: false
                  customerLegalName: Acme Corp
                  customerAddress:
                    line1: 1 Fake Street
                    line2: Fakesville
                    town: Faketown
                    state: CA
                    postcode: F4KE
                    country: US
                  pdfStatus: NOT_YET_REQUESTED
                  archivedAt: '2022-06-28T16:47:00Z'
                  purchaseOrderNumber: PO-12345
                  attachmentAssets:
                    - id: e007e884-5100-4183-8355-4771865cb4dd
                      createdBy: 94703530-1293-479b-bd37-ccad42fd9c8b
                      createdByType: SEQUENCE_USER
                      type: IMAGE
                      format: PNG
                      fileName: my-image.png
                      fileSizeBytes: 12345
                      url: >-
                        https://assets.sequencehq.com/018f9ad5-4192-76d7-aea5-d80a9018eded/images/e007e884-5100-4183-8355-4771865cb4dd.png
                      createdAt: '2022-06-28T16:47:00Z'
                  isExpired: false
                  defaultDueDateDays: 30
                  signatureMode: EMBEDDED
                  preparingSignatureRequestAt: '2022-06-28T16:47:00Z'
              examples:
                PublicPublishedQuote:
                  summary: ''
                  value:
                    id: 678ca125-8bc3-478f-9a96-6ba73605cf1e
                    createdBy: 4ffd439e-32e5-4046-bb40-3cb81f40e5da
                    customerId: 377bf97b-ca1d-4538-be06-4022afa6bde3
                    quoteNumber: Q00001
                    title: My quote
                    currency: GBP
                    status: EXECUTED
                    dealType: AMENDMENT
                    amendment:
                      billingScheduleId: 0192a3b4-5c6d-7e8f-9a0b-1c2d3e4f5a6b
                      effectiveFrom: '2022-11-01'
                      executableUntil: '2022-11-01'
                      appliedFrom: '2022-11-01'
                      original:
                        phases:
                          - name: Year 1
                            startDate: '2022-01-01'
                            endDate: '2022-12-31'
                            prices:
                              - productId: e007e884-5100-4183-8355-4771865cb4dd
                                name: API calls
                                structure:
                                  tiers:
                                    - upperBound: '1000'
                                      price: '0.25'
                                      fee: '50'
                                      isPricePercentage: false
                                    - price: '0.1'
                                      fee: '0'
                                      isPricePercentage: false
                                  usageMetricId: 04c62961-04ba-48e6-b985-758bb7d3e712
                                  usageCalculationMode: PERIODIC
                                  pricingType: GRADUATED
                                billingFrequency: MONTHLY
                                billingType: IN_ARREARS
                                usageCalculationPeriod:
                                  frequency: MONTHLY
                                  interval: 1
                                customMetricParameters:
                                  - parameterId: 2963e49a-c8e0-4673-89f5-7a805c0faf14
                                    value: '10'
                            discounts:
                              - discountCalculationType: PERCENTAGE
                                amount: '10'
                                message: 10% off API calls
                                seatDiscountType: ALL_SEATS
                                productIds:
                                  - e007e884-5100-4183-8355-4771865cb4dd
                            minimums:
                              - amount: '500'
                                productIds:
                                  - e007e884-5100-4183-8355-4771865cb4dd
                      amended:
                        phases:
                          - name: Year 1
                            startDate: '2022-01-01'
                            endDate: '2022-12-31'
                            prices:
                              - productId: e007e884-5100-4183-8355-4771865cb4dd
                                name: API calls
                                structure:
                                  tiers:
                                    - upperBound: '1000'
                                      price: '0.25'
                                      fee: '50'
                                      isPricePercentage: false
                                    - price: '0.1'
                                      fee: '0'
                                      isPricePercentage: false
                                  usageMetricId: 04c62961-04ba-48e6-b985-758bb7d3e712
                                  usageCalculationMode: PERIODIC
                                  pricingType: GRADUATED
                                billingFrequency: MONTHLY
                                billingType: IN_ARREARS
                                usageCalculationPeriod:
                                  frequency: MONTHLY
                                  interval: 1
                                customMetricParameters:
                                  - parameterId: 2963e49a-c8e0-4673-89f5-7a805c0faf14
                                    value: '10'
                            discounts:
                              - discountCalculationType: PERCENTAGE
                                amount: '10'
                                message: 10% off API calls
                                seatDiscountType: ALL_SEATS
                                productIds:
                                  - e007e884-5100-4183-8355-4771865cb4dd
                            minimums:
                              - amount: '500'
                                productIds:
                                  - e007e884-5100-4183-8355-4771865cb4dd
                      originalContractValue: '12000'
                      amendedContractValue: '15500'
                      adjustmentTotal: '3500'
                      supersededByQuoteId: 0192a3b4-6d7e-7f80-9a1b-2c3d4e5f6a7b
                      outForSignatureQuoteId: 0192a3b4-7e8f-7a91-8b2c-3d4e5f6a7b8c
                    preliminaryBillingStartDate: '2022-10-01'
                    expiresAt: '2022-10-01'
                    publishedAt: '2022-06-28T16:47:00Z'
                    readyToSignAt: '2022-06-28T16:47:00Z'
                    acceptedAt: '2022-06-28T16:47:00Z'
                    executedAt: '2022-06-28T16:47:00Z'
                    createdAt: '2022-06-28T16:47:00Z'
                    updatedAt: '2022-06-28T16:47:00Z'
                    createdFrom:
                      entityType: QUOTE
                      entityId: dc0e2104-7df5-4fc1-8f65-1823f427d111
                    salesforceOpportunityId: 006Hr00001MfnEIIAZ
                    merchantBranding:
                      logoUrl: logo
                      legalCompanyName: Acme Corp
                      primaryColour: colour
                      url: www.example.com
                      address:
                        line1: 1 Market Street
                        line2: Suite 100
                        town: San Francisco
                        state: CA
                        postcode: '94105'
                        country: US
                      email: accounting@example.com
                      showUsageInCustomerPortal: true
                      supportEmail: support@example.com
                      supportUrl: https://www.example.com/support
                    phases:
                      - id: abe4bf01-9b75-495d-f5fd-ca82b001f3a8
                        name: Onboarding
                        createdAt: '2022-06-28T16:47:00Z'
                        duration:
                          days: -1
                          weeks: 0
                          months: 6
                          years: 1
                        prices:
                          - id: 5100e884-e007-4183-8355-4771865cb4d7
                            productId: e007e884-5100-4183-8355-4771865cb4dd
                            name: Sample product
                            structure:
                              price: '150.00'
                              pricingType: ONE_TIME
                            billingFrequency: MONTHLY
                            billingType: IN_ARREARS
                            createdAt: '2021-08-25T12:00:00Z'
                            updatedAt: '2021-08-25T12:00:00Z'
                            integrationIds:
                              - service: Xero
                                id: '123'
                                isPending: false
                            customMetricParameters:
                              - parameterId: 2963e49a-c8e0-4673-89f5-7a805c0faf14
                                value: '10'
                            listPriceId: b4d7e884-e007-4183-8355-4771865c5100
                          - id: 5100e884-e007-4183-8355-4771865cb4d7
                            productId: e007e884-5100-4183-8355-4771865cb4dd
                            name: Sample product
                            structure:
                              price: '20.00'
                              pricingType: FIXED
                            billingFrequency: MONTHLY
                            billingType: IN_ARREARS
                            createdAt: '2021-08-25T12:00:00Z'
                            updatedAt: '2021-08-25T12:00:00Z'
                            integrationIds:
                              - service: Xero
                                id: '123'
                                isPending: false
                            customMetricParameters:
                              - parameterId: 2963e49a-c8e0-4673-89f5-7a805c0faf14
                                value: '10'
                            listPriceId: b4d7e884-e007-4183-8355-4771865c5100
                          - id: 5100e884-e007-4183-8355-4771865cb4d7
                            productId: e007e884-5100-4183-8355-4771865cb4dd
                            name: Sample product
                            structure:
                              pricePerUnit: '0.25'
                              usageMetricId: 04c62961-04ba-48e6-b985-758bb7d3e712
                              isPricePercentage: false
                              pricingType: LINEAR
                            billingFrequency: MONTHLY
                            billingType: IN_ARREARS
                            createdAt: '2021-08-25T12:00:00Z'
                            updatedAt: '2021-08-25T12:00:00Z'
                            integrationIds:
                              - service: Xero
                                id: '123'
                                isPending: false
                            customMetricParameters:
                              - parameterId: 2963e49a-c8e0-4673-89f5-7a805c0faf14
                                value: '10'
                            listPriceId: b4d7e884-e007-4183-8355-4771865c5100
                          - id: 5100e884-e007-4183-8355-4771865cb4d7
                            productId: e007e884-5100-4183-8355-4771865cb4dd
                            name: Sample product
                            structure:
                              seatMetricId: bc61d4b8-e9d6-4f4a-9bcf-f5dae874c730
                              pricePerSeat: '0.25'
                              prorationStrategy: USE_MAXIMUM
                              contractedMinimumSeats: 10
                              overagesBillingFrequency: YEARLY
                              tiers:
                                - upperBound: '100'
                                  price: '1.00'
                                  fee: '50.00'
                                - price: '0.75'
                                  fee: '25.00'
                              prorateFlatFees: false
                              pricingType: SEAT_BASED
                            billingFrequency: MONTHLY
                            billingType: IN_ARREARS
                            createdAt: '2021-08-25T12:00:00Z'
                            updatedAt: '2021-08-25T12:00:00Z'
                            integrationIds:
                              - service: Xero
                                id: '123'
                                isPending: false
                            customMetricParameters:
                              - parameterId: 2963e49a-c8e0-4673-89f5-7a805c0faf14
                                value: '10'
                            listPriceId: b4d7e884-e007-4183-8355-4771865c5100
                          - id: 5100e884-e007-4183-8355-4771865cb4d7
                            productId: e007e884-5100-4183-8355-4771865cb4dd
                            name: Sample product
                            structure:
                              tiers:
                                - upperBound: '200'
                                  price: '1.00'
                                  fee: '50.00'
                                  isPricePercentage: false
                                - upperBound: '400'
                                  price: '0.75'
                                  fee: '25.00'
                                  isPricePercentage: false
                                - price: '0.50'
                                  fee: '0.00'
                                  isPricePercentage: false
                              usageMetricId: 04c62961-04ba-48e6-b985-758bb7d3e712
                              usageCalculationMode: BILLING_PERIOD
                              pricingType: GRADUATED
                            billingFrequency: MONTHLY
                            billingType: IN_ARREARS
                            createdAt: '2021-08-25T12:00:00Z'
                            updatedAt: '2021-08-25T12:00:00Z'
                            integrationIds:
                              - service: Xero
                                id: '123'
                                isPending: false
                            customMetricParameters:
                              - parameterId: 2963e49a-c8e0-4673-89f5-7a805c0faf14
                                value: '10'
                            listPriceId: b4d7e884-e007-4183-8355-4771865c5100
                            usageCalculationPeriod:
                              frequency: MONTHLY
                              interval: 1
                          - id: 5100e884-e007-4183-8355-4771865cb4d7
                            productId: e007e884-5100-4183-8355-4771865cb4dd
                            name: Sample product
                            structure:
                              tiers:
                                - upperBound: '100'
                                  price: '1.00'
                                  fee: '50.00'
                                  isPricePercentage: true
                                  maxPrice: '10'
                                  minPrice: '5'
                                - price: '0.75'
                                  fee: '25.00'
                                  isPricePercentage: true
                                  maxPrice: '10'
                                  minPrice: '5'
                              usageMetricId: 04c62961-04ba-48e6-b985-758bb7d3e712
                              pricingType: VOLUME
                            billingFrequency: MONTHLY
                            billingType: IN_ARREARS
                            createdAt: '2021-08-25T12:00:00Z'
                            updatedAt: '2021-08-25T12:00:00Z'
                            integrationIds:
                              - service: Xero
                                id: '123'
                                isPending: false
                            customMetricParameters:
                              - parameterId: 2963e49a-c8e0-4673-89f5-7a805c0faf14
                                value: '10'
                            listPriceId: b4d7e884-e007-4183-8355-4771865c5100
                          - id: 5100e884-e007-4183-8355-4771865cb4d7
                            productId: e007e884-5100-4183-8355-4771865cb4dd
                            name: Sample product
                            structure:
                              packageSize: '50'
                              pricePerPackage: '2.00'
                              usageMetricId: 04c62961-04ba-48e6-b985-758bb7d3e712
                              pricingType: PACKAGE
                            billingFrequency: MONTHLY
                            billingType: IN_ARREARS
                            createdAt: '2021-08-25T12:00:00Z'
                            updatedAt: '2021-08-25T12:00:00Z'
                            integrationIds:
                              - service: Xero
                                id: '123'
                                isPending: false
                            customMetricParameters:
                              - parameterId: 2963e49a-c8e0-4673-89f5-7a805c0faf14
                                value: '10'
                            listPriceId: b4d7e884-e007-4183-8355-4771865c5100
                        discounts:
                          - id: 018f920a-40d1-7e62-91ca-f3a4b4ac5d9d
                            restrictToPrices:
                              - 5100e884-e007-4183-8355-4771865cb4d7
                            amount: '50'
                            discountCalculationType: PERCENTAGE
                            message: message
                            createdAt: '2021-08-25T12:00:00Z'
                            updatedAt: '2021-08-25T12:00:00Z'
                            seatDiscountType: ALL_SEATS
                        minimums:
                          - id: 018f9164-c2d9-7eb2-bb98-11ecb5454055
                            amount: '50'
                            restrictToPrices:
                              - 5100e884-e007-4183-8355-4771865cb4d7
                            createdAt: '2021-08-25T12:00:00Z'
                            updatedAt: '2021-08-25T12:00:00Z'
                    contacts:
                      - contactId: 9a1e38a9-4dc9-776f-f974-4e7ee9f4d6cc
                        name: Jane Doe
                        email: jane@example.com
                        signedAt: '2022-06-28T16:47:00Z'
                        notificationHistory:
                          - notifiedAt: '2022-06-28T16:47:00Z'
                            trigger: PUBLISH
                    ccContacts:
                      - contactId: 9a1e38a9-4dc9-776f-f974-4e7ee9f4d6cd
                        name: John Smith
                        email: john@example.com
                        notificationHistory:
                          - notifiedAt: '2022-06-28T16:47:00Z'
                            trigger: PUBLISH
                    counterSigners:
                      - id: 0190da0c-980d-7fa2-9b65-4c79784a95b1
                        name: Jane Doe
                        email: jane@example.com
                        signedAt: '2022-06-28T16:47:00Z'
                        notificationHistory:
                          - notifiedAt: '2022-06-28T16:47:00Z'
                            trigger: PUBLISH
                    isSignaturesEnabled: false
                    customerLegalName: Acme Corp
                    customerAddress:
                      line1: 1 Fake Street
                      line2: Fakesville
                      town: Faketown
                      state: CA
                      postcode: F4KE
                      country: US
                    pdfStatus: NOT_YET_REQUESTED
                    archivedAt: '2022-06-28T16:47:00Z'
                    purchaseOrderNumber: PO-12345
                    attachmentAssets:
                      - id: e007e884-5100-4183-8355-4771865cb4dd
                        createdBy: 94703530-1293-479b-bd37-ccad42fd9c8b
                        createdByType: SEQUENCE_USER
                        type: IMAGE
                        format: PNG
                        fileName: my-image.png
                        fileSizeBytes: 12345
                        url: >-
                          https://assets.sequencehq.com/018f9ad5-4192-76d7-aea5-d80a9018eded/images/e007e884-5100-4183-8355-4771865cb4dd.png
                        createdAt: '2022-06-28T16:47:00Z'
                    isExpired: false
                    defaultDueDateDays: 30
                    signatureMode: EMBEDDED
                    preparingSignatureRequestAt: '2022-06-28T16:47:00Z'
        '400':
          description: Bad Request
          content: {}
        '401':
          description: Unauthorized
          content: {}
        '404':
          description: Not Found
          content: {}
        '500':
          description: Internal Server Error
          content: {}
components:
  schemas:
    AcceptQuoteRequestBody:
      type: object
      example:
        purchaseOrderNumber: PO-12345
      properties:
        purchaseOrderNumber:
          type: string
          description: >-
            An optional purchase order (PO) number to save on the quote as it is
            accepted, at most 256 characters. When omitted or blank, the quote
            keeps the PO number it already has.
          nullable: true
          example: PO-12345
    PublicPublishedQuote:
      required:
        - attachmentAssets
        - ccContacts
        - contacts
        - counterSigners
        - createdAt
        - createdBy
        - currency
        - customerAddress
        - customerId
        - customerLegalName
        - dealType
        - expiresAt
        - id
        - isExpired
        - isSignaturesEnabled
        - merchantBranding
        - pdfStatus
        - phases
        - publishedAt
        - quoteNumber
        - status
        - title
        - updatedAt
      type: object
      example:
        id: 678ca125-8bc3-478f-9a96-6ba73605cf1e
        createdBy: 4ffd439e-32e5-4046-bb40-3cb81f40e5da
        customerId: 377bf97b-ca1d-4538-be06-4022afa6bde3
        quoteNumber: Q00001
        title: My quote
        currency: GBP
        status: EXECUTED
        dealType: AMENDMENT
        amendment:
          billingScheduleId: 0192a3b4-5c6d-7e8f-9a0b-1c2d3e4f5a6b
          effectiveFrom: '2022-11-01'
          executableUntil: '2022-11-01'
          appliedFrom: '2022-11-01'
          original:
            phases:
              - name: Year 1
                startDate: '2022-01-01'
                endDate: '2022-12-31'
                prices:
                  - productId: e007e884-5100-4183-8355-4771865cb4dd
                    name: API calls
                    structure:
                      tiers:
                        - upperBound: '1000'
                          price: '0.25'
                          fee: '50'
                          isPricePercentage: false
                        - price: '0.1'
                          fee: '0'
                          isPricePercentage: false
                      usageMetricId: 04c62961-04ba-48e6-b985-758bb7d3e712
                      usageCalculationMode: PERIODIC
                      pricingType: GRADUATED
                    billingFrequency: MONTHLY
                    billingType: IN_ARREARS
                    usageCalculationPeriod:
                      frequency: MONTHLY
                      interval: 1
                    customMetricParameters:
                      - parameterId: 2963e49a-c8e0-4673-89f5-7a805c0faf14
                        value: '10'
                discounts:
                  - discountCalculationType: PERCENTAGE
                    amount: '10'
                    message: 10% off API calls
                    seatDiscountType: ALL_SEATS
                    productIds:
                      - e007e884-5100-4183-8355-4771865cb4dd
                minimums:
                  - amount: '500'
                    productIds:
                      - e007e884-5100-4183-8355-4771865cb4dd
          amended:
            phases:
              - name: Year 1
                startDate: '2022-01-01'
                endDate: '2022-12-31'
                prices:
                  - productId: e007e884-5100-4183-8355-4771865cb4dd
                    name: API calls
                    structure:
                      tiers:
                        - upperBound: '1000'
                          price: '0.25'
                          fee: '50'
                          isPricePercentage: false
                        - price: '0.1'
                          fee: '0'
                          isPricePercentage: false
                      usageMetricId: 04c62961-04ba-48e6-b985-758bb7d3e712
                      usageCalculationMode: PERIODIC
                      pricingType: GRADUATED
                    billingFrequency: MONTHLY
                    billingType: IN_ARREARS
                    usageCalculationPeriod:
                      frequency: MONTHLY
                      interval: 1
                    customMetricParameters:
                      - parameterId: 2963e49a-c8e0-4673-89f5-7a805c0faf14
                        value: '10'
                discounts:
                  - discountCalculationType: PERCENTAGE
                    amount: '10'
                    message: 10% off API calls
                    seatDiscountType: ALL_SEATS
                    productIds:
                      - e007e884-5100-4183-8355-4771865cb4dd
                minimums:
                  - amount: '500'
                    productIds:
                      - e007e884-5100-4183-8355-4771865cb4dd
          originalContractValue: '12000'
          amendedContractValue: '15500'
          adjustmentTotal: '3500'
          supersededByQuoteId: 0192a3b4-6d7e-7f80-9a1b-2c3d4e5f6a7b
          outForSignatureQuoteId: 0192a3b4-7e8f-7a91-8b2c-3d4e5f6a7b8c
        preliminaryBillingStartDate: '2022-10-01'
        expiresAt: '2022-10-01'
        publishedAt: '2022-06-28T16:47:00Z'
        readyToSignAt: '2022-06-28T16:47:00Z'
        acceptedAt: '2022-06-28T16:47:00Z'
        executedAt: '2022-06-28T16:47:00Z'
        createdAt: '2022-06-28T16:47:00Z'
        updatedAt: '2022-06-28T16:47:00Z'
        createdFrom:
          entityType: QUOTE
          entityId: dc0e2104-7df5-4fc1-8f65-1823f427d111
        salesforceOpportunityId: 006Hr00001MfnEIIAZ
        merchantBranding:
          logoUrl: logo
          legalCompanyName: Acme Corp
          primaryColour: colour
          url: www.example.com
          address:
            line1: 1 Market Street
            line2: Suite 100
            town: San Francisco
            state: CA
            postcode: '94105'
            country: US
          email: accounting@example.com
          showUsageInCustomerPortal: true
          supportEmail: support@example.com
          supportUrl: https://www.example.com/support
        phases:
          - id: abe4bf01-9b75-495d-f5fd-ca82b001f3a8
            name: Onboarding
            createdAt: '2022-06-28T16:47:00Z'
            duration:
              days: -1
              weeks: 0
              months: 6
              years: 1
            prices:
              - id: 5100e884-e007-4183-8355-4771865cb4d7
                productId: e007e884-5100-4183-8355-4771865cb4dd
                name: Sample product
                structure:
                  price: '150.00'
                  pricingType: ONE_TIME
                billingFrequency: MONTHLY
                billingType: IN_ARREARS
                createdAt: '2021-08-25T12:00:00Z'
                updatedAt: '2021-08-25T12:00:00Z'
                integrationIds:
                  - service: Xero
                    id: '123'
                    isPending: false
                customMetricParameters:
                  - parameterId: 2963e49a-c8e0-4673-89f5-7a805c0faf14
                    value: '10'
                listPriceId: b4d7e884-e007-4183-8355-4771865c5100
              - id: 5100e884-e007-4183-8355-4771865cb4d7
                productId: e007e884-5100-4183-8355-4771865cb4dd
                name: Sample product
                structure:
                  price: '20.00'
                  pricingType: FIXED
                billingFrequency: MONTHLY
                billingType: IN_ARREARS
                createdAt: '2021-08-25T12:00:00Z'
                updatedAt: '2021-08-25T12:00:00Z'
                integrationIds:
                  - service: Xero
                    id: '123'
                    isPending: false
                customMetricParameters:
                  - parameterId: 2963e49a-c8e0-4673-89f5-7a805c0faf14
                    value: '10'
                listPriceId: b4d7e884-e007-4183-8355-4771865c5100
              - id: 5100e884-e007-4183-8355-4771865cb4d7
                productId: e007e884-5100-4183-8355-4771865cb4dd
                name: Sample product
                structure:
                  pricePerUnit: '0.25'
                  usageMetricId: 04c62961-04ba-48e6-b985-758bb7d3e712
                  isPricePercentage: false
                  pricingType: LINEAR
                billingFrequency: MONTHLY
                billingType: IN_ARREARS
                createdAt: '2021-08-25T12:00:00Z'
                updatedAt: '2021-08-25T12:00:00Z'
                integrationIds:
                  - service: Xero
                    id: '123'
                    isPending: false
                customMetricParameters:
                  - parameterId: 2963e49a-c8e0-4673-89f5-7a805c0faf14
                    value: '10'
                listPriceId: b4d7e884-e007-4183-8355-4771865c5100
              - id: 5100e884-e007-4183-8355-4771865cb4d7
                productId: e007e884-5100-4183-8355-4771865cb4dd
                name: Sample product
                structure:
                  seatMetricId: bc61d4b8-e9d6-4f4a-9bcf-f5dae874c730
                  pricePerSeat: '0.25'
                  prorationStrategy: USE_MAXIMUM
                  contractedMinimumSeats: 10
                  overagesBillingFrequency: YEARLY
                  tiers:
                    - upperBound: '100'
                      price: '1.00'
                      fee: '50.00'
                    - price: '0.75'
                      fee: '25.00'
                  prorateFlatFees: false
                  pricingType: SEAT_BASED
                billingFrequency: MONTHLY
                billingType: IN_ARREARS
                createdAt: '2021-08-25T12:00:00Z'
                updatedAt: '2021-08-25T12:00:00Z'
                integrationIds:
                  - service: Xero
                    id: '123'
                    isPending: false
                customMetricParameters:
                  - parameterId: 2963e49a-c8e0-4673-89f5-7a805c0faf14
                    value: '10'
                listPriceId: b4d7e884-e007-4183-8355-4771865c5100
              - id: 5100e884-e007-4183-8355-4771865cb4d7
                productId: e007e884-5100-4183-8355-4771865cb4dd
                name: Sample product
                structure:
                  tiers:
                    - upperBound: '200'
                      price: '1.00'
                      fee: '50.00'
                      isPricePercentage: false
                    - upperBound: '400'
                      price: '0.75'
                      fee: '25.00'
                      isPricePercentage: false
                    - price: '0.50'
                      fee: '0.00'
                      isPricePercentage: false
                  usageMetricId: 04c62961-04ba-48e6-b985-758bb7d3e712
                  usageCalculationMode: BILLING_PERIOD
                  pricingType: GRADUATED
                billingFrequency: MONTHLY
                billingType: IN_ARREARS
                createdAt: '2021-08-25T12:00:00Z'
                updatedAt: '2021-08-25T12:00:00Z'
                integrationIds:
                  - service: Xero
                    id: '123'
                    isPending: false
                customMetricParameters:
                  - parameterId: 2963e49a-c8e0-4673-89f5-7a805c0faf14
                    value: '10'
                listPriceId: b4d7e884-e007-4183-8355-4771865c5100
                usageCalculationPeriod:
                  frequency: MONTHLY
                  interval: 1
              - id: 5100e884-e007-4183-8355-4771865cb4d7
                productId: e007e884-5100-4183-8355-4771865cb4dd
                name: Sample product
                structure:
                  tiers:
                    - upperBound: '100'
                      price: '1.00'
                      fee: '50.00'
                      isPricePercentage: true
                      maxPrice: '10'
                      minPrice: '5'
                    - price: '0.75'
                      fee: '25.00'
                      isPricePercentage: true
                      maxPrice: '10'
                      minPrice: '5'
                  usageMetricId: 04c62961-04ba-48e6-b985-758bb7d3e712
                  pricingType: VOLUME
                billingFrequency: MONTHLY
                billingType: IN_ARREARS
                createdAt: '2021-08-25T12:00:00Z'
                updatedAt: '2021-08-25T12:00:00Z'
                integrationIds:
                  - service: Xero
                    id: '123'
                    isPending: false
                customMetricParameters:
                  - parameterId: 2963e49a-c8e0-4673-89f5-7a805c0faf14
                    value: '10'
                listPriceId: b4d7e884-e007-4183-8355-4771865c5100
              - id: 5100e884-e007-4183-8355-4771865cb4d7
                productId: e007e884-5100-4183-8355-4771865cb4dd
                name: Sample product
                structure:
                  packageSize: '50'
                  pricePerPackage: '2.00'
                  usageMetricId: 04c62961-04ba-48e6-b985-758bb7d3e712
                  pricingType: PACKAGE
                billingFrequency: MONTHLY
                billingType: IN_ARREARS
                createdAt: '2021-08-25T12:00:00Z'
                updatedAt: '2021-08-25T12:00:00Z'
                integrationIds:
                  - service: Xero
                    id: '123'
                    isPending: false
                customMetricParameters:
                  - parameterId: 2963e49a-c8e0-4673-89f5-7a805c0faf14
                    value: '10'
                listPriceId: b4d7e884-e007-4183-8355-4771865c5100
            discounts:
              - id: 018f920a-40d1-7e62-91ca-f3a4b4ac5d9d
                restrictToPrices:
                  - 5100e884-e007-4183-8355-4771865cb4d7
                amount: '50'
                discountCalculationType: PERCENTAGE
                message: message
                createdAt: '2021-08-25T12:00:00Z'
                updatedAt: '2021-08-25T12:00:00Z'
                seatDiscountType: ALL_SEATS
            minimums:
              - id: 018f9164-c2d9-7eb2-bb98-11ecb5454055
                amount: '50'
                restrictToPrices:
                  - 5100e884-e007-4183-8355-4771865cb4d7
                createdAt: '2021-08-25T12:00:00Z'
                updatedAt: '2021-08-25T12:00:00Z'
        contacts:
          - contactId: 9a1e38a9-4dc9-776f-f974-4e7ee9f4d6cc
            name: Jane Doe
            email: jane@example.com
            signedAt: '2022-06-28T16:47:00Z'
            notificationHistory:
              - notifiedAt: '2022-06-28T16:47:00Z'
                trigger: PUBLISH
        ccContacts:
          - contactId: 9a1e38a9-4dc9-776f-f974-4e7ee9f4d6cd
            name: John Smith
            email: john@example.com
            notificationHistory:
              - notifiedAt: '2022-06-28T16:47:00Z'
                trigger: PUBLISH
        counterSigners:
          - id: 0190da0c-980d-7fa2-9b65-4c79784a95b1
            name: Jane Doe
            email: jane@example.com
            signedAt: '2022-06-28T16:47:00Z'
            notificationHistory:
              - notifiedAt: '2022-06-28T16:47:00Z'
                trigger: PUBLISH
        isSignaturesEnabled: false
        customerLegalName: Acme Corp
        customerAddress:
          line1: 1 Fake Street
          line2: Fakesville
          town: Faketown
          state: CA
          postcode: F4KE
          country: US
        pdfStatus: NOT_YET_REQUESTED
        archivedAt: '2022-06-28T16:47:00Z'
        purchaseOrderNumber: PO-12345
        attachmentAssets:
          - id: e007e884-5100-4183-8355-4771865cb4dd
            createdBy: 94703530-1293-479b-bd37-ccad42fd9c8b
            createdByType: SEQUENCE_USER
            type: IMAGE
            format: PNG
            fileName: my-image.png
            fileSizeBytes: 12345
            url: >-
              https://assets.sequencehq.com/018f9ad5-4192-76d7-aea5-d80a9018eded/images/e007e884-5100-4183-8355-4771865cb4dd.png
            createdAt: '2022-06-28T16:47:00Z'
        isExpired: false
        defaultDueDateDays: 30
        signatureMode: EMBEDDED
        preparingSignatureRequestAt: '2022-06-28T16:47:00Z'
      properties:
        id:
          type: string
          description: Unique ID
          example: 678ca125-8bc3-478f-9a96-6ba73605cf1e
        createdBy:
          type: string
          description: The Sequence user who created this quote
          example: 4ffd439e-32e5-4046-bb40-3cb81f40e5da
        customerId:
          type: string
          description: ID of Customer to which this quote pertains
          example: 377bf97b-ca1d-4538-be06-4022afa6bde3
        quoteNumber:
          type: string
          description: An alpha-numeric value that identifies the quote
          example: Q00001
        title:
          type: string
          description: The quote title
          example: My quote
        currency:
          $ref: '#/components/schemas/Currency'
          description: Quote currency
        status:
          $ref: '#/components/schemas/QuoteStatus'
          description: The status of the quote
        dealType:
          $ref: '#/components/schemas/QuoteDealType'
          description: Quote deal type
        amendment:
          $ref: '#/components/schemas/QuoteAmendmentResponseModel'
          nullable: true
        preliminaryBillingStartDate:
          type: string
          description: Preliminary start date of contract
          nullable: true
          example: '2022-10-01'
        expiresAt:
          type: string
          description: Date when quote expires
          example: '2022-10-01'
        publishedAt:
          type: string
          description: >-
            Timestamp when quote was published. Formatted as an ISO 8601
            timestamp.
          example: '2022-06-28T16:47:00Z'
        readyToSignAt:
          type: string
          description: >-
            Timestamp when quote was ready to sign. Formatted as an ISO 8601
            timestamp.
          nullable: true
          example: '2022-06-28T16:47:00Z'
        acceptedAt:
          type: string
          description: >-
            Timestamp when quote was accepted. Formatted as an ISO 8601
            timestamp.
          nullable: true
          example: '2022-06-28T16:47:00Z'
        executedAt:
          type: string
          description: >-
            Timestamp when quote was executed. Formatted as an ISO 8601
            timestamp.
          nullable: true
          example: '2022-06-28T16:47:00Z'
        createdAt:
          type: string
          description: Creation timestamp. Formatted as an ISO 8601 timestamp.
          example: '2022-06-28T16:47:00Z'
        updatedAt:
          type: string
          description: >-
            Timestamp when quote was last updated. Formatted as an ISO 8601
            timestamp.
          example: '2022-06-28T16:47:00Z'
        createdFrom:
          $ref: '#/components/schemas/QuoteCreatedFrom'
          nullable: true
        salesforceOpportunityId:
          type: string
          description: Salesforce ID of the opportunity that created this quote
          nullable: true
          example: 006Hr00001MfnEIIAZ
        merchantBranding:
          $ref: '#/components/schemas/QuoteMerchantDetails'
        phases:
          type: array
          description: Phases for this quote, in sequential order
          example:
            - id: abe4bf01-9b75-495d-f5fd-ca82b001f3a8
              name: Onboarding
              createdAt: '2022-06-28T16:47:00Z'
              duration:
                days: -1
                weeks: 0
                months: 6
                years: 1
              prices:
                - id: 5100e884-e007-4183-8355-4771865cb4d7
                  productId: e007e884-5100-4183-8355-4771865cb4dd
                  name: Sample product
                  structure:
                    price: '150.00'
                    pricingType: ONE_TIME
                  billingFrequency: MONTHLY
                  billingType: IN_ARREARS
                  createdAt: '2021-08-25T12:00:00Z'
                  updatedAt: '2021-08-25T12:00:00Z'
                  integrationIds:
                    - service: Xero
                      id: '123'
                      isPending: false
                  customMetricParameters:
                    - parameterId: 2963e49a-c8e0-4673-89f5-7a805c0faf14
                      value: '10'
                  listPriceId: b4d7e884-e007-4183-8355-4771865c5100
                - id: 5100e884-e007-4183-8355-4771865cb4d7
                  productId: e007e884-5100-4183-8355-4771865cb4dd
                  name: Sample product
                  structure:
                    price: '20.00'
                    pricingType: FIXED
                  billingFrequency: MONTHLY
                  billingType: IN_ARREARS
                  createdAt: '2021-08-25T12:00:00Z'
                  updatedAt: '2021-08-25T12:00:00Z'
                  integrationIds:
                    - service: Xero
                      id: '123'
                      isPending: false
                  customMetricParameters:
                    - parameterId: 2963e49a-c8e0-4673-89f5-7a805c0faf14
                      value: '10'
                  listPriceId: b4d7e884-e007-4183-8355-4771865c5100
                - id: 5100e884-e007-4183-8355-4771865cb4d7
                  productId: e007e884-5100-4183-8355-4771865cb4dd
                  name: Sample product
                  structure:
                    pricePerUnit: '0.25'
                    usageMetricId: 04c62961-04ba-48e6-b985-758bb7d3e712
                    isPricePercentage: false
                    pricingType: LINEAR
                  billingFrequency: MONTHLY
                  billingType: IN_ARREARS
                  createdAt: '2021-08-25T12:00:00Z'
                  updatedAt: '2021-08-25T12:00:00Z'
                  integrationIds:
                    - service: Xero
                      id: '123'
                      isPending: false
                  customMetricParameters:
                    - parameterId: 2963e49a-c8e0-4673-89f5-7a805c0faf14
                      value: '10'
                  listPriceId: b4d7e884-e007-4183-8355-4771865c5100
                - id: 5100e884-e007-4183-8355-4771865cb4d7
                  productId: e007e884-5100-4183-8355-4771865cb4dd
                  name: Sample product
                  structure:
                    seatMetricId: bc61d4b8-e9d6-4f4a-9bcf-f5dae874c730
                    pricePerSeat: '0.25'
                    prorationStrategy: USE_MAXIMUM
                    contractedMinimumSeats: 10
                    overagesBillingFrequency: YEARLY
                    tiers:
                      - upperBound: '100'
                        price: '1.00'
                        fee: '50.00'
                      - price: '0.75'
                        fee: '25.00'
                    prorateFlatFees: false
                    pricingType: SEAT_BASED
                  billingFrequency: MONTHLY
                  billingType: IN_ARREARS
                  createdAt: '2021-08-25T12:00:00Z'
                  updatedAt: '2021-08-25T12:00:00Z'
                  integrationIds:
                    - service: Xero
                      id: '123'
                      isPending: false
                  customMetricParameters:
                    - parameterId: 2963e49a-c8e0-4673-89f5-7a805c0faf14
                      value: '10'
                  listPriceId: b4d7e884-e007-4183-8355-4771865c5100
                - id: 5100e884-e007-4183-8355-4771865cb4d7
                  productId: e007e884-5100-4183-8355-4771865cb4dd
                  name: Sample product
                  structure:
                    tiers:
                      - upperBound: '200'
                        price: '1.00'
                        fee: '50.00'
                        isPricePercentage: false
                      - upperBound: '400'
                        price: '0.75'
                        fee: '25.00'
                        isPricePercentage: false
                      - price: '0.50'
                        fee: '0.00'
                        isPricePercentage: false
                    usageMetricId: 04c62961-04ba-48e6-b985-758bb7d3e712
                    usageCalculationMode: BILLING_PERIOD
                    pricingType: GRADUATED
                  billingFrequency: MONTHLY
                  billingType: IN_ARREARS
                  createdAt: '2021-08-25T12:00:00Z'
                  updatedAt: '2021-08-25T12:00:00Z'
                  integrationIds:
                    - service: Xero
                      id: '123'
                      isPending: false
                  customMetricParameters:
                    - parameterId: 2963e49a-c8e0-4673-89f5-7a805c0faf14
                      value: '10'
                  listPriceId: b4d7e884-e007-4183-8355-4771865c5100
                  usageCalculationPeriod:
                    frequency: MONTHLY
                    interval: 1
                - id: 5100e884-e007-4183-8355-4771865cb4d7
                  productId: e007e884-5100-4183-8355-4771865cb4dd
                  name: Sample product
                  structure:
                    tiers:
                      - upperBound: '100'
                        price: '1.00'
                        fee: '50.00'
                        isPricePercentage: true
                        maxPrice: '10'
                        minPrice: '5'
                      - price: '0.75'
                        fee: '25.00'
                        isPricePercentage: true
                        maxPrice: '10'
                        minPrice: '5'
                    usageMetricId: 04c62961-04ba-48e6-b985-758bb7d3e712
                    pricingType: VOLUME
                  billingFrequency: MONTHLY
                  billingType: IN_ARREARS
                  createdAt: '2021-08-25T12:00:00Z'
                  updatedAt: '2021-08-25T12:00:00Z'
                  integrationIds:
                    - service: Xero
                      id: '123'
                      isPending: false
                  customMetricParameters:
                    - parameterId: 2963e49a-c8e0-4673-89f5-7a805c0faf14
                      value: '10'
                  listPriceId: b4d7e884-e007-4183-8355-4771865c5100
                - id: 5100e884-e007-4183-8355-4771865cb4d7
                  productId: e007e884-5100-4183-8355-4771865cb4dd
                  name: Sample product
                  structure:
                    packageSize: '50'
                    pricePerPackage: '2.00'
                    usageMetricId: 04c62961-04ba-48e6-b985-758bb7d3e712
                    pricingType: PACKAGE
                  billingFrequency: MONTHLY
                  billingType: IN_ARREARS
                  createdAt: '2021-08-25T12:00:00Z'
                  updatedAt: '2021-08-25T12:00:00Z'
                  integrationIds:
                    - service: Xero
                      id: '123'
                      isPending: false
                  customMetricParameters:
                    - parameterId: 2963e49a-c8e0-4673-89f5-7a805c0faf14
                      value: '10'
                  listPriceId: b4d7e884-e007-4183-8355-4771865c5100
              discounts:
                - id: 018f920a-40d1-7e62-91ca-f3a4b4ac5d9d
                  restrictToPrices:
                    - 5100e884-e007-4183-8355-4771865cb4d7
                  amount: '50'
                  discountCalculationType: PERCENTAGE
                  message: message
                  createdAt: '2021-08-25T12:00:00Z'
                  updatedAt: '2021-08-25T12:00:00Z'
                  seatDiscountType: ALL_SEATS
              minimums:
                - id: 018f9164-c2d9-7eb2-bb98-11ecb5454055
                  amount: '50'
                  restrictToPrices:
                    - 5100e884-e007-4183-8355-4771865cb4d7
                  createdAt: '2021-08-25T12:00:00Z'
                  updatedAt: '2021-08-25T12:00:00Z'
          items:
            $ref: '#/components/schemas/QuotePhase'
        contacts:
          type: array
          description: List of contacts requested to sign this quote
          example:
            - contactId: 9a1e38a9-4dc9-776f-f974-4e7ee9f4d6cc
              name: Jane Doe
              email: jane@example.com
              signedAt: '2022-06-28T16:47:00Z'
              notificationHistory:
                - notifiedAt: '2022-06-28T16:47:00Z'
                  trigger: PUBLISH
          items:
            $ref: '#/components/schemas/QuoteContact'
        ccContacts:
          type: array
          description: >-
            List of contacts who receive emails about this quote but do not sign
            it
          example:
            - contactId: 9a1e38a9-4dc9-776f-f974-4e7ee9f4d6cd
              name: John Smith
              email: john@example.com
              notificationHistory:
                - notifiedAt: '2022-06-28T16:47:00Z'
                  trigger: PUBLISH
          items:
            $ref: '#/components/schemas/QuoteCcContact'
        counterSigners:
          type: array
          description: List of internal persons who countersign every quote
          example:
            - id: 0190da0c-980d-7fa2-9b65-4c79784a95b1
              name: Jane Doe
              email: jane@example.com
              signedAt: '2022-06-28T16:47:00Z'
              notificationHistory:
                - notifiedAt: '2022-06-28T16:47:00Z'
                  trigger: PUBLISH
          items:
            $ref: '#/components/schemas/QuoteCounterSigner'
        isSignaturesEnabled:
          type: boolean
          description: >-
            Enable e-signatures to allow customers to sign this quote through
            Dropbox Sign.
          example: false
        customerLegalName:
          type: string
          description: Customer legal name
          example: Acme Corp
        customerAddress:
          $ref: '#/components/schemas/Address'
        pdfStatus:
          $ref: '#/components/schemas/QuotePdfStatus'
          description: Status of quote PDF generation for this variant
        archivedAt:
          type: string
          description: Date and time the quote was archived
          nullable: true
          example: '2022-06-28T16:47:00Z'
        purchaseOrderNumber:
          type: string
          description: The purchase order (PO) number for this quote
          nullable: true
          example: PO-12345
        attachmentAssets:
          type: array
          description: Assets attached to this quote
          example:
            - id: e007e884-5100-4183-8355-4771865cb4dd
              createdBy: 94703530-1293-479b-bd37-ccad42fd9c8b
              createdByType: SEQUENCE_USER
              type: IMAGE
              format: PNG
              fileName: my-image.png
              fileSizeBytes: 12345
              url: >-
                https://assets.sequencehq.com/018f9ad5-4192-76d7-aea5-d80a9018eded/images/e007e884-5100-4183-8355-4771865cb4dd.png
              createdAt: '2022-06-28T16:47:00Z'
          items:
            $ref: '#/components/schemas/AssetResponse'
        isExpired:
          type: boolean
          description: True if the quote expiry date has passed
          example: false
        defaultDueDateDays:
          type: integer
          description: >-
            Default number of days between issue date and due date. Passed onto
            a billing schedule created from the Quote.
          nullable: true
          example: 30
        signatureMode:
          $ref: '#/components/schemas/SignatureMode'
          description: >-
            The signature mode used when the quote is published. Can be
            EMBEDDED, NON_EMBEDDED. It is null if the quote is a draft or if
            e-signatures are disabled for the quote.
          nullable: true
        preparingSignatureRequestAt:
          type: string
          description: Timestamp when quote ready-to-sign operation was triggered.
          nullable: true
          example: '2022-06-28T16:47:00Z'
    Currency:
      type: string
      example: USD
      enum:
        - AED
        - ARS
        - AUD
        - BRL
        - BGN
        - CAD
        - CHF
        - CLP
        - CNY
        - COP
        - CZK
        - DKK
        - EGP
        - EUR
        - GBP
        - HKD
        - ILS
        - INR
        - ISK
        - JPY
        - KRW
        - MXN
        - NOK
        - NZD
        - PLN
        - SAR
        - SEK
        - SGD
        - THB
        - USD
        - UYU
        - ZAR
    QuoteStatus:
      type: string
      example: EXECUTED
      enum:
        - DRAFT
        - PUBLISHED
        - PREPARING_SIGNATURE_REQUEST
        - READY_TO_SIGN
        - ACCEPTED
        - EXECUTED
    QuoteDealType:
      type: string
      example: AMENDMENT
      enum:
        - NEW_BUSINESS
        - RENEWAL
        - AMENDMENT
    QuoteAmendmentResponseModel:
      required:
        - billingScheduleId
        - effectiveFrom
        - executableUntil
      type: object
      description: >-
        The billing schedule this quote amends and the date the change takes
        effect. Only present on AMENDMENT quotes.
      example:
        billingScheduleId: 0192a3b4-5c6d-7e8f-9a0b-1c2d3e4f5a6b
        effectiveFrom: '2022-11-01'
        executableUntil: '2022-11-01'
        appliedFrom: '2022-11-01'
        original:
          phases:
            - name: Year 1
              startDate: '2022-01-01'
              endDate: '2022-12-31'
              prices:
                - productId: e007e884-5100-4183-8355-4771865cb4dd
                  name: API calls
                  structure:
                    tiers:
                      - upperBound: '1000'
                        price: '0.25'
                        fee: '50'
                        isPricePercentage: false
                      - price: '0.1'
                        fee: '0'
                        isPricePercentage: false
                    usageMetricId: 04c62961-04ba-48e6-b985-758bb7d3e712
                    usageCalculationMode: PERIODIC
                    pricingType: GRADUATED
                  billingFrequency: MONTHLY
                  billingType: IN_ARREARS
                  usageCalculationPeriod:
                    frequency: MONTHLY
                    interval: 1
                  customMetricParameters:
                    - parameterId: 2963e49a-c8e0-4673-89f5-7a805c0faf14
                      value: '10'
              discounts:
                - discountCalculationType: PERCENTAGE
                  amount: '10'
                  message: 10% off API calls
                  seatDiscountType: ALL_SEATS
                  productIds:
                    - e007e884-5100-4183-8355-4771865cb4dd
              minimums:
                - amount: '500'
                  productIds:
                    - e007e884-5100-4183-8355-4771865cb4dd
        amended:
          phases:
            - name: Year 1
              startDate: '2022-01-01'
              endDate: '2022-12-31'
              prices:
                - productId: e007e884-5100-4183-8355-4771865cb4dd
                  name: API calls
                  structure:
                    tiers:
                      - upperBound: '1000'
                        price: '0.25'
                        fee: '50'
                        isPricePercentage: false
                      - price: '0.1'
                        fee: '0'
                        isPricePercentage: false
                    usageMetricId: 04c62961-04ba-48e6-b985-758bb7d3e712
                    usageCalculationMode: PERIODIC
                    pricingType: GRADUATED
                  billingFrequency: MONTHLY
                  billingType: IN_ARREARS
                  usageCalculationPeriod:
                    frequency: MONTHLY
                    interval: 1
                  customMetricParameters:
                    - parameterId: 2963e49a-c8e0-4673-89f5-7a805c0faf14
                      value: '10'
              discounts:
                - discountCalculationType: PERCENTAGE
                  amount: '10'
                  message: 10% off API calls
                  seatDiscountType: ALL_SEATS
                  productIds:
                    - e007e884-5100-4183-8355-4771865cb4dd
              minimums:
                - amount: '500'
                  productIds:
                    - e007e884-5100-4183-8355-4771865cb4dd
        originalContractValue: '12000'
        amendedContractValue: '15500'
        adjustmentTotal: '3500'
        supersededByQuoteId: 0192a3b4-6d7e-7f80-9a1b-2c3d4e5f6a7b
        outForSignatureQuoteId: 0192a3b4-7e8f-7a91-8b2c-3d4e5f6a7b8c
      properties:
        billingScheduleId:
          type: string
          description: ID of the billing schedule this quote amends
          example: 0192a3b4-5c6d-7e8f-9a0b-1c2d3e4f5a6b
        effectiveFrom:
          type: string
          description: >-
            The date the amendment was signed to take effect. Once this date has
            passed, executing is refused unless whenEffectiveDatePassed is
            TAKE_EFFECT_TODAY; it then applies from appliedFrom.
          example: '2022-11-01'
        executableUntil:
          type: string
          description: Deprecated. Always the same as effectiveFrom.
          example: '2022-11-01'
        appliedFrom:
          type: string
          description: >-
            Read-only. The date the amendment took effect, once executed. The
            same as effectiveFrom unless it was executed after that date and
            applied from that day instead.
          nullable: true
          example: '2022-11-01'
        original:
          $ref: '#/components/schemas/AmendmentScheduleResponseModel'
          nullable: true
        amended:
          $ref: '#/components/schemas/AmendmentScheduleResponseModel'
          nullable: true
        originalContractValue:
          type: string
          description: Read-only. The total contract value before this amendment.
          nullable: true
          example: '12000'
        amendedContractValue:
          type: string
          description: Read-only. The total contract value of this quote.
          nullable: true
          example: '15500'
        adjustmentTotal:
          type: string
          description: >-
            Read-only. The amended contract value minus the original contract
            value.
          nullable: true
          example: '3500'
        supersededByQuoteId:
          type: string
          description: >-
            Read-only. Another quote for the same billing schedule that was
            executed after this quote was linked to it. This quote is now out of
            date.
          nullable: true
          example: 0192a3b4-6d7e-7f80-9a1b-2c3d4e5f6a7b
        outForSignatureQuoteId:
          type: string
          description: >-
            Read-only. Another quote for the same billing schedule that is out
            for signature, or accepted but not yet executed.
          nullable: true
          example: 0192a3b4-7e8f-7a91-8b2c-3d4e5f6a7b8c
    QuoteCreatedFrom:
      required:
        - entityId
        - entityType
      type: object
      description: Entity from which this quote was created
      example:
        entityType: QUOTE
        entityId: dc0e2104-7df5-4fc1-8f65-1823f427d111
      properties:
        entityType:
          $ref: '#/components/schemas/EntityType'
        entityId:
          type: string
          example: dc0e2104-7df5-4fc1-8f65-1823f427d111
    QuoteMerchantDetails:
      required:
        - address
        - email
        - legalCompanyName
        - showUsageInCustomerPortal
      type: object
      description: Merchant information and branding (for quote rendering)
      example:
        logoUrl: logo
        legalCompanyName: Acme Corp
        primaryColour: colour
        url: www.example.com
        address:
          line1: 1 Market Street
          line2: Suite 100
          town: San Francisco
          state: CA
          postcode: '94105'
          country: US
        email: accounting@example.com
        showUsageInCustomerPortal: true
        supportEmail: support@example.com
        supportUrl: https://www.example.com/support
      properties:
        logoUrl:
          type: string
          nullable: true
          example: logo
        legalCompanyName:
          type: string
          example: Acme Corp
        primaryColour:
          type: string
          nullable: true
          example: colour
        url:
          type: string
          nullable: true
          example: www.example.com
        address:
          $ref: '#/components/schemas/Address'
        email:
          type: string
          example: accounting@example.com
        showUsageInCustomerPortal:
          type: boolean
          example: true
        supportEmail:
          type: string
          nullable: true
          example: support@example.com
        supportUrl:
          type: string
          nullable: true
          example: https://www.example.com/support
    QuotePhase:
      required:
        - createdAt
        - discounts
        - id
        - minimums
        - prices
      type: object
      example:
        id: abe4bf01-9b75-495d-f5fd-ca82b001f3a8
        name: Onboarding
        createdAt: '2022-06-28T16:47:00Z'
        duration:
          days: -1
          weeks: 0
          months: 6
          years: 1
        prices:
          - id: 5100e884-e007-4183-8355-4771865cb4d7
            productId: e007e884-5100-4183-8355-4771865cb4dd
            name: Sample product
            structure:
              price: '150.00'
              pricingType: ONE_TIME
            billingFrequency: MONTHLY
            billingType: IN_ARREARS
            createdAt: '2021-08-25T12:00:00Z'
            updatedAt: '2021-08-25T12:00:00Z'
            integrationIds:
              - service: Xero
                id: '123'
                isPending: false
            customMetricParameters:
              - parameterId: 2963e49a-c8e0-4673-89f5-7a805c0faf14
                value: '10'
            listPriceId: b4d7e884-e007-4183-8355-4771865c5100
          - id: 5100e884-e007-4183-8355-4771865cb4d7
            productId: e007e884-5100-4183-8355-4771865cb4dd
            name: Sample product
            structure:
              price: '20.00'
              pricingType: FIXED
            billingFrequency: MONTHLY
            billingType: IN_ARREARS
            createdAt: '2021-08-25T12:00:00Z'
            updatedAt: '2021-08-25T12:00:00Z'
            integrationIds:
              - service: Xero
                id: '123'
                isPending: false
            customMetricParameters:
              - parameterId: 2963e49a-c8e0-4673-89f5-7a805c0faf14
                value: '10'
            listPriceId: b4d7e884-e007-4183-8355-4771865c5100
          - id: 5100e884-e007-4183-8355-4771865cb4d7
            productId: e007e884-5100-4183-8355-4771865cb4dd
            name: Sample product
            structure:
              pricePerUnit: '0.25'
              usageMetricId: 04c62961-04ba-48e6-b985-758bb7d3e712
              isPricePercentage: false
              pricingType: LINEAR
            billingFrequency: MONTHLY
            billingType: IN_ARREARS
            createdAt: '2021-08-25T12:00:00Z'
            updatedAt: '2021-08-25T12:00:00Z'
            integrationIds:
              - service: Xero
                id: '123'
                isPending: false
            customMetricParameters:
              - parameterId: 2963e49a-c8e0-4673-89f5-7a805c0faf14
                value: '10'
            listPriceId: b4d7e884-e007-4183-8355-4771865c5100
          - id: 5100e884-e007-4183-8355-4771865cb4d7
            productId: e007e884-5100-4183-8355-4771865cb4dd
            name: Sample product
            structure:
              seatMetricId: bc61d4b8-e9d6-4f4a-9bcf-f5dae874c730
              pricePerSeat: '0.25'
              prorationStrategy: USE_MAXIMUM
              contractedMinimumSeats: 10
              overagesBillingFrequency: YEARLY
              tiers:
                - upperBound: '100'
                  price: '1.00'
                  fee: '50.00'
                - price: '0.75'
                  fee: '25.00'
              prorateFlatFees: false
              pricingType: SEAT_BASED
            billingFrequency: MONTHLY
            billingType: IN_ARREARS
            createdAt: '2021-08-25T12:00:00Z'
            updatedAt: '2021-08-25T12:00:00Z'
            integrationIds:
              - service: Xero
                id: '123'
                isPending: false
            customMetricParameters:
              - parameterId: 2963e49a-c8e0-4673-89f5-7a805c0faf14
                value: '10'
            listPriceId: b4d7e884-e007-4183-8355-4771865c5100
          - id: 5100e884-e007-4183-8355-4771865cb4d7
            productId: e007e884-5100-4183-8355-4771865cb4dd
            name: Sample product
            structure:
              tiers:
                - upperBound: '200'
                  price: '1.00'
                  fee: '50.00'
                  isPricePercentage: false
                - upperBound: '400'
                  price: '0.75'
                  fee: '25.00'
                  isPricePercentage: false
                - price: '0.50'
                  fee: '0.00'
                  isPricePercentage: false
              usageMetricId: 04c62961-04ba-48e6-b985-758bb7d3e712
              usageCalculationMode: BILLING_PERIOD
              pricingType: GRADUATED
            billingFrequency: MONTHLY
            billingType: IN_ARREARS
            createdAt: '2021-08-25T12:00:00Z'
            updatedAt: '2021-08-25T12:00:00Z'
            integrationIds:
              - service: Xero
                id: '123'
                isPending: false
            customMetricParameters:
              - parameterId: 2963e49a-c8e0-4673-89f5-7a805c0faf14
                value: '10'
            listPriceId: b4d7e884-e007-4183-8355-4771865c5100
            usageCalculationPeriod:
              frequency: MONTHLY
              interval: 1
          - id: 5100e884-e007-4183-8355-4771865cb4d7
            productId: e007e884-5100-4183-8355-4771865cb4dd
            name: Sample product
            structure:
              tiers:
                - upperBound: '100'
                  price: '1.00'
                  fee: '50.00'
                  isPricePercentage: true
                  maxPrice: '10'
                  minPrice: '5'
                - price: '0.75'
                  fee: '25.00'
                  isPricePercentage: true
                  maxPrice: '10'
                  minPrice: '5'
              usageMetricId: 04c62961-04ba-48e6-b985-758bb7d3e712
              pricingType: VOLUME
            billingFrequency: MONTHLY
            billingType: IN_ARREARS
            createdAt: '2021-08-25T12:00:00Z'
            updatedAt: '2021-08-25T12:00:00Z'
            integrationIds:
              - service: Xero
                id: '123'
                isPending: false
            customMetricParameters:
              - parameterId: 2963e49a-c8e0-4673-89f5-7a805c0faf14
                value: '10'
            listPriceId: b4d7e884-e007-4183-8355-4771865c5100
          - id: 5100e884-e007-4183-8355-4771865cb4d7
            productId: e007e884-5100-4183-8355-4771865cb4dd
            name: Sample product
            structure:
              packageSize: '50'
              pricePerPackage: '2.00'
              usageMetricId: 04c62961-04ba-48e6-b985-758bb7d3e712
              pricingType: PACKAGE
            billingFrequency: MONTHLY
            billingType: IN_ARREARS
            createdAt: '2021-08-25T12:00:00Z'
            updatedAt: '2021-08-25T12:00:00Z'
            integrationIds:
              - service: Xero
                id: '123'
                isPending: false
            customMetricParameters:
              - parameterId: 2963e49a-c8e0-4673-89f5-7a805c0faf14
                value: '10'
            listPriceId: b4d7e884-e007-4183-8355-4771865c5100
        discounts:
          - id: 018f920a-40d1-7e62-91ca-f3a4b4ac5d9d
            restrictToPrices:
              - 5100e884-e007-4183-8355-4771865cb4d7
            amount: '50'
            discountCalculationType: PERCENTAGE
            message: message
            createdAt: '2021-08-25T12:00:00Z'
            updatedAt: '2021-08-25T12:00:00Z'
            seatDiscountType: ALL_SEATS
        minimums:
          - id: 018f9164-c2d9-7eb2-bb98-11ecb5454055
            amount: '50'
            restrictToPrices:
              - 5100e884-e007-4183-8355-4771865cb4d7
            createdAt: '2021-08-25T12:00:00Z'
            updatedAt: '2021-08-25T12:00:00Z'
      properties:
        id:
          type: string
          description: Unique ID
          example: abe4bf01-9b75-495d-f5fd-ca82b001f3a8
        name:
          type: string
          description: Optional name of phase
          nullable: true
          example: Onboarding
        createdAt:
          type: string
          description: Creation timestamp. Formatted as an ISO 8601 timestamp.
          example: '2022-06-28T16:47:00Z'
        duration:
          $ref: '#/components/schemas/Duration'
          nullable: true
        prices:
          type: array
          description: Prices within this phase
          example:
            - id: 5100e884-e007-4183-8355-4771865cb4d7
              productId: e007e884-5100-4183-8355-4771865cb4dd
              name: Sample product
              structure:
                price: '150.00'
                pricingType: ONE_TIME
              billingFrequency: MONTHLY
              billingType: IN_ARREARS
              createdAt: '2021-08-25T12:00:00Z'
              updatedAt: '2021-08-25T12:00:00Z'
              integrationIds:
                - service: Xero
                  id: '123'
                  isPending: false
              customMetricParameters:
                - parameterId: 2963e49a-c8e0-4673-89f5-7a805c0faf14
                  value: '10'
              listPriceId: b4d7e884-e007-4183-8355-4771865c5100
            - id: 5100e884-e007-4183-8355-4771865cb4d7
              productId: e007e884-5100-4183-8355-4771865cb4dd
              name: Sample product
              structure:
                price: '20.00'
                pricingType: FIXED
              billingFrequency: MONTHLY
              billingType: IN_ARREARS
              createdAt: '2021-08-25T12:00:00Z'
              updatedAt: '2021-08-25T12:00:00Z'
              integrationIds:
                - service: Xero
                  id: '123'
                  isPending: false
              customMetricParameters:
                - parameterId: 2963e49a-c8e0-4673-89f5-7a805c0faf14
                  value: '10'
              listPriceId: b4d7e884-e007-4183-8355-4771865c5100
            - id: 5100e884-e007-4183-8355-4771865cb4d7
              productId: e007e884-5100-4183-8355-4771865cb4dd
              name: Sample product
              structure:
                pricePerUnit: '0.25'
                usageMetricId: 04c62961-04ba-48e6-b985-758bb7d3e712
                isPricePercentage: false
                pricingType: LINEAR
              billingFrequency: MONTHLY
              billingType: IN_ARREARS
              createdAt: '2021-08-25T12:00:00Z'
              updatedAt: '2021-08-25T12:00:00Z'
              integrationIds:
                - service: Xero
                  id: '123'
                  isPending: false
              customMetricParameters:
                - parameterId: 2963e49a-c8e0-4673-89f5-7a805c0faf14
                  value: '10'
              listPriceId: b4d7e884-e007-4183-8355-4771865c5100
            - id: 5100e884-e007-4183-8355-4771865cb4d7
              productId: e007e884-5100-4183-8355-4771865cb4dd
              name: Sample product
              structure:
                seatMetricId: bc61d4b8-e9d6-4f4a-9bcf-f5dae874c730
                pricePerSeat: '0.25'
                prorationStrategy: USE_MAXIMUM
                contractedMinimumSeats: 10
                overagesBillingFrequency: YEARLY
                tiers:
                  - upperBound: '100'
                    price: '1.00'
                    fee: '50.00'
                  - price: '0.75'
                    fee: '25.00'
                prorateFlatFees: false
                pricingType: SEAT_BASED
              billingFrequency: MONTHLY
              billingType: IN_ARREARS
              createdAt: '2021-08-25T12:00:00Z'
              updatedAt: '2021-08-25T12:00:00Z'
              integrationIds:
                - service: Xero
                  id: '123'
                  isPending: false
              customMetricParameters:
                - parameterId: 2963e49a-c8e0-4673-89f5-7a805c0faf14
                  value: '10'
              listPriceId: b4d7e884-e007-4183-8355-4771865c5100
            - id: 5100e884-e007-4183-8355-4771865cb4d7
              productId: e007e884-5100-4183-8355-4771865cb4dd
              name: Sample product
              structure:
                tiers:
                  - upperBound: '200'
                    price: '1.00'
                    fee: '50.00'
                    isPricePercentage: false
                  - upperBound: '400'
                    price: '0.75'
                    fee: '25.00'
                    isPricePercentage: false
                  - price: '0.50'
                    fee: '0.00'
                    isPricePercentage: false
                usageMetricId: 04c62961-04ba-48e6-b985-758bb7d3e712
                usageCalculationMode: BILLING_PERIOD
                pricingType: GRADUATED
              billingFrequency: MONTHLY
              billingType: IN_ARREARS
              createdAt: '2021-08-25T12:00:00Z'
              updatedAt: '2021-08-25T12:00:00Z'
              integrationIds:
                - service: Xero
                  id: '123'
                  isPending: false
              customMetricParameters:
                - parameterId: 2963e49a-c8e0-4673-89f5-7a805c0faf14
                  value: '10'
              listPriceId: b4d7e884-e007-4183-8355-4771865c5100
              usageCalculationPeriod:
                frequency: MONTHLY
                interval: 1
            - id: 5100e884-e007-4183-8355-4771865cb4d7
              productId: e007e884-5100-4183-8355-4771865cb4dd
              name: Sample product
              structure:
                tiers:
                  - upperBound: '100'
                    price: '1.00'
                    fee: '50.00'
                    isPricePercentage: true
                    maxPrice: '10'
                    minPrice: '5'
                  - price: '0.75'
                    fee: '25.00'
                    isPricePercentage: true
                    maxPrice: '10'
                    minPrice: '5'
                usageMetricId: 04c62961-04ba-48e6-b985-758bb7d3e712
                pricingType: VOLUME
              billingFrequency: MONTHLY
              billingType: IN_ARREARS
              createdAt: '2021-08-25T12:00:00Z'
              updatedAt: '2021-08-25T12:00:00Z'
              integrationIds:
                - service: Xero
                  id: '123'
                  isPending: false
              customMetricParameters:
                - parameterId: 2963e49a-c8e0-4673-89f5-7a805c0faf14
                  value: '10'
              listPriceId: b4d7e884-e007-4183-8355-4771865c5100
            - id: 5100e884-e007-4183-8355-4771865cb4d7
              productId: e007e884-5100-4183-8355-4771865cb4dd
              name: Sample product
              structure:
                packageSize: '50'
                pricePerPackage: '2.00'
                usageMetricId: 04c62961-04ba-48e6-b985-758bb7d3e712
                pricingType: PACKAGE
              billingFrequency: MONTHLY
              billingType: IN_ARREARS
              createdAt: '2021-08-25T12:00:00Z'
              updatedAt: '2021-08-25T12:00:00Z'
              integrationIds:
                - service: Xero
                  id: '123'
                  isPending: false
              customMetricParameters:
                - parameterId: 2963e49a-c8e0-4673-89f5-7a805c0faf14
                  value: '10'
              listPriceId: b4d7e884-e007-4183-8355-4771865c5100
          items:
            $ref: '#/components/schemas/QuotePrice'
        discounts:
          type: array
          description: Discounts within this phase
          example:
            - id: 018f920a-40d1-7e62-91ca-f3a4b4ac5d9d
              restrictToPrices:
                - 5100e884-e007-4183-8355-4771865cb4d7
              amount: '50'
              discountCalculationType: PERCENTAGE
              message: message
              createdAt: '2021-08-25T12:00:00Z'
              updatedAt: '2021-08-25T12:00:00Z'
              seatDiscountType: ALL_SEATS
          items:
            $ref: '#/components/schemas/QuoteDiscount'
        minimums:
          type: array
          description: Minimums within this phase
          example:
            - id: 018f9164-c2d9-7eb2-bb98-11ecb5454055
              amount: '50'
              restrictToPrices:
                - 5100e884-e007-4183-8355-4771865cb4d7
              createdAt: '2021-08-25T12:00:00Z'
              updatedAt: '2021-08-25T12:00:00Z'
          items:
            $ref: '#/components/schemas/QuoteMinimum'
    QuoteContact:
      required:
        - contactId
        - email
        - name
        - notificationHistory
      type: object
      example:
        contactId: 9a1e38a9-4dc9-776f-f974-4e7ee9f4d6cc
        name: Jane Doe
        email: jane@example.com
        signedAt: '2022-06-28T16:47:00Z'
        notificationHistory:
          - notifiedAt: '2022-06-28T16:47:00Z'
            trigger: PUBLISH
      properties:
        contactId:
          type: string
          description: Unique Contact ID
          example: 9a1e38a9-4dc9-776f-f974-4e7ee9f4d6cc
        name:
          type: string
          description: Full name of the signer
          example: Jane Doe
        email:
          type: string
          description: Email address of the signer
          example: jane@example.com
        signedAt:
          type: string
          description: >-
            The time at which this contact signed the document. Formatted as an
            ISO 8601 timestamp.
          nullable: true
          example: '2022-06-28T16:47:00Z'
        notificationHistory:
          type: array
          description: >-
            Notifications this recipient received about this published quote,
            newest first
          example:
            - notifiedAt: '2022-06-28T16:47:00Z'
              trigger: PUBLISH
          items:
            $ref: '#/components/schemas/QuoteRecipientNotificationHistoryItem'
    QuoteCcContact:
      required:
        - contactId
        - email
        - name
        - notificationHistory
      type: object
      example:
        contactId: 9a1e38a9-4dc9-776f-f974-4e7ee9f4d6cd
        name: John Smith
        email: john@example.com
        notificationHistory:
          - notifiedAt: '2022-06-28T16:47:00Z'
            trigger: PUBLISH
      properties:
        contactId:
          type: string
          description: Unique Contact ID
          example: 9a1e38a9-4dc9-776f-f974-4e7ee9f4d6cd
        name:
          type: string
          description: Full name of the cc recipient
          example: John Smith
        email:
          type: string
          description: Email address of the cc recipient
          example: john@example.com
        notificationHistory:
          type: array
          description: >-
            Notifications this recipient received about this published quote,
            newest first
          example:
            - notifiedAt: '2022-06-28T16:47:00Z'
              trigger: PUBLISH
          items:
            $ref: '#/components/schemas/QuoteRecipientNotificationHistoryItem'
    QuoteCounterSigner:
      required:
        - email
        - id
        - name
        - notificationHistory
      type: object
      example:
        id: 0190da0c-980d-7fa2-9b65-4c79784a95b1
        name: Jane Doe
        email: jane@example.com
        signedAt: '2022-06-28T16:47:00Z'
        notificationHistory:
          - notifiedAt: '2022-06-28T16:47:00Z'
            trigger: PUBLISH
      properties:
        id:
          type: string
          description: Unique ID
          example: 0190da0c-980d-7fa2-9b65-4c79784a95b1
        name:
          type: string
          description: Full name of the signer
          example: Jane Doe
        email:
          type: string
          description: Email address of the signer
          example: jane@example.com
        signedAt:
          type: string
          description: >-
            The time at which this contact signed the document. Formatted as an
            ISO 8601 timestamp.
          nullable: true
          example: '2022-06-28T16:47:00Z'
        notificationHistory:
          type: array
          description: >-
            Notifications this recipient received about this published quote,
            newest first
          example:
            - notifiedAt: '2022-06-28T16:47:00Z'
              trigger: PUBLISH
          items:
            $ref: '#/components/schemas/QuoteRecipientNotificationHistoryItem'
    Address:
      required:
        - country
        - line1
        - postcode
        - town
      type: object
      example:
        line1: 1 Market Street
        line2: Suite 100
        town: San Francisco
        state: CA
        postcode: '94105'
        country: US
      properties:
        line1:
          type: string
          description: Address line 1
          example: 1 Market Street
        line2:
          type: string
          description: Address line 2
          nullable: true
          example: Suite 100
        town:
          type: string
          description: Town or city
          example: San Francisco
        state:
          $ref: '#/components/schemas/State'
          description: State or province (required for USA and Canada)
          nullable: true
        postcode:
          type: string
          description: Postal code
          example: '94105'
        country:
          $ref: '#/components/schemas/CountryCode'
          description: >-
            Country. Request values can be an ISO 3166-1 alpha-2 code such as
            `GB`
            ([list](https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes)),
            an alpha-3 code such as `GBR`, a country name or a common alias
            ("United Kingdom", "UK"), in any case. Response values always use
            the alpha-2 code.
    QuotePdfStatus:
      type: string
      example: NOT_YET_REQUESTED
      enum:
        - NOT_YET_REQUESTED
        - REQUESTED
        - IN_PROGRESS
        - FAILED
        - GENERATED
    AssetResponse:
      required:
        - createdAt
        - createdBy
        - createdByType
        - fileName
        - fileSizeBytes
        - format
        - id
        - type
        - url
      type: object
      example:
        id: e007e884-5100-4183-8355-4771865cb4dd
        createdBy: 94703530-1293-479b-bd37-ccad42fd9c8b
        createdByType: SEQUENCE_USER
        type: IMAGE
        format: PNG
        fileName: my-image.png
        fileSizeBytes: 12345
        url: >-
          https://assets.sequencehq.com/018f9ad5-4192-76d7-aea5-d80a9018eded/images/e007e884-5100-4183-8355-4771865cb4dd.png
        createdAt: '2022-06-28T16:47:00Z'
      properties:
        id:
          type: string
          description: Unique ID
          example: e007e884-5100-4183-8355-4771865cb4dd
        createdBy:
          type: string
          description: >-
            The ID of the asset creator. A Sequence user id or API key id, as
            identified by `createdByType`.
          example: 94703530-1293-479b-bd37-ccad42fd9c8b
        createdByType:
          $ref: '#/components/schemas/AssetCreatorType'
          description: Whether `createdBy` identifies a `SEQUENCE_USER` or an `API_CLIENT`
        type:
          $ref: '#/components/schemas/AssetType'
          description: Either image or document
        format:
          $ref: '#/components/schemas/AssetFormat'
          description: >-
            Identifies the intended data format. Allowed formats are: jpg, jpeg,
            png, and pdf
        fileName:
          type: string
          description: Filename of the uploaded file
          example: my-image.png
        fileSizeBytes:
          type: integer
          description: Size of the uploaded file in bytes
          format: int32
          example: 12345
        url:
          type: string
          description: URL to download the asset
          example: >-
            https://assets.sequencehq.com/018f9ad5-4192-76d7-aea5-d80a9018eded/images/e007e884-5100-4183-8355-4771865cb4dd.png
        createdAt:
          type: string
          description: Creation timestamp. Formatted as an ISO 8601 timestamp.
          example: '2022-06-28T16:47:00Z'
    SignatureMode:
      type: string
      example: EMBEDDED
      enum:
        - EMBEDDED
        - NON_EMBEDDED
    AmendmentScheduleResponseModel:
      required:
        - phases
      type: object
      description: >-
        Read-only. A billing schedule's phases. `original` is the schedule
        before this amendment; `amended` is the schedule once this amendment
        takes effect, from appliedFrom once it's executed.
      example:
        phases:
          - name: Year 1
            startDate: '2022-01-01'
            endDate: '2022-12-31'
            prices:
              - productId: e007e884-5100-4183-8355-4771865cb4dd
                name: API calls
                structure:
                  tiers:
                    - upperBound: '1000'
                      price: '0.25'
                      fee: '50'
                      isPricePercentage: false
                    - price: '0.1'
                      fee: '0'
                      isPricePercentage: false
                  usageMetricId: 04c62961-04ba-48e6-b985-758bb7d3e712
                  usageCalculationMode: PERIODIC
                  pricingType: GRADUATED
                billingFrequency: MONTHLY
                billingType: IN_ARREARS
                usageCalculationPeriod:
                  frequency: MONTHLY
                  interval: 1
                customMetricParameters:
                  - parameterId: 2963e49a-c8e0-4673-89f5-7a805c0faf14
                    value: '10'
            discounts:
              - discountCalculationType: PERCENTAGE
                amount: '10'
                message: 10% off API calls
                seatDiscountType: ALL_SEATS
                productIds:
                  - e007e884-5100-4183-8355-4771865cb4dd
            minimums:
              - amount: '500'
                productIds:
                  - e007e884-5100-4183-8355-4771865cb4dd
      properties:
        phases:
          type: array
          description: The schedule's phases, in start date order
          example:
            - name: Year 1
              startDate: '2022-01-01'
              endDate: '2022-12-31'
              prices:
                - productId: e007e884-5100-4183-8355-4771865cb4dd
                  name: API calls
                  structure:
                    tiers:
                      - upperBound: '1000'
                        price: '0.25'
                        fee: '50'
                        isPricePercentage: false
                      - price: '0.1'
                        fee: '0'
                        isPricePercentage: false
                    usageMetricId: 04c62961-04ba-48e6-b985-758bb7d3e712
                    usageCalculationMode: PERIODIC
                    pricingType: GRADUATED
                  billingFrequency: MONTHLY
                  billingType: IN_ARREARS
                  usageCalculationPeriod:
                    frequency: MONTHLY
                    interval: 1
                  customMetricParameters:
                    - parameterId: 2963e49a-c8e0-4673-89f5-7a805c0faf14
                      value: '10'
              discounts:
                - discountCalculationType: PERCENTAGE
                  amount: '10'
                  message: 10% off API calls
                  seatDiscountType: ALL_SEATS
                  productIds:
                    - e007e884-5100-4183-8355-4771865cb4dd
              minimums:
                - amount: '500'
                  productIds:
                    - e007e884-5100-4183-8355-4771865cb4dd
          items:
            $ref: '#/components/schemas/AmendmentPhaseResponseModel'
    EntityType:
      type: string
      example: QUOTE
      enum:
        - BILLING_SCHEDULE
        - BILLING_SCHEDULE_DISCOUNT
        - BILLING_SCHEDULE_MINIMUM
        - BILLING_SCHEDULE_PHASE
        - BILLING_SCHEDULE_PRICE
        - CONTACT
        - CREDIT_NOTE
        - CREDIT_NOTE_APPLICATION
        - CUSTOMER
        - FILE
        - INVOICE
        - LEDGER_ACCOUNT
        - LIST_PRICE
        - OVERPAYMENT
        - PAYMENT
        - PAYMENT_APPLICATION
        - PRICE
        - PRODUCT
        - QUOTE
        - QUOTE_DISCOUNT
        - QUOTE_MINIMUM
        - QUOTE_PHASE
        - QUOTE_PRICE
        - QUOTE_TEMPLATE_PRICE
        - TAX_CATEGORY
        - TAX_CODE
    Duration:
      required:
        - days
        - months
        - weeks
        - years
      type: object
      description: How long the phase lasts. Leave it out for an open-ended phase.
      example:
        days: 0
        weeks: 0
        months: 0
        years: 1
      properties:
        days:
          type: integer
          format: int32
          example: 0
        weeks:
          type: integer
          format: int32
          example: 0
        months:
          type: integer
          format: int32
          example: 0
        years:
          type: integer
          format: int32
          example: 1
    QuotePrice:
      required:
        - billingFrequency
        - billingType
        - createdAt
        - customMetricParameters
        - id
        - integrationIds
        - name
        - productId
        - structure
        - updatedAt
      type: object
      example:
        id: 5100e884-e007-4183-8355-4771865cb4d7
        productId: e007e884-5100-4183-8355-4771865cb4dd
        name: Sample product
        structure:
          price: '150.00'
          pricingType: ONE_TIME
        billingFrequency: MONTHLY
        billingType: IN_ARREARS
        createdAt: '2021-08-25T12:00:00Z'
        updatedAt: '2021-08-25T12:00:00Z'
        integrationIds:
          - service: Xero
            id: '123'
            isPending: false
        customMetricParameters:
          - parameterId: 2963e49a-c8e0-4673-89f5-7a805c0faf14
            value: '10'
        listPriceId: b4d7e884-e007-4183-8355-4771865c5100
      properties:
        id:
          type: string
          description: Unique ID
          example: 5100e884-e007-4183-8355-4771865cb4d7
        productId:
          type: string
          description: The related product ID
          example: e007e884-5100-4183-8355-4771865cb4dd
        name:
          type: string
          description: The customer-facing name of this price
          example: Sample product
        structure:
          oneOf:
            - $ref: '#/components/schemas/ONE_TIME'
            - $ref: '#/components/schemas/FIXED'
            - $ref: '#/components/schemas/LINEAR'
            - $ref: '#/components/schemas/SEAT_BASED'
            - $ref: '#/components/schemas/GRADUATED'
            - $ref: '#/components/schemas/VOLUME'
            - $ref: '#/components/schemas/PACKAGE'
          discriminator:
            propertyName: pricingType
          required:
            - pricingType
        billingFrequency:
          $ref: '#/components/schemas/BillingFrequency'
          description: The recurrence of charging this price.
        billingType:
          $ref: '#/components/schemas/BillingType'
          description: 'How to bill this price: in-arrears or in-advance.'
        createdAt:
          type: string
          description: Creation timestamp. Formatted as an ISO 8601 timestamp.
          example: '2021-08-25T12:00:00Z'
        updatedAt:
          type: string
          description: >-
            Timestamp when price was last updated. Formatted as an ISO 8601
            timestamp.
          example: '2021-08-25T12:00:00Z'
        integrationIds:
          type: array
          description: Alternate IDs for this price in third-party integration systems
          example:
            - service: Xero
              id: '123'
              isPending: false
          items:
            $ref: '#/components/schemas/IntegrationId'
        customMetricParameters:
          type: array
          description: >-
            Specific parameters to influence usage calculation for this price,
            and are only required when using a custom metric. Please speak to
            your Sequence contacts for further information prior to usage.
          example:
            - parameterId: 2963e49a-c8e0-4673-89f5-7a805c0faf14
              value: '10'
          items:
            $ref: '#/components/schemas/PriceParameter'
        listPriceId:
          type: string
          description: >-
            The list price ID, if this quote price variant was created from a
            list price
          nullable: true
          example: b4d7e884-e007-4183-8355-4771865c5100
    QuoteDiscount:
      required:
        - amount
        - createdAt
        - discountCalculationType
        - id
        - message
        - restrictToPrices
        - updatedAt
      type: object
      example:
        id: 018f920a-40d1-7e62-91ca-f3a4b4ac5d9d
        restrictToPrices:
          - 5100e884-e007-4183-8355-4771865cb4d7
        amount: '50'
        discountCalculationType: PERCENTAGE
        message: message
        createdAt: '2021-08-25T12:00:00Z'
        updatedAt: '2021-08-25T12:00:00Z'
        seatDiscountType: ALL_SEATS
      properties:
        id:
          type: string
          description: Discount ID
          example: 018f920a-40d1-7e62-91ca-f3a4b4ac5d9d
        restrictToPrices:
          type: array
          description: Price IDs the discount is restricted to
          example:
            - 5100e884-e007-4183-8355-4771865cb4d7
          items:
            type: string
        amount:
          type: string
          description: Discount amount
          example: '50'
        discountCalculationType:
          $ref: '#/components/schemas/DiscountCalculationType'
          description: Indicates whether the discount amount is percentage or nominal
        message:
          type: string
          description: Message to appear on the quote or invoice
          example: message
        createdAt:
          type: string
          description: Created at
          example: '2021-08-25T12:00:00Z'
        updatedAt:
          type: string
          description: Updated at
          example: '2021-08-25T12:00:00Z'
        seatDiscountType:
          $ref: '#/components/schemas/SeatDiscountType'
          description: Determines how the discount is applied to any seat-based prices
          nullable: true
    QuoteMinimum:
      required:
        - amount
        - createdAt
        - id
        - restrictToPrices
        - updatedAt
      type: object
      example:
        id: 018f9164-c2d9-7eb2-bb98-11ecb5454055
        amount: '50'
        restrictToPrices:
          - 5100e884-e007-4183-8355-4771865cb4d7
        createdAt: '2021-08-25T12:00:00Z'
        updatedAt: '2021-08-25T12:00:00Z'
      properties:
        id:
          type: string
          description: Minimum ID
          example: 018f9164-c2d9-7eb2-bb98-11ecb5454055
        amount:
          type: string
          description: Minimum amount
          example: '50'
        restrictToPrices:
          type: array
          description: Price IDs the minimum is restricted to
          example:
            - 5100e884-e007-4183-8355-4771865cb4d7
          items:
            type: string
        createdAt:
          type: string
          description: Created at
          example: '2021-08-25T12:00:00Z'
        updatedAt:
          type: string
          description: Updated at
          example: '2021-08-25T12:00:00Z'
    QuoteRecipientNotificationHistoryItem:
      required:
        - notifiedAt
        - trigger
      type: object
      example:
        notifiedAt: '2022-06-28T16:47:00Z'
        trigger: PUBLISH
      properties:
        notifiedAt:
          type: string
          description: The time this notification was sent. ISO 8601.
          example: '2022-06-28T16:47:00Z'
        trigger:
          $ref: '#/components/schemas/QuoteNotificationTrigger'
          description: Which operation sent this notification
    State:
      type: string
      example: CA
      enum:
        - AL
        - AK
        - AZ
        - AR
        - CA
        - CO
        - CT
        - DC
        - DE
        - FL
        - GA
        - HI
        - ID
        - IL
        - IN
        - IA
        - KS
        - KY
        - LA
        - ME
        - MD
        - MA
        - MI
        - MN
        - MS
        - MO
        - MT
        - NE
        - NV
        - NH
        - NJ
        - NM
        - NY
        - NC
        - ND
        - OH
        - OK
        - OR
        - PA
        - RI
        - SC
        - SD
        - TN
        - TX
        - UT
        - VT
        - VA
        - WA
        - WV
        - WI
        - WY
        - AB
        - BC
        - MB
        - NB
        - NL
        - NS
        - NT
        - NU
        - 'ON'
        - PE
        - QC
        - SK
        - YT
    CountryCode:
      type: string
      example: US
      enum:
        - AD
        - AE
        - AF
        - AG
        - AI
        - AL
        - AM
        - AO
        - AQ
        - AR
        - AS
        - AT
        - AU
        - AW
        - AX
        - AZ
        - BA
        - BB
        - BD
        - BE
        - BF
        - BG
        - BH
        - BI
        - BJ
        - BL
        - BM
        - BN
        - BO
        - BQ
        - BR
        - BS
        - BT
        - BV
        - BW
        - BY
        - BZ
        - CA
        - CC
        - CD
        - CF
        - CG
        - CH
        - CI
        - CK
        - CL
        - CM
        - CN
        - CO
        - CR
        - CU
        - CV
        - CW
        - CX
        - CY
        - CZ
        - DE
        - DJ
        - DK
        - DM
        - DO
        - DZ
        - EC
        - EE
        - EG
        - EH
        - ER
        - ES
        - ET
        - FI
        - FJ
        - FK
        - FM
        - FO
        - FR
        - GA
        - GB
        - GD
        - GE
        - GF
        - GG
        - GH
        - GI
        - GL
        - GM
        - GN
        - GP
        - GQ
        - GR
        - GS
        - GT
        - GU
        - GW
        - GY
        - HK
        - HM
        - HN
        - HR
        - HT
        - HU
        - ID
        - IE
        - IL
        - IM
        - IN
        - IO
        - IQ
        - IR
        - IS
        - IT
        - JE
        - JM
        - JO
        - JP
        - KE
        - KG
        - KH
        - KI
        - KM
        - KN
        - KP
        - KR
        - KW
        - KY
        - KZ
        - LA
        - LB
        - LC
        - LI
        - LK
        - LR
        - LS
        - LT
        - LU
        - LV
        - LY
        - MA
        - MC
        - MD
        - ME
        - MF
        - MG
        - MH
        - MK
        - ML
        - MM
        - MN
        - MO
        - MP
        - MQ
        - MR
        - MS
        - MT
        - MU
        - MV
        - MW
        - MX
        - MY
        - MZ
        - NA
        - NC
        - NE
        - NF
        - NG
        - NI
        - NL
        - 'NO'
        - NP
        - NR
        - NU
        - NZ
        - OM
        - PA
        - PE
        - PF
        - PG
        - PH
        - PK
        - PL
        - PM
        - PN
        - PR
        - PS
        - PT
        - PW
        - PY
        - QA
        - RE
        - RO
        - RS
        - RU
        - RW
        - SA
        - SB
        - SC
        - SD
        - SE
        - SG
        - SH
        - SI
        - SJ
        - SK
        - SL
        - SM
        - SN
        - SO
        - SR
        - SS
        - ST
        - SV
        - SX
        - SY
        - SZ
        - TC
        - TD
        - TF
        - TG
        - TH
        - TJ
        - TK
        - TL
        - TM
        - TN
        - TO
        - TR
        - TT
        - TV
        - TW
        - TZ
        - UA
        - UG
        - UM
        - US
        - UY
        - UZ
        - VA
        - VC
        - VE
        - VG
        - VI
        - VN
        - VU
        - WF
        - WS
        - XK
        - YE
        - YT
        - ZA
        - ZM
        - ZW
    AssetCreatorType:
      type: string
      example: SEQUENCE_USER
      enum:
        - SEQUENCE_USER
        - API_CLIENT
    AssetType:
      type: string
      example: IMAGE
      enum:
        - IMAGE
        - DOCUMENT
        - BINARY
    AssetFormat:
      type: string
      example: PNG
      enum:
        - JPEG
        - JPG
        - PNG
        - PDF
        - CSV
        - TXT
        - RTF
        - MD
        - XLS
        - XLSX
        - XLSM
        - DOC
        - DOCX
        - ZIP
        - ODT
        - ODS
    AmendmentPhaseResponseModel:
      required:
        - discounts
        - minimums
        - prices
        - startDate
      type: object
      example:
        name: Year 1
        startDate: '2022-01-01'
        endDate: '2022-12-31'
        prices:
          - productId: e007e884-5100-4183-8355-4771865cb4dd
            name: API calls
            structure:
              tiers:
                - upperBound: '1000'
                  price: '0.25'
                  fee: '50'
                  isPricePercentage: false
                - price: '0.1'
                  fee: '0'
                  isPricePercentage: false
              usageMetricId: 04c62961-04ba-48e6-b985-758bb7d3e712
              usageCalculationMode: PERIODIC
              pricingType: GRADUATED
            billingFrequency: MONTHLY
            billingType: IN_ARREARS
            usageCalculationPeriod:
              frequency: MONTHLY
              interval: 1
            customMetricParameters:
              - parameterId: 2963e49a-c8e0-4673-89f5-7a805c0faf14
                value: '10'
        discounts:
          - discountCalculationType: PERCENTAGE
            amount: '10'
            message: 10% off API calls
            seatDiscountType: ALL_SEATS
            productIds:
              - e007e884-5100-4183-8355-4771865cb4dd
        minimums:
          - amount: '500'
            productIds:
              - e007e884-5100-4183-8355-4771865cb4dd
      properties:
        name:
          type: string
          description: Phase name
          nullable: true
          example: Year 1
        startDate:
          type: string
          description: The date the phase starts
          example: '2022-01-01'
        endDate:
          type: string
          description: The date the phase ends, or absent when the phase is open-ended
          nullable: true
          example: '2022-12-31'
        prices:
          type: array
          description: The prices billed in the phase
          example:
            - productId: e007e884-5100-4183-8355-4771865cb4dd
              name: API calls
              structure:
                tiers:
                  - upperBound: '1000'
                    price: '0.25'
                    fee: '50'
                    isPricePercentage: false
                  - price: '0.1'
                    fee: '0'
                    isPricePercentage: false
                usageMetricId: 04c62961-04ba-48e6-b985-758bb7d3e712
                usageCalculationMode: PERIODIC
                pricingType: GRADUATED
              billingFrequency: MONTHLY
              billingType: IN_ARREARS
              usageCalculationPeriod:
                frequency: MONTHLY
                interval: 1
              customMetricParameters:
                - parameterId: 2963e49a-c8e0-4673-89f5-7a805c0faf14
                  value: '10'
          items:
            $ref: '#/components/schemas/AmendmentPriceResponseModel'
        discounts:
          type: array
          description: The discounts applied in the phase
          example:
            - discountCalculationType: PERCENTAGE
              amount: '10'
              message: 10% off API calls
              seatDiscountType: ALL_SEATS
              productIds:
                - e007e884-5100-4183-8355-4771865cb4dd
          items:
            $ref: '#/components/schemas/AmendmentDiscountResponseModel'
        minimums:
          type: array
          description: The minimum commitments applied in the phase
          example:
            - amount: '500'
              productIds:
                - e007e884-5100-4183-8355-4771865cb4dd
          items:
            $ref: '#/components/schemas/AmendmentMinimumResponseModel'
    ONE_TIME:
      properties:
        price:
          example: '150.00'
          description: A fixed amount that is charged once.
          type: string
          nullable: false
        pricingType:
          enum:
            - ONE_TIME
          example: ONE_TIME
          type: string
      example:
        price: '150.00'
        pricingType: ONE_TIME
      type: object
      required:
        - price
        - pricingType
    FIXED:
      properties:
        price:
          example: '20.00'
          description: A fixed amount that is charged once every billing period.
          type: string
          nullable: false
        pricingType:
          enum:
            - FIXED
          example: FIXED
          type: string
      example:
        price: '20.00'
        pricingType: FIXED
      type: object
      required:
        - price
        - pricingType
    LINEAR:
      properties:
        pricePerUnit:
          example: '0.25'
          description: >-
            The per unit rate to apply to usage for this product. In the case of
            percentage pricing where `isPricePercentage` is set to `true`, a
            value of 1 represents 100%.
          type: string
          nullable: false
        usageMetricId:
          example: 04c62961-04ba-48e6-b985-758bb7d3e712
          description: Usage metric associated to this pricing structure
          type: string
          nullable: false
        isPricePercentage:
          example: false
          description: >-
            Indicate whether the price attribute is to be considered as a
            percentage or an absolute value.
          type: boolean
          nullable: false
        pricingType:
          enum:
            - LINEAR
          example: LINEAR
          type: string
      example:
        pricePerUnit: '0.25'
        usageMetricId: 04c62961-04ba-48e6-b985-758bb7d3e712
        isPricePercentage: false
        pricingType: LINEAR
      type: object
      required:
        - isPricePercentage
        - pricePerUnit
        - pricingType
        - usageMetricId
    SEAT_BASED:
      properties:
        seatMetricId:
          example: bc61d4b8-e9d6-4f4a-9bcf-f5dae874c730
          description: Seat metric associated to this pricing structure
          type: string
          nullable: false
        pricePerSeat:
          example: '0.25'
          description: Price charged per seat per full billing period
          type: string
          nullable: false
        prorationStrategy:
          $ref: '#/components/schemas/SeatProrationStrategy'
          description: >-
            The proration strategy to use when calculating the price for a seat.
            A `USE_MAXIMUM` will not prorate and charge the highest seat balance
            for the entire billing period, while a PRORATE_INCREMENTS will
            charge incremental seats from the day they're added
        contractedMinimumSeats:
          example: 10
          description: The number of contractually agreed minimum seats
          type: integer
          nullable: false
        overagesBillingFrequency:
          $ref: '#/components/schemas/OveragesFrequency'
          description: The frequency with which to charge overages
        tiers:
          items:
            $ref: '#/components/schemas/SeatUsageTier'
          example:
            - upperBound: '100'
              price: '1.00'
              fee: '50.00'
            - price: '0.75'
              fee: '25.00'
          description: A list of contiguous pricing tiers
          type: array
          nullable: false
        prorateFlatFees:
          example: false
          description: >-
            If set any flat fees will be pro-rated if the invoice service period
            length does not match the billing frequency
          type: boolean
          nullable: true
        pricingType:
          enum:
            - SEAT_BASED
          example: SEAT_BASED
          type: string
      example:
        seatMetricId: bc61d4b8-e9d6-4f4a-9bcf-f5dae874c730
        pricePerSeat: '0.25'
        prorationStrategy: USE_MAXIMUM
        contractedMinimumSeats: 10
        overagesBillingFrequency: YEARLY
        tiers:
          - upperBound: '100'
            price: '1.00'
            fee: '50.00'
          - price: '0.75'
            fee: '25.00'
        prorateFlatFees: false
        pricingType: SEAT_BASED
      type: object
      required:
        - contractedMinimumSeats
        - pricePerSeat
        - pricingType
        - prorationStrategy
        - seatMetricId
        - tiers
    GRADUATED:
      properties:
        tiers:
          items:
            $ref: '#/components/schemas/GraduatedUsageTier'
          example:
            - upperBound: '200'
              price: '1.00'
              fee: '50.00'
              isPricePercentage: false
            - upperBound: '400'
              price: '0.75'
              fee: '25.00'
              isPricePercentage: false
            - price: '0.50'
              fee: '0.00'
              isPricePercentage: false
          description: A list of contiguous pricing tiers
          type: array
          nullable: false
        usageMetricId:
          example: 04c62961-04ba-48e6-b985-758bb7d3e712
          description: The usage metric associated to this pricing structure
          type: string
          nullable: false
        usageCalculationMode:
          $ref: '#/components/schemas/UsageCalculationMode'
          description: Indicates the scope of usage calculation
        pricingType:
          enum:
            - GRADUATED
          example: GRADUATED
          type: string
      example:
        tiers:
          - upperBound: '200'
            price: '1.00'
            fee: '50.00'
            isPricePercentage: false
          - upperBound: '400'
            price: '0.75'
            fee: '25.00'
            isPricePercentage: false
          - price: '0.50'
            fee: '0.00'
            isPricePercentage: false
        usageMetricId: 04c62961-04ba-48e6-b985-758bb7d3e712
        usageCalculationMode: BILLING_PERIOD
        pricingType: GRADUATED
      type: object
      required:
        - pricingType
        - tiers
        - usageCalculationMode
        - usageMetricId
    VOLUME:
      properties:
        tiers:
          items:
            $ref: '#/components/schemas/VolumeUsageTier'
          example:
            - upperBound: '100'
              price: '1.00'
              fee: '50.00'
              isPricePercentage: true
              maxPrice: '10'
              minPrice: '5'
            - price: '0.75'
              fee: '25.00'
              isPricePercentage: true
              maxPrice: '10'
              minPrice: '5'
          description: A list of contiguous pricing tiers
          type: array
          nullable: false
        usageMetricId:
          example: 04c62961-04ba-48e6-b985-758bb7d3e712
          description: The usage metric associated to this tier
          type: string
          nullable: false
        pricingType:
          enum:
            - VOLUME
          example: VOLUME
          type: string
      example:
        tiers:
          - upperBound: '100'
            price: '1.00'
            fee: '50.00'
            isPricePercentage: true
            maxPrice: '10'
            minPrice: '5'
          - price: '0.75'
            fee: '25.00'
            isPricePercentage: true
            maxPrice: '10'
            minPrice: '5'
        usageMetricId: 04c62961-04ba-48e6-b985-758bb7d3e712
        pricingType: VOLUME
      type: object
      required:
        - pricingType
        - tiers
        - usageMetricId
    PACKAGE:
      properties:
        packageSize:
          example: '50'
          description: The amount of usage allowed for the price in this structure
          type: string
          nullable: false
        pricePerPackage:
          example: '2.00'
          description: The price charged for each package
          type: string
          nullable: false
        usageMetricId:
          example: 04c62961-04ba-48e6-b985-758bb7d3e712
          description: The usage metric associated to this tier
          type: string
          nullable: false
        pricingType:
          enum:
            - PACKAGE
          example: PACKAGE
          type: string
      example:
        packageSize: '50'
        pricePerPackage: '2.00'
        usageMetricId: 04c62961-04ba-48e6-b985-758bb7d3e712
        pricingType: PACKAGE
      type: object
      required:
        - packageSize
        - pricePerPackage
        - pricingType
        - usageMetricId
    BillingFrequency:
      type: string
      example: YEARLY
      enum:
        - ON_DEMAND
        - ONE_TIME
        - MONTHLY
        - QUARTERLY
        - HALF_YEARLY
        - YEARLY
        - PER_EVENT
    BillingType:
      type: string
      example: IN_ADVANCE
      enum:
        - IN_ARREARS
        - IN_ADVANCE
    IntegrationId:
      required:
        - id
        - isPending
        - service
      type: object
      example:
        service: Xero
        id: '123'
        isPending: false
      properties:
        service:
          $ref: '#/components/schemas/IntegrationService'
        id:
          type: string
          example: '123'
        isPending:
          type: boolean
          example: false
    PriceParameter:
      required:
        - parameterId
        - value
      type: object
      example:
        parameterId: 2963e49a-c8e0-4673-89f5-7a805c0faf14
        value: '10'
      properties:
        parameterId:
          type: string
          description: Custom metric parameter ID
          example: 2963e49a-c8e0-4673-89f5-7a805c0faf14
        value:
          type: string
          description: Parameter value
          example: '10'
    DiscountCalculationType:
      type: string
      example: PERCENTAGE
      enum:
        - PERCENTAGE
        - NOMINAL
    SeatDiscountType:
      type: string
      example: ALL_SEATS
      enum:
        - INCLUDED_SEATS_ONLY
        - OVERAGE_SEATS_ONLY
        - ALL_SEATS
    QuoteNotificationTrigger:
      type: string
      example: PUBLISH
      enum:
        - PUBLISH
        - READY_TO_SIGN
        - SEND_REMINDERS
        - NOTIFY_RECIPIENTS
    AmendmentPriceResponseModel:
      required:
        - billingFrequency
        - billingType
        - customMetricParameters
        - name
        - productId
        - structure
      type: object
      example:
        productId: e007e884-5100-4183-8355-4771865cb4dd
        name: API calls
        structure:
          tiers:
            - upperBound: '1000'
              price: '0.25'
              fee: '50'
              isPricePercentage: false
            - price: '0.1'
              fee: '0'
              isPricePercentage: false
          usageMetricId: 04c62961-04ba-48e6-b985-758bb7d3e712
          usageCalculationMode: PERIODIC
          pricingType: GRADUATED
        billingFrequency: MONTHLY
        billingType: IN_ARREARS
        usageCalculationPeriod:
          frequency: MONTHLY
          interval: 1
        customMetricParameters:
          - parameterId: 2963e49a-c8e0-4673-89f5-7a805c0faf14
            value: '10'
      properties:
        productId:
          type: string
          description: The related product ID
          example: e007e884-5100-4183-8355-4771865cb4dd
        name:
          type: string
          description: The customer-facing name of this price
          example: API calls
        structure:
          oneOf:
            - $ref: '#/components/schemas/ONE_TIME'
            - $ref: '#/components/schemas/FIXED'
            - $ref: '#/components/schemas/LINEAR'
            - $ref: '#/components/schemas/SEAT_BASED'
            - $ref: '#/components/schemas/GRADUATED'
            - $ref: '#/components/schemas/VOLUME'
            - $ref: '#/components/schemas/PACKAGE'
          discriminator:
            propertyName: pricingType
          required:
            - pricingType
        billingFrequency:
          $ref: '#/components/schemas/BillingFrequency'
          description: The recurrence of charging this price
        billingType:
          $ref: '#/components/schemas/BillingType'
          description: 'How to bill this price: in-arrears or in-advance'
        usageCalculationPeriod:
          $ref: '#/components/schemas/UsageCalculationPeriod'
          nullable: true
        customMetricParameters:
          type: array
          description: Specific parameters to influence usage calculation for this price
          example:
            - parameterId: 2963e49a-c8e0-4673-89f5-7a805c0faf14
              value: '10'
          items:
            $ref: '#/components/schemas/PriceParameter'
    AmendmentDiscountResponseModel:
      required:
        - amount
        - discountCalculationType
        - message
        - productIds
      type: object
      example:
        discountCalculationType: PERCENTAGE
        amount: '10'
        message: 10% off API calls
        seatDiscountType: ALL_SEATS
        productIds:
          - e007e884-5100-4183-8355-4771865cb4dd
      properties:
        discountCalculationType:
          $ref: '#/components/schemas/DiscountCalculationType'
          description: Indicates whether the discount amount is percentage or nominal
        amount:
          type: string
          description: Discount amount
          example: '10'
        message:
          type: string
          description: Message to appear on the quote or invoice
          example: 10% off API calls
        seatDiscountType:
          $ref: '#/components/schemas/SeatDiscountType'
          description: Determines how the discount is applied to any seat-based prices
          nullable: true
        productIds:
          type: array
          description: >-
            Products of the prices the discount is restricted to. Empty means
            every price in the phase.
          example:
            - e007e884-5100-4183-8355-4771865cb4dd
          items:
            type: string
    AmendmentMinimumResponseModel:
      required:
        - amount
        - productIds
      type: object
      example:
        amount: '500'
        productIds:
          - e007e884-5100-4183-8355-4771865cb4dd
      properties:
        amount:
          type: string
          description: Minimum commitment amount
          example: '500'
        productIds:
          type: array
          description: >-
            Products of the prices the minimum is restricted to. Empty means
            every price in the phase.
          example:
            - e007e884-5100-4183-8355-4771865cb4dd
          items:
            type: string
    SeatProrationStrategy:
      example: USE_MAXIMUM
      enum:
        - USE_MAXIMUM
        - PRORATE_INCREMENTS
        - PRORATE_ALL_CHANGES
      type: string
      nullable: false
    OveragesFrequency:
      example: YEARLY
      enum:
        - NONE
        - MONTHLY
        - QUARTERLY
        - HALF_YEARLY
        - YEARLY
      type: string
      nullable: true
    SeatUsageTier:
      properties:
        upperBound:
          example: '100'
          description: >-
            The upper bound of usage for this tier. Set to null to if this is a
            final tier and is unbounded. The lower bound is set by the previous
            tier or 0 if it's the first one.
          type: string
          nullable: true
        price:
          example: '1.00'
          description: >-
            The rate to apply to usage for this product in this tier. In the
            case of percentage pricing where `isPricePercentage` is set to
            `true`, a value of 1 represents 100%.
          type: string
          nullable: false
        fee:
          example: '50.00'
          description: The nominal fee associated with usage at this tier
          type: string
          nullable: true
      example:
        upperBound: '100'
        price: '1.00'
        fee: '50.00'
      type: object
      required:
        - price
    GraduatedUsageTier:
      properties:
        upperBound:
          example: '200'
          description: >-
            The upper bound of usage for this tier. Set to null to if this is a
            final tier and is unbounded. The lower bound is set by the previous
            tier or 0 if it's the first one.
          type: string
          nullable: true
        price:
          example: '1.00'
          description: >-
            The rate to apply to usage for this product in this tier. In the
            case of percentage pricing where `isPricePercentage` is set to
            `true`, a value of 1 represents 100%.
          type: string
          nullable: false
        fee:
          example: '50.00'
          description: The nominal fee associated with usage at this tier
          type: string
          nullable: true
        isPricePercentage:
          example: false
          description: >-
            Indicate whether the price attribute is to be considered as a
            percentage or an absolute value.
          type: boolean
          nullable: false
      example:
        upperBound: '200'
        price: '1.00'
        fee: '50.00'
        isPricePercentage: false
      type: object
      required:
        - isPricePercentage
        - price
    UsageCalculationMode:
      example: BILLING_PERIOD
      enum:
        - BILLING_PERIOD
        - CUMULATIVE
        - PERIODIC
      type: string
      nullable: false
    VolumeUsageTier:
      properties:
        upperBound:
          example: '100'
          description: >-
            The upper bound of usage for this tier. Set to null to if this is a
            final tier and is unbounded. The lower bound is set by the previous
            tier or 0 if it's the first one.
          type: string
          nullable: true
        price:
          example: '1.00'
          description: >-
            The rate to apply to usage for this product in this tier. In the
            case of percentage pricing where `isPricePercentage` is set to
            `true`, a value of 1 represents 100%.
          type: string
          nullable: false
        fee:
          example: '50.00'
          description: The nominal fee associated with usage at this tier
          type: string
          nullable: true
        isPricePercentage:
          example: true
          description: >-
            Indicate whether the price attribute is to be considered as a
            percentage or an absolute value.
          type: boolean
          nullable: false
        maxPrice:
          example: '10'
          description: Maximum Price to Charge for each Unit if Price is Percentage Based
          type: string
          nullable: true
        minPrice:
          example: '5'
          description: Minimum Price to Charge for each Unit if Price is Percentage Based
          type: string
          nullable: true
      example:
        upperBound: '100'
        price: '1.00'
        fee: '50.00'
        isPricePercentage: true
        maxPrice: '10'
        minPrice: '5'
      type: object
      required:
        - isPricePercentage
        - price
    IntegrationService:
      type: string
      example: Xero
      enum:
        - Amazon_Redshift
        - GoCardless
        - Google_BigQuery
        - Google_Sheets
        - HubSpot
        - NetSuite
        - QuickBooks_Online
        - Salesforce
        - Slack
        - Snowflake
        - Stripe
        - Xero
        - Avalara
        - Anrok
        - Attio
        - Numeral
        - Rillet
        - Sphere
    UsageCalculationPeriod:
      required:
        - frequency
        - interval
      type: object
      description: >-
        The period over which usage is aggregated, for graduated prices with a
        usage calculation mode of 'PERIODIC'
      example:
        frequency: MONTHLY
        interval: 1
      properties:
        frequency:
          $ref: '#/components/schemas/UsageCalculationFrequency'
          description: Frequency determines the time period over which usage is aggregated.
        interval:
          type: integer
          description: >-
            Interval determines the time period over which usage is aggregated.
            For example, if the frequency is MONTHLY and the interval is 3, the
            usage is aggregated over 3 months before starting at 0 again.
          format: int32
          example: 1
    UsageCalculationFrequency:
      type: string
      example: MONTHLY
      enum:
        - MONTHLY
        - QUARTERLY
        - HALF_YEARLY
        - YEARLY

````

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