Ruby / New FreshBooks / Journal Entry Details
Back to Collection Items
require 'chilkat'
# This example assumes the Chilkat API to have been previously unlocked.
# See Global Unlock Sample for sample code.
http = Chilkat::CkHttp.new()
# Adds the "Authorization: Bearer <access_token>" header.
http.put_AuthToken("<access_token>")
sbResponseBody = Chilkat::CkStringBuilder.new()
success = http.QuickGetSb("https://api.freshbooks.com/accounting/account/{{accountId}}/journal_entries/journal_entry_details",sbResponseBody)
if (success == false)
print http.lastErrorText() + "\n";
exit
end
jResp = Chilkat::CkJsonObject.new()
jResp.LoadSb(sbResponseBody)
jResp.put_EmitCompact(false)
print "Response Body:" + "\n";
print jResp.emit() + "\n";
respStatusCode = http.get_LastStatus()
print "Response Status Code = " + respStatusCode.to_s() + "\n";
if (respStatusCode >= 400)
print "Response Header:" + "\n";
print http.lastHeader() + "\n";
print "Failed." + "\n";
exit
end
Curl Command
curl -X GET
-H "Authorization: Bearer <access_token>"
https://api.freshbooks.com/accounting/account/{{accountId}}/journal_entries/journal_entry_details
Postman Collection Item JSON
{
"name": "Journal Entry Details",
"request": {
"method": "GET",
"header": [
],
"url": {
"raw": "https://api.freshbooks.com/accounting/account/{{accountId}}/journal_entries/journal_entry_details",
"protocol": "https",
"host": [
"api",
"freshbooks",
"com"
],
"path": [
"accounting",
"account",
"{{accountId}}",
"journal_entries",
"journal_entry_details"
],
"query": [
{
"key": "search[sub_accountid]",
"value": "635976",
"description": "Refers to sub account associated in your Chart of Accounts",
"disabled": true
},
{
"key": "search[start_date]",
"value": "2019-01-01",
"disabled": true
},
{
"key": "search[end_date]",
"value": "2019-12-31",
"disabled": true
}
]
}
},
"response": [
{
"name": "Journal Entry Details",
"originalRequest": {
"method": "GET",
"header": [
],
"url": {
"raw": "https://my.freshbooks.com/service/api/accounting/account/{{accountId}}/journal_entries/journal_entry_details",
"protocol": "https",
"host": [
"my",
"freshbooks",
"com"
],
"path": [
"service",
"api",
"accounting",
"account",
"{{accountId}}",
"journal_entries",
"journal_entry_details"
],
"query": [
{
"key": "search%5Bsub_accountid%5D",
"value": "635976",
"description": "Refers to sub account associated in your Chart of Accounts",
"disabled": true
},
{
"key": "search%5Bstart_date%5D",
"value": "2019-01-01",
"disabled": true
},
{
"key": "search%5Bend_date%5D",
"value": "2019-12-31",
"disabled": true
}
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Server",
"value": "nginx"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "X-NewRelic-App-Data",
"value": "PxQBWV5TCBABVlVSAwEOVlcTGhE1AwE2QgNWEVlbQFtcCxYnRA9QFg1ZWU4DFVdfRgFPCkNFR0gOXkNBDAcPPVUMTBBRXUcIWQpME18AXwcKQkUYAgZMUlkIEwdEXkIUB1QUH1JKU0wBUQhVAAwNCgtRCVICUwNRSBsGTURUWlAAB1lTBQZUX1QCD1EBRE8EUQ5LB2U="
},
{
"key": "Access-Control-Allow-Origin",
"value": "*"
},
{
"key": "Expires",
"value": "Tue, 24 Apr 2018 18:46:40 GMT"
},
{
"key": "Cache-Control",
"value": "no-cache"
},
{
"key": "X-Frame-Options",
"value": "SAMEORIGIN"
},
{
"key": "Content-Encoding",
"value": "gzip"
},
{
"key": "Via",
"value": "1.1 google"
},
{
"key": "Via",
"value": "1.1 varnish"
},
{
"key": "Accept-Ranges",
"value": "bytes"
},
{
"key": "Accept-Ranges",
"value": "bytes"
},
{
"key": "Age",
"value": "0"
},
{
"key": "Age",
"value": "0"
},
{
"key": "Transfer-Encoding",
"value": "chunked"
},
{
"key": "Date",
"value": "Wed, 24 Apr 2019 18:46:41 GMT"
},
{
"key": "Connection",
"value": "keep-alive"
},
{
"key": "X-Served-By",
"value": "cache-mdw17363-MDW"
},
{
"key": "X-Cache",
"value": "MISS"
},
{
"key": "X-Cache-Hits",
"value": "0"
},
{
"key": "Vary",
"value": "Accept-Encoding"
},
{
"key": "Country",
"value": "CA"
},
{
"key": "Strict-Transport-Security",
"value": "max-age=31536000; includeSubDomains; preload"
}
],
"cookie": [
],
"body": "{\n \"response\": {\n \"result\": {\n \"journal_entry_details\": [\n {\n \"account\": {\n \"account_name\": \"Operating Expenses\",\n \"account_number\": \"6000\",\n \"account_type\": \"expense\",\n \"accountid\": 545908,\n \"accounting_systemid\": \"wkMd2g\",\n \"id\": 545908\n },\n \"accounting_systemid\": \"wkMd2g\",\n \"balance\": {\n \"amount\": \"70.56\",\n \"code\": \"USD\"\n },\n \"credit\": null,\n \"debit\": {\n \"amount\": \"70.56\",\n \"code\": \"USD\"\n },\n \"description\": \"Purchased Gasoline for deliveries\",\n \"detail_type\": \"expense\",\n \"detailid\": 1305458,\n \"entry\": {\n \"accounting_systemid\": \"wkMd2g\",\n \"clientid\": null,\n \"creditid\": null,\n \"entryid\": 625716,\n \"expenseid\": 1825568,\n \"id\": 625716,\n \"incomeid\": null,\n \"invoiceid\": null,\n \"paymentid\": null\n },\n \"id\": 1305458,\n \"name\": \"Expense\",\n \"sub_account\": {\n \"account_sub_name\": \"Car & Truck Expenses\",\n \"account_sub_number\": \"3\",\n \"accounting_systemid\": \"wkMd2g\",\n \"id\": 849638,\n \"parentid\": 545908,\n \"sub_accountid\": 849638\n },\n \"user_entered_date\": \"2019-04-24\"\n },\n {\n \"account\": {\n \"account_name\": \"Taxes Paid\",\n \"account_number\": \"6001\",\n \"account_type\": \"expense\",\n \"accountid\": 545910,\n \"accounting_systemid\": \"wkMd2g\",\n \"id\": 545910\n },\n \"accounting_systemid\": \"wkMd2g\",\n \"balance\": {\n \"amount\": \"9.17\",\n \"code\": \"USD\"\n },\n \"credit\": null,\n \"debit\": {\n \"amount\": \"9.17\",\n \"code\": \"USD\"\n },\n \"description\": null,\n \"detail_type\": \"tax\",\n \"detailid\": 1305460,\n \"entry\": {\n \"accounting_systemid\": \"wkMd2g\",\n \"clientid\": null,\n \"creditid\": null,\n \"entryid\": 625716,\n \"expenseid\": 1825568,\n \"id\": 625716,\n \"incomeid\": null,\n \"invoiceid\": null,\n \"paymentid\": null\n },\n \"id\": 1305460,\n \"name\": \"Expense\",\n \"sub_account\": {\n \"account_sub_name\": \"other tax\",\n \"account_sub_number\": \"2\",\n \"accounting_systemid\": \"wkMd2g\",\n \"id\": 849640,\n \"parentid\": 545910,\n \"sub_accountid\": 849640\n },\n \"user_entered_date\": \"2019-04-24\"\n },\n {\n \"account\": {\n \"account_name\": \"Cash\",\n \"account_number\": \"1000\",\n \"account_type\": \"asset\",\n \"accountid\": 545882,\n \"accounting_systemid\": \"wkMd2g\",\n \"id\": 545882\n },\n \"accounting_systemid\": \"wkMd2g\",\n \"balance\": {\n \"amount\": \"-79.73\",\n \"code\": \"USD\"\n },\n \"credit\": {\n \"amount\": \"79.73\",\n \"code\": \"USD\"\n },\n \"debit\": null,\n \"description\": \"Purchased Gasoline for deliveries\",\n \"detail_type\": \"expense\",\n \"detailid\": 1305462,\n \"entry\": {\n \"accounting_systemid\": \"wkMd2g\",\n \"clientid\": null,\n \"creditid\": null,\n \"entryid\": 625716,\n \"expenseid\": 1825568,\n \"id\": 625716,\n \"incomeid\": null,\n \"invoiceid\": null,\n \"paymentid\": null\n },\n \"id\": 1305462,\n \"name\": \"Expense\",\n \"sub_account\": {\n \"account_sub_name\": \"Petty Cash\",\n \"account_sub_number\": \"1\",\n \"accounting_systemid\": \"wkMd2g\",\n \"id\": 635972,\n \"parentid\": 545882,\n \"sub_accountid\": 635972\n },\n \"user_entered_date\": \"2019-04-24\"\n },\n {\n \"account\": {\n \"account_name\": \"Cash\",\n \"account_number\": \"1000\",\n \"account_type\": \"asset\",\n \"accountid\": 545882,\n \"accounting_systemid\": \"wkMd2g\",\n \"id\": 545882\n },\n \"accounting_systemid\": \"wkMd2g\",\n \"balance\": {\n \"amount\": \"500.00\",\n \"code\": \"USD\"\n },\n \"credit\": null,\n \"debit\": {\n \"amount\": \"500.00\",\n \"code\": \"USD\"\n },\n \"description\": \"This is deferred revenue\",\n \"detail_type\": \"adjustment\",\n \"detailid\": 1273242,\n \"entry\": {\n \"accounting_systemid\": \"wkMd2g\",\n \"clientid\": null,\n \"creditid\": null,\n \"entryid\": 610564,\n \"expenseid\": null,\n \"id\": 610564,\n \"incomeid\": null,\n \"invoiceid\": null,\n \"paymentid\": null\n },\n \"id\": 1273242,\n \"name\": \"Deferred Revenue\",\n \"sub_account\": {\n \"account_sub_name\": \"Petty Cash\",\n \"account_sub_number\": \"1\",\n \"accounting_systemid\": \"wkMd2g\",\n \"id\": 635972,\n \"parentid\": 545882,\n \"sub_accountid\": 635972\n },\n \"user_entered_date\": \"2019-04-24\"\n },\n {\n \"account\": {\n \"account_name\": \"Accounts Receivable\",\n \"account_number\": \"1200\",\n \"account_type\": \"asset\",\n \"accountid\": 545884,\n \"accounting_systemid\": \"wkMd2g\",\n \"id\": 545884\n },\n \"accounting_systemid\": \"wkMd2g\",\n \"balance\": {\n \"amount\": \"-500.00\",\n \"code\": \"USD\"\n },\n \"credit\": {\n \"amount\": \"500.00\",\n \"code\": \"USD\"\n },\n \"debit\": null,\n \"description\": \"This is deferred revenue\",\n \"detail_type\": \"adjustment\",\n \"detailid\": 1273244,\n \"entry\": {\n \"accounting_systemid\": \"wkMd2g\",\n \"clientid\": null,\n \"creditid\": null,\n \"entryid\": 610564,\n \"expenseid\": null,\n \"id\": 610564,\n \"incomeid\": null,\n \"invoiceid\": null,\n \"paymentid\": null\n },\n \"id\": 1273244,\n \"name\": \"Deferred Revenue\",\n \"sub_account\": {\n \"account_sub_name\": \"Accounts Receivable\",\n \"account_sub_number\": \"1\",\n \"accounting_systemid\": \"wkMd2g\",\n \"id\": 635974,\n \"parentid\": 545884,\n \"sub_accountid\": 635974\n },\n \"user_entered_date\": \"2019-04-24\"\n },\n {\n \"account\": {\n \"account_name\": \"Operating Expenses\",\n \"account_number\": \"6000\",\n \"account_type\": \"expense\",\n \"accountid\": 545908,\n \"accounting_systemid\": \"wkMd2g\",\n \"id\": 545908\n },\n \"accounting_systemid\": \"wkMd2g\",\n \"balance\": {\n \"amount\": \"70.56\",\n \"code\": \"USD\"\n },\n \"credit\": null,\n \"debit\": {\n \"amount\": \"70.56\",\n \"code\": \"USD\"\n },\n \"description\": \"Purchased Gasoline for deliveries\",\n \"detail_type\": \"expense\",\n \"detailid\": 1305504,\n \"entry\": {\n \"accounting_systemid\": \"wkMd2g\",\n \"clientid\": null,\n \"creditid\": null,\n \"entryid\": 625738,\n \"expenseid\": 1825574,\n \"id\": 625738,\n \"incomeid\": null,\n \"invoiceid\": null,\n \"paymentid\": null\n },\n \"id\": 1305504,\n \"name\": \"Expense\",\n \"sub_account\": {\n \"account_sub_name\": \"Car & Truck Expenses\",\n \"account_sub_number\": \"3\",\n \"accounting_systemid\": \"wkMd2g\",\n \"id\": 849638,\n \"parentid\": 545908,\n \"sub_accountid\": 849638\n },\n \"user_entered_date\": \"2019-04-24\"\n },\n {\n \"account\": {\n \"account_name\": \"Taxes Paid\",\n \"account_number\": \"6001\",\n \"account_type\": \"expense\",\n \"accountid\": 545910,\n \"accounting_systemid\": \"wkMd2g\",\n \"id\": 545910\n },\n \"accounting_systemid\": \"wkMd2g\",\n \"balance\": {\n \"amount\": \"9.17\",\n \"code\": \"USD\"\n },\n \"credit\": null,\n \"debit\": {\n \"amount\": \"9.17\",\n \"code\": \"USD\"\n },\n \"description\": null,\n \"detail_type\": \"tax\",\n \"detailid\": 1305506,\n \"entry\": {\n \"accounting_systemid\": \"wkMd2g\",\n \"clientid\": null,\n \"creditid\": null,\n \"entryid\": 625738,\n \"expenseid\": 1825574,\n \"id\": 625738,\n \"incomeid\": null,\n \"invoiceid\": null,\n \"paymentid\": null\n },\n \"id\": 1305506,\n \"name\": \"Expense\",\n \"sub_account\": {\n \"account_sub_name\": \"other tax\",\n \"account_sub_number\": \"2\",\n \"accounting_systemid\": \"wkMd2g\",\n \"id\": 849640,\n \"parentid\": 545910,\n \"sub_accountid\": 849640\n },\n \"user_entered_date\": \"2019-04-24\"\n },\n {\n \"account\": {\n \"account_name\": \"Cash\",\n \"account_number\": \"1000\",\n \"account_type\": \"asset\",\n \"accountid\": 545882,\n \"accounting_systemid\": \"wkMd2g\",\n \"id\": 545882\n },\n \"accounting_systemid\": \"wkMd2g\",\n \"balance\": {\n \"amount\": \"-79.73\",\n \"code\": \"USD\"\n },\n \"credit\": {\n \"amount\": \"79.73\",\n \"code\": \"USD\"\n },\n \"debit\": null,\n \"description\": \"Purchased Gasoline for deliveries\",\n \"detail_type\": \"expense\",\n \"detailid\": 1305508,\n \"entry\": {\n \"accounting_systemid\": \"wkMd2g\",\n \"clientid\": null,\n \"creditid\": null,\n \"entryid\": 625738,\n \"expenseid\": 1825574,\n \"id\": 625738,\n \"incomeid\": null,\n \"invoiceid\": null,\n \"paymentid\": null\n },\n \"id\": 1305508,\n \"name\": \"Expense\",\n \"sub_account\": {\n \"account_sub_name\": \"Petty Cash\",\n \"account_sub_number\": \"1\",\n \"accounting_systemid\": \"wkMd2g\",\n \"id\": 635972,\n \"parentid\": 545882,\n \"sub_accountid\": 635972\n },\n \"user_entered_date\": \"2019-04-24\"\n },\n {\n \"account\": {\n \"account_name\": \"Accounts Receivable\",\n \"account_number\": \"1200\",\n \"account_type\": \"asset\",\n \"accountid\": 545884,\n \"accounting_systemid\": \"wkMd2g\",\n \"id\": 545884\n },\n \"accounting_systemid\": \"wkMd2g\",\n \"balance\": {\n \"amount\": \"0.00\",\n \"code\": \"USD\"\n },\n \"credit\": null,\n \"debit\": {\n \"amount\": \"0.00\",\n \"code\": \"USD\"\n },\n \"description\": \"\",\n \"detail_type\": \"total\",\n \"detailid\": 1269690,\n \"entry\": {\n \"accounting_systemid\": \"wkMd2g\",\n \"clientid\": 32082,\n \"creditid\": null,\n \"entryid\": 608824,\n \"expenseid\": null,\n \"id\": 608824,\n \"incomeid\": null,\n \"invoiceid\": 29604,\n \"paymentid\": null\n },\n \"id\": 1269690,\n \"name\": \"Invoice 0000009\",\n \"sub_account\": {\n \"account_sub_name\": \"Accounts Receivable\",\n \"account_sub_number\": \"1\",\n \"accounting_systemid\": \"wkMd2g\",\n \"id\": 635974,\n \"parentid\": 545884,\n \"sub_accountid\": 635974\n },\n \"user_entered_date\": \"2019-04-22\"\n },\n {\n \"account\": {\n \"account_name\": \"Accounts Receivable\",\n \"account_number\": \"1200\",\n \"account_type\": \"asset\",\n \"accountid\": 545884,\n \"accounting_systemid\": \"wkMd2g\",\n \"id\": 545884\n },\n \"accounting_systemid\": \"wkMd2g\",\n \"balance\": {\n \"amount\": \"180.00\",\n \"code\": \"USD\"\n },\n \"credit\": null,\n \"debit\": {\n \"amount\": \"180.00\",\n \"code\": \"USD\"\n },\n \"description\": \"\",\n \"detail_type\": \"total\",\n \"detailid\": 1311502,\n \"entry\": {\n \"accounting_systemid\": \"wkMd2g\",\n \"clientid\": 31006,\n \"creditid\": null,\n \"entryid\": 628326,\n \"expenseid\": null,\n \"id\": 628326,\n \"incomeid\": null,\n \"invoiceid\": 34420,\n \"paymentid\": null\n },\n \"id\": 1311502,\n \"name\": \"Invoice 0000013\",\n \"sub_account\": {\n \"account_sub_name\": \"Accounts Receivable\",\n \"account_sub_number\": \"1\",\n \"accounting_systemid\": \"wkMd2g\",\n \"id\": 635974,\n \"parentid\": 545884,\n \"sub_accountid\": 635974\n },\n \"user_entered_date\": \"2019-04-20\"\n },\n {\n \"account\": {\n \"account_name\": \"Revenue\",\n \"account_number\": \"4000\",\n \"account_type\": \"income\",\n \"accountid\": 545904,\n \"accounting_systemid\": \"wkMd2g\",\n \"id\": 545904\n },\n \"accounting_systemid\": \"wkMd2g\",\n \"balance\": {\n \"amount\": \"80.00\",\n \"code\": \"USD\"\n },\n \"credit\": {\n \"amount\": \"80.00\",\n \"code\": \"USD\"\n },\n \"debit\": null,\n \"description\": \"Climbing Helmet\",\n \"detail_type\": \"sales\",\n \"detailid\": 1311504,\n \"entry\": {\n \"accounting_systemid\": \"wkMd2g\",\n \"clientid\": 31006,\n \"creditid\": null,\n \"entryid\": 628326,\n \"expenseid\": null,\n \"id\": 628326,\n \"incomeid\": null,\n \"invoiceid\": 34420,\n \"paymentid\": null\n },\n \"id\": 1311504,\n \"name\": \"Invoice 0000013\",\n \"sub_account\": {\n \"account_sub_name\": \"Sales\",\n \"account_sub_number\": \"1\",\n \"accounting_systemid\": \"wkMd2g\",\n \"id\": 636000,\n \"parentid\": 545904,\n \"sub_accountid\": 636000\n },\n \"user_entered_date\": \"2019-04-20\"\n },\n {\n \"account\": {\n \"account_name\": \"Revenue\",\n \"account_number\": \"4000\",\n \"account_type\": \"income\",\n \"accountid\": 545904,\n \"accounting_systemid\": \"wkMd2g\",\n \"id\": 545904\n },\n \"accounting_systemid\": \"wkMd2g\",\n \"balance\": {\n \"amount\": \"100.00\",\n \"code\": \"USD\"\n },\n \"credit\": {\n \"amount\": \"100.00\",\n \"code\": \"USD\"\n },\n \"debit\": null,\n \"description\": \"Belay Device\",\n \"detail_type\": \"sales\",\n \"detailid\": 1311506,\n \"entry\": {\n \"accounting_systemid\": \"wkMd2g\",\n \"clientid\": 31006,\n \"creditid\": null,\n \"entryid\": 628326,\n \"expenseid\": null,\n \"id\": 628326,\n \"incomeid\": null,\n \"invoiceid\": 34420,\n \"paymentid\": null\n },\n \"id\": 1311506,\n \"name\": \"Invoice 0000013\",\n \"sub_account\": {\n \"account_sub_name\": \"Sales\",\n \"account_sub_number\": \"1\",\n \"accounting_systemid\": \"wkMd2g\",\n \"id\": 636000,\n \"parentid\": 545904,\n \"sub_accountid\": 636000\n },\n \"user_entered_date\": \"2019-04-20\"\n },\n {\n \"account\": {\n \"account_name\": \"Accounts Receivable\",\n \"account_number\": \"1200\",\n \"account_type\": \"asset\",\n \"accountid\": 545884,\n \"accounting_systemid\": \"wkMd2g\",\n \"id\": 545884\n },\n \"accounting_systemid\": \"wkMd2g\",\n \"balance\": {\n \"amount\": \"200.00\",\n \"code\": \"USD\"\n },\n \"credit\": null,\n \"debit\": {\n \"amount\": \"200.00\",\n \"code\": \"USD\"\n },\n \"description\": \"Here is a basic description of the journal entry made.\",\n \"detail_type\": \"adjustment\",\n \"detailid\": 1313598,\n \"entry\": {\n \"accounting_systemid\": \"wkMd2g\",\n \"clientid\": null,\n \"creditid\": null,\n \"entryid\": 629310,\n \"expenseid\": null,\n \"id\": 629310,\n \"incomeid\": null,\n \"invoiceid\": null,\n \"paymentid\": null\n },\n \"id\": 1313598,\n \"name\": \"JournalEntry\",\n \"sub_account\": {\n \"account_sub_name\": \"Accounts Receivable\",\n \"account_sub_number\": \"1\",\n \"accounting_systemid\": \"wkMd2g\",\n \"id\": 635974,\n \"parentid\": 545884,\n \"sub_accountid\": 635974\n },\n \"user_entered_date\": \"2019-04-20\"\n },\n {\n \"account\": {\n \"account_name\": \"Accounts Receivable\",\n \"account_number\": \"1200\",\n \"account_type\": \"asset\",\n \"accountid\": 545884,\n \"accounting_systemid\": \"wkMd2g\",\n \"id\": 545884\n },\n \"accounting_systemid\": \"wkMd2g\",\n \"balance\": {\n \"amount\": \"-200.00\",\n \"code\": \"USD\"\n },\n \"credit\": {\n \"amount\": \"200.00\",\n \"code\": \"USD\"\n },\n \"debit\": null,\n \"description\": \"Here is a basic description of the journal entry made.\",\n \"detail_type\": \"adjustment\",\n \"detailid\": 1313600,\n \"entry\": {\n \"accounting_systemid\": \"wkMd2g\",\n \"clientid\": null,\n \"creditid\": null,\n \"entryid\": 629310,\n \"expenseid\": null,\n \"id\": 629310,\n \"incomeid\": null,\n \"invoiceid\": null,\n \"paymentid\": null\n },\n \"id\": 1313600,\n \"name\": \"JournalEntry\",\n \"sub_account\": {\n \"account_sub_name\": \"Customer Deposits\",\n \"account_sub_number\": \"2\",\n \"accounting_systemid\": \"wkMd2g\",\n \"id\": 635976,\n \"parentid\": 545884,\n \"sub_accountid\": 635976\n },\n \"user_entered_date\": \"2019-04-20\"\n },\n {\n \"account\": {\n \"account_name\": \"Accounts Receivable\",\n \"account_number\": \"1200\",\n \"account_type\": \"asset\",\n \"accountid\": 545884,\n \"accounting_systemid\": \"wkMd2g\",\n \"id\": 545884\n },\n \"accounting_systemid\": \"wkMd2g\",\n \"balance\": {\n \"amount\": \"3300.00\",\n \"code\": \"USD\"\n },\n \"credit\": null,\n \"debit\": {\n \"amount\": \"3300.00\",\n \"code\": \"USD\"\n },\n \"description\": \"\",\n \"detail_type\": \"total\",\n \"detailid\": 1033808,\n \"entry\": {\n \"accounting_systemid\": \"wkMd2g\",\n \"clientid\": 31006,\n \"creditid\": null,\n \"entryid\": 496504,\n \"expenseid\": null,\n \"id\": 496504,\n \"incomeid\": null,\n \"invoiceid\": 26398,\n \"paymentid\": null\n },\n \"id\": 1033808,\n \"name\": \"Invoice 0000005\",\n \"sub_account\": {\n \"account_sub_name\": \"Accounts Receivable\",\n \"account_sub_number\": \"1\",\n \"accounting_systemid\": \"wkMd2g\",\n \"id\": 635974,\n \"parentid\": 545884,\n \"sub_accountid\": 635974\n },\n \"user_entered_date\": \"2019-04-20\"\n }\n ],\n \"page\": 1,\n \"pages\": 7,\n \"per_page\": 15,\n \"total\": 96\n }\n }\n}"
}
]
}