curl --request POST \
--url https://api.meetcampfire.com/coa/api/v1/bill/ \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"terms": "net_30",
"bill_date": "2025-08-01",
"due_date": "2025-08-24",
"lines": [
{
"tags": [
{
"id": "8355",
"name": "Project A",
"group": 727
}
],
"account": "2622",
"account_name": "6700 - Office Expenses",
"amount": 10000,
"description": "1x Large Expense Line",
"bill_customer": "34182",
"bill_customer_name": "ABC Bead Supply",
"department": "35",
"department_name": "Engineering"
}
],
"entity": "54",
"entity_name": "Top Level",
"entity_currency": "USD",
"currency": "USD",
"exchange_rate_book": 1,
"exchange_rate": 1,
"vendor": "34182",
"vendor_name": "ABC Bead Supply",
"bill_number": "1234567",
"item_date": "2025-08-01",
"message_on_bill": "A really big expense",
"mailing_address": "1234 Campground Road. San Francisco CA 98765"
}'
{
"id": 31894,
"lines": [
{
"id": 298626,
"account_number": "6700",
"account_name": "6700 - Office Expenses",
"department_name": "Engineering",
"bill_customer_name": "ABC Bead Supply",
"tags": [
{
"id": 8355,
"group_name": "Projects",
"parent_name": null,
"parent": null,
"name": "Project A",
"created_at": "2025-07-17T16:21:02+0000",
"last_modified_at": "2025-07-17T16:21:02+0000",
"group": 727
}
],
"amortization_schedule": [],
"description": "1x Large Expense Line",
"amount": 10000,
"tax": 0,
"tax_description": null,
"source": null,
"source_id": null,
"currency": "USD",
"created_at": "2025-07-25T04:24:32+0000",
"last_modified_at": "2025-07-25T04:24:32+0000",
"account": 2622,
"bill_customer": 34182,
"department": 35
}
],
"payments": [],
"payment_journal_entries": [],
"status": "open",
"past_due_days": null,
"entity_name": "Top Level",
"entity_currency": "USD",
"vendor_name": "ABC Bead Supply",
"attachments": [],
"total_amount": 10000,
"amount_due": 10000,
"amount_paid": 0,
"item_date": "2025-08-01",
"voided_date": null,
"search_vector": null,
"search_text": null,
"mailing_address": "1234 Campground Road. San Francisco CA 98765",
"terms": "net_30",
"bill_number": "1234567",
"bill_date": "2025-08-01",
"due_date": "2025-08-24",
"paid_date": null,
"message_on_bill": "A really big expense",
"source_id": null,
"source": null,
"payment_status": "open",
"currency": "USD",
"exchange_rate": 1,
"exchange_rate_book": 1,
"created_at": "2025-07-25T04:24:32+0000",
"last_modified_at": "2025-07-25T04:24:32+0000",
"entity": 54,
"vendor": 34182,
"journal_entry": 7491951,
"source_file": null,
"tax_rate": null,
"voided_journal_entry": null
}
Creates a new accounting bill with line items and automatic journal entry generation.
This endpoint allows for complex bill creation with:
Requirements:
curl --request POST \
--url https://api.meetcampfire.com/coa/api/v1/bill/ \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"terms": "net_30",
"bill_date": "2025-08-01",
"due_date": "2025-08-24",
"lines": [
{
"tags": [
{
"id": "8355",
"name": "Project A",
"group": 727
}
],
"account": "2622",
"account_name": "6700 - Office Expenses",
"amount": 10000,
"description": "1x Large Expense Line",
"bill_customer": "34182",
"bill_customer_name": "ABC Bead Supply",
"department": "35",
"department_name": "Engineering"
}
],
"entity": "54",
"entity_name": "Top Level",
"entity_currency": "USD",
"currency": "USD",
"exchange_rate_book": 1,
"exchange_rate": 1,
"vendor": "34182",
"vendor_name": "ABC Bead Supply",
"bill_number": "1234567",
"item_date": "2025-08-01",
"message_on_bill": "A really big expense",
"mailing_address": "1234 Campground Road. San Francisco CA 98765"
}'
{
"id": 31894,
"lines": [
{
"id": 298626,
"account_number": "6700",
"account_name": "6700 - Office Expenses",
"department_name": "Engineering",
"bill_customer_name": "ABC Bead Supply",
"tags": [
{
"id": 8355,
"group_name": "Projects",
"parent_name": null,
"parent": null,
"name": "Project A",
"created_at": "2025-07-17T16:21:02+0000",
"last_modified_at": "2025-07-17T16:21:02+0000",
"group": 727
}
],
"amortization_schedule": [],
"description": "1x Large Expense Line",
"amount": 10000,
"tax": 0,
"tax_description": null,
"source": null,
"source_id": null,
"currency": "USD",
"created_at": "2025-07-25T04:24:32+0000",
"last_modified_at": "2025-07-25T04:24:32+0000",
"account": 2622,
"bill_customer": 34182,
"department": 35
}
],
"payments": [],
"payment_journal_entries": [],
"status": "open",
"past_due_days": null,
"entity_name": "Top Level",
"entity_currency": "USD",
"vendor_name": "ABC Bead Supply",
"attachments": [],
"total_amount": 10000,
"amount_due": 10000,
"amount_paid": 0,
"item_date": "2025-08-01",
"voided_date": null,
"search_vector": null,
"search_text": null,
"mailing_address": "1234 Campground Road. San Francisco CA 98765",
"terms": "net_30",
"bill_number": "1234567",
"bill_date": "2025-08-01",
"due_date": "2025-08-24",
"paid_date": null,
"message_on_bill": "A really big expense",
"source_id": null,
"source": null,
"payment_status": "open",
"currency": "USD",
"exchange_rate": 1,
"exchange_rate_book": 1,
"created_at": "2025-07-25T04:24:32+0000",
"last_modified_at": "2025-07-25T04:24:32+0000",
"entity": 54,
"vendor": 34182,
"journal_entry": 7491951,
"source_file": null,
"tax_rate": null,
"voided_journal_entry": null
}
Token-based authentication with required prefix "Token"
The response is of type object
.