Skip to content

Available cashbook periods:

GET: /ledger/

Returns a list of ledgers.

Request

curl -X GET \
  https://app.inventorum.com/api/ledger/ \
  -H 'Accept: application/json' \
  -H 'Authorization: Bearer {{oauth_token}}' \

Response

[
    {
    "month": 3,
    "year": 2015
    }
]

Cashbook entries for specific period:

GET: /ledger/%year%/%month%

param format required sample value
%year% 4 symbols true 2018
%month% 2 symbols true 03 for March, 10 for October

Request

curl -X GET \
  https://app.inventorum.com/api/ledger/2018/8 \
  -H 'Accept: application/json' \
  -H 'Authorization: Bearer {{oauth_token}}' \

Response

{
        "balance": "9887.9700000000",
        "credit": "4043.4100000000",
        "debit": "225.0000000000",
        "tax_amount": "689.79",
        "entry": [
        {
        "entry_date": "09.10.2017",
        "tax_type": "19%", // optional, can be null in case of split payment
        "tax_amount": "29.54", // optional, can be null in case of split payment
        "id": 5892309,
        "account": 1627,
        "user": 1959,
        "entry_id": 277,
        "transaction_type": "cash",
        "document": "265",
        "reason": "Basket checkout",
        "balance": "6254.5600000000",
        "credit": "185.0000000000",
        "debit": "0E-10"
        }
        ]
}