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

# Get Contract

> Retrieve a single revenue recognition contract by record ID, including its performance obligations.



## OpenAPI

````yaml /developers/openapi/resources-v3-alpha.json get /public/v3-alpha/contracts/{record_id}/
openapi: 3.1.0
info:
  title: DualEntry Public API
  version: 3.0.0-alpha
  description: ''
servers:
  - url: https://api.dualentry.com
    description: Production environment
security: []
tags:
  - name: Health
    description: >-
      Monitor API availability and service status. Use these endpoints to verify
      connectivity and check if the API is operational.
  - name: Webhooks
    description: >-
      Register webhook endpoints to receive real-time event notifications when
      records change in your organization. Manage subscriptions, view available
      topics, and inspect delivery history.


      If your organization connects an integration that syncs this resource with
      a third-party system, a change you make here can also be applied in that
      system, immediately or on a later sync. See the documentation for each
      integration for details.
  - name: Accounts
    description: >-
      Manage your chart of accounts. Create and maintain the accounts used to
      categorize financial transactions, including assets, liabilities, equity,
      revenue, and expenses.


      If your organization connects an integration that syncs this resource with
      a third-party system, a change you make here can also be applied in that
      system, immediately or on a later sync. See the documentation for each
      integration for details.
  - name: Reporting
    description: >-
      Reporting facts and balances: account balances as of a date; paginated
      general-ledger lines; dense trial-balance facts (account x company x
      month); chart-of-accounts facts; and consolidated rates. Row shapes match
      the `general_ledger`, `trial_balance`, `chart_of_accounts`, and
      `consolidated_rates` tables in your data export.
  - name: Budgets
    description: >-
      Read income statement and balance sheet budget settings. Monthly cell
      values, actuals comparisons, and accounts are available through separate
      budget routes.
  - name: Companies
    description: >-
      Access and manage company information. Retrieve details about your
      organization including legal name, tax identifiers, addresses, and
      accounting preferences.


      If your organization connects an integration that syncs this resource with
      a third-party system, a change you make here can also be applied in that
      system, immediately or on a later sync. See the documentation for each
      integration for details.
  - name: Period Locks
    description: >-
      Period locks for bills, invoices, other ledger activity, non-ledger
      records, and tax schedules.


      If your organization connects an integration that syncs this resource with
      a third-party system, a change you make here can also be applied in that
      system, immediately or on a later sync. See the documentation for each
      integration for details.
  - name: Payment Methods
    description: >-
      List payment methods. Filter by id to resolve payment_method_id on a
      payment record. V2 API only.
  - name: Terms
    description: >-
      List payment terms. Use a term `id` as `term_id` on a record that has a
      due date.
  - name: Books
    description: >-
      List accounting books. Use book ids in `book_ids` on a journal entry.
      Depreciation books are a separate resource.
  - name: Projects
    description: >-
      List projects. Use a project `id` as `billable_project_id` on a billable
      line.
  - name: Contract Templates
    description: >-
      List contract templates. Use a template `id` as `contract_template_id` on
      a contract.
  - name: Accrual Templates
    description: >-
      List accrual templates. Use a template `id` as `accrual_template_id` on a
      journal entry.
  - name: Paper Check Templates
    description: >-
      List paper check templates. Use a template `id` as `template_id` when you
      print a check.
  - name: Customers
    description: >-
      Manage customer records. Create, update, and track customers who purchase
      goods or services from your organization, including contact information,
      billing addresses, and payment terms.


      If your organization connects an integration that syncs this resource with
      a third-party system, a change you make here can also be applied in that
      system, immediately or on a later sync. See the documentation for each
      integration for details.
  - name: Contracts
    description: >-
      Manage revenue recognition contracts. Create, retrieve, and update
      contracts with performance obligations, manage obligation usage, and
      create change orders (v2).


      If your organization connects an integration that syncs this resource with
      a third-party system, a change you make here can also be applied in that
      system, immediately or on a later sync. See the documentation for each
      integration for details.
  - name: Items
    description: >-
      Manage products and services. Define items that appear on invoices and
      bills, including pricing, descriptions, and associated accounts for
      revenue or expense tracking.


      If your organization connects an integration that syncs this resource with
      a third-party system, a change you make here can also be applied in that
      system, immediately or on a later sync. See the documentation for each
      integration for details.
  - name: Vendors
    description: >-
      Manage vendor and supplier records. Track businesses and individuals from
      whom you purchase goods or services, including contact details, payment
      terms, and tax information.


      If your organization connects an integration that syncs this resource with
      a third-party system, a change you make here can also be applied in that
      system, immediately or on a later sync. See the documentation for each
      integration for details.
  - name: Journal Entries
    description: >-
      Create and manage manual journal entries. Create and update post a general
      ledger transaction.


      A reversal date posts a reversing transaction. Book ids assign accounting
      books. An aging reason on an accounts receivable or accounts payable line
      excludes that line from aging. The save can link a related journal entry
      and an accrual template.


      If your organization connects an integration that syncs this resource with
      a third-party system, a change you make here can also be applied in that
      system, immediately or on a later sync. See the documentation for each
      integration for details.
  - name: Invoices
    description: >-
      Manage sales invoices. Create and track invoices sent to customers for
      goods or services rendered, including line items, taxes, discounts, and
      payment status.


      If your organization connects an integration that syncs this resource with
      a third-party system, a change you make here can also be applied in that
      system, immediately or on a later sync. See the documentation for each
      integration for details.
  - name: Quotes
    description: >-
      Create, submit, and send CPQ quotes, with line billing frequencies,
      multi-year ramps, recipients and signing order, and totals by billing
      frequency. Requires the CPQ subscription.


      Save a quote with `record_status` `posted` to submit it for approval.
      Approvers approve or reject it in DualEntry.


      Send your own quote PDF. This API does not render one.


      If your organization connects an integration that syncs this resource with
      a third-party system, a change you make here can also be applied in that
      system, immediately or on a later sync. See the documentation for each
      integration for details.
  - name: Sales Orders
    description: >-
      Create and manage sales orders. Track customer orders for goods or
      services before invoicing, including line items, quantities, fulfillment
      status, and invoicing progress.


      If your organization connects an integration that syncs this resource with
      a third-party system, a change you make here can also be applied in that
      system, immediately or on a later sync. See the documentation for each
      integration for details.
  - name: Bills
    description: >-
      Manage vendor bills and payables. Record and track bills received from
      vendors for goods or services purchased, including line items, due dates,
      and payment tracking.


      If your organization connects an integration that syncs this resource with
      a third-party system, a change you make here can also be applied in that
      system, immediately or on a later sync. See the documentation for each
      integration for details.
  - name: Customer Prepayments
    description: >-
      Track advance payments from customers. Access prepayments received before
      goods or services are delivered, which can be applied to future invoices.


      If your organization connects an integration that syncs this resource with
      a third-party system, a change you make here can also be applied in that
      system, immediately or on a later sync. See the documentation for each
      integration for details.
  - name: Customer Prepayment Applications
    description: >-
      Apply customer prepayments and credits to invoices. Record applications of
      prepayments or credit memos to reduce invoice balances.


      If your organization connects an integration that syncs this resource with
      a third-party system, a change you make here can also be applied in that
      system, immediately or on a later sync. See the documentation for each
      integration for details.
  - name: Customer Deposits
    description: >-
      Manage customer deposit transactions. Record and track deposits received
      from customers as security or partial payment, held in liability accounts
      until earned or refunded.


      If your organization connects an integration that syncs this resource with
      a third-party system, a change you make here can also be applied in that
      system, immediately or on a later sync. See the documentation for each
      integration for details.
  - name: Customer Refunds
    description: >-
      Process and track customer refunds. Record refunds issued to customers for
      overpayments, returns, or cancelled transactions.


      If your organization connects an integration that syncs this resource with
      a third-party system, a change you make here can also be applied in that
      system, immediately or on a later sync. See the documentation for each
      integration for details.
  - name: Customer Credits
    description: >-
      Manage credit memos for customers. Issue credits for returned goods,
      billing adjustments, or discounts that reduce customer balances or can be
      applied to future invoices.


      If your organization connects an integration that syncs this resource with
      a third-party system, a change you make here can also be applied in that
      system, immediately or on a later sync. See the documentation for each
      integration for details.
  - name: Cash Sales
    description: >-
      Record immediate cash sales transactions. Track sales where payment is
      received at the time of sale, including point-of-sale transactions and
      cash receipts.


      If your organization connects an integration that syncs this resource with
      a third-party system, a change you make here can also be applied in that
      system, immediately or on a later sync. See the documentation for each
      integration for details.
  - name: Customer Payments
    description: >-
      Record and manage customer payments. Track payments received from
      customers and apply them to outstanding invoices, including partial
      payments and overpayments.


      If your organization connects an integration that syncs this resource with
      a third-party system, a change you make here can also be applied in that
      system, immediately or on a later sync. See the documentation for each
      integration for details.
  - name: Recurring Invoices
    description: >-
      Automate recurring billing. Set up and manage templates for invoices that
      are automatically generated on a regular schedule (e.g., monthly
      subscriptions).


      If your organization connects an integration that syncs this resource with
      a third-party system, a change you make here can also be applied in that
      system, immediately or on a later sync. See the documentation for each
      integration for details.
  - name: Recurring Bills
    description: >-
      Automate recurring expenses. Configure templates for bills that repeat on
      a regular basis (e.g., monthly rent, subscriptions) to streamline expense
      tracking.


      If your organization connects an integration that syncs this resource with
      a third-party system, a change you make here can also be applied in that
      system, immediately or on a later sync. See the documentation for each
      integration for details.
  - name: Recurring Journal Entries
    description: >-
      Automate recurring journal entries. Create templates for journal entries
      that occur regularly (e.g., monthly depreciation, amortization) to ensure
      consistent accounting treatment.


      If your organization connects an integration that syncs this resource with
      a third-party system, a change you make here can also be applied in that
      system, immediately or on a later sync. See the documentation for each
      integration for details.
  - name: Classifications
    description: >-
      Manage custom classification dimensions. Create and maintain
      classification categories (e.g., departments, locations, projects) used to
      tag and analyze transactions across multiple dimensions.


      If your organization connects an integration that syncs this resource with
      a third-party system, a change you make here can also be applied in that
      system, immediately or on a later sync. See the documentation for each
      integration for details.
  - name: Classifications Lines
    description: >-
      Manage classification values. Define the specific values within each
      classification category that can be assigned to transaction line items for
      detailed reporting and analysis.


      If your organization connects an integration that syncs this resource with
      a third-party system, a change you make here can also be applied in that
      system, immediately or on a later sync. See the documentation for each
      integration for details.
  - name: Custom Fields
    description: >-
      Manage custom field definitions. Extend records with organization-specific
      attributes: name, type (text, number, boolean, date, single_select,
      multi_select, currency, link, paragraph), default value, options, and
      which record types (invoice, bill, customer, vendor, etc.) and companies
      the field applies to. Values are set via the `custom_fields` attribute on
      each record's create/update endpoint.


      If your organization connects an integration that syncs this resource with
      a third-party system, a change you make here can also be applied in that
      system, immediately or on a later sync. See the documentation for each
      integration for details.
  - name: Purchase Orders
    description: >-
      Create and track purchase orders. Manage formal requests to vendors for
      goods or services, including approval workflows, receiving tracking, and
      bill matching.


      If your organization connects an integration that syncs this resource with
      a third-party system, a change you make here can also be applied in that
      system, immediately or on a later sync. See the documentation for each
      integration for details.
  - name: Vendor Payments
    description: >-
      Record vendor payments and apply them to bills, vendor credits, and
      journal entry lines.


      Create and update post a general ledger transaction. The save also
      computes realized, rounding, and matching gain or loss.


      Send attachments to replace the file list. `PATCH` changes only the sent
      fields. `POST /{number}/attachments/` adds files and keeps existing files.


      If your organization connects an integration that syncs this resource with
      a third-party system, a change you make here can also be applied in that
      system, immediately or on a later sync. See the documentation for each
      integration for details.
  - name: Vendor Prepayments
    description: >-
      Track advance payments to vendors. Record prepayments made before goods or
      services are received, which can be applied to future bills.


      If your organization connects an integration that syncs this resource with
      a third-party system, a change you make here can also be applied in that
      system, immediately or on a later sync. See the documentation for each
      integration for details.
  - name: Vendor Prepayment Applications
    description: >-
      Apply vendor prepayments to bills. Record applications of prepayments to
      reduce bill balances and track amounts owed.


      If your organization connects an integration that syncs this resource with
      a third-party system, a change you make here can also be applied in that
      system, immediately or on a later sync. See the documentation for each
      integration for details.
  - name: Vendor Credits
    description: >-
      Manage vendor credit memos. Record credits from vendors for returned
      goods, billing adjustments, or discounts that reduce amounts owed or can
      be applied to future bills.


      If your organization connects an integration that syncs this resource with
      a third-party system, a change you make here can also be applied in that
      system, immediately or on a later sync. See the documentation for each
      integration for details.
  - name: Vendor Refunds
    description: >-
      Process and track vendor refunds. Record refunds received from vendors for
      overpayments, returns, or cancelled transactions.


      If your organization connects an integration that syncs this resource with
      a third-party system, a change you make here can also be applied in that
      system, immediately or on a later sync. See the documentation for each
      integration for details.
  - name: Paper Checks
    description: >-
      Manage paper check printing. Create, queue, and batch print paper checks
      for vendor payments, direct expenses, vendor prepayments, and customer
      refunds.


      If your organization connects an integration that syncs this resource with
      a third-party system, a change you make here can also be applied in that
      system, immediately or on a later sync. See the documentation for each
      integration for details.
  - name: Direct Expenses
    description: >-
      Record direct expense transactions. Track payments made directly from a
      bank or credit card account for expenses, without going through the
      accounts payable process.


      If your organization connects an integration that syncs this resource with
      a third-party system, a change you make here can also be applied in that
      system, immediately or on a later sync. See the documentation for each
      integration for details.
  - name: Bank Transfers
    description: >-
      Manage bank-to-bank transfers. Record and track transfers between bank and
      credit card accounts, including multi-currency transfers with exchange
      rate handling.


      If your organization connects an integration that syncs this resource with
      a third-party system, a change you make here can also be applied in that
      system, immediately or on a later sync. See the documentation for each
      integration for details.
  - name: Bank Match
    description: >-
      Reconcile bank-feed rows against accounting transactions. List bank rows,
      trigger the matching pipeline, read AI suggestions, and confirm or undo
      matches. V2 API only.


      If your organization connects an integration that syncs this resource with
      a third-party system, a change you make here can also be applied in that
      system, immediately or on a later sync. See the documentation for each
      integration for details.
  - name: Bank Connections
    description: >-
      Register and list customer-built inbound bank connection feeds. Create
      connections and accounts with `customer_api` as `source_type`, then push
      transactions separately. V2 API only.


      If your organization connects an integration that syncs this resource with
      a third-party system, a change you make here can also be applied in that
      system, immediately or on a later sync. See the documentation for each
      integration for details.
  - name: Fixed Assets
    description: >-
      Manage fixed assets and capital equipment. Create, update, and track
      long-lived tangible assets including depreciation schedules, account
      assignments, and asset lifecycle management.


      If your organization connects an integration that syncs this resource with
      a third-party system, a change you make here can also be applied in that
      system, immediately or on a later sync. See the documentation for each
      integration for details.
  - name: Fixed Asset Classes
    description: List fixed asset classes used to set `fixed_asset_class_id` on an asset.
  - name: Intercompany Journal Entries
    description: >-
      Create and manage intercompany journal entries. Record GL activity that
      spans two or more companies within the same organization, with per-line
      company assignment and automatic intercompany elimination.


      If your organization connects an integration that syncs this resource with
      a third-party system, a change you make here can also be applied in that
      system, immediately or on a later sync. See the documentation for each
      integration for details.
  - name: Depreciation Books
    description: >-
      Discover available depreciation books for multi-book depreciation. Each
      organization has a posting book (BOOK) and may have additional tax books
      (FEDERAL, AMT, STATE_*). V2 API only.
  - name: VAT Rates
    description: >-
      Look up available VAT (Value Added Tax) rates for your organization. Use
      these IDs as `vat_rate_id` on transaction line items. Rates are scoped by
      country and include standard, reduced, zero-rated, exempt, and reverse
      charge types. V2 API only.
  - name: GST Tax Rates
    description: >-
      Look up available GST (Goods and Services Tax) rates for your
      organization. Use these IDs as `gst_tax_rate_id` on transaction line
      items. Covers AU, NZ, SG, IN, CA GST regimes and MY SST, with
      per-component breakdowns (e.g. CGST+SGST for India). V2 API only.
  - name: Withholding Tax Rates
    description: >-
      Look up the withholding tax rates of your organization. Use these IDs as
      `withholding_tax_rate_id` on bill and direct expense lines, and as
      `default_withholding_tax_rate_id` on vendors. Not available on V1.
  - name: Withholding Tax Remittances
    description: >-
      Record a payment to a tax agency for the withheld amounts of posted bills,
      direct expenses, and vendor credits. List the open withheld amounts, then
      create a remittance with their `withheld_entry_id` values. A posted
      remittance moves the amount from the withholding tax payable account to
      the bank account. Not available on V1.
  - name: Product Tax Codes
    description: >-
      Manage organization product tax codes and discover global product tax
      codes. Use these IDs as `product_tax_code_id` on item payloads. V2 API
      only.
  - name: Approval Policies
    description: >-
      Manage approval workflows and policies. Define approval rules, steps,
      conditions, and approvers for different record types. Monitor workflow
      execution states and view approval history.


      If your organization connects an integration that syncs this resource with
      a third-party system, a change you make here can also be applied in that
      system, immediately or on a later sync. See the documentation for each
      integration for details.
  - name: Inbox
    description: >-
      View pending approvals and approval status. Access transactions and
      records awaiting approval across the organization, including full approval
      workflow details, approvers, and action history.


      If your organization connects an integration that syncs this resource with
      a third-party system, a change you make here can also be applied in that
      system, immediately or on a later sync. See the documentation for each
      integration for details.
  - name: Statistical Journals
    description: >-
      Record non-monetary quantity values, such as headcount or square footage.
      Statistical journals never post to the general ledger.


      If your organization connects an integration that syncs this resource with
      a third-party system, a change you make here can also be applied in that
      system, immediately or on a later sync. See the documentation for each
      integration for details.
  - name: E-invoicing
    description: >-
      Read the e-invoicing settings of the organization, the registrations of
      its companies, and the e-invoice filing of an invoice or a customer credit
      with its events and legal files. Retry a failed filing, refresh a started
      one, check a customer before a post, and set the e-invoicing identifiers
      of a customer. The settings, the registrations and the company identifiers
      are read-only: change them in the DualEntry app.


      **Subscription.** Every route except the status route needs the
      e-invoicing subscription. Without it, the route answers `402` before it
      checks the permission. The filing, its legal files and the send rules of a
      record that DualEntry filed still answer after the subscription ends. An
      organization without the subscription posts, sends and archives invoices
      as before.


      **Permissions.** The settings, the registrations and the event list need
      `e_invoicing:view`.


      The filing of a record follows the permission of its record:
      `invoice:view` or `customer_credit:view` to read it, `invoice:edit` or
      `customer_credit:edit` to retry it.


      The identifiers need `e_invoicing:view` with `customer:view` or
      `vendor:view` to read, and `e_invoicing:edit` with `customer:edit` to
      write, as in the app. A key that the CLI sign-in made reaches only the
      companies of its user.


      **Error codes.** A refused e-invoicing request carries a stable
      `error_code`:


      - `e_invoicing_send_held`: the authority must clear the invoice before the
      customer gets it.

      - `e_invoicing_legal_pdf_missing`: the authority PDF is not stored yet.

      - `e_invoicing_validation`: the authority refuses the document data.

      - `e_invoicing_setup`: the setup of the country is broken.

      - `e_invoicing_engine`: the e-invoicing engine did not answer or refused
      the request.

      - `e_invoicing_not_retryable`: the filing is not failed or rejected.

      - `e_invoicing_error`: any other refusal.


      A record save that e-invoicing refuses, such as a change of a cleared
      invoice, answers `422` with the reason under the `e_invoicing` key. Not in
      v1.
  - name: Data Exports
    description: >-
      Request off-cycle refreshes of your organization's data export to its
      configured destination (for example a Snowflake warehouse) and poll their
      status. Exports also run automatically on a schedule; these requests are
      an on-demand supplement. Requests are accepted and orchestrated by
      DualEntry; there is no SLA on when a run starts.


      If your organization connects an integration that syncs this resource with
      a third-party system, a change you make here can also be applied in that
      system, immediately or on a later sync. See the documentation for each
      integration for details.
paths:
  /public/v3-alpha/contracts/{record_id}/:
    get:
      tags:
        - Contracts
      summary: Get Contract
      description: >-
        Retrieve a single revenue recognition contract by record ID, including
        its performance obligations.
      operationId: core_api_public_contracts_get_contract
      parameters:
        - in: path
          name: record_id
          schema:
            title: Record Id
            type: integer
          required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ContractPublicSchemaOut'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorSchema'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorSchema'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorSchema'
components:
  schemas:
    ContractPublicSchemaOut:
      properties:
        created_at:
          description: Date and time the record was created
          format: date-time
          title: Created At
          type: string
        updated_at:
          description: Date and time the record was last updated
          format: date-time
          title: Updated At
          type: string
        custom_fields:
          default: []
          items:
            $ref: '#/components/schemas/CustomFieldValuePairOutputSchema'
          title: Custom Fields
          type: array
        completed_approvals_count:
          default: 0
          title: Completed Approvals Count
          type: integer
        total_approvals_count:
          default: 0
          title: Total Approvals Count
          type: integer
        integration_remote_records:
          default: []
          items:
            $ref: '#/components/schemas/IntegrationRemoteRecordSchemaOut'
          title: Integration Remote Records
          type: array
        id:
          title: Id
          type: integer
        number:
          title: Number
          type: integer
        code:
          title: Code
          type:
            - string
            - 'null'
        company_id:
          title: Company Id
          type:
            - integer
            - 'null'
        company_name:
          title: Company Name
          type:
            - string
            - 'null'
        company_currency:
          anyOf:
            - $ref: '#/components/schemas/SystemCurrencies'
            - type: 'null'
        customer_id:
          title: Customer Id
          type:
            - integer
            - 'null'
        customer_name:
          title: Customer Name
          type:
            - string
            - 'null'
        name:
          title: Name
          type: string
        currency_iso_4217_code:
          $ref: '#/components/schemas/SystemCurrencies'
        memo:
          title: Memo
          type: string
        date:
          format: date
          title: Date
          type: string
        term_id:
          title: Term Id
          type:
            - integer
            - 'null'
        default_ar_account_id:
          title: Default Ar Account Id
          type:
            - integer
            - 'null'
        unbilled_receivable_account_id:
          title: Unbilled Receivable Account Id
          type:
            - integer
            - 'null'
        contract_template_id:
          title: Contract Template Id
          type:
            - integer
            - 'null'
        start_date:
          format: date
          title: Start Date
          type: string
        end_date:
          title: End Date
          format: date
          type:
            - string
            - 'null'
        bill_to_address:
          title: Bill To Address
          type: string
        ship_to_address:
          title: Ship To Address
          type: string
        billing_address:
          anyOf:
            - $ref: '#/components/schemas/AddressSchemaIn'
            - type: 'null'
        shipping_address:
          anyOf:
            - $ref: '#/components/schemas/AddressSchemaIn'
            - type: 'null'
        billing_anchor_weekday:
          title: Billing Anchor Weekday
          type:
            - integer
            - 'null'
        recognition_anchor_weekday:
          title: Recognition Anchor Weekday
          type:
            - integer
            - 'null'
        is_incomplete:
          title: Is Incomplete
          type: boolean
        cutover_date:
          title: Cutover Date
          format: date
          type:
            - string
            - 'null'
        prior_recognized_amount:
          title: Prior Recognized Amount
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d{0,2}0*$
          type:
            - string
            - 'null'
        default_early_termination_fee:
          title: Default Early Termination Fee
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d{0,2}0*$
          type:
            - string
            - 'null'
        status:
          $ref: '#/components/schemas/ContractStatus'
        recognition_mode:
          allOf:
            - $ref: '#/components/schemas/RecognitionMode'
          default: individual
        record_status:
          $ref: '#/components/schemas/RecordStatus'
        is_locked:
          title: Is Locked
          type: boolean
        workflow_status:
          title: Workflow Status
          type:
            - string
            - 'null'
        pending_approvers_count:
          default: 0
          title: Pending Approvers Count
          type: integer
        payment:
          anyOf:
            - $ref: '#/components/schemas/PaymentSchemaOut'
            - type: 'null'
        revenue_recognitions:
          items:
            $ref: '#/components/schemas/RevenueRecognitionListSchemaOut'
          title: Revenue Recognitions
          type: array
        invoices:
          items:
            $ref: '#/components/schemas/ContractInvoiceSchemaOut'
          title: Invoices
          type: array
        obligations:
          items:
            $ref: '#/components/schemas/PerformanceObligationOut'
          title: Obligations
          type: array
        obligation_usage:
          items:
            $ref: '#/components/schemas/ObligationUsageSchemaOut'
          title: Obligation Usage
          type: array
        amount:
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d{0,2}0*$
          title: Amount
          type: string
        renewed_end_date:
          title: Renewed End Date
          format: date
          type:
            - string
            - 'null'
        next_renewal_date:
          title: Next Renewal Date
          format: date
          type:
            - string
            - 'null'
        days_till_expiry:
          title: Days Till Expiry
          type:
            - integer
            - 'null'
        termination:
          anyOf:
            - $ref: '#/components/schemas/EmbeddedTerminationSchemaOut'
            - type: 'null'
        change_orders:
          default: []
          items:
            $ref: '#/components/schemas/EmbeddedChangeOrderSchemaOut'
          title: Change Orders
          type: array
        customer_credits:
          default: []
          items:
            $ref: '#/components/schemas/ContractCustomerCreditSchemaOut'
          title: Customer Credits
          type: array
        cached_metrics:
          anyOf:
            - $ref: '#/components/schemas/ContractCachedMetricsSchemaOut'
            - type: 'null'
        has_usage_obligations:
          default: false
          title: Has Usage Obligations
          type: boolean
        has_usages:
          default: false
          title: Has Usages
          type: boolean
        approval_info:
          anyOf:
            - $ref: '#/components/schemas/ApprovalInfoSchema'
            - type: 'null'
        approval_chain:
          anyOf:
            - $ref: '#/components/schemas/ApprovalChainSchema'
            - type: 'null'
        bank_match_status:
          title: Bank Match Status
          type:
            - string
            - 'null'
        contract_attachments:
          default: []
          items:
            $ref: '#/components/schemas/AttachmentSchemaOut'
          title: Contract Attachments
          type: array
        change_orders_attachments:
          default: []
          items:
            $ref: '#/components/schemas/AttachmentSchemaOut'
          title: Change Orders Attachments
          type: array
        metrics:
          $ref: '#/components/schemas/ContractMetricsSchemaOut'
          description: >-
            Derived contract metrics (MRR, ARR, TCV, invoiced, recognized,
            etc.).
          readOnly: true
      required:
        - created_at
        - updated_at
        - id
        - number
        - name
        - currency_iso_4217_code
        - memo
        - date
        - start_date
        - bill_to_address
        - ship_to_address
        - is_incomplete
        - status
        - record_status
        - is_locked
        - revenue_recognitions
        - invoices
        - obligations
        - obligation_usage
        - amount
        - metrics
      title: ContractPublicSchemaOut
      type: object
    ErrorSchema:
      properties:
        success:
          const: false
          default: false
          title: Success
          type: boolean
        errors:
          additionalProperties:
            items:
              type: string
            type: array
          title: Errors
          type: object
        error_code:
          description: >-
            A stable code that identifies the control that refused the request.
            Branch on this code, not on the message text. When a control refuses
            the request, `error_code` is one of these values:

            - `period_locked`: The request changes data in a locked accounting
            period.

            - `approved_record_immutable`: The record is approved, and the
            organization does not allow changes to approved records.

            - `posted_record_immutable`: The record is posted, and the
            organization does not allow changes to posted records.

            - `adjusting_entry_permission_required`: You do not have the
            permission to post adjusting entries.

            - `adjusting_entries_disabled`: Adjusting entries are not enabled
            for the company.

            - `adjusting_entry_bank_account`: An adjusting entry cannot use a
            bank or credit card account.

            - `recurring_adjusting_entry`: A recurring journal entry cannot be
            an adjusting entry.

            - `segregation_of_duties_no_substitute_approver`: The approval
            policy needs an approver other than the creator, and the
            organization has no other admin.

            - `posting_date_after_limit`: The organization limits how far in the
            future a record can be posted.

            - `independent_transaction_dates_disabled`: The organization does
            not allow transaction_date to differ from date. Enable Separate
            posting and transaction dates in organization settings.

            - `tax_not_calculated`: The organization uses manual tax mode with
            the tax reminder on. A posted record needs calculated tax.

            - `recurring_template_archived_party`: A recurring template cannot
            use an archived customer or vendor.

            - `master_data_unavailable`: The request sets a reference that the
            app does not offer for this record. It is inactive, archived, a
            draft, not available to the record's company, in another currency,
            or the party for the record's own company.
          title: Error Code
          type:
            - string
            - 'null'
        error_reason:
          title: Error Reason
          type:
            - string
            - 'null'
      required:
        - errors
      title: ErrorSchema
      type: object
    CustomFieldValuePairOutputSchema:
      properties:
        field:
          $ref: '#/components/schemas/CustomFieldSchemaOut'
        value:
          anyOf:
            - $ref: '#/components/schemas/CustomFieldValueSchemaOut'
            - type: 'null'
      required:
        - field
      title: CustomFieldValuePairOutputSchema
      type: object
    IntegrationRemoteRecordSchemaOut:
      properties:
        transactional_date:
          title: Transactional Date
          format: date-time
          type:
            - string
            - 'null'
        external_source:
          anyOf:
            - $ref: '#/components/schemas/ExternalIntegrationSourceOut'
            - type: 'null'
        id:
          title: Id
          type: integer
        source_id:
          title: Source Id
          type: string
        connection_id:
          title: Connection Id
          type:
            - integer
            - 'null'
        integration_id:
          title: Integration Id
          type:
            - integer
            - 'null'
        integration_name:
          title: Integration Name
          type:
            - string
            - 'null'
        integration_provider:
          anyOf:
            - $ref: '#/components/schemas/IntegrationProviderSchemaOut'
            - type: 'null'
        url:
          title: Url
          type:
            - string
            - 'null'
      required:
        - id
        - source_id
      title: IntegrationRemoteRecordSchemaOut
      type: object
    SystemCurrencies:
      enum:
        - AED
        - AFN
        - ALL
        - AMD
        - ANG
        - AOA
        - ARS
        - AUD
        - AWG
        - AZN
        - BAM
        - BBD
        - BDT
        - BGN
        - BHD
        - BIF
        - BMD
        - BND
        - BOB
        - BRL
        - BSD
        - BTN
        - BWP
        - BYN
        - BZD
        - CAD
        - CDF
        - CHF
        - CLF
        - CLP
        - CNY
        - COP
        - CRC
        - CUP
        - CVE
        - CZK
        - DJF
        - DKK
        - DOP
        - DZD
        - EGP
        - ERN
        - ETB
        - EUR
        - FJD
        - FKP
        - GBP
        - GEL
        - GHS
        - GIP
        - GMD
        - GNF
        - GTQ
        - GYD
        - HKD
        - HNL
        - HTG
        - HUF
        - IDR
        - ILS
        - INR
        - IQD
        - IRR
        - ISK
        - JMD
        - JOD
        - JPY
        - KES
        - KGS
        - KHR
        - KMF
        - KPW
        - KRW
        - KWD
        - KYD
        - KZT
        - LAK
        - LBP
        - LKR
        - LRD
        - LSL
        - LYD
        - MAD
        - MDL
        - MGA
        - MKD
        - MMK
        - MNT
        - MOP
        - MRU
        - MUR
        - MVR
        - MWK
        - MXN
        - MYR
        - MZN
        - NAD
        - NGN
        - NIO
        - NOK
        - NPR
        - NZD
        - OMR
        - PAB
        - PEN
        - PGK
        - PHP
        - PKR
        - PLN
        - PYG
        - QAR
        - RON
        - RSD
        - RUB
        - RWF
        - SAR
        - SBD
        - SCR
        - SDG
        - SEK
        - SGD
        - SHP
        - SLL
        - SOS
        - SRD
        - STN
        - SVC
        - SYP
        - SZL
        - THB
        - TJS
        - TMT
        - TND
        - TOP
        - TRY
        - TTD
        - TWD
        - TZS
        - UAH
        - UGX
        - USD
        - UYU
        - UZS
        - VES
        - VND
        - VUV
        - WST
        - XAF
        - XAG
        - XAU
        - XCD
        - XDR
        - XOF
        - XPD
        - XPF
        - XPT
        - YER
        - ZAR
        - ZMW
        - ZWL
      title: SystemCurrencies
      type: string
    AddressSchemaIn:
      properties:
        street:
          title: Street
          type: string
        city:
          title: City
          type: string
        state:
          default: ''
          title: State
          type: string
        postal_code:
          title: Postal Code
          type: string
        country:
          anyOf:
            - const: ''
              type: string
            - $ref: '#/components/schemas/SystemCountries'
          default: ''
          title: Country
        second_line:
          default: ''
          title: Second Line
          type: string
        name:
          title: Name
          type:
            - string
            - 'null'
      required:
        - street
        - city
        - postal_code
      title: AddressSchemaIn
      type: object
    ContractStatus:
      enum:
        - draft
        - active
        - completed
        - terminated
        - archived
      title: ContractStatus
      type: string
    RecognitionMode:
      enum:
        - individual
        - subledger
      title: RecognitionMode
      type: string
    RecordStatus:
      enum:
        - draft
        - posted
        - archived
      title: RecordStatus
      type: string
    PaymentSchemaOut:
      description: Schema for payment collection configuration output.
      properties:
        type:
          title: Type
          type:
            - string
            - 'null'
        id:
          title: Id
          type:
            - integer
            - 'null'
        body:
          title: Body
          type:
            - string
            - 'null'
        link:
          title: Link
          type:
            - string
            - 'null'
      title: PaymentSchemaOut
      type: object
    RevenueRecognitionListSchemaOut:
      properties:
        id:
          title: Id
          type: integer
        number:
          title: Number
          type: integer
        code:
          title: Code
          type:
            - string
            - 'null'
        contract_id:
          title: Contract Id
          type: integer
        performance_obligation_id:
          title: Performance Obligation Id
          type:
            - integer
            - 'null'
        date:
          format: date
          title: Date
          type: string
        transaction_date:
          format: date
          title: Transaction Date
          type: string
        amount:
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d{0,2}0*$
          title: Amount
          type: string
        transaction_id:
          title: Transaction Id
          type: integer
        record_status:
          $ref: '#/components/schemas/RecordStatus'
        is_reversal:
          default: false
          title: Is Reversal
          type: boolean
        income_account_id:
          title: Income Account Id
          type: integer
        deferrered_revenue_account_id:
          title: Deferrered Revenue Account Id
          type: integer
      required:
        - id
        - number
        - contract_id
        - date
        - transaction_date
        - amount
        - transaction_id
        - record_status
        - income_account_id
        - deferrered_revenue_account_id
      title: RevenueRecognitionListSchemaOut
      type: object
    ContractInvoiceSchemaOut:
      properties:
        id:
          title: Id
          type: integer
        number:
          title: Number
          type: integer
        date:
          format: date
          title: Date
          type: string
        due_date:
          format: date
          title: Due Date
          type: string
        amount:
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d{0,2}0*$
          title: Amount
          type: string
        tax_amount:
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d{0,2}0*$
          title: Tax Amount
          type: string
        paid_total:
          description: >-
            Amount that was already paid by Customer Repayment Applications or
            Customer Payments
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d{0,2}0*$
          title: Paid Total
          type: string
        record_status:
          $ref: '#/components/schemas/RecordStatus'
        term_id:
          title: Term Id
          type:
            - integer
            - 'null'
        source:
          title: Source
          type: string
      required:
        - id
        - number
        - date
        - due_date
        - amount
        - tax_amount
        - paid_total
        - record_status
        - source
      title: ContractInvoiceSchemaOut
      type: object
    PerformanceObligationOut:
      description: Output schema for performance obligation (contract line item).
      properties:
        id:
          title: Id
          type:
            - integer
            - 'null'
        item_id:
          title: Item Id
          type:
            - integer
            - 'null'
        item_type:
          title: Item Type
          type:
            - string
            - 'null'
        item_name:
          title: Item Name
          type:
            - string
            - 'null'
        hsn_sac_code:
          title: Hsn Sac Code
          type:
            - string
            - 'null'
        income_account_id:
          title: Income Account Id
          type:
            - integer
            - 'null'
        deferral_account_id:
          title: Deferral Account Id
          type:
            - integer
            - 'null'
        quantity:
          description: >-
            Quantity for each billing period on this performance obligation.
            Quantity 10 and a unit price of $100 for 12 monthly periods give a
            total contract value of $12,000. The value is empty when no quantity
            is stored. The value has up to 6 decimal places.
          title: Quantity
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d{0,6}0*$
          type:
            - string
            - 'null'
        rate:
          description: >-
            Unit price for one unit in each billing period. Quantity 10 and a
            unit price of $100 for 12 monthly periods give a total contract
            value of $12,000. You can use up to 10 decimal places.
          title: Rate
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d{0,10}0*$
          type:
            - string
            - 'null'
        billing_period_count:
          default: 1
          title: Billing Period Count
          type: integer
        position:
          title: Position
          type: integer
        memo:
          title: Memo
          type: string
        standalone_selling_price:
          title: Standalone Selling Price
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d{0,10}0*$
          type:
            - string
            - 'null'
        term_id:
          title: Term Id
          type:
            - integer
            - 'null'
        billing_group:
          default: 1
          minimum: 1
          title: Billing Group
          type: integer
        recognition_strategy:
          allOf:
            - $ref: '#/components/schemas/RecognitionStrategy'
          default: straight_line
        obligation_conditions:
          additionalProperties: true
          title: Obligation Conditions
          type: object
        classifications:
          default: []
          items:
            $ref: '#/components/schemas/RecordClassificationsSchemaOut'
          title: Classifications
          type: array
        billing_start_date:
          format: date
          title: Billing Start Date
          type: string
        billing_end_date:
          title: Billing End Date
          format: date
          type:
            - string
            - 'null'
        billing_frequency:
          $ref: '#/components/schemas/BillingCadence'
        billing_interval:
          title: Billing Interval
          type: integer
        billing_mode:
          allOf:
            - $ref: '#/components/schemas/BillingMode'
          default: period
        sync_billing_with_recognition:
          default: false
          title: Sync Billing With Recognition
          type: boolean
        skip_invoice_generation:
          default: false
          title: Skip Invoice Generation
          type: boolean
        recognition_start_date:
          format: date
          title: Recognition Start Date
          type: string
        recognition_end_date:
          title: Recognition End Date
          format: date
          type:
            - string
            - 'null'
        recognition_frequency:
          $ref: '#/components/schemas/RecognitionCadence'
        recognition_interval:
          title: Recognition Interval
          type: integer
        discount_type:
          anyOf:
            - $ref: '#/components/schemas/DiscountType'
            - type: 'null'
        discount_value:
          title: Discount Value
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d{0,6}0*$
          type:
            - string
            - 'null'
        allocated_amount:
          title: Allocated Amount
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d{0,2}0*$
          type:
            - string
            - 'null'
        selected_vat_rate_id:
          title: Selected Vat Rate Id
          type:
            - integer
            - 'null'
        selected_gst_tax_rate_id:
          title: Selected Gst Tax Rate Id
          type:
            - integer
            - 'null'
        is_auto_renewable:
          default: false
          title: Is Auto Renewable
          type: boolean
        auto_renewal_date:
          title: Auto Renewal Date
          format: date
          type:
            - string
            - 'null'
        renewed_from_id:
          title: Renewed From Id
          type:
            - integer
            - 'null'
        changed_from_id:
          title: Changed From Id
          type:
            - integer
            - 'null'
        change_lineage_root_id:
          title: Change Lineage Root Id
          type:
            - integer
            - 'null'
        ramp_group_id:
          title: Ramp Group Id
          format: uuid
          type:
            - string
            - 'null'
        prepaid_invoiced:
          title: Prepaid Invoiced
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d{0,2}0*$
          type:
            - string
            - 'null'
        prepaid_recognized:
          title: Prepaid Recognized
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d{0,2}0*$
          type:
            - string
            - 'null'
        prepaid_remaining:
          title: Prepaid Remaining
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d{0,2}0*$
          type:
            - string
            - 'null'
        is_incomplete:
          readOnly: true
          title: Is Incomplete
          type: boolean
        amount:
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
          readOnly: true
          title: Amount
          type: string
        discount_amount:
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
          readOnly: true
          title: Discount Amount
          type: string
        net_amount:
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
          readOnly: true
          title: Net Amount
          type: string
        qualifies_for_mrr:
          description: Whether this obligation should be included in MRR/ARR calculations.
          readOnly: true
          title: Qualifies For Mrr
          type: boolean
      required:
        - position
        - memo
        - billing_start_date
        - billing_frequency
        - billing_interval
        - recognition_start_date
        - recognition_frequency
        - recognition_interval
        - is_incomplete
        - amount
        - discount_amount
        - net_amount
        - qualifies_for_mrr
      title: PerformanceObligationOut
      type: object
    ObligationUsageSchemaOut:
      properties:
        created_at:
          description: Date and time the record was created
          format: date-time
          title: Created At
          type: string
        updated_at:
          description: Date and time the record was last updated
          format: date-time
          title: Updated At
          type: string
        id:
          title: Id
          type: integer
        contract_id:
          title: Contract Id
          type: integer
        obligation_id:
          title: Obligation Id
          type: integer
        usage_date:
          format: date
          title: Usage Date
          type: string
        quantity:
          description: >-
            Quantity consumed in this usage entry. Quantity must be greater than
            `0`. You can use up to 6 decimal places.
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d{0,6}0*$
          title: Quantity
          type: string
        rate:
          title: Rate
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d{0,10}0*$
          type:
            - string
            - 'null'
        amount:
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d{0,2}0*$
          title: Amount
          type: string
        effective_rate:
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d{0,10}0*$
          title: Effective Rate
          type: string
        revenue_recognition_id:
          title: Revenue Recognition Id
          type:
            - integer
            - 'null'
        status:
          $ref: '#/components/schemas/ObligationUsageStatus'
        invoice_status:
          title: Invoice Status
          type:
            - string
            - 'null'
        memo:
          default: ''
          title: Memo
          type: string
        classifications:
          default: []
          items:
            $ref: '#/components/schemas/RecordClassificationsSchemaOut'
          title: Classifications
          type: array
      required:
        - created_at
        - updated_at
        - id
        - contract_id
        - obligation_id
        - usage_date
        - quantity
        - amount
        - effective_rate
        - status
      title: ObligationUsageSchemaOut
      type: object
    EmbeddedTerminationSchemaOut:
      properties:
        id:
          title: Id
          type: integer
        number:
          title: Number
          type: integer
        contract_id:
          title: Contract Id
          type: integer
        termination_type:
          title: Termination Type
          type: string
        termination_date:
          format: date
          title: Termination Date
          type: string
        early_termination_fee:
          title: Early Termination Fee
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d{0,2}0*$
          type:
            - string
            - 'null'
        early_termination_fee_item_id:
          title: Early Termination Fee Item Id
          type:
            - integer
            - 'null'
        fee_invoice_id:
          title: Fee Invoice Id
          type:
            - integer
            - 'null'
        refund_amount:
          title: Refund Amount
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d{0,2}0*$
          type:
            - string
            - 'null'
        refund_credit_account_id:
          title: Refund Credit Account Id
          type:
            - integer
            - 'null'
        transaction_id:
          title: Transaction Id
          type: integer
        memo:
          title: Memo
          type: string
        date:
          format: date
          title: Date
          type: string
        record_status:
          $ref: '#/components/schemas/RecordStatus'
      required:
        - id
        - number
        - contract_id
        - termination_type
        - termination_date
        - transaction_id
        - memo
        - date
        - record_status
      title: EmbeddedTerminationSchemaOut
      type: object
    EmbeddedChangeOrderSchemaOut:
      properties:
        id:
          title: Id
          type: integer
        number:
          title: Number
          type: integer
        contract_id:
          title: Contract Id
          type: integer
        effective_date:
          title: Effective Date
          format: date
          type:
            - string
            - 'null'
        apply_cumulative_catchup:
          title: Apply Cumulative Catchup
          type: boolean
        catchup_amount:
          title: Catchup Amount
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
          type:
            - string
            - 'null'
        transaction_id:
          title: Transaction Id
          type:
            - integer
            - 'null'
        memo:
          title: Memo
          type:
            - string
            - 'null'
        record_status:
          $ref: '#/components/schemas/RecordStatus'
        is_incomplete:
          title: Is Incomplete
          type: boolean
        obligation_modifications:
          default: []
          items:
            $ref: '#/components/schemas/EmbeddedObligationModificationOut'
          title: Obligation Modifications
          type: array
        obligation_additions:
          default: []
          items:
            $ref: '#/components/schemas/EmbeddedObligationAdditionOut'
          title: Obligation Additions
          type: array
      required:
        - id
        - number
        - contract_id
        - effective_date
        - apply_cumulative_catchup
        - transaction_id
        - memo
        - record_status
        - is_incomplete
      title: EmbeddedChangeOrderSchemaOut
      type: object
    ContractCustomerCreditSchemaOut:
      properties:
        id:
          title: Id
          type: integer
        number:
          title: Number
          type: integer
        date:
          format: date
          title: Date
          type: string
        amount:
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d{0,2}0*$
          title: Amount
          type: string
        currency_iso_4217_code:
          $ref: '#/components/schemas/SystemCurrencies'
        record_status:
          $ref: '#/components/schemas/RecordStatus'
      required:
        - id
        - number
        - date
        - amount
        - currency_iso_4217_code
        - record_status
      title: ContractCustomerCreditSchemaOut
      type: object
    ContractCachedMetricsSchemaOut:
      description: Precomputed contract metrics from the cache table.
      properties:
        tcv:
          title: Tcv
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d{0,2}0*$
          type:
            - string
            - 'null'
        mrr:
          default: '0'
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d{0,2}0*$
          title: Mrr
          type: string
        arr:
          default: '0'
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d{0,2}0*$
          title: Arr
          type: string
        amount_invoiced_percentage:
          title: Amount Invoiced Percentage
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d{0,2}0*$
          type:
            - string
            - 'null'
        revenue_recognized:
          default: '0'
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d{0,2}0*$
          title: Revenue Recognized
          type: string
        revenue_recognized_percentage:
          title: Revenue Recognized Percentage
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d{0,2}0*$
          type:
            - string
            - 'null'
        next_invoice_date:
          title: Next Invoice Date
          format: date
          type:
            - string
            - 'null'
      title: ContractCachedMetricsSchemaOut
      type: object
    ApprovalInfoSchema:
      description: Schema for complete approval workflow information.
      properties:
        workflow_name:
          title: Workflow Name
          type: string
        workflow_version:
          title: Workflow Version
          type: integer
        step_name:
          title: Step Name
          type: string
        current_substep:
          title: Current Substep
          type: integer
        substeps:
          items:
            $ref: '#/components/schemas/SubstepInfoSchema'
          title: Substeps
          type: array
      required:
        - workflow_name
        - workflow_version
        - step_name
        - current_substep
        - substeps
      title: ApprovalInfoSchema
      type: object
    ApprovalChainSchema:
      description: Full approval chain.
      properties:
        workflow_name:
          title: Workflow Name
          type: string
        workflow_version:
          title: Workflow Version
          type: integer
        steps:
          items:
            $ref: '#/components/schemas/StepChainSchema'
          title: Steps
          type: array
      required:
        - workflow_name
        - workflow_version
        - steps
      title: ApprovalChainSchema
      type: object
    AttachmentSchemaOut:
      properties:
        id:
          title: Id
          type: integer
        file_name:
          title: File Name
          type: string
        file_size:
          title: File Size
          type: integer
        download_url:
          title: Download Url
          type:
            - string
            - 'null'
        upload_url:
          title: Upload Url
          type:
            - string
            - 'null'
        category:
          default: default
          title: Category
          type: string
      required:
        - id
        - file_name
        - file_size
      title: AttachmentSchemaOut
      type: object
    ContractMetricsSchemaOut:
      properties:
        total_contract_value:
          title: Total Contract Value
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d{0,2}0*$
          type:
            - string
            - 'null'
        mrr:
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d{0,2}0*$
          title: Mrr
          type: string
        arr:
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d{0,2}0*$
          title: Arr
          type: string
        amount_invoiced:
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d{0,2}0*$
          title: Amount Invoiced
          type: string
        amount_invoiced_percentage:
          title: Amount Invoiced Percentage
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d{0,2}0*$
          type:
            - string
            - 'null'
        invoices_paid:
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d{0,2}0*$
          title: Invoices Paid
          type: string
        invoices_paid_percentage:
          title: Invoices Paid Percentage
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d{0,2}0*$
          type:
            - string
            - 'null'
        revenue_recognized:
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d{0,2}0*$
          title: Revenue Recognized
          type: string
        revenue_recognized_percentage:
          title: Revenue Recognized Percentage
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d{0,2}0*$
          type:
            - string
            - 'null'
        unbilled_revenue:
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d{0,2}0*$
          title: Unbilled Revenue
          type: string
        unrecognized_revenue:
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d{0,2}0*$
          title: Unrecognized Revenue
          type: string
        deferred_revenue:
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d{0,2}0*$
          title: Deferred Revenue
          type: string
        next_invoice_date:
          title: Next Invoice Date
          format: date
          type:
            - string
            - 'null'
        total_discount_amount:
          default: '0'
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d{0,2}0*$
          title: Total Discount Amount
          type: string
        total_tax_amount:
          default: '0'
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d{0,2}0*$
          title: Total Tax Amount
          type: string
      required:
        - mrr
        - arr
        - amount_invoiced
        - invoices_paid
        - revenue_recognized
        - unbilled_revenue
        - unrecognized_revenue
        - deferred_revenue
      title: ContractMetricsSchemaOut
      type: object
    CustomFieldSchemaOut:
      properties:
        id:
          title: Id
          type: integer
        company_id:
          title: Company Id
          type:
            - integer
            - 'null'
        company_ids:
          title: Company Ids
          items:
            type: integer
          type:
            - array
            - 'null'
        name:
          title: Name
          type: string
        description:
          title: Description
          type:
            - string
            - 'null'
        helper_text:
          title: Helper Text
          type:
            - string
            - 'null'
        field_type:
          $ref: '#/components/schemas/FieldType'
        applies_to:
          items:
            $ref: '#/components/schemas/AppliesToItemSchema'
          title: Applies To
          type: array
        default_value:
          anyOf:
            - type: string
            - items:
                type: string
              type: array
            - type: 'null'
          title: Default Value
        options:
          title: Options
          items:
            type: string
          type:
            - array
            - 'null'
        is_active:
          title: Is Active
          type:
            - boolean
            - 'null'
      required:
        - id
        - name
        - description
        - helper_text
        - field_type
        - applies_to
        - options
        - is_active
      title: CustomFieldSchemaOut
      type: object
    CustomFieldValueSchemaOut:
      properties:
        id:
          title: Id
          type: integer
        custom_field_id:
          title: Custom Field Id
          type: integer
        custom_field_name:
          title: Custom Field Name
          type: string
        custom_field_type:
          title: Custom Field Type
          type: string
        custom_field_value_id:
          title: Custom Field Value Id
          type: integer
        value:
          title: Value
        created_at:
          title: Created At
          type: string
        updated_at:
          title: Updated At
          type: string
      required:
        - id
        - custom_field_id
        - custom_field_name
        - custom_field_type
        - custom_field_value_id
        - value
        - created_at
        - updated_at
      title: CustomFieldValueSchemaOut
      type: object
    ExternalIntegrationSourceOut:
      properties:
        integration_type:
          anyOf:
            - $ref: '#/components/schemas/IntegrationProviderType'
            - $ref: '#/components/schemas/MigrationProviderType'
            - type: string
          title: Integration Type
        external_integration_url:
          title: External Integration Url
          type:
            - string
            - 'null'
      required:
        - integration_type
        - external_integration_url
      title: ExternalIntegrationSourceOut
      type: object
    IntegrationProviderSchemaOut:
      properties:
        id:
          title: Id
          type: integer
        name:
          title: Name
          type: string
        integration_type:
          anyOf:
            - $ref: '#/components/schemas/IntegrationProviderType'
            - type: string
          title: Integration Type
        logo_url:
          title: Logo Url
          type:
            - string
            - 'null'
        website:
          title: Website
          type:
            - string
            - 'null'
        description:
          title: Description
          type:
            - string
            - 'null'
        category:
          title: Category
          type:
            - string
            - 'null'
      required:
        - id
        - name
        - integration_type
      title: IntegrationProviderSchemaOut
      type: object
    SystemCountries:
      enum:
        - AA
        - AB
        - AC
        - AD
        - AE
        - AF
        - AG
        - AH
        - AI
        - AJ
        - AK
        - AL
        - AM
        - AN
        - AO
        - AP
        - AQ
        - AR
        - AS
        - AT
        - AU
        - AV
        - AW
        - AX
        - AY
        - AZ
        - BA
        - BB
        - BC
        - BD
        - BE
        - BF
        - BG
        - BH
        - BI
        - BJ
        - BK
        - BL
        - BM
        - BN
        - BO
        - BP
        - BQ
        - BR
        - BS
        - BT
        - BU
        - BV
        - BW
        - BX
        - BY
        - BZ
        - CA
        - CB
        - CC
        - CD
        - CE
        - CF
        - CG
        - CH
        - CI
        - CJ
        - CK
        - CL
        - CM
        - CN
        - CO
        - CP
        - CQ
        - CR
        - CS
        - CT
        - CU
        - CV
        - CW
        - CX
        - CY
        - CZ
        - DA
        - DB
        - DC
        - DD
        - DE
        - DF
        - DG
        - DH
        - DI
        - DJ
        - DK
        - DL
        - DM
        - DN
        - DO
        - DP
        - DQ
        - DR
        - DS
        - DT
        - DU
        - DV
        - DW
        - DX
        - DY
        - DZ
        - EA
        - EB
        - EC
        - ED
        - EE
        - EF
        - EG
        - EH
        - EI
        - EJ
        - EK
        - EL
        - EM
        - EN
        - EO
        - EP
        - EQ
        - ER
        - ES
        - ET
        - EU
        - EV
        - EW
        - EX
        - EY
        - EZ
        - FA
        - FB
        - FC
        - FD
        - FE
        - FF
        - FG
        - FH
        - FI
        - FJ
        - FK
        - FL
        - FM
        - FN
        - FO
        - FP
        - FQ
        - FR
        - FS
        - FT
        - FU
        - FV
        - FW
        - FX
        - FY
        - FZ
        - GA
        - GB
        - GC
        - GD
        - GE
        - GF
        - GG
        - GH
        - GI
        - GJ
        - GK
        - GL
        - GM
        - GN
        - GO
        - GP
        - GQ
        - GR
        - GS
        - GT
        - GU
        - GV
        - GW
        - GX
        - GY
        - GZ
        - HA
        - HB
        - HC
        - HD
        - HE
        - HF
        - HG
        - HH
        - HI
        - HJ
        - HK
        - HL
        - HM
        - HN
        - HO
        - HP
        - HQ
        - HR
        - HS
        - HT
        - HU
        - HV
        - HW
        - HX
        - HY
        - HZ
        - IA
        - IB
        - IC
        - ID
        - IE
        - IF
        - IG
        - IH
        - II
        - IJ
        - IK
        - IL
        - IM
        - IN
        - IO
        - IP
        - IQ
        - IR
        - IS
        - IT
        - IU
        - IV
        - IW
        - IX
        - IY
        - IZ
        - JA
        - JB
        - JC
        - JD
        - JE
        - JF
        - JG
        - JH
        - JI
        - JJ
        - JK
        - JL
        - JM
        - JN
        - JO
        - JP
        - JQ
        - JR
        - JS
        - JT
        - JU
        - JV
        - JW
        - JX
        - JY
        - JZ
        - KA
        - KB
        - KC
        - KD
        - KE
        - KF
        - KG
        - KH
        - KI
        - KJ
        - KK
        - KL
        - KM
        - KN
        - KO
        - KP
        - KQ
        - KR
        - KS
        - KT
        - KU
        - KV
        - KW
        - KX
        - KY
        - KZ
        - LA
        - LB
        - LC
        - LD
        - LE
        - LF
        - LG
        - LH
        - LI
        - LJ
        - LK
        - LL
        - LM
        - LN
        - LO
        - LP
        - LQ
        - LR
        - LS
        - LT
        - LU
        - LV
        - LW
        - LX
        - LY
        - LZ
        - MA
        - MB
        - MC
        - MD
        - ME
        - MF
        - MG
        - MH
        - MI
        - MJ
        - MK
        - ML
        - MM
        - MN
        - MO
        - MP
        - MQ
        - MR
        - MS
        - MT
        - MU
        - MV
        - MW
        - MX
        - MY
        - MZ
        - NA
        - NB
        - NC
        - ND
        - NE
        - NF
        - NG
        - NH
        - NI
        - NJ
        - NK
        - NL
        - NM
        - NN
        - 'NO'
        - NP
        - NQ
        - NR
        - NS
        - NT
        - NU
        - NV
        - NW
        - NX
        - NY
        - NZ
        - OA
        - OB
        - OC
        - OD
        - OE
        - OF
        - OG
        - OH
        - OI
        - OJ
        - OK
        - OL
        - OM
        - 'ON'
        - OO
        - OP
        - OQ
        - OR
        - OS
        - OT
        - OU
        - OV
        - OW
        - OX
        - OY
        - OZ
        - PA
        - PB
        - PC
        - PD
        - PE
        - PF
        - PG
        - PH
        - PI
        - PJ
        - PK
        - PL
        - PM
        - PN
        - PO
        - PP
        - PQ
        - PR
        - PS
        - PT
        - PU
        - PV
        - PW
        - PX
        - PY
        - PZ
        - QA
        - QB
        - QC
        - QD
        - QE
        - QF
        - QG
        - QH
        - QI
        - QJ
        - QK
        - QL
        - QM
        - QN
        - QO
        - QP
        - QQ
        - QR
        - QS
        - QT
        - QU
        - QV
        - QW
        - QX
        - QY
        - QZ
        - RA
        - RB
        - RC
        - RD
        - RE
        - RF
        - RG
        - RH
        - RI
        - RJ
        - RK
        - RL
        - RM
        - RN
        - RO
        - RP
        - RQ
        - RR
        - RS
        - RT
        - RU
        - RV
        - RW
        - RX
        - RY
        - RZ
        - SA
        - SB
        - SC
        - SD
        - SE
        - SF
        - SG
        - SH
        - SI
        - SJ
        - SK
        - SL
        - SM
        - SN
        - SO
        - SP
        - SQ
        - SR
        - SS
        - ST
        - SU
        - SV
        - SW
        - SX
        - SY
        - SZ
        - TA
        - TB
        - TC
        - TD
        - TE
        - TF
        - TG
        - TH
        - TI
        - TJ
        - TK
        - TL
        - TM
        - TN
        - TO
        - TP
        - TQ
        - TR
        - TS
        - TT
        - TU
        - TV
        - TW
        - TX
        - TY
        - TZ
        - UA
        - UB
        - UC
        - UD
        - UE
        - UF
        - UG
        - UH
        - UI
        - UJ
        - UK
        - UL
        - UM
        - UN
        - UO
        - UP
        - UQ
        - UR
        - US
        - UT
        - UU
        - UV
        - UW
        - UX
        - UY
        - UZ
        - VA
        - VB
        - VC
        - VD
        - VE
        - VF
        - VG
        - VH
        - VI
        - VJ
        - VK
        - VL
        - VM
        - VN
        - VO
        - VP
        - VQ
        - VR
        - VS
        - VT
        - VU
        - VV
        - VW
        - VX
        - VY
        - VZ
        - WA
        - WB
        - WC
        - WD
        - WE
        - WF
        - WG
        - WH
        - WI
        - WJ
        - WK
        - WL
        - WM
        - WN
        - WO
        - WP
        - WQ
        - WR
        - WS
        - WT
        - WU
        - WV
        - WW
        - WX
        - WY
        - WZ
        - XA
        - XB
        - XC
        - XD
        - XE
        - XF
        - XG
        - XH
        - XI
        - XJ
        - XK
        - XL
        - XM
        - XN
        - XO
        - XP
        - XQ
        - XR
        - XS
        - XT
        - XU
        - XV
        - XW
        - XX
        - XY
        - XZ
        - YA
        - YB
        - YC
        - YD
        - YE
        - YF
        - YG
        - YH
        - YI
        - YJ
        - YK
        - YL
        - YM
        - YN
        - YO
        - YP
        - YQ
        - YR
        - YS
        - YT
        - YU
        - YV
        - YW
        - YX
        - YY
        - YZ
        - ZA
        - ZB
        - ZC
        - ZD
        - ZE
        - ZF
        - ZG
        - ZH
        - ZI
        - ZJ
        - ZK
        - ZL
        - ZM
        - ZN
        - ZO
        - ZP
        - ZQ
        - ZR
        - ZS
        - ZT
        - ZU
        - ZV
        - ZW
        - ZX
        - ZY
        - ZZ
      title: SystemCountries
      type: string
    RecognitionStrategy:
      enum:
        - straight_line
        - straight_line_start_end_even
        - daily_prorata
        - milestone
        - usage_tiered
        - usage
        - immediate
        - deposit_release
      title: RecognitionStrategy
      type: string
    RecordClassificationsSchemaOut:
      properties:
        id:
          title: Id
          type: integer
        name:
          title: Name
          type: string
        line_id:
          title: Line Id
          type: integer
        line_name:
          title: Line Name
          type: string
        parent_classification_id:
          title: Parent Classification Id
          type:
            - integer
            - 'null'
        parent_classification_line_id:
          title: Parent Classification Line Id
          type:
            - integer
            - 'null'
      required:
        - id
        - name
        - line_id
        - line_name
      title: RecordClassificationsSchemaOut
      type: object
    BillingCadence:
      enum:
        - one_time
        - daily
        - weekly
        - monthly
        - quarterly
        - semi_annually
        - annually
      title: BillingCadence
      type: string
    BillingMode:
      enum:
        - period
        - synced
        - drawdown
      title: BillingMode
      type: string
    RecognitionCadence:
      enum:
        - daily
        - weekly
        - monthly
        - quarterly
        - semi_annually
        - annually
      title: RecognitionCadence
      type: string
    DiscountType:
      enum:
        - PERCENTAGE
        - FIXED
      title: DiscountType
      type: string
    ObligationUsageStatus:
      enum:
        - draft
        - invoiced
        - archived
      title: ObligationUsageStatus
      type: string
    EmbeddedObligationModificationOut:
      description: >-
        Lightweight output schema for obligation modifications embedded in
        contract detail.
      properties:
        obligation_id:
          title: Obligation Id
          type:
            - integer
            - 'null'
        quantity:
          description: >-
            Quantity this change order sets on the performance obligation. When
            its stored billing period count is `1`, quantity covers the affected
            term. When the count is greater than `1`, quantity is for each
            billing period. Empty when this change order does not change
            quantity.
          title: Quantity
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
          type:
            - string
            - 'null'
        rate:
          title: Rate
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
          type:
            - string
            - 'null'
        item_id:
          title: Item Id
          type:
            - integer
            - 'null'
        memo:
          title: Memo
          type:
            - string
            - 'null'
        discount_type:
          title: Discount Type
          type:
            - string
            - 'null'
        discount_value:
          title: Discount Value
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
          type:
            - string
            - 'null'
        standalone_selling_price:
          title: Standalone Selling Price
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
          type:
            - string
            - 'null'
        cancel:
          default: false
          title: Cancel
          type: boolean
      title: EmbeddedObligationModificationOut
      type: object
    EmbeddedObligationAdditionOut:
      description: >-
        Lightweight read-only schema for obligation additions embedded in
        contract detail.
      properties:
        item_id:
          title: Item Id
          type:
            - integer
            - 'null'
        quantity:
          description: >-
            Quantity for each billing period on this performance obligation.
            Quantity 10 and a unit price of $100 for 12 monthly periods give a
            total contract value of $12,000. The value is empty, or `0`, when
            the obligation has no quantity. A value is greater than or equal to
            `0`. The value has up to 6 decimal places.
          title: Quantity
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
          type:
            - string
            - 'null'
        rate:
          title: Rate
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
          type:
            - string
            - 'null'
        position:
          default: 0
          title: Position
          type: integer
        memo:
          default: ''
          title: Memo
          type: string
        standalone_selling_price:
          title: Standalone Selling Price
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
          type:
            - string
            - 'null'
        recognition_strategy:
          title: Recognition Strategy
          type:
            - string
            - 'null'
        billing_start_date:
          title: Billing Start Date
          format: date
          type:
            - string
            - 'null'
        billing_end_date:
          title: Billing End Date
          format: date
          type:
            - string
            - 'null'
        billing_frequency:
          title: Billing Frequency
          type:
            - string
            - 'null'
        billing_interval:
          title: Billing Interval
          type:
            - integer
            - 'null'
        recognition_start_date:
          title: Recognition Start Date
          format: date
          type:
            - string
            - 'null'
        recognition_end_date:
          title: Recognition End Date
          format: date
          type:
            - string
            - 'null'
        recognition_frequency:
          title: Recognition Frequency
          type:
            - string
            - 'null'
        recognition_interval:
          title: Recognition Interval
          type:
            - integer
            - 'null'
        discount_type:
          title: Discount Type
          type:
            - string
            - 'null'
        discount_value:
          title: Discount Value
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
          type:
            - string
            - 'null'
      title: EmbeddedObligationAdditionOut
      type: object
    SubstepInfoSchema:
      description: Schema for individual substep information in approval workflow.
      properties:
        order:
          title: Order
          type: integer
        status:
          $ref: '#/components/schemas/SubstepStatus'
        approve_condition:
          $ref: '#/components/schemas/ApproveCondition'
        approvers:
          items:
            $ref: '#/components/schemas/ApproverSchema'
          title: Approvers
          type: array
        approved_by:
          items:
            $ref: '#/components/schemas/ApproverSchema'
          title: Approved By
          type: array
        rejected_by:
          items:
            $ref: '#/components/schemas/ApproverSchema'
          title: Rejected By
          type: array
      required:
        - order
        - status
        - approve_condition
        - approvers
        - approved_by
        - rejected_by
      title: SubstepInfoSchema
      type: object
    StepChainSchema:
      description: Step in approval chain.
      properties:
        order:
          title: Order
          type: integer
        name:
          title: Name
          type: string
        status:
          $ref: '#/components/schemas/StepStatus'
        approve_condition:
          $ref: '#/components/schemas/ApproveCondition'
        substeps:
          title: Substeps
          items:
            $ref: '#/components/schemas/SubstepChainSchema'
          type:
            - array
            - 'null'
        approvers:
          title: Approvers
          items:
            $ref: '#/components/schemas/ApproverDictSchema'
          type:
            - array
            - 'null'
        approved_by:
          title: Approved By
          items:
            $ref: '#/components/schemas/ApproverDictSchema'
          type:
            - array
            - 'null'
        rejected_by:
          title: Rejected By
          items:
            $ref: '#/components/schemas/ApproverDictSchema'
          type:
            - array
            - 'null'
      required:
        - order
        - name
        - status
        - approve_condition
      title: StepChainSchema
      type: object
    FieldType:
      enum:
        - text
        - number
        - currency
        - date
        - boolean
        - single_select
        - multi_select
        - link
        - paragraph
      title: FieldType
      type: string
    AppliesToItemSchema:
      description: Schema for individual applies_to items.
      properties:
        type:
          $ref: '#/components/schemas/CustomFieldAppliesToType'
        layer:
          allOf:
            - $ref: '#/components/schemas/Layer'
          default: transaction
        is_active:
          default: true
          title: Is Active
          type: boolean
        is_required:
          default: false
          title: Is Required
          type: boolean
      required:
        - type
      title: AppliesToItemSchema
      type: object
    IntegrationProviderType:
      enum:
        - bill_com
        - ramp
        - zoho
        - fivetran
        - stripe
        - finch
        - hubspot
        - brex
        - cubby
        - avalara
        - deel
        - tax1099
        - sitelink
        - postgresql
        - qlik
        - power_bi
        - snowflake
        - avidxchange
        - concur
        - salesforce
        - hmrc
        - rippling
        - monday
        - airwallex
        - pleo
        - tipalti
        - addepar
        - moss
        - data_warehouse
        - external
        - anrok
        - kintsugi
        - numeral
      title: IntegrationProviderType
      type: string
    MigrationProviderType:
      enum:
        - quickbooks
        - xero
        - stripe
        - netsuite_rutter
        - sage_50_rutter
        - sage_50
        - qbd
      title: MigrationProviderType
      type: string
    SubstepStatus:
      description: Status of a substep in the approval workflow.
      enum:
        - completed
        - pending
        - not_started
      title: SubstepStatus
      type: string
    ApproveCondition:
      description: Condition for approving a substep.
      enum:
        - any
        - all
      title: ApproveCondition
      type: string
    ApproverSchema:
      description: Schema for approver information.
      properties:
        id:
          title: Id
          type: integer
        first_name:
          title: First Name
          type: string
        last_name:
          title: Last Name
          type: string
        email:
          title: Email
          type: string
        full_name:
          title: Full Name
          type: string
        avatar_url:
          title: Avatar Url
          type:
            - string
            - 'null'
      required:
        - id
        - first_name
        - last_name
        - email
        - full_name
      title: ApproverSchema
      type: object
    StepStatus:
      description: Status of a step in the approval chain.
      enum:
        - completed
        - pending
        - not_started
        - skipped
      title: StepStatus
      type: string
    SubstepChainSchema:
      description: Substep in approval chain.
      properties:
        order:
          title: Order
          type: integer
        status:
          $ref: '#/components/schemas/SubstepStatus'
        approve_condition:
          $ref: '#/components/schemas/ApproveCondition'
        approvers:
          items:
            $ref: '#/components/schemas/ApproverDictSchema'
          title: Approvers
          type: array
        approved_by:
          items:
            $ref: '#/components/schemas/ApproverDictSchema'
          title: Approved By
          type: array
        rejected_by:
          items:
            $ref: '#/components/schemas/ApproverDictSchema'
          title: Rejected By
          type: array
      required:
        - order
        - status
        - approve_condition
        - approvers
        - approved_by
        - rejected_by
      title: SubstepChainSchema
      type: object
    ApproverDictSchema:
      description: Approver info from pre-serialized dict.
      properties:
        id:
          title: Id
          type: integer
        first_name:
          title: First Name
          type: string
        last_name:
          title: Last Name
          type: string
        email:
          title: Email
          type: string
        full_name:
          title: Full Name
          type: string
        avatar_url:
          title: Avatar Url
          type:
            - string
            - 'null'
      required:
        - id
        - first_name
        - last_name
        - email
        - full_name
      title: ApproverDictSchema
      type: object
    CustomFieldAppliesToType:
      description: >-
        Record types a custom field can apply to. Stored in DB as plain text; no
        Django choices.
      enum:
        - invoice
        - bill
        - direct_expense
        - journal_entry
        - intercompany_journal_entry
        - vendor_prepayment
        - vendor_credit
        - vendor_payment
        - vendor_refund
        - customer_payment
        - customer_prepayment
        - customer_refund
        - customer_deposit
        - currency_revaluation
        - contract
        - fixed_asset
        - customer
        - vendor
        - account
        - company
        - sales_order
        - purchase_order
        - cash_sale
        - customer_credit
        - quote
      title: CustomFieldAppliesToType
      type: string
    Layer:
      enum:
        - transaction
        - entry
      title: Layer
      type: string

````

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