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

# Modify Subscription Schedule

> Generate a modified subscription schedule by comparing a new schedule against an existing subscription. Returns the delta between the original and modified schedules, with support for catch-up accounting and contract end date modifications.



## OpenAPI

````yaml https://api.meetcampfire.com/api/schema?format=json post /rr/api/v1/modify-subscription-schedule
openapi: 3.0.3
info:
  title: Campfire Developer APIs
  version: 1.0.0
  description: >
    ## Introduction

    Campfire's developer APIs offer granular access to Campfire's core
    accounting,

    revenue recognition, and financial data features.


    These APIs are designed to be used by developers to build custom
    integrations,

    automate workflows, and perform any other programmatic operations.
servers:
  - url: https://api.meetcampfire.com
    description: Production server
security: []
tags:
  - name: Cash Management
    description: Operations related to accounts, transactions, and other bank-related data.
  - name: Core Accounting
    description: >-
      Operations related to core accounting data, such as the chart of accounts,
      entity management, and the general ledger.
  - name: Revenue Recognition
    description: >-
      Operations related to revenue recognition, contract management, and
      contract data aggregation.
  - name: Accounts Receivable
    description: Operations related to invoicing and the AR subledger
  - name: Accounts Payable
    description: Operations related to billing and the AP subledger.
  - name: Financial Statements
    description: Operations related to financial statement generation and data aggregation.
  - name: Settings
    description: Operations related to system and accounting settings configuration.
paths:
  /rr/api/v1/modify-subscription-schedule:
    post:
      tags:
        - Revenue Recognition
      summary: Modify Subscription Schedule
      description: >-
        Generate a modified subscription schedule by comparing a new schedule
        against an existing subscription. Returns the delta between the original
        and modified schedules, with support for catch-up accounting and
        contract end date modifications.
      operationId: modify_subscription_schedule
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GenerageSubscriptionSchedule'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/GenerageSubscriptionSchedule'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/GenerageSubscriptionSchedule'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/ContractSubscriptionLine'
          description: ''
      security:
        - knoxApiToken: []
components:
  schemas:
    GenerageSubscriptionSchedule:
      type: object
      properties:
        start_date:
          type: string
          format: date
          description: Start date of the subscription period.
        end_date:
          type: string
          format: date
          nullable: true
          description: >-
            End date of the subscription period. Defaults to 1 year from start
            date if not provided.
        total_value:
          type: number
          format: double
          maximum: 1000000000000000000
          minimum: -1000000000000000000
          exclusiveMaximum: true
          exclusiveMinimum: true
          description: Total contract value for the subscription period.
        mrr:
          type: number
          format: double
          maximum: 1000000000000000000
          minimum: -1000000000000000000
          exclusiveMaximum: true
          exclusiveMinimum: true
          description: >-
            Monthly recurring revenue. If not provided, it is calculated from
            total_value and the subscription period.
        use_daily_accounting:
          type: boolean
          default: false
          description: Whether to use daily (vs monthly) revenue recognition.
        use_catchup:
          type: boolean
          default: false
          description: Enable catch-up accounting for retroactive amendments.
        catchup_date:
          type: string
          format: date
          nullable: true
          description: >-
            Date from which to apply catch-up adjustments. Required if
            use_catchup is true.
        modified_subscription:
          type: integer
          nullable: true
          description: ID of the existing contract subscription being modified.
        does_modify_contract_end_date:
          type: boolean
          default: false
          description: Whether this modification changes the contract end date.
        apply_prospectively:
          type: boolean
          default: false
          description: >-
            Apply changes prospectively from catchup_date instead of
            retroactively. Only valid when use_catchup is true.
      required:
        - start_date
        - total_value
    ContractSubscriptionLine:
      type: object
      properties:
        id:
          type: integer
          nullable: true
        start_date:
          type: string
          format: date
        end_date:
          type: string
          format: date
        original_value:
          type: number
          format: double
          maximum: 1000000000000000000
          minimum: -1000000000000000000
          exclusiveMaximum: true
          exclusiveMinimum: true
          nullable: true
        total_value:
          type: number
          format: double
          maximum: 1000000000000000000
          minimum: -1000000000000000000
          exclusiveMaximum: true
          exclusiveMinimum: true
        original_mrr:
          type: number
          format: double
          maximum: 1000000000000000000
          minimum: -1000000000000000000
          exclusiveMaximum: true
          exclusiveMinimum: true
          nullable: true
        mrr:
          type: number
          format: double
          maximum: 1000000000000000000
          minimum: -1000000000000000000
          exclusiveMaximum: true
          exclusiveMinimum: true
        original_quantity:
          type: number
          format: double
          maximum: 100000000000000
          minimum: -100000000000000
          exclusiveMaximum: true
          exclusiveMinimum: true
          nullable: true
        quantity:
          type: number
          format: double
          maximum: 100000000000000
          minimum: -100000000000000
          exclusiveMaximum: true
          exclusiveMinimum: true
          nullable: true
        original_rate:
          type: number
          format: double
          maximum: 10000000000000
          minimum: -10000000000000
          exclusiveMaximum: true
          exclusiveMinimum: true
          nullable: true
        rate:
          type: number
          format: double
          maximum: 10000000000000
          minimum: -10000000000000
          exclusiveMaximum: true
          exclusiveMinimum: true
          nullable: true
        use_daily_accounting:
          type: boolean
          default: false
        is_contract_amendment:
          type: boolean
          default: false
      required:
        - end_date
        - start_date
        - total_value
  securitySchemes:
    knoxApiToken:
      type: apiKey
      in: header
      name: Authorization
      description: Token-based authentication with required prefix "Token"

````