60% Off for 3 Months

Journal Entries

Access Requirements

Access

Requires Authorization

Scopes

user:journal_entries:read
user:journal_entries:write

What are Journal Entries?

Journal entries are the building blocks of financial accounting and record all transactions in your business. In FreshBooks, all your activities - sending invoices, accepting payments, and creating credits and expenses - are compiled into journal entries. 

Request Details

Like most requests, you'll need the <accountId> for the FreshBooks account that you'll be querying. To find out what accounts the user using your app has access to, it's good to make a query related to the identity model 

Before creating a journal entry you will need to query the Get Accounts endpoint. This will return an array of accounts. The account_uuid will be used when adding a journal entry. New entries must include the account_uuid, and the debit or credit amounts.

Create Adjustment Journal Entry

Headers

Name

Field

Description

x-api-version

string

Required header. Must be set to 2023-09-25

Field Descriptions

Field

Type

Description

manualJournalEntry

object

Adjustment Journal Entry object containing all the details of the journal entry

userEnteredDate

object

Subfields: year, month, day

name

string

Name of the adjustment journal entry

journalEntryNumber

string

Journal entry number

description

string

Description of the journal entry

details

array[object]

List of the journal entry line items

┆→ accountId

uuid

UUID of the Account associated with the line item

┆→ amount

object

Amount details of line item containing amount and currency

┆┆→ amount

float

Amount of the journal entry line item

┆┆→ code

string

Currency code of the amount

┆→ type

string

Type of the journal entry line item. Possible values: TYPE_CREDIT, TYPE_DEBIT

Get Adjustment Journal Entries

Headers

Name

Field

Description

x-api-version

string

Required header. Must be set to 2023-09-25

Available Filters

Filter Type

Name

Type

Description

Equals

page_number

int

The starting page number

Equals

page_size

int

The size of each page

Field Descriptions

Field

Type

Description

manualJournalEntries

array[object]

List of journal entries retrieved

id

uuid

UUID of the Adjustment Journal Entry

userEnteredDate

object

Subfields: year, month, day

name

string

Name of the adjustment journal entry

journalEntryNumber

string

Journal entry number

description

string

Description of the journal entry

details

array[object]

List of the journal entry line items

┆→ accountId

uuid

UUID of the Account associated with the line item

┆→ amount

object

Amount details of line item containing amount and currency

┆┆→ amount

float

Amount of the journal entry line item

┆┆→ code

string

Currency code of the amount

┆→ type

string

Type of the journal entry line item. Possible values: TYPE_CREDIT, TYPE_DEBIT

┆→ manualJournalEntryId

uuid

Id of the journal entry. Links the line item to the adjustment journal entry.

Update an Adjustment Journal Entry

Headers

Name

Field

Description

x-api-version

string

Required header. Must be set to 2023-09-25

Field Descriptions

Field

Type

Description

manualJournalEntry

object

Adjustment Journal Entry object containing all the details of the journal entry

↳ id

uuid

UUID of an existing Adjustment Journal Entry

↳ userEnteredDate

object

Subfields: year, month, day

↳ name

string

Name of the adjustment journal entry

↳ journalEntryNumber

string

Journal entry number

↳ description

string

Description of the journal entry

↳  details

array[object]

List of the journal entry line items

┆→ accountId

uuid

UUID of the Account associated with the line item

┆→ amount

object

Amount details of line item containing amount and currency

┆┆→ amount

float

Amount of the journal entry line item

┆┆→ code

string

Currency code of the amount

┆→ type

string

Type of the journal entry line item. Possible values: TYPE_CREDIT, TYPE_DEBIT

┆→ manualJournalEntryId

uuid

Id of the journal entry. Links the line item to the adjustment journal entry.

Get Journal Entries by Account

Available Filters

Filter Type

Name

Type

Description

Equals

page

int

The starting page number

Equals

per_page

int

The size of each page

Between

start_date

date

Created during or after the given date

Between

end_date

date

Created during or before the given date

Equals

include_children

boolean

Include journal entries in child accounts

Equals

currency_code

string

Journal entries using the given currency as primary currency

Equals

use_ledger_entries

boolean

Required field. Must be set to true

Field Descriptions

Field

Type

Description

page

int

Current page number returned

pages

int

Number of pages returned

per_page

int

Number of journal entries returned per page

total

int

Total journal entries returned

account_entry_details

array[object]

List of journal entry details

↳ id

int

Identifier of the journal entry

↳ detail_type

enum

Possible values: received

↳ name

string

References the original entity

↳ description

string

Description from the original entity

↳ entry

object

Entry details

┆→ id

int

Identifier of the journal entry line item

┆→ entryid

int

Identifier of the journal entry line item

┆→ clientid

int

Client ID if the journal entry is associated with a client. null if not.

┆→ expenseid

int

Expense ID if the journal entry is associated with an expense. null if not.

┆→ invoiceid

int

Invoice ID if the journal entry is associated with an invoice. null if not.

┆→ paymentid

int

Payment ID if the journal entry is associated with a payment. null if not.

┆→ incomeid

int

Income ID if the journal entry is associated with income. null if not.

┆→ creditid

int

Credit ID if the journal entry is associated with a credit. null if not.

┆→ accounting_systemid

string

System ID

↳ account

object

Amount details of line item containing amount and currency

┆→ uuid

uuid

UUID of the Account

┆→ name

string

Name of the Account

┆→ type

string

The type of account. Possible values: assetliabilityequityincomeexpense

┆→ number

string

Account number

┆→ parent_account_uuid

uuid

UUID of the parent account

↳ debit

object

Details about the debit. null if credit.

┆→ amount

string

Debit amount

┆→ code

string

Currency code of the debit

credit

object

Details about the credit. null if debit.

┆→ amount

string

Credit amount

┆→ code

string

Currency code of the credit

↳ balance

object

Account balance details

┆→ amount

string

Account balance after debit/credit

┆→ code

string

Currency code of the amount

accounting_systemid

string

System ID