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

# Bulk Match GL Transactions to Statement Transactions

> Match multiple GL transactions to statement transactions in a single request. Pairs are validated atomically — all succeed or none are created.



## OpenAPI

````yaml https://api.meetcampfire.com/api/schema?format=json post /coa/api/v2/reconciliation/{id}/bulk-match-transactions
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/v2/reconciliation/{id}/bulk-match-transactions:
    post:
      tags:
        - Bank Reconciliation
      summary: Bulk Match GL Transactions to Statement Transactions
      description: >-
        Match multiple GL transactions to statement transactions in a single
        request. Pairs are validated atomically — all succeed or none are
        created.
      operationId: coa_api_v2_reconciliation_bulk_match_transactions_create
      parameters:
        - in: path
          name: id
          schema:
            type: integer
          required: true
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BulkMatchTransactionRequest'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/BulkMatchTransactionRequest'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/BulkMatchTransactionRequest'
        required: true
      responses:
        '201':
          description: All pairs matched successfully
        '400':
          description: Validation error (duplicates, already reconciled, non-draft report)
        '404':
          description: Report, GL transaction, or statement transaction not found
      security:
        - knoxApiToken: []
components:
  schemas:
    BulkMatchTransactionRequest:
      type: object
      properties:
        pairs:
          type: array
          items:
            $ref: '#/components/schemas/MatchTransactionRequest'
          description: Ordered list of GL-to-statement transaction pairs to match
          minItems: 1
      required:
        - pairs
    MatchTransactionRequest:
      type: object
      properties:
        transaction_id:
          type: integer
          description: GL transaction ID to match
        statement_transaction_id:
          type: integer
          description: Statement transaction ID to match
      required:
        - statement_transaction_id
        - transaction_id
  securitySchemes:
    knoxApiToken:
      type: apiKey
      in: header
      name: Authorization
      description: Token-based authentication with required prefix "Token"

````