List Invoices
curl --request GET \
--url https://api.meetcampfire.com/coa/api/v1/invoiceimport requests
url = "https://api.meetcampfire.com/coa/api/v1/invoice"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.meetcampfire.com/coa/api/v1/invoice', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.meetcampfire.com/coa/api/v1/invoice",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.meetcampfire.com/coa/api/v1/invoice"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.meetcampfire.com/coa/api/v1/invoice")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.meetcampfire.com/coa/api/v1/invoice")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"count": 123,
"results": [
{
"id": 123,
"overage_amount": "<string>",
"lines": [
{
"id": 123,
"product_name": "<string>",
"product_bundle_name": "<string>",
"stripe_product_id": "<string>",
"product_is_taxable": true,
"anrok_item_id": "<string>",
"sphere_item_id": "<string>",
"tags": [
{}
],
"department_name": "<string>",
"department_code": "<string>",
"tax_rate_name": "<string>",
"tax_rate_value": 0,
"withholding_tax_rate_name": "<string>",
"withholding_tax_rate_value": 123,
"tag_ids": [
0
],
"tag_group_ids": [
0
],
"created_at": "2023-11-07T05:31:56Z",
"last_modified_at": "2023-11-07T05:31:56Z",
"customer": 123,
"service_date": "2023-12-25",
"billed_expense_ids": [
123
],
"description": "<string>",
"charge_type": "prepaid_commit",
"quantity": 0,
"rate": 0,
"currency": "<string>",
"amount": 0,
"tax": 0,
"tax_description": "<string>",
"entity_use_code": "<string>",
"discount": 0,
"discount_percentage": 0,
"discount_amount": 0,
"product": 123,
"product_bundle": 123,
"tax_rate": 123,
"withholding_tax_rate": 123,
"department": 123
}
],
"journal_entry_intercompany": "<string>",
"client_name": "<string>",
"client_campfire_id": "<string>",
"client_email": "<string>",
"anrok_customer_id": "<string>",
"client_invoice_message": "<string>",
"client_use_stripe_auto_bill": true,
"client_is_reseller": true,
"contract_custom_fields": [
{}
],
"status": "<string>",
"past_due_days": 123,
"entity_name": "<string>",
"entity_currency": "<string>",
"entity_invoice_message": "<string>",
"total_amount": 0,
"amount_paid": 0,
"amount_due": 123,
"contract_name": "<string>",
"revenue_contract": 123,
"revenue_contract_name": "<string>",
"revenue_contract_number": "<string>",
"stripe_connection_name": "<string>",
"stripe_connection_entity": 123,
"stripe_connection_billing_portal_enabled": true,
"avalara_connection_name": "<string>",
"avalara_connection_company": "<string>",
"tax_rate_name": "<string>",
"tax_rate_value": 0,
"payment_term_name": "<string>",
"voided_journal_entry_order": 123,
"last_modified_at": "2023-11-07T05:31:56Z",
"is_deleted": false,
"deleted_at": "2023-11-07T05:31:56Z",
"auto_sent_at": "2023-11-07T05:31:56Z",
"invoice_date": "2023-12-25",
"due_date": "2023-12-25",
"sent_date": "2023-12-25",
"anrok_transaction_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"last_sent_at": "2023-11-07T05:31:56Z",
"customer": 123,
"entity": 123,
"invoice_number": "<string>",
"item_date": "2023-12-25",
"auto_send_invoice": true,
"auto_send_invoice_at": "2023-12-25",
"reminder_sent_dates": "<unknown>",
"pre_due_reminder_sent_dates": "<unknown>",
"billing_address": "<string>",
"billing_addressee": "<string>",
"shipping_address": "<string>",
"shipping_addressee": "<string>",
"terms": "custom",
"ref_number": "<string>",
"purchase_order_number": "<string>",
"shipping_date": "2023-12-25",
"paid_date": "2023-12-25",
"uncollectible_date": "2023-12-25",
"period_start": "2023-12-25",
"period_end": "2023-12-25",
"location_of_sale": "<string>",
"message_on_invoice": "<string>",
"ita_allocation_number": "<string>",
"posts_opening_balance_offset": true,
"payment_status": "draft",
"exclude_from_tax_connection": true,
"warning_message": "<string>",
"currency": "<string>",
"exchange_rate": 0,
"exchange_rate_book": 0,
"integration_id": "<string>",
"integration_context": null,
"vat_number": "<string>",
"vat_number_from_contract": true,
"shipping_address_from_contract": true,
"tax_exempt": true,
"discount": 0,
"payment_term_applied_discount": 0,
"use_stripe_auto_bill": true,
"stripe_payment_link_id": "<string>",
"stripe_payment_intent_id": "<string>",
"stripe_invoice_id": "<string>",
"stripe_pdf_url": "<string>",
"stripe_payment_link": "<string>",
"source": "<string>",
"source_id": "<string>",
"is_migrated": true,
"voided_date": "2023-12-25",
"invoice_labels": null,
"invoice_language": "<string>",
"chat_id": -1,
"client": 123,
"payment_term": 123,
"bad_debt_journal_entry": 123,
"journal_entry": 123,
"ar_account": 123,
"voided_journal_entry": 123,
"opening_balance_offset_journal_entry": 123,
"entity_transfer_journal_entry": 123,
"contract": 123,
"avalara_connection": 123,
"sphere_connection": 123,
"anrok_connection": 123,
"tax_rate": 123,
"stripe_connection": 123,
"source_file": 123
}
],
"next": "http://api.example.org/accounts/?offset=400&limit=100",
"previous": "http://api.example.org/accounts/?offset=200&limit=100"
}Accounts Receivable
List Invoices
Retrieve a paginated list of invoices with comprehensive filtering, sorting, and download capabilities.
This endpoint provides powerful invoice listing with:
- Advanced filtering by date ranges, status, clients, and entities
- Full-text search across multiple fields
- Flexible sorting options including custom calculated fields
- Async CSV export functionality via email
- Optimized queries with prefetched relationships
Filtering Options:
- Date-based filtering (invoice_date, due_date ranges)
- Status-based filtering (payment status, sent status, aging buckets)
- Entity and client-based filtering (supports multiple selections)
- Contract and currency filtering
- Full-text search across invoice numbers, addresses, messages, and client names
Sorting Capabilities:
- Standard field sorting (invoice_date, total_amount, due_date, etc.)
- Custom calculated field sorting (amount_due, client_name, contract_name)
- Ascending/descending order with null handling
Performance Features:
- Efficient database queries with proper indexing
- Prefetched related objects (lines, payments, clients, entities)
- Pagination support for large datasets
- Optimized for high-volume invoice management
Export Functionality:
- Async CSV generation and email delivery
- Filtered export based on current query parameters
- Background processing to handle large datasets
GET
/
coa
/
api
/
v1
/
invoice
List Invoices
curl --request GET \
--url https://api.meetcampfire.com/coa/api/v1/invoiceimport requests
url = "https://api.meetcampfire.com/coa/api/v1/invoice"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.meetcampfire.com/coa/api/v1/invoice', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.meetcampfire.com/coa/api/v1/invoice",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.meetcampfire.com/coa/api/v1/invoice"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.meetcampfire.com/coa/api/v1/invoice")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.meetcampfire.com/coa/api/v1/invoice")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"count": 123,
"results": [
{
"id": 123,
"overage_amount": "<string>",
"lines": [
{
"id": 123,
"product_name": "<string>",
"product_bundle_name": "<string>",
"stripe_product_id": "<string>",
"product_is_taxable": true,
"anrok_item_id": "<string>",
"sphere_item_id": "<string>",
"tags": [
{}
],
"department_name": "<string>",
"department_code": "<string>",
"tax_rate_name": "<string>",
"tax_rate_value": 0,
"withholding_tax_rate_name": "<string>",
"withholding_tax_rate_value": 123,
"tag_ids": [
0
],
"tag_group_ids": [
0
],
"created_at": "2023-11-07T05:31:56Z",
"last_modified_at": "2023-11-07T05:31:56Z",
"customer": 123,
"service_date": "2023-12-25",
"billed_expense_ids": [
123
],
"description": "<string>",
"charge_type": "prepaid_commit",
"quantity": 0,
"rate": 0,
"currency": "<string>",
"amount": 0,
"tax": 0,
"tax_description": "<string>",
"entity_use_code": "<string>",
"discount": 0,
"discount_percentage": 0,
"discount_amount": 0,
"product": 123,
"product_bundle": 123,
"tax_rate": 123,
"withholding_tax_rate": 123,
"department": 123
}
],
"journal_entry_intercompany": "<string>",
"client_name": "<string>",
"client_campfire_id": "<string>",
"client_email": "<string>",
"anrok_customer_id": "<string>",
"client_invoice_message": "<string>",
"client_use_stripe_auto_bill": true,
"client_is_reseller": true,
"contract_custom_fields": [
{}
],
"status": "<string>",
"past_due_days": 123,
"entity_name": "<string>",
"entity_currency": "<string>",
"entity_invoice_message": "<string>",
"total_amount": 0,
"amount_paid": 0,
"amount_due": 123,
"contract_name": "<string>",
"revenue_contract": 123,
"revenue_contract_name": "<string>",
"revenue_contract_number": "<string>",
"stripe_connection_name": "<string>",
"stripe_connection_entity": 123,
"stripe_connection_billing_portal_enabled": true,
"avalara_connection_name": "<string>",
"avalara_connection_company": "<string>",
"tax_rate_name": "<string>",
"tax_rate_value": 0,
"payment_term_name": "<string>",
"voided_journal_entry_order": 123,
"last_modified_at": "2023-11-07T05:31:56Z",
"is_deleted": false,
"deleted_at": "2023-11-07T05:31:56Z",
"auto_sent_at": "2023-11-07T05:31:56Z",
"invoice_date": "2023-12-25",
"due_date": "2023-12-25",
"sent_date": "2023-12-25",
"anrok_transaction_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"last_sent_at": "2023-11-07T05:31:56Z",
"customer": 123,
"entity": 123,
"invoice_number": "<string>",
"item_date": "2023-12-25",
"auto_send_invoice": true,
"auto_send_invoice_at": "2023-12-25",
"reminder_sent_dates": "<unknown>",
"pre_due_reminder_sent_dates": "<unknown>",
"billing_address": "<string>",
"billing_addressee": "<string>",
"shipping_address": "<string>",
"shipping_addressee": "<string>",
"terms": "custom",
"ref_number": "<string>",
"purchase_order_number": "<string>",
"shipping_date": "2023-12-25",
"paid_date": "2023-12-25",
"uncollectible_date": "2023-12-25",
"period_start": "2023-12-25",
"period_end": "2023-12-25",
"location_of_sale": "<string>",
"message_on_invoice": "<string>",
"ita_allocation_number": "<string>",
"posts_opening_balance_offset": true,
"payment_status": "draft",
"exclude_from_tax_connection": true,
"warning_message": "<string>",
"currency": "<string>",
"exchange_rate": 0,
"exchange_rate_book": 0,
"integration_id": "<string>",
"integration_context": null,
"vat_number": "<string>",
"vat_number_from_contract": true,
"shipping_address_from_contract": true,
"tax_exempt": true,
"discount": 0,
"payment_term_applied_discount": 0,
"use_stripe_auto_bill": true,
"stripe_payment_link_id": "<string>",
"stripe_payment_intent_id": "<string>",
"stripe_invoice_id": "<string>",
"stripe_pdf_url": "<string>",
"stripe_payment_link": "<string>",
"source": "<string>",
"source_id": "<string>",
"is_migrated": true,
"voided_date": "2023-12-25",
"invoice_labels": null,
"invoice_language": "<string>",
"chat_id": -1,
"client": 123,
"payment_term": 123,
"bad_debt_journal_entry": 123,
"journal_entry": 123,
"ar_account": 123,
"voided_journal_entry": 123,
"opening_balance_offset_journal_entry": 123,
"entity_transfer_journal_entry": 123,
"contract": 123,
"avalara_connection": 123,
"sphere_connection": 123,
"anrok_connection": 123,
"tax_rate": 123,
"stripe_connection": 123,
"source_file": 123
}
],
"next": "http://api.example.org/accounts/?offset=400&limit=100",
"previous": "http://api.example.org/accounts/?offset=200&limit=100"
}