Skip to main content
All requests in this flow assume you have a valid access token attached in your request headers. See our authentication guide for more information.

Creating a Journal Entry

This section will guide you through the process of creating a single entity journal entry in Campfire.
1

Fetch related data

We’ll need to grab some object references for related objects to create our journal. We’ll need to pass in the id’s of the related objects where applicable in the journal creation request. Linked here are the filter endpoints for the applicable objects. These include:
2

Assemble the request

We can now create our request body by filling in the related fields. Here are the required fields:Transaction Fields:
Each transaction can only have either it’s debit (debit_amount_native, debit_amount_book, debit_amount) or credit (credit_amount_native, credit_amount_book, credit_amount) amount set. But not both.
Example request body:
3

Post the journal entry

Now that we have the request we can post it via the Create Journal Entry endpoint.Congrats! You’ve created your first journal entry!

Creating an Intercompany Journal Entry

This section will guide you through the process of creating an intercompany journal entry in Campfire. It is largely the same as a regular journal, with a few distinct differences.
1

Fetch related data

We’ll need to grab some object references for related objects to create our journal. We’ll need to pass in the id’s of the related objects where applicable in the journal creation request. Linked here are the filter endpoints for the applicable objects. These include:
2

Assemble the request

We can now create our intercompany request body by filling in the related fields. Here are the required fields:
For intercompany journals, you must specify an entity for each transaction AND include an entities section with exchange rates for each entity involved.
Transaction Fields:Entities Section:
Each transaction can only have either its debit (debit_amount_native, debit_amount_book, debit_amount) or credit (credit_amount_native, credit_amount_book, credit_amount) amount set. But not both.
Example request body:
3

Post the intercompany journal entry

Now that we have the request we can post it via the Create Intercompany Journal Entry endpoint.Congrats! You’ve created your first intercompany journal entry!