JSON API: Reporting

Route: ledger/report

Sample request:

{
  "name": "trialBalance",
  "currency": "CAD",
  "toDate": "2001-02-28"
}

Sample Response:

{
  "report": {
    "request": {
      "currency":"CAD",
      "domain": {
        "code":"CORP",
        "uuid":"dc93f99f-49b4-4e6b-87d2-1e3c3941d6ff"
      },
      "name":"trialBalance",
      "options": {
        "language":["en","en"]
      },
      "toDate":"2001-02-28T21:51:15.000000Z"
    },
    "accounts":[
      {
        "balance":"0.00",
        "category":true,
        "code":"1000",
        "credit":false,
        "creditBalance":"",
        "currency":"CAD",
        "debit":true,
        "depth":1,
        "debitBalance":"0.00",
        "ledgerUuid":"e8a09512-8a31-423c-a65d-c1de25871cd1",
        "name":"Assets",
        "parent":"",
        "total":"3263.59"
      },
      {
        "balance":"0.00",
        "category":true,
        "code":"1100",
        "credit":false,
        "creditBalance":"",
        "currency":"CAD",
        "debit":true,
        "depth":2,
        "debitBalance":"0.00",
        "ledgerUuid":"c9e7d706-ffc4-4895-b619-b06e257a7fa2",
        "name":"Current Assets",
        "parent":"1000",
        "total":"3305.03"
      },
      {
        "balance":"0.00",
        "category":true,
        "code":"1110",
        "credit":false,
        "creditBalance":"",
        "currency":"CAD",
        "debit":true,
        "depth":3,        
        "debitBalance":"0.00",
        "ledgerUuid":"a4eeaef1-2152-4f71-aa92-9b9a7dd32a43",
        "name":"Cash and cash equivalents",
        "parent":"1100",
        "total":"0.00"
      },
      {
        "balance":"1176.92",
        "category":false,
        "code":"1120",
        "credit":false,
        "creditBalance":"",
        "currency":"CAD",
        "debit":true,
        "depth":3,
        "debitBalance":"-1176.92",
        "ledgerUuid":"3fe854c2-bc36-4f20-9c95-d41406fd9787",
        "name":"Bank checking",
        "parent":"1100",
        "total":"1176.92"
      },
      more accounts...
    ]
  },
  "time":"2022-01-07T21:51:16.972502Z"
}