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

# Create Accounting Bill

> 
        Creates a new accounting bill with line items and automatic journal entry generation.

        This endpoint allows for complex bill creation with:
        - Multiple line items with different accounts, departments, and vendor assignments
        - Automatic accounts payable journal entry creation
        - Tax calculations and tax account handling
        - Exchange rate support for multi-currency transactions
        - Custom field support for additional bill metadata

        Requirements:
        - All referenced accounts must exist and be active
        - Vendor must exist
        - Entity must exist
        - Line items must have valid amounts and descriptions
        - Currency must be valid for the entity
        - Accounting date must be before closed book date
        



## OpenAPI

````yaml https://api.meetcampfire.com/api/schema?format=json post /coa/api/v1/bill/
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/v1/bill/:
    post:
      tags:
        - Accounts Payable
      summary: Create Accounting Bill
      description: |2-

                Creates a new accounting bill with line items and automatic journal entry generation.

                This endpoint allows for complex bill creation with:
                - Multiple line items with different accounts, departments, and vendor assignments
                - Automatic accounts payable journal entry creation
                - Tax calculations and tax account handling
                - Exchange rate support for multi-currency transactions
                - Custom field support for additional bill metadata

                Requirements:
                - All referenced accounts must exist and be active
                - Vendor must exist
                - Entity must exist
                - Line items must have valid amounts and descriptions
                - Currency must be valid for the entity
                - Accounting date must be before closed book date
                
      operationId: coa_api_v1_bill_create
      responses:
        '201':
          description: No response body
      security:
        - knoxApiToken: []
components:
  securitySchemes:
    knoxApiToken:
      type: apiKey
      in: header
      name: Authorization
      description: Token-based authentication with required prefix "Token"

````