> ## 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.

# Delete Intercompany Journal Entry

> 
        Permanently deletes an intercompany journal entry and all related transactions.

        This endpoint performs a comprehensive cleanup when deleting an intercompany journal entry:
        - Validates that the entry can be deleted (not in closed period)
        - Removes all associated journal entries across entities
        - Updates summary tables and account balances
        - Handles cascade deletion of related transactions
        - Ensures data integrity across the accounting system

        Deletion restrictions:
        - Cannot delete entries in closed accounting periods

        Error conditions:
        - 400 Bad Request: Entry date is in a closed period
        - 409 Conflict: Entry has protected relationships (e.g., close checklist tasks)
        - 404 Not Found: Entry does not exist or user lacks access

        On successful deletion, all related journal entries are removed and accounting summaries are recalculated.
        



## OpenAPI

````yaml https://api.meetcampfire.com/api/schema?format=json delete /coa/api/intercompany-journal-entry/{id}
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:
  /coa/api/intercompany-journal-entry/{id}:
    delete:
      tags:
        - Core Accounting
      summary: Delete Intercompany Journal Entry
      description: |2-

                Permanently deletes an intercompany journal entry and all related transactions.

                This endpoint performs a comprehensive cleanup when deleting an intercompany journal entry:
                - Validates that the entry can be deleted (not in closed period)
                - Removes all associated journal entries across entities
                - Updates summary tables and account balances
                - Handles cascade deletion of related transactions
                - Ensures data integrity across the accounting system

                Deletion restrictions:
                - Cannot delete entries in closed accounting periods

                Error conditions:
                - 400 Bad Request: Entry date is in a closed period
                - 409 Conflict: Entry has protected relationships (e.g., close checklist tasks)
                - 404 Not Found: Entry does not exist or user lacks access

                On successful deletion, all related journal entries are removed and accounting summaries are recalculated.
                
      operationId: coa_api_intercompany_journal_entry_destroy
      parameters:
        - in: path
          name: id
          schema:
            type: integer
          required: true
      responses:
        '204':
          description: No response body
      security:
        - knoxApiToken: []
components:
  securitySchemes:
    knoxApiToken:
      type: apiKey
      in: header
      name: Authorization
      description: Token-based authentication with required prefix "Token"

````