How to create, modify, pay and void bills in Campfire
Fetch related data
Assemble the request
Field | Description | Example |
---|---|---|
terms | Payment terms (default is net_30, can be: 7, 10, 15, 20, 30, 40, 45, 60, 90, 105, 120 or due_on_receipt) | "net_30" |
bill_date | Accounting date for the bill in YYYY-MM-DD format | "2025-07-01" |
due_date | Due date for the bill in YYYY-MM-DD format | "2025-08-25" |
lines | Array of line items for the bill | See line item fields below |
entity | ID from entity | "5" |
currency | Currency code | "USD" |
exchange_rate_book | Exchange rate between transactional and entity currency (auto-computed if not provided) | 1 |
exchange_rate | Exchange rate between entity and consolidation currency (auto-computed if not provided) | 1.373 |
vendor | ID from vendor | "34182" |
bill_number | Bill number | "098765" |
item_date | Bill date in YYYY-MM-DD format | "2025-07-01" |
message_on_bill | Message to display on bill | "Bill Message" |
mailing_address | Free text address | "1234 Main St. San Francisco CA" |
Field | Description | Example |
---|---|---|
tags | Array of custom dimension field IDs (optional) | [{"id": "8114"}] |
account | ID from accounts (expense account) | "180564" |
amount | Line item amount | 10000 |
description | Line item description | "Line Desc" |
bill_customer | ID from vendor | "34182" |
department | ID from department (optional) | "35" |
Post the bill
Get a Journal & Transaction
Assembling the payment
Field | Description | Example |
---|---|---|
transaction_id | ID from transaction | "1234" |
amount | Payment amount | 10000 |
account | ID from account (If you want to categorize the transaction at the same time) | "1234" |
Post the payment