POST
/
coa
/
api
/
v1
/
invoice
/
Create Invoice
curl --request POST \
  --url https://api.meetcampfire.com/coa/api/v1/invoice/ \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "terms": "net_30",
  "invoice_date": "2025-07-01",
  "due_date": "2025-07-31",
  "lines": [
    {
      "service_date": "2025-07-01",
      "amount": 50,
      "product": "2545",
      "product_name": "Product A",
      "product_is_taxable": false,
      "anrok_item_id": null,
      "rate": 50,
      "description": "Invoice Line Item",
      "quantity": 1,
      "tax": 5
    }
  ],
  "entity": "54",
  "entity_name": "Top Level",
  "entity_currency": "USD",
  "entity_invoice_message": "Please make a payment to the following bank:\n\nBank Name: JP Morgan Chase\nBank Address: 456 Another Rd, San Francisco, CA, USA\nSWIFT/BIC Code: XYZBUS22\nAccount Number: 123456789\nAccount Type: Checking\nAccount Name: Campfire Software",
  "currency": "USD",
  "message_on_invoice": "Please make a payment to the following bank:\n\nBank Name: JP Morgan Chase\nBank Address: 456 Another Rd, San Francisco, CA, USA\nSWIFT/BIC Code: XYZBUS22\nAccount Number: 123456789\nAccount Type: Checking\nAccount Name: Campfire Software",
  "stripe_connection": "",
  "stripe_connection_name": "",
  "stripe_connection_entity": "54",
  "exchange_rate_book": 1,
  "exchange_rate": 1,
  "client": "33973",
  "client_name": "Client A",
  "client_email": null,
  "client_invoice_message": null,
  "billing_address": "",
  "shipping_address": "",
  "contract": "12954",
  "contract_name": "Campfire",
  "invoice_number": "987654321",
  "purchase_order_number": "123456789",
  "item_date": "2025-07-01",
  "period_start": "2025-07-01",
  "period_end": "2025-07-31"
}'
{
  "id": 145055,
  "lines": [
    {
      "id": 337587,
      "product_name": "Product A",
      "stripe_product_id": null,
      "product_is_taxable": false,
      "anrok_item_id": null,
      "service_date": "2025-07-01",
      "description": "Invoice Line Item",
      "quantity": 1,
      "rate": 50,
      "currency": "USD",
      "amount": 50,
      "tax": 5,
      "tax_description": null,
      "created_at": "2025-07-25T18:54:43+0000",
      "last_modified_at": "2025-07-25T18:54:43+0000",
      "product": 2545
    }
  ],
  "payments": [],
  "payment_journal_entries": [],
  "client_name": "Client A",
  "client_email": null,
  "client_invoice_message": null,
  "client_use_stripe_auto_bill": false,
  "status": "open",
  "past_due_days": null,
  "entity_name": "Top Level",
  "entity_currency": "USD",
  "entity_invoice_message": "Please make a payment to the following bank:\n\nBank Name: JP Morgan Chase\nBank Address: 456 Another Rd, San Francisco, CA, USA\nSWIFT/BIC Code: XYZBUS22\nAccount Number: 123456789\nAccount Type: Checking\nAccount Name: Campfire Software",
  "total_amount": 55,
  "amount_paid": 0,
  "amount_due": 55,
  "contract_name": "Campfire",
  "attachments": [],
  "invoice_number": "987654321",
  "revenue_transactions": [],
  "item_date": "2025-07-01",
  "voided_journal_entry_order": null,
  "search_vector": null,
  "search_text": null,
  "auto_send_invoice": false,
  "auto_send_invoice_at": null,
  "auto_sent_at": null,
  "reminder_sent_dates": {},
  "billing_address": "",
  "shipping_address": "",
  "terms": "net_30",
  "ref_number": null,
  "purchase_order_number": "123456789",
  "invoice_date": "2025-07-01",
  "due_date": "2025-07-31",
  "shipping_date": null,
  "paid_date": null,
  "uncollectible_date": null,
  "sent_date": null,
  "period_start": "2025-07-01",
  "period_end": "2025-07-31",
  "location_of_sale": null,
  "message_on_invoice": "Please make a payment to the following bank:\n\nBank Name: JP Morgan Chase\nBank Address: 456 Another Rd, San Francisco, CA, USA\nSWIFT/BIC Code: XYZBUS22\nAccount Number: 123456789\nAccount Type: Checking\nAccount Name: Campfire Software",
  "payment_status": "open",
  "warning_message": null,
  "created_at": "2025-07-25T18:54:43+0000",
  "last_modified_at": "2025-07-25T18:54:43+0000",
  "currency": "USD",
  "exchange_rate": 1,
  "exchange_rate_book": 1,
  "last_sent_at": null,
  "integration_id": null,
  "integration_context": null,
  "use_stripe_auto_bill": false,
  "stripe_payment_link_id": null,
  "stripe_payment_intent_id": null,
  "stripe_invoice_id": null,
  "stripe_pdf_url": null,
  "stripe_payment_link": null,
  "source": null,
  "source_id": null,
  "voided_date": null,
  "entity": 54,
  "client": 33973,
  "bad_debt_journal_entry": null,
  "journal_entry": 7491952,
  "contract": 12954,
  "avalara_connection": null,
  "sphere_connection": null,
  "anrok_connection": null,
  "tax_rate": null,
  "stripe_connection": null,
  "source_file": null,
  "voided_journal_entry": null
}

Authorizations

Authorization
string
header
required

Token-based authentication with required prefix "Token"

Body

Response

201 - application/json

The response is of type object.