Accounting API

List Journal

GET /accounting/journal
Accept: application/json
Authorization: Bearer 677a1598d208d6c303fa5ca1c774709250e21749
Name Required Type Description
order_by optional string Sorting
limit optional integer Limit
offset optional integer Offset
callback optional string Javascript callback

The following sort parameters may be applied:

  • id
  • date

The following scopes are needed:

  • general
  • accounting_show
Status: 200 OK
X-Authenticated-User: apiextract_1
Content-Length: 424
Content-Type: application/json
[
    {
        "id": 1,
        "date": "2015-09-18 15:41:12",
        "debit_account_id": 1,
        "credit_account_id": 2,
        "description": "Payment entry",
        "currency_id": 1,
        "amount": 1950.20,
        "ref_class": "KbInvoice",
        "ref_id": 2
    },
    {
        "id": 2,
        "date": "2015-09-18 15:43:17",
        "debit_account_id": 2,
        "credit_account_id": 1,
        "description": "Payment entry 2",
        "currency_id": 1,
        "amount": 750.00,
        "ref_class": null,
        "ref_id": null
    },
    {
        "id": 3,
        "date": "2015-09-18 15:47:52",
        "debit_account_id": 2,
        "credit_account_id": 3,
        "description": "Payment entry 3",
        "currency_id": 2,
        "amount": 2542.00,
        "ref_class": "KbInvoice",
        "ref_id": 5
    }
]

Profit & Loss Report

GET /accounting/profit_loss
Accept: application/json
Authorization: Bearer 677a1598d208d6c303fa5ca1c774709250e21749
Name Required Type Description
order_by optional string Sorting
limit optional integer Limit
offset optional integer Offset
callback optional string Javascript callback

The following sort parameters may be applied:

  • id

The following scopes are needed:

  • general
  • accounting_show
Status: 200 OK
X-Authenticated-User: apiextract_1
Content-Length: 424
Content-Type: application/json
{
    "accounts": [
        {
            "account_id": 1,
            "account_no": 3000,
            "total": 1200.00,
            "currency_id": 1
        },
        {
            "account_id": 2,
            "account_no": 3200,
            "total": -12500.00,
            "currency_id": 1
        },
        {
            "account_id": 3,
            "account_no": 3300,
            "total": 2554.20,
            "currency_id": 1
        }
    ],
    "totals":
    {
        "total": -8745.8
    }
}

Balance Sheet Report

GET /accounting/balance_sheet
Accept: application/json
Authorization: Bearer 677a1598d208d6c303fa5ca1c774709250e21749
Name Required Type Description
order_by optional string Sorting
limit optional integer Limit
offset optional integer Offset
callback optional string Javascript callback

The following sort parameters may be applied:

  • id

The following scopes are needed:

  • general
  • accounting_show
Status: 200 OK
X-Authenticated-User: apiextract_1
Content-Length: 424
Content-Type: application/json
{
    "accounts": [
        {
            "account_id": 5,
            "account_no": 1100,
            "total": 3000.00,
            "currency_id": 1
        },
        {
            "account_id": 6,
            "account_no": 1110,
            "total": 9783.95,
            "currency_id": 1
        },
        {
            "account_id": 7,
            "account_no": 2100,
            "total": 12922.18,
            "currency_id": 1
        }
    ],
    "totals":
    {
        "total_assets": 12783.95,
        "total_liabilities": 12783.95,
        "total_profit_or_loss": -138.23,
    }
}

Tax Report

GET /accounting/tax
Accept: application/json
Authorization: Bearer 677a1598d208d6c303fa5ca1c774709250e21749
Name Required Type Description
order_by optional string Sorting
limit optional integer Limit
offset optional integer Offset
callback optional string Javascript callback

The following sort parameters may be applied:

  • id

The following scopes are needed:

  • general
  • accounting_show
Status: 200 OK
X-Authenticated-User: apiextract_1
Content-Length: 424
Content-Type: application/json
{
    "taxes": [
        {
            "tax_id": 1,
            "currency_id": 1,
            "total": 128.00
        },
        {
            "tax_id": 2,
            "currency_id": 1,
            "total": 350.00
        },
        {
            "tax_id": 3,
            "currency_id": 1,
            "total": 1000.50
        }
    ],
    "totals":
    {
        "total_turnover_net": 12620.30,
        "total_turnover_gross": 14098.8
    }
}