How to create, modify, pay and void invoices 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" |
invoice_date | Accounting date for the invoice in YYYY-MM-DD format | "2025-07-01" |
due_date | Due date for the invoice in YYYY-MM-DD format | "2025-07-31" |
lines | Array of line items for the invoice | See line item fields below |
entity | ID from entity | "54" |
currency | Currency code | "USD" |
message_on_invoice | Message to display on invoice | "Invoice Message" |
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 |
client | ID from client | "24020" |
billing_address | Billing address | "Billing Address" |
shipping_address | Shipping address | "Shipping Address" |
contract | ID from contract (optional) | "24899" |
purchase_order_number | Purchase order number | "123456789" |
invoice_number | Invoice number | "1234567890" |
location_of_sale | Location of sale description | "Location of sale desc" |
item_date | Bill date in YYYY-MM-DD format | "2025-07-01" |
period_start | Period start date in YYYY-MM-DD format | "2025-07-01" |
period_end | Period end date in YYYY-MM-DD format | "2025-07-31" |
shipping_date | Shipping date in YYYY-MM-DD format | "2025-07-01" |
Field | Description | Example |
---|---|---|
service_date | Service date in YYYY-MM-DD format | "2025-07-01" |
amount | Line item amount | 300 |
product | ID from product | "3560" |
rate | Rate per unit | 15 |
description | Line item description | "Line desc" |
quantity | Quantity | 20 |
tax | Tax amount | 12 |
Post the invoice
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