Skip to content
× FreshBooks App Logo
FreshBooks
Official App
Free - Google Play
Get it
You're currently on our US site. Select your regional site here:

Journal Entries

Access Requirements

AccessRequires Authorization
Scopesuser: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 “sub_accountid” will be used when adding a journal entry. New entries must include the sub_accountid, and the debit or credit amounts.

Add Journal Entry


#Request
curl --location --request POST 'https://my.freshbooks.com/service/api/accounting/account/<account_id>/journal_entries/journal_entries' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer  <SET BEARER TOKEN>' \
--data-raw '{
   "journal_entry":{
      "details":[
         {
            "sub_accountid":"635974",
            "debit":"200"
         },
         {
            "sub_accountid":"635976",
            "credit":"200"
         }
      ],
      "currency_code":"USD",
      "description":"Here is a basic description of the journal entry made.",
      "name":"JournalEntry",
      "user_entered_date":"2019-04-20"
   }
}'

#Response
{
   "response":{
      "result":{
         "journal_entry":{
            "currency_code":"USD",
            "description":"Here is a basic description of the journal entry made.",
            "details":[
               {
                  "credit":null,
                  "currency_code":"USD",
                  "debit":"200",
                  "description":"Here is a basic description of the journal entry made.",
                  "detailid":2004224,
                  "id":2004224,
                  "name":"JournalEntry",
                  "sub_accountid":635974,
                  "user_entered_date":"2019-04-20"
               },
               {
                  "credit":"200",
                  "currency_code":"USD",
                  "debit":null,
                  "description":"Here is a basic description of the journal entry made.",
                  "detailid":2004226,
                  "id":2004226,
                  "name":"JournalEntry",
                  "sub_accountid":635976,
                  "user_entered_date":"2019-04-20"
               }
            ],
            "entryid":941370,
            "id":941370,
            "name":"JournalEntry",
            "user_entered_date":"2019-04-20"
         }
      }
   }
}

Get Journal Entry Details


#REQUEST
curl --location --request GET 'https://api.freshbooks.com/accounting/account/<account_id>/journal_entries/journal_entry_details' \
--header 'Authorization: Bearer <SET BEARER TOKEN>'


#Response

{
   "response":{
      "result":{
         "journal_entry_details":[
            {
               "account":{
                  "account_name":"Operating Expenses",
                  "account_number":"6000",
                  "account_type":"expense",
                  "accountid":545908,
                  "accounting_systemid":"wkMd2g",
                  "id":545908
               },
               "accounting_systemid":"wkMd2g",
               "balance":{
                  "amount":"70.56",
                  "code":"USD"
               },
               "credit":null,
               "debit":{
                  "amount":"70.56",
                  "code":"USD"
               },
               "description":"Purchased Gasoline for deliveries",
               "detail_type":"expense",
               "detailid":1305458,
               "entry":{
                  "accounting_systemid":"wkMd2g",
                  "clientid":null,
                  "creditid":null,
                  "entryid":625716,
                  "expenseid":1825568,
                  "id":625716,
                  "incomeid":null,
                  "invoiceid":null,
                  "paymentid":null
               },
               "id":1305458,
               "name":"Expense",
               "sub_account":{
                  "account_sub_name":"Car & Truck Expenses",
                  "account_sub_number":"3",
                  "accounting_systemid":"wkMd2g",
                  "id":849638,
                  "parentid":545908,
                  "sub_accountid":849638
               },
               "user_entered_date":"2019-04-24"
            },
            {
               "account":{
                  "account_name":"Taxes Paid",
                  "account_number":"6001",
                  "account_type":"expense",
                  "accountid":545910,
                  "accounting_systemid":"wkMd2g",
                  "id":545910
               },
               "accounting_systemid":"wkMd2g",
               "balance":{
                  "amount":"9.17",
                  "code":"USD"
               },
               "credit":null,
               "debit":{
                  "amount":"9.17",
                  "code":"USD"
               },
               "description":null,
               "detail_type":"tax",
               "detailid":1305460,
               "entry":{
                  "accounting_systemid":"wkMd2g",
                  "clientid":null,
                  "creditid":null,
                  "entryid":625716,
                  "expenseid":1825568,
                  "id":625716,
                  "incomeid":null,
                  "invoiceid":null,
                  "paymentid":null
               },
               "id":1305460,
               "name":"Expense",
               "sub_account":{
                  "account_sub_name":"other tax",
                  "account_sub_number":"2",
                  "accounting_systemid":"wkMd2g",
                  "id":849640,
                  "parentid":545910,
                  "sub_accountid":849640
               },
               "user_entered_date":"2019-04-24"
            },
            {
               "account":{
                  "account_name":"Cash",
                  "account_number":"1000",
                  "account_type":"asset",
                  "accountid":545882,
                  "accounting_systemid":"wkMd2g",
                  "id":545882
               },
               "accounting_systemid":"wkMd2g",
               "balance":{
                  "amount":"-79.73",
                  "code":"USD"
               },
               "credit":{
                  "amount":"79.73",
                  "code":"USD"
               },
               "debit":null,
               "description":"Purchased Gasoline for deliveries",
               "detail_type":"expense",
               "detailid":1305462,
               "entry":{
                  "accounting_systemid":"wkMd2g",
                  "clientid":null,
                  "creditid":null,
                  "entryid":625716,
                  "expenseid":1825568,
                  "id":625716,
                  "incomeid":null,
                  "invoiceid":null,
                  "paymentid":null
               },
               "id":1305462,
               "name":"Expense",
               "sub_account":{
                  "account_sub_name":"Petty Cash",
                  "account_sub_number":"1",
                  "accounting_systemid":"wkMd2g",
                  "id":635972,
                  "parentid":545882,
                  "sub_accountid":635972
               },
               "user_entered_date":"2019-04-24"
            },
            {
               "account":{
                  "account_name":"Cash",
                  "account_number":"1000",
                  "account_type":"asset",
                  "accountid":545882,
                  "accounting_systemid":"wkMd2g",
                  "id":545882
               },
               "accounting_systemid":"wkMd2g",
               "balance":{
                  "amount":"500.00",
                  "code":"USD"
               },
               "credit":null,
               "debit":{
                  "amount":"500.00",
                  "code":"USD"
               },
               "description":"This is deferred revenue",
               "detail_type":"adjustment",
               "detailid":1273242,
               "entry":{
                  "accounting_systemid":"wkMd2g",
                  "clientid":null,
                  "creditid":null,
                  "entryid":610564,
                  "expenseid":null,
                  "id":610564,
                  "incomeid":null,
                  "invoiceid":null,
                  "paymentid":null
               },
               "id":1273242,
               "name":"Deferred Revenue",
               "sub_account":{
                  "account_sub_name":"Petty Cash",
                  "account_sub_number":"1",
                  "accounting_systemid":"wkMd2g",
                  "id":635972,
                  "parentid":545882,
                  "sub_accountid":635972
               },
               "user_entered_date":"2019-04-24"
            },
            {
               "account":{
                  "account_name":"Accounts Receivable",
                  "account_number":"1200",
                  "account_type":"asset",
                  "accountid":545884,
                  "accounting_systemid":"wkMd2g",
                  "id":545884
               },
               "accounting_systemid":"wkMd2g",
               "balance":{
                  "amount":"-500.00",
                  "code":"USD"
               },
               "credit":{
                  "amount":"500.00",
                  "code":"USD"
               },
               "debit":null,
               "description":"This is deferred revenue",
               "detail_type":"adjustment",
               "detailid":1273244,
               "entry":{
                  "accounting_systemid":"wkMd2g",
                  "clientid":null,
                  "creditid":null,
                  "entryid":610564,
                  "expenseid":null,
                  "id":610564,
                  "incomeid":null,
                  "invoiceid":null,
                  "paymentid":null
               },
               "id":1273244,
               "name":"Deferred Revenue",
               "sub_account":{
                  "account_sub_name":"Accounts Receivable",
                  "account_sub_number":"1",
                  "accounting_systemid":"wkMd2g",
                  "id":635974,
                  "parentid":545884,
                  "sub_accountid":635974
               },
               "user_entered_date":"2019-04-24"
            },
            {
               "account":{
                  "account_name":"Operating Expenses",
                  "account_number":"6000",
                  "account_type":"expense",
                  "accountid":545908,
                  "accounting_systemid":"wkMd2g",
                  "id":545908
               },
               "accounting_systemid":"wkMd2g",
               "balance":{
                  "amount":"70.56",
                  "code":"USD"
               },
               "credit":null,
               "debit":{
                  "amount":"70.56",
                  "code":"USD"
               },
               "description":"Purchased Gasoline for deliveries",
               "detail_type":"expense",
               "detailid":1305504,
               "entry":{
                  "accounting_systemid":"wkMd2g",
                  "clientid":null,
                  "creditid":null,
                  "entryid":625738,
                  "expenseid":1825574,
                  "id":625738,
                  "incomeid":null,
                  "invoiceid":null,
                  "paymentid":null
               },
               "id":1305504,
               "name":"Expense",
               "sub_account":{
                  "account_sub_name":"Car & Truck Expenses",
                  "account_sub_number":"3",
                  "accounting_systemid":"wkMd2g",
                  "id":849638,
                  "parentid":545908,
                  "sub_accountid":849638
               },
               "user_entered_date":"2019-04-24"
            },
            {
               "account":{
                  "account_name":"Taxes Paid",
                  "account_number":"6001",
                  "account_type":"expense",
                  "accountid":545910,
                  "accounting_systemid":"wkMd2g",
                  "id":545910
               },
               "accounting_systemid":"wkMd2g",
               "balance":{
                  "amount":"9.17",
                  "code":"USD"
               },
               "credit":null,
               "debit":{
                  "amount":"9.17",
                  "code":"USD"
               },
               "description":null,
               "detail_type":"tax",
               "detailid":1305506,
               "entry":{
                  "accounting_systemid":"wkMd2g",
                  "clientid":null,
                  "creditid":null,
                  "entryid":625738,
                  "expenseid":1825574,
                  "id":625738,
                  "incomeid":null,
                  "invoiceid":null,
                  "paymentid":null
               },
               "id":1305506,
               "name":"Expense",
               "sub_account":{
                  "account_sub_name":"other tax",
                  "account_sub_number":"2",
                  "accounting_systemid":"wkMd2g",
                  "id":849640,
                  "parentid":545910,
                  "sub_accountid":849640
               },
               "user_entered_date":"2019-04-24"
            },
            {
               "account":{
                  "account_name":"Cash",
                  "account_number":"1000",
                  "account_type":"asset",
                  "accountid":545882,
                  "accounting_systemid":"wkMd2g",
                  "id":545882
               },
               "accounting_systemid":"wkMd2g",
               "balance":{
                  "amount":"-79.73",
                  "code":"USD"
               },
               "credit":{
                  "amount":"79.73",
                  "code":"USD"
               },
               "debit":null,
               "description":"Purchased Gasoline for deliveries",
               "detail_type":"expense",
               "detailid":1305508,
               "entry":{
                  "accounting_systemid":"wkMd2g",
                  "clientid":null,
                  "creditid":null,
                  "entryid":625738,
                  "expenseid":1825574,
                  "id":625738,
                  "incomeid":null,
                  "invoiceid":null,
                  "paymentid":null
               },
               "id":1305508,
               "name":"Expense",
               "sub_account":{
                  "account_sub_name":"Petty Cash",
                  "account_sub_number":"1",
                  "accounting_systemid":"wkMd2g",
                  "id":635972,
                  "parentid":545882,
                  "sub_accountid":635972
               },
               "user_entered_date":"2019-04-24"
            },
            {
               "account":{
                  "account_name":"Accounts Receivable",
                  "account_number":"1200",
                  "account_type":"asset",
                  "accountid":545884,
                  "accounting_systemid":"wkMd2g",
                  "id":545884
               },
               "accounting_systemid":"wkMd2g",
               "balance":{
                  "amount":"0.00",
                  "code":"USD"
               },
               "credit":null,
               "debit":{
                  "amount":"0.00",
                  "code":"USD"
               },
               "description":"",
               "detail_type":"total",
               "detailid":1269690,
               "entry":{
                  "accounting_systemid":"wkMd2g",
                  "clientid":32082,
                  "creditid":null,
                  "entryid":608824,
                  "expenseid":null,
                  "id":608824,
                  "incomeid":null,
                  "invoiceid":29604,
                  "paymentid":null
               },
               "id":1269690,
               "name":"Invoice 0000009",
               "sub_account":{
                  "account_sub_name":"Accounts Receivable",
                  "account_sub_number":"1",
                  "accounting_systemid":"wkMd2g",
                  "id":635974,
                  "parentid":545884,
                  "sub_accountid":635974
               },
               "user_entered_date":"2019-04-22"
            },
            {
               "account":{
                  "account_name":"Accounts Receivable",
                  "account_number":"1200",
                  "account_type":"asset",
                  "accountid":545884,
                  "accounting_systemid":"wkMd2g",
                  "id":545884
               },
               "accounting_systemid":"wkMd2g",
               "balance":{
                  "amount":"180.00",
                  "code":"USD"
               },
               "credit":null,
               "debit":{
                  "amount":"180.00",
                  "code":"USD"
               },
               "description":"",
               "detail_type":"total",
               "detailid":1311502,
               "entry":{
                  "accounting_systemid":"wkMd2g",
                  "clientid":31006,
                  "creditid":null,
                  "entryid":628326,
                  "expenseid":null,
                  "id":628326,
                  "incomeid":null,
                  "invoiceid":34420,
                  "paymentid":null
               },
               "id":1311502,
               "name":"Invoice 0000013",
               "sub_account":{
                  "account_sub_name":"Accounts Receivable",
                  "account_sub_number":"1",
                  "accounting_systemid":"wkMd2g",
                  "id":635974,
                  "parentid":545884,
                  "sub_accountid":635974
               },
               "user_entered_date":"2019-04-20"
            },
            {
               "account":{
                  "account_name":"Revenue",
                  "account_number":"4000",
                  "account_type":"income",
                  "accountid":545904,
                  "accounting_systemid":"wkMd2g",
                  "id":545904
               },
               "accounting_systemid":"wkMd2g",
               "balance":{
                  "amount":"80.00",
                  "code":"USD"
               },
               "credit":{
                  "amount":"80.00",
                  "code":"USD"
               },
               "debit":null,
               "description":"Climbing Helmet",
               "detail_type":"sales",
               "detailid":1311504,
               "entry":{
                  "accounting_systemid":"wkMd2g",
                  "clientid":31006,
                  "creditid":null,
                  "entryid":628326,
                  "expenseid":null,
                  "id":628326,
                  "incomeid":null,
                  "invoiceid":34420,
                  "paymentid":null
               },
               "id":1311504,
               "name":"Invoice 0000013",
               "sub_account":{
                  "account_sub_name":"Sales",
                  "account_sub_number":"1",
                  "accounting_systemid":"wkMd2g",
                  "id":636000,
                  "parentid":545904,
                  "sub_accountid":636000
               },
               "user_entered_date":"2019-04-20"
            },
            {
               "account":{
                  "account_name":"Revenue",
                  "account_number":"4000",
                  "account_type":"income",
                  "accountid":545904,
                  "accounting_systemid":"wkMd2g",
                  "id":545904
               },
               "accounting_systemid":"wkMd2g",
               "balance":{
                  "amount":"100.00",
                  "code":"USD"
               },
               "credit":{
                  "amount":"100.00",
                  "code":"USD"
               },
               "debit":null,
               "description":"Belay Device",
               "detail_type":"sales",
               "detailid":1311506,
               "entry":{
                  "accounting_systemid":"wkMd2g",
                  "clientid":31006,
                  "creditid":null,
                  "entryid":628326,
                  "expenseid":null,
                  "id":628326,
                  "incomeid":null,
                  "invoiceid":34420,
                  "paymentid":null
               },
               "id":1311506,
               "name":"Invoice 0000013",
               "sub_account":{
                  "account_sub_name":"Sales",
                  "account_sub_number":"1",
                  "accounting_systemid":"wkMd2g",
                  "id":636000,
                  "parentid":545904,
                  "sub_accountid":636000
               },
               "user_entered_date":"2019-04-20"
            },
            {
               "account":{
                  "account_name":"Accounts Receivable",
                  "account_number":"1200",
                  "account_type":"asset",
                  "accountid":545884,
                  "accounting_systemid":"wkMd2g",
                  "id":545884
               },
               "accounting_systemid":"wkMd2g",
               "balance":{
                  "amount":"200.00",
                  "code":"USD"
               },
               "credit":null,
               "debit":{
                  "amount":"200.00",
                  "code":"USD"
               },
               "description":"Here is a basic description of the journal entry made.",
               "detail_type":"adjustment",
               "detailid":1313598,
               "entry":{
                  "accounting_systemid":"wkMd2g",
                  "clientid":null,
                  "creditid":null,
                  "entryid":629310,
                  "expenseid":null,
                  "id":629310,
                  "incomeid":null,
                  "invoiceid":null,
                  "paymentid":null
               },
               "id":1313598,
               "name":"JournalEntry",
               "sub_account":{
                  "account_sub_name":"Accounts Receivable",
                  "account_sub_number":"1",
                  "accounting_systemid":"wkMd2g",
                  "id":635974,
                  "parentid":545884,
                  "sub_accountid":635974
               },
               "user_entered_date":"2019-04-20"
            },
            {
               "account":{
                  "account_name":"Accounts Receivable",
                  "account_number":"1200",
                  "account_type":"asset",
                  "accountid":545884,
                  "accounting_systemid":"wkMd2g",
                  "id":545884
               },
               "accounting_systemid":"wkMd2g",
               "balance":{
                  "amount":"-200.00",
                  "code":"USD"
               },
               "credit":{
                  "amount":"200.00",
                  "code":"USD"
               },
               "debit":null,
               "description":"Here is a basic description of the journal entry made.",
               "detail_type":"adjustment",
               "detailid":1313600,
               "entry":{
                  "accounting_systemid":"wkMd2g",
                  "clientid":null,
                  "creditid":null,
                  "entryid":629310,
                  "expenseid":null,
                  "id":629310,
                  "incomeid":null,
                  "invoiceid":null,
                  "paymentid":null
               },
               "id":1313600,
               "name":"JournalEntry",
               "sub_account":{
                  "account_sub_name":"Customer Deposits",
                  "account_sub_number":"2",
                  "accounting_systemid":"wkMd2g",
                  "id":635976,
                  "parentid":545884,
                  "sub_accountid":635976
               },
               "user_entered_date":"2019-04-20"
            },
            {
               "account":{
                  "account_name":"Accounts Receivable",
                  "account_number":"1200",
                  "account_type":"asset",
                  "accountid":545884,
                  "accounting_systemid":"wkMd2g",
                  "id":545884
               },
               "accounting_systemid":"wkMd2g",
               "balance":{
                  "amount":"3300.00",
                  "code":"USD"
               },
               "credit":null,
               "debit":{
                  "amount":"3300.00",
                  "code":"USD"
               },
               "description":"",
               "detail_type":"total",
               "detailid":1033808,
               "entry":{
                  "accounting_systemid":"wkMd2g",
                  "clientid":31006,
                  "creditid":null,
                  "entryid":496504,
                  "expenseid":null,
                  "id":496504,
                  "incomeid":null,
                  "invoiceid":26398,
                  "paymentid":null
               },
               "id":1033808,
               "name":"Invoice 0000005",
               "sub_account":{
                  "account_sub_name":"Accounts Receivable",
                  "account_sub_number":"1",
                  "accounting_systemid":"wkMd2g",
                  "id":635974,
                  "parentid":545884,
                  "sub_accountid":635974
               },
               "user_entered_date":"2019-04-20"
            }
         ],
         "page":1,
         "pages":7,
         "per_page":15,
         "total":96
      }
   }
}

Get Accounts



#Request
curl --location --request GET 'https://api.freshbooks.com/accounting/account/<account_id>/journal_entry_accounts/journal_entry_accounts' \
--header 'Authorization: Bearer <SET BEARER TOKEN>'

#Response
{
    "response": {
        "result": {
            "journal_entry_accounts": [
                {
                    "account_name": "Cash",
                    "account_number": "1000",
                    "account_type": "asset",
                    "accountid": 930331,
                    "balance": "0",
                    "currency_code": "USD",
                    "id": 930331,
                    "sub_accounts": [
                        {
                            "account_sub_name": "Petty Cash",
                            "account_sub_number": "1",
                            "account_type": "asset",
                            "balance": "0",
                            "currency_code": "USD",
                            "custom": false,
                            "id": 1192531,
                            "parentid": 930331,
                            "sub_accountid": 1192531
                        }
                    ]
                },
                {
                    "account_name": "Accounts Receivable",
                    "account_number": "1200",
                    "account_type": "asset",
                    "accountid": 930333,
                    "balance": "0",
                    "currency_code": "USD",
                    "id": 930333,
                    "sub_accounts": [
                        {
                            "account_sub_name": "Accounts Receivable",
                            "account_sub_number": "1",
                            "account_type": "asset",
                            "balance": "0",
                            "currency_code": "USD",
                            "custom": false,
                            "id": 1192533,
                            "parentid": 930333,
                            "sub_accountid": 1192533
                        },
                        {
                            "account_sub_name": "Customer Deposits",
                            "account_sub_number": "2",
                            "account_type": "asset",
                            "balance": "0",
                            "currency_code": "USD",
                            "custom": false,
                            "id": 1192535,
                            "parentid": 930333,
                            "sub_accountid": 1192535
                        }
                    ]
                },
                {
                    "account_name": "Property, Plant, and Equipment",
                    "account_number": "1500",
                    "account_type": "asset",
                    "accountid": 930335,
                    "balance": "0",
                    "currency_code": "USD",
                    "id": 930335,
                    "sub_accounts": [
                        {
                            "account_sub_name": "Office Equipment",
                            "account_sub_number": "1",
                            "account_type": "asset",
                            "balance": "0",
                            "currency_code": "USD",
                            "custom": false,
                            "id": 1192537,
                            "parentid": 930335,
                            "sub_accountid": 1192537
                        },
                        {
                            "account_sub_name": "Furniture",
                            "account_sub_number": "2",
                            "account_type": "asset",
                            "balance": "0",
                            "currency_code": "USD",
                            "custom": false,
                            "id": 1192539,
                            "parentid": 930335,
                            "sub_accountid": 1192539
                        }
                    ]
                },
                {
                    "account_name": "Deferred Discounts",
                    "account_number": "1600",
                    "account_type": "asset",
                    "accountid": 930337,
                    "balance": "0",
                    "currency_code": "USD",
                    "id": 930337,
                    "sub_accounts": [
                        {
                            "account_sub_name": "Deferred Discounts",
                            "account_sub_number": "1",
                            "account_type": "asset",
                            "balance": "0",
                            "currency_code": "USD",
                            "custom": false,
                            "id": 1192541,
                            "parentid": 930337,
                            "sub_accountid": 1192541
                        }
                    ]
                },
                {
                    "account_name": "Accounts Payable",
                    "account_number": "2000",
                    "account_type": "liability",
                    "accountid": 930339,
                    "balance": "0",
                    "currency_code": "USD",
                    "id": 930339,
                    "sub_accounts": [
                        {
                            "account_sub_name": "Accrued Payroll",
                            "account_sub_number": "1",
                            "account_type": "liability",
                            "balance": "0",
                            "currency_code": "USD",
                            "custom": false,
                            "id": 1192543,
                            "parentid": 930339,
                            "sub_accountid": 1192543
                        },
                        {
                            "account_sub_name": "Accrued Rent",
                            "account_sub_number": "2",
                            "account_type": "liability",
                            "balance": "0",
                            "currency_code": "USD",
                            "custom": false,
                            "id": 1192545,
                            "parentid": 930339,
                            "sub_accountid": 1192545
                        },
                        {
                            "account_sub_name": "Accounts Payable",
                            "account_sub_number": "3",
                            "account_type": "liability",
                            "balance": "0",
                            "currency_code": "USD",
                            "custom": false,
                            "id": 1192547,
                            "parentid": 930339,
                            "sub_accountid": 1192547
                        }
                    ]
                },
                {
                    "account_name": "Taxes Payable",
                    "account_number": "2001",
                    "account_type": "liability",
                    "accountid": 930341,
                    "balance": "0",
                    "currency_code": "USD",
                    "id": 930341,
                    "sub_accounts": [
                        {
                            "account_sub_name": "HFT",
                            "account_sub_number": "1",
                            "account_type": "liability",
                            "balance": "0",
                            "currency_code": "USD",
                            "custom": false,
                            "id": 1935217,
                            "parentid": 930341,
                            "sub_accountid": 1935217
                        },
                        {
                            "account_sub_name": "HST",
                            "account_sub_number": "2",
                            "account_type": "liability",
                            "balance": "0",
                            "currency_code": "USD",
                            "custom": false,
                            "id": 1935219,
                            "parentid": 930341,
                            "sub_accountid": 1935219
                        },
                        {
                            "account_sub_name": "HFTHST",
                            "account_sub_number": "3",
                            "account_type": "liability",
                            "balance": "0",
                            "currency_code": "USD",
                            "custom": false,
                            "id": 1938051,
                            "parentid": 930341,
                            "sub_accountid": 1938051
                        }
                    ]
                },
                {
                    "account_name": "Unearned Revenue",
                    "account_number": "2002",
                    "account_type": "liability",
                    "accountid": 930343,
                    "balance": "0",
                    "currency_code": "USD",
                    "id": 930343,
                    "sub_accounts": [
                        {
                            "account_sub_name": "Unearned Revenue",
                            "account_sub_number": "1",
                            "account_type": "liability",
                            "balance": "0",
                            "currency_code": "USD",
                            "custom": false,
                            "id": 1192549,
                            "parentid": 930343,
                            "sub_accountid": 1192549
                        }
                    ]
                },
                {
                    "account_name": "Customer Credit",
                    "account_number": "2003",
                    "account_type": "liability",
                    "accountid": 930345,
                    "balance": "0",
                    "currency_code": "USD",
                    "id": 930345,
                    "sub_accounts": [
                        {
                            "account_sub_name": "Customer Credit",
                            "account_sub_number": "1",
                            "account_type": "liability",
                            "balance": "0",
                            "currency_code": "USD",
                            "custom": false,
                            "id": 1192551,
                            "parentid": 930345,
                            "sub_accountid": 1192551
                        }
                    ]
                },
                {
                    "account_name": "Credit Cards",
                    "account_number": "2004",
                    "account_type": "liability",
                    "accountid": 930347,
                    "balance": "0",
                    "currency_code": "USD",
                    "id": 930347,
                    "sub_accounts": []
                },
                {
                    "account_name": "Owner's Equity",
                    "account_number": "3000",
                    "account_type": "equity",
                    "accountid": 930349,
                    "balance": "0",
                    "currency_code": "USD",
                    "id": 930349,
                    "sub_accounts": [
                        {
                            "account_sub_name": "Owner's Equity",
                            "account_sub_number": "1",
                            "account_type": "equity",
                            "balance": "0",
                            "currency_code": "USD",
                            "custom": false,
                            "id": 1192553,
                            "parentid": 930349,
                            "sub_accountid": 1192553
                        },
                        {
                            "account_sub_name": "Common Stock",
                            "account_sub_number": "2",
                            "account_type": "equity",
                            "balance": "0",
                            "currency_code": "USD",
                            "custom": false,
                            "id": 1192555,
                            "parentid": 930349,
                            "sub_accountid": 1192555
                        },
                        {
                            "account_sub_name": "Retained Earnings",
                            "account_sub_number": "3",
                            "account_type": "equity",
                            "balance": "0",
                            "currency_code": "USD",
                            "custom": false,
                            "id": 1192557,
                            "parentid": 930349,
                            "sub_accountid": 1192557
                        }
                    ]
                },
                {
                    "account_name": "Opening Balance",
                    "account_number": "3001",
                    "account_type": "equity",
                    "accountid": 930351,
                    "balance": "0",
                    "currency_code": "USD",
                    "id": 930351,
                    "sub_accounts": [
                        {
                            "account_sub_name": "Opening Balance Adjustments",
                            "account_sub_number": "4",
                            "account_type": "equity",
                            "balance": "0",
                            "currency_code": "USD",
                            "custom": false,
                            "id": 1192559,
                            "parentid": 930351,
                            "sub_accountid": 1192559
                        }
                    ]
                },
                {
                    "account_name": "Revenue",
                    "account_number": "4000",
                    "account_type": "income",
                    "accountid": 930353,
                    "balance": "0",
                    "currency_code": "USD",
                    "id": 930353,
                    "sub_accounts": [
                        {
                            "account_sub_name": "Sales",
                            "account_sub_number": "1",
                            "account_type": "income",
                            "balance": "0",
                            "currency_code": "USD",
                            "custom": false,
                            "id": 1192561,
                            "parentid": 930353,
                            "sub_accountid": 1192561
                        },
                        {
                            "account_sub_name": "Billed Expenses",
                            "account_sub_number": "2",
                            "account_type": "income",
                            "balance": "0",
                            "currency_code": "USD",
                            "custom": false,
                            "id": 1192563,
                            "parentid": 930353,
                            "sub_accountid": 1192563
                        },
                        {
                            "account_sub_name": "Discounts",
                            "account_sub_number": "3",
                            "account_type": "income",
                            "balance": "0",
                            "currency_code": "USD",
                            "custom": false,
                            "id": 1192565,
                            "parentid": 930353,
                            "sub_accountid": 1192565
                        },
                        {
                            "account_sub_name": "Sales Credit",
                            "account_sub_number": "4",
                            "account_type": "income",
                            "balance": "0",
                            "currency_code": "USD",
                            "custom": false,
                            "id": 1192567,
                            "parentid": 930353,
                            "sub_accountid": 1192567
                        }
                    ]
                },
                {
                    "account_name": "Cost of Goods Sold",
                    "account_number": "5000",
                    "account_type": "expense",
                    "accountid": 930355,
                    "balance": "0",
                    "currency_code": "USD",
                    "id": 930355,
                    "sub_accounts": []
                },
                {
                    "account_name": "Operating Expenses",
                    "account_number": "6000",
                    "account_type": "expense",
                    "accountid": 930357,
                    "balance": "0",
                    "currency_code": "USD",
                    "id": 930357,
                    "sub_accounts": [
                        {
                            "account_sub_name": "Other Expenses",
                            "account_sub_number": "1",
                            "account_type": "expense",
                            "balance": "0",
                            "currency_code": "USD",
                            "custom": false,
                            "id": 1936445,
                            "parentid": 930357,
                            "sub_accountid": 1936445
                        }
                    ]
                },
                {
                    "account_name": "Taxes Paid",
                    "account_number": "6001",
                    "account_type": "expense",
                    "accountid": 930359,
                    "balance": "0",
                    "currency_code": "USD",
                    "id": 930359,
                    "sub_accounts": []
                }
            ],
            "page": 1,
            "pages": 1,
            "per_page": 15,
            "total": 15
        }
    }
}