With bookkeeping details

When registering a new invoice or credit notes inside Kravia, it is also possible to provide bookkeeping lines. While invoice lines is the documentation shown to the end customer on the invoice PDF itself, the bookkeeping lines provides documentation on how to bookkeep the invoice inside the accounting system.

Bookkeeping lines would typically differ from the invoice lines as they might show the breakdown between VAT, sales product and allow API user to periodify the invoice lines over multiple month for example

Once registered the bookkeeping details can be retrieved via API to be pushed inside your accounting system or it can be pushed directly inside the accounting system by Kravia

Provide bookkeeping details during invoice registration

Below is an example showing how to combine invoice lines and bookkeeping lines in the invoice registration endpoint as described here

curl https://api.kravia.ai/api/v2/invoice/register \
  --request POST \
  --header 'Content-Type: application/json' \
  --header 'Authorization: YOUR_SECRET_TOKEN' \
  --data '{
    ....
    "orderLines": [
        {
            "description": "Quarterly rate",
            "unitPrice": 3000,
            "count": 1,
            "vatInPercent": 0,
            "unit": "g",
            "total": 3000
        }
   ],
   ....
   "bookkeepingDetails": [
     {
        "amount": 3000,
        "description": "Customer ledger",
        "bookingDate": "2025-01-01",
        "ledgerAccount": 1500,
        "vatCode": 0
     },
     {
        "amount": 1000,
        "description": "Sales revenue Januar",
        "bookingDate": "2025-01-01",
        "ledgerAccount": 3200,
        "vatCode": 0
     },
     {
        "amount": 1000,
        "description": "Sales revenue February",
        "bookingDate": "2025-02-01",
        "ledgerAccount": 3200,
        "vatCode": 0
     },
     {
        "amount": 1000,
        "description": "Sales revenue march",
        "bookingDate": "2025-03-01",
        "ledgerAccount": 3200,
        "vatCode": 0
     }
   ]
}'

Access bookkeeping details

After registering new invoices it is possible to retrieve the daily bookkeeping details via this API endpoint