Introduction
Welcome to the Kassatellen API documentation.
Base URL
Currently, the API lives under the domain https://api.kassatellen.nl/. For brevity, all paths in this documentation will elide this base URL.
Response envelope
Response envelope
{
"success": true,
"data": {},
"error": {
"code": "ERR400",
"message": "error message",
"severity": "error"
}
}
Our responses will always be wrapped in an envelope.
Of this envelope, some properties will be elided based on the type of response.
As such, the error object will only exist when success is false. See Errors for details.
For the brevity of the documentation, this envelope will henceforth be elided.
Conventions
- All requests must be authenticated with an API token (recommended) in the
X-Api-Tokenheader, or a JWT in theAuthorization: Bearer {accessToken}header, unless noted otherwise. See Authentication. - Request bodies are JSON; send
Content-Type: application/json. - Monetary amounts are in euros with two decimals (e.g.
1234.56), not in cents. - Dates are formatted as
Y-m-d(e.g.2026-10-21). - Some endpoints require a minimum user role. Roles, from least to most privileged, are
medewerker(employee),beheerder(manager) andeigenaar(owner). Accountant users have their own roles.
Authentication
Requests are authenticated in one of two ways:
- API token in the
X-Api-Tokenheader. Use this for integrations, so you don’t have to store a user’s password. See API tokens. - JWT access token in the
Authorizationheader, obtained by logging in.
example: X-Api-Token: {apiToken} or Authorization: Bearer {accessToken}.
When a request has an X-Api-Token header, only the API token is used and the Authorization header is ignored.
JWT Access tokens are short-lived and there is no refresh token. When a request returns 401, log in again.
The expiry time is available in the exp claim of the token.
A JWT access token is bound to one company. Use Switch Company to work in another company.
The API tokens do not expire until revoked, and are bound to the company for which it was created - switching companies is not supported.
API tokens
Example request with an API token
curl -H "X-Api-Token: {apiToken}" \
https://api.kassatellen.nl/settings/register
An API token lets an integration make requests on behalf of the user that created it, within one company. Users create their tokens in Kassatellen under their profile settings, or through the API. The token is shown only once, when it is created; store it securely. A lost token can’t be recovered: revoke it and create a new one if needed.
API tokens don’t expire. A token stops working when:
- it is revoked;
- the user that created it is removed from the company;
- the company is deleted.
A token has a role (medewerker, beheerder or eigenaar), chosen when it is created. It can never be higher than the role of the
user creating it. Each request uses the lower of the token’s role and the user’s current role in the company,
so if the user is given a lower role, their tokens get the lower role as well. For submitting counts, a
medewerker token is enough (see Getting Started).
We recommend creating a separate user for each integration (for example, a user called “Guest POS”) and creating the token as that user. Changes made through the API then show up under that user in Kassatellen.
An API token is more limited than logging in as the same user:
- it only works for the company it was created in;
- it never has accountant or administrator permissions;
- it can’t be used to obtain access tokens, switch company, change the user’s account (such as the password), or manage API tokens.
Requests that a token isn’t allowed to make return 403.
Create an API token
POST /settings/api-token
Example curl request
curl -X POST \
-H "Authorization: Bearer {accessToken}" \
-H "Content-Type: application/json" \
-d '{"label": "Guest POS", "role": "medewerker"}' \
https://api.kassatellen.nl/settings/api-token
Example response (
201 Created)
{
"id": 12,
"userId": 34,
"role": "medewerker",
"label": "Guest POS",
"createdAt": "2026-10-30 17:12:45",
"lastUsedAt": null,
"token": "5E5PTiQ..."
}
Creates an API token for the logged-in user in the current company. token is returned only in this response.
This request requires a JWT access token: API tokens can’t create other API tokens. Only users of the company itself can create tokens, accountants can’t.
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| label | body | string | Yes | Description of the token, such as the name of the integration. At most 100 characters |
| role | body | string | No | medewerker, beheerder or eigenaar, at most the user’s own role. Defaults to the user’s role |
Errors
| Status | Reason |
|---|---|
| 400 | label is missing or too long, or role is not a valid role |
| 403 | role is higher than the user’s own role, or the user is not a user of this company |
List API tokens
GET /settings/api-token
Example curl request
curl -H "Authorization: Bearer {accessToken}" \
https://api.kassatellen.nl/settings/api-token
Example response
[
{
"id": 12,
"userId": 34,
"role": "medewerker",
"label": "Guest POS",
"createdAt": "2026-10-30 17:12:45",
"lastUsedAt": "2026-10-30 21:03:10",
"user": "pos@example.com"
}
]
Lists the API tokens of the logged-in user in the current company, newest first. Owners see the tokens of all users in the company. The token itself is never returned.
This request requires a JWT access token.
Response
| Property | Type | Description |
|---|---|---|
| id | integer | ID of the token |
| userId | integer | ID of the user that created the token |
| user | string | Username (email address) of the user that created the token |
| role | string | Role of the token: medewerker, beheerder or eigenaar |
| label | string | Description of the token |
| createdAt | string | When the token was created, Y-m-d H:i:s |
| lastUsedAt | string | null | When the token was last used, Y-m-d H:i:s. Updated at most once every five minutes |
Revoke an API token
DELETE /settings/api-token/{apiTokenId}
Example curl request
curl -X DELETE \
-H "Authorization: Bearer {accessToken}" \
https://api.kassatellen.nl/settings/api-token/12
Revokes an API token. It stops working immediately. Users can revoke their own tokens; owners can revoke any
token in the company. Returns 404 if the token doesn’t exist, or you’re not allowed to revoke it.
This request requires a JWT access token.
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| apiTokenId | path | integer | Yes | ID of the token to revoke |
Login
POST /auth/login
No authentication needed for this request.
Authenticates a user with email address and password, and returns an access token.
Example curl request
curl -X POST \
-H "Content-Type: application/json" \
-d '{"username": "example@mail.com", "password": "pass123"}' \
https://api.kassatellen.nl/auth/login
Example response
{
"accessToken": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9..."
}
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| username | body | string | Yes | Email address |
| password | body | string | Yes | Password |
Switch Company
GET /auth/company/{companyId}
Returns a new access token for another company the user has access to. See Get current user and their companies for the list of companies.
Example curl request
curl -H "Authorization: Bearer {accessToken}" \
https://api.kassatellen.nl/auth/company/2
Example response
{
"token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9..."
}
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| companyId | path | integer | Yes | ID of the company to switch to |
Swap Tokens
GET /auth/swap?token={token}
Exchanges a token issued by the legacy Kassatellen application for an access token for this API.
Example curl request
curl "https://api.kassatellen.nl/auth/swap?token={token}"
Example response
{
"accessToken": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9..."
}
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| token | query | string | Yes | Token from the legacy application |
Getting Started
This walkthrough shows how a POS or other system can submit a day’s count to Kassatellen. A person then checks and confirms the count in Kassatellen, and it is booked from there.
The medewerker role is enough for every step below.
1. Get an API token
Use the API token in every request
curl -H "X-Api-Token: {apiToken}" https://api.kassatellen.nl/settings/register
Ask the user to create an API token in Kassatellen with the medewerker role, and store it on your
side. Send it in the X-Api-Token header of every request. This way you don’t have to store a password, and the
user can revoke the token at any time.
An API token works for one company. If you connect several companies, use a token for each company.
We recommend that the user creates a separate user for your integration (for example “Guest POS”) and creates the token as that user, so changes made through the API show up under that name in Kassatellen.
If a request returns 401, the token has been revoked or is no longer valid; ask the user for a new token.
Alternatively, you can log in with an email address and password and use the returned access token in the
Authorization: Bearer {accessToken} header. Access tokens expire, so you would have to store the password to log in
again, which we obviously strongly discourage.
2. Read the configuration
Read the configuration
curl -H "X-Api-Token: {apiToken}" https://api.kassatellen.nl/settings/register
curl -H "X-Api-Token: {apiToken}" https://api.kassatellen.nl/settings/revenue
curl -H "X-Api-Token: {apiToken}" https://api.kassatellen.nl/settings/payment
curl -H "X-Api-Token: {apiToken}" https://api.kassatellen.nl/settings/nosale
curl -H "X-Api-Token: {apiToken}" https://api.kassatellen.nl/settings/general
Fetch the registers, revenue groups, payment methods and no sale items, and let the user map their own categories to these IDs. Store the mapping on your side. IDs stay the same, but users can add, disable or remove categories in Kassatellen, so refresh the lists regularly and ask the user to map new categories.
Also read the general settings. In particular:
including-taxdetermines whether revenue amounts are read as including or excluding VAT;vouchersdetermines whether voucher fields are used.
3. Find or create the turnover
Find the turnover
curl -H "X-Api-Token: {apiToken}" \
https://api.kassatellen.nl/turnover/2/2026-10-21
If that returns 404, create it
curl -X POST \
-H "X-Api-Token: {apiToken}" \
-H "Content-Type: application/json" \
-d '{"registerId": 2, "date": "2026-10-21"}' \
https://api.kassatellen.nl/turnover
There is one turnover per register per date. Look it up with
Get a Turnover by date; if it returns 404, create it.
If creating returns 400 Turnover already exists., or fails with a 5xx error, look it up again: another request
may have created it in the meantime. This makes it safe to retry.
Check meta.status. You can only update the turnover while it is in-progress (or open). If it is complete or
confirmed, someone has already finalized it; don’t change it, but let the user know.
4. Fill in the count
Fill in the count
curl -X PUT \
-H "X-Api-Token: {apiToken}" \
-H "Content-Type: application/json" \
-d '{
"fields": {
"openingTill": 150.00, "addedToTill": 0, "paidFromTill": 12.50,
"moneyInTill": 812.40, "deposited": 662.40, "onTab": 0,
"comment": "Z 2026-10-21"
},
"revenue": [ { "groupId": 7, "amount": 1234.56 }, { "groupId": 9, "amount": 845.10 } ],
"payments": [ { "paymentId": 50, "amount": 1520.80 } ],
"noSale": [ { "noSaleId": 4, "amount": 38.00 } ]
}' \
https://api.kassatellen.nl/turnover/226/bulk
Send everything in one bulk update. Amounts replace earlier values, so sending the same request again gives the same result.
Send every enabled revenue group, payment method and no sale item, using 0 for ones without an amount.
Items you leave out keep their previous value, and the turnover cannot be finalized until every item has a value.
Optionally, attach the Z report.
5. Check and finalize
Finalize
curl -X POST \
-H "X-Api-Token: {apiToken}" \
https://api.kassatellen.nl/turnover/226/finalize
The bulk update returns the turnover, including the computed tillDifference
(see Till difference). Compare it with your own figure.
When the count is complete, finalize it. If anything is missing, this returns 409 with
the missing fields in data. Whether to finalize automatically, or leave that to a person in Kassatellen, is up to
you; a finalized turnover can only be changed after a manager reopens it.
Confirming and booking are done by a manager in Kassatellen.
Correcting a submitted day
To correct a day you already submitted, look it up again and repeat step 4 while it is still in-progress.
If it has already been finalized, ask a manager to reopen it in Kassatellen first.
Balance Book
The balance book returns summarized turnovers. For the complete turnover, see Get a Turnover.
A summarized turnover has the following format:
| Property | Type | Description |
|---|---|---|
| turnoverId | integer | ID of the turnover |
| registerId | integer | ID of the register |
| date | string | Date in Y-m-d format |
| state | string | Status of the turnover, see Counting |
| booked | bool | Whether the turnover has been booked |
| totalRevenue | number | Total revenue including VAT |
| totalPayments | number | Total payments |
| tillDifference | number | Till difference, see Till difference |
| startingTill | number | openingTill + addedToTill |
| closingTill | number | moneyInTill - deposited |
| deposited | number | Cash deposited, or null if not filled in |
Get Balance Book for a register
GET /balance-book/register/{registerId}
Returns summarized turnovers of a register for a month, keyed by date.
Dates without a turnover have the value null.
Example curl request
curl -H "X-Api-Token: {apiToken}" \
"https://api.kassatellen.nl/balance-book/register/2?year=2026&month=10"
Example response
{
"2026-10-01": {
"turnoverId": 169,
"registerId": 2,
"date": "2026-10-01",
"state": "complete",
"booked": false,
"totalRevenue": 2129.66,
"totalPayments": 1558.30,
"tillDifference": 91.04,
"startingTill": 150.00,
"closingTill": 150.00,
"deposited": 662.40
},
"2026-10-02": null,
"2026-10-31": null
}
Parameters
| Parameter | In | Type | Required | Default | Description |
|---|---|---|---|---|---|
| registerId | path | integer | Yes | ID of the register | |
| year | query | integer | No | current year | Year, e.g. 2026 |
| month | query | integer | No | current month | Month, starting at 1 for January |
| day | query | integer | No | Only return this day of the month instead of the whole month |
Get Balance Book for all registers
GET /balance-book
Returns summarized turnovers of all enabled registers for a month, keyed by date and then by register ID.
A date without any turnover has the value null; a register without a turnover on a date has the value null.
Example curl request
curl -H "X-Api-Token: {apiToken}" \
"https://api.kassatellen.nl/balance-book?year=2026&month=10"
Example response
{
"2026-10-01": {
"2": {
"turnoverId": 171,
"registerId": 2,
"date": "2026-10-01",
"state": "confirmed",
"booked": false,
"totalRevenue": 200.00,
"totalPayments": 200.00,
"tillDifference": 0.00,
"startingTill": 200.00,
"closingTill": 200.00,
"deposited": 0.00
},
"7": null
},
"2026-10-02": null
}
Parameters
| Parameter | In | Type | Required | Default | Description |
|---|---|---|---|---|---|
| year | query | integer | No | current year | Year, e.g. 2026 |
| month | query | integer | No | current month | Month, starting at 1 for January |
| day | query | integer | No | Only return this day of the month instead of the whole month |
Get Balance Book by date
GET /balance-book/register/{registerId}/{date}
Returns the summarized turnover of a register on a date, or null if there is none.
Requires the beheerder role or higher, or an accountant. To look up a turnover as an employee, use
Get a Turnover by date.
Example curl request
curl -H "X-Api-Token: {apiToken}" \
https://api.kassatellen.nl/balance-book/register/2/2026-10-01
Example response
{
"turnoverId": 169,
"registerId": 2,
"date": "2026-10-01",
"state": "complete",
"booked": false,
"totalRevenue": 2129.66,
"totalPayments": 1558.30,
"tillDifference": 91.04,
"startingTill": 150.00,
"closingTill": 150.00,
"deposited": 662.40
}
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| registerId | path | integer | Yes | ID of the register |
| date | path | string | Yes | Date in Y-m-d format |
Booking
All booking endpoints require the beheerder role or higher, or an accountant.
Only confirmed turnovers can be booked.
Get Booking by date
GET /booking/register/{registerId}/{date}
Returns the booking proposal for a register on a date.
Example curl request
curl -H "X-Api-Token: {apiToken}" \
https://api.kassatellen.nl/booking/register/2/2026-10-21
Example response
{
"debit": [
{
"amount": 1520.80,
"ledger": "1100",
"description": "Pin",
"specification": null
}
],
"credit": [
{
"amount": 1020.30,
"ledger": "8000",
"description": "Keuken hoog",
"specification": null
}
],
"isGrouped": false
}
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| registerId | path | integer | Yes | ID of the register |
| date | path | string | Yes | Date in Y-m-d format |
Get Booking by IDs
GET /booking?ids={turnoverId},{turnoverId}
Returns one grouped booking proposal for the given turnovers.
Example curl request
curl -H "X-Api-Token: {apiToken}" \
"https://api.kassatellen.nl/booking?ids=153,154"
Example response
{
"debit": [
{
"amount": 500.00,
"ledger": "1100",
"description": "Pin"
}
],
"credit": [
{
"amount": 413.22,
"ledger": "8010",
"description": "Drank hoog"
}
],
"isGrouped": true
}
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| ids | query | string | Yes | Comma-separated list of turnover IDs |
Book a Turnover
POST /booking/{turnoverId}
Books a turnover in the company’s bookkeeping integration. Booking happens asynchronously; use Get Booking status to check whether it has been booked.
Example curl request
curl -X POST \
-H "X-Api-Token: {apiToken}" \
https://api.kassatellen.nl/booking/171
Example response
{
"message": "Turnover booked."
}
Get Booking status
GET /booking/{turnoverId}
Returns whether a turnover has been booked.
Example curl request
curl -H "X-Api-Token: {apiToken}" \
https://api.kassatellen.nl/booking/171
Example response
{
"status": true
}
Book by IDs
POST /booking
Books multiple turnovers at once. Returns a message per turnover ID.
If none of the turnovers could be booked, this endpoint returns 400 with the messages in data.
Example curl request
curl -X POST \
-H "X-Api-Token: {apiToken}" \
-H "Content-Type: application/json" \
-d '{"turnoverIds": [153, 154]}' \
https://api.kassatellen.nl/booking
Example response
{
"153": "Turnover booked.",
"154": "Turnover can't be booked before it's confirmed."
}
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| turnoverIds | body | array | Yes | IDs of the turnovers to book |
Company
Get current user and their companies
GET /settings/general/me
Returns the logged-in user together with all companies they have access to and their role in each company.
Use the company id with Switch Company to obtain a token for that company.
Example curl request
curl -H "X-Api-Token: {apiToken}" \
https://api.kassatellen.nl/settings/general/me
Example response
{
"id": "12",
"username": "example@mail.com",
"firstname": "Jan",
"lastname": "Jansen",
"email": "example@mail.com",
"language": "nl",
"companies": [
{
"id": 2,
"name": "Café De Hoek",
"role": "eigenaar",
"status": "confirmed"
}
],
"accountants": [],
"theme": {
"logo": null,
"primary_color": null,
"secondary_color": null,
"navbar_color": null
}
}
Get current company
GET /settings/company
Returns the details of the company in the current access token. Requires the eigenaar role or an accountant.
Example curl request
curl -H "X-Api-Token: {apiToken}" \
https://api.kassatellen.nl/settings/company
Example response
{
"id": 2,
"name": "Café De Hoek",
"address": "Testweg 10",
"postcode": "1000 AB",
"city": "Amsterdam",
"telephone": "0201234567",
"kvk": "",
"firstTime": false,
"isActive": true,
"openTime": "06:00",
"country": "NL",
"vatNumber": "",
"autobooking": false,
"archivedAt": null,
"deletedAt": null
}
Cost Type
Get Cost Types
GET /settings/cost-type/list
Returns all cost types of the current company with their VAT rate and ledger. Cost types are used to specify receipts that were paid from the till (see Save a Receipt).
Example curl request
curl -H "X-Api-Token: {apiToken}" \
https://api.kassatellen.nl/settings/cost-type/list
Example response
[
{
"id": 3,
"name": "Supermarkt",
"tax": {
"id": 4,
"name": "9%",
"factor": 0.09,
"percentage": 9,
"enabled": true
},
"ledger": null,
"enabled": true
},
{
"id": 4,
"name": "Privé",
"tax": {
"id": 5,
"name": "0%",
"factor": 0,
"percentage": 0,
"enabled": true
},
"ledger": null,
"enabled": true
}
]
Counting
A turnover is the count of one register on one date. Its lifecycle is:
| Status | Meaning | Editable |
|---|---|---|
in-progress |
Being counted. Fields may still be missing. | Yes |
open |
Legacy equivalent of in-progress. |
Yes |
complete |
Finalized: all fields and categories have been counted. | No |
confirmed |
Approved by a manager, owner or accountant. Only confirmed turnovers can be booked. | No |
Allowed transitions: in-progress/open → complete (finalize),
complete → confirmed (confirm),
and complete/confirmed → in-progress (reopen).
Updating a turnover that is not editable returns 400 Turnover cannot be updated.
Create a Turnover
POST /turnover
Creates a new turnover for a register on a date and returns its ID.
Only one turnover can exist per register and date. If one already exists, this endpoint returns
400 Turnover already exists.; use Get a Turnover by date to retrieve it.
Unless the company setting to specify the opening till is enabled, openingTill is prefilled with the closing till
of the most recent earlier turnover of the same register.
Example curl request
curl -X POST \
-H "X-Api-Token: {apiToken}" \
-H "Content-Type: application/json" \
-d '{"registerId": 2, "date": "2026-10-21"}' \
https://api.kassatellen.nl/turnover
Example response
226
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| registerId | body | integer | Yes | ID of the register being counted |
| date | body | string | Yes | Date in Y-m-d format |
Get a Turnover
GET /turnover/{turnoverId}
Returns the complete turnover. Returns 404 if it does not exist.
Example curl request
curl -H "X-Api-Token: {apiToken}" \
https://api.kassatellen.nl/turnover/226
Example response
{
"turnoverId": 226,
"meta": {
"date": "2026-10-21",
"dateToBank": null,
"registerId": 2,
"createdBy": null,
"comment": "Z 2026-10-21",
"status": "in-progress",
"booked": false,
"includesTax": true,
"pinOnly": false,
"currency": "EUR",
"turnoverAttachment": null,
"bookingError": null,
"recentClosingTill": null
},
"openingTill": {
"value": 150.00,
"denominations": {}
},
"addedToTill": 0.00,
"moneyInTill": {
"value": 812.40,
"denominations": {}
},
"deposited": 662.40,
"revenue": [
{
"id": 4788,
"groupId": 7,
"amount": 1234.56,
"name": "Keuken hoog",
"bookingType": "credit",
"includesTax": true,
"tax": { "id": 3, "factor": 0.21, "ledger": null },
"ledger": null,
"amountInclTax": 1234.56,
"amountExclTax": 1020.30,
"specification": null
},
{
"id": 4789,
"groupId": 9,
"amount": 845.10,
"name": "Drank hoog",
"bookingType": "credit",
"includesTax": true,
"tax": { "id": 3, "factor": 0.21, "ledger": null },
"ledger": null,
"amountInclTax": 845.10,
"amountExclTax": 698.43,
"specification": null
}
],
"payments": [
{
"id": 4769,
"paymentId": 50,
"amount": 1520.80,
"name": "Pin",
"bookingType": "debit",
"ledger": null,
"specification": null
},
{
"id": 4770,
"paymentId": -6,
"amount": 12.50,
"name": "Betaald uit kas",
"bookingType": "debit",
"ledger": null,
"specification": null
}
],
"noSale": [
{
"id": 4785,
"noSaleId": 4,
"amount": 38.00,
"name": "Fooi",
"bookingType": "noSale",
"ledger": null
}
],
"receivables": [],
"totalPayments": 1558.30,
"totalRevenue": 2129.66,
"cash": 0.00,
"paidFromTill": 12.50,
"startingTill": 150.00,
"vouchersSold": 50.00,
"vouchersRedeemed": 25.00,
"tillDifference": 91.04,
"closingTill": 150.00
}
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| turnoverId | path | integer | Yes | ID of the turnover |
Built-in payments and revenue
Some fields are stored as payments or revenue with a reserved negative ID:
| ID | Appears in | Field |
|---|---|---|
-6 |
payments[] |
paidFromTill |
-20 |
payments[] |
onTab |
-21 |
revenue[] |
paidInCash |
These cannot be set through payments[] or revenue[]; use the fields instead.
Till difference
tillDifference is computed as:
totalPayments + moneyInTill - totalRevenue - startingTill
where
totalPaymentsis the sum of allpayments[](includingpaidFromTillandonTab) plusvouchersRedeemed;totalRevenueis the sum of allrevenue[]including VAT (includingpaidInCash) plusvouchersSold;startingTillisopeningTill + addedToTill.
deposited and noSale[] do not affect the till difference: moneyInTill is the cash counted
before depositing, and closingTill is moneyInTill - deposited.
A positive difference means there is more cash than expected.
Get a Turnover by date
GET /turnover/{registerId}/{date}
Returns the complete turnover for a register on a date, in the same format as Get a Turnover.
Returns 404 if no turnover exists yet.
Example curl request
curl -H "X-Api-Token: {apiToken}" \
https://api.kassatellen.nl/turnover/2/2026-10-21
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| registerId | path | integer | Yes | ID of the register |
| date | path | string | Yes | Date in Y-m-d format |
Update a Turnover
PUT /turnover/{turnoverId}/bulk
Updates fields, revenue, payments and no sale items of a turnover in one request, and returns the updated turnover (see Get a Turnover). All four keys are required; send an empty array or object for a part you don’t want to change.
Items in revenue, payments and noSale are matched on id if given, otherwise on
groupId/paymentId/noSaleId. A matched item’s amount is replaced, not added to.
Items that are not sent are left unchanged; to clear an amount, send it with 0.
Example curl request
curl -X PUT \
-H "X-Api-Token: {apiToken}" \
-H "Content-Type: application/json" \
-d '{
"fields": {
"openingTill": 150.00, "addedToTill": 0, "paidFromTill": 12.50,
"moneyInTill": 812.40, "deposited": 662.40, "comment": "Z 2026-10-21",
"vouchersSold": 50.00, "vouchersRedeemed": 25.00, "onTab": 0
},
"revenue": [ { "groupId": 7, "amount": 1234.56 }, { "groupId": 9, "amount": 845.10 } ],
"payments": [ { "paymentId": 50, "amount": 1520.80 } ],
"noSale": [ { "noSaleId": 4, "amount": 38.00 } ]
}' \
https://api.kassatellen.nl/turnover/226/bulk
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| turnoverId | path | integer | Yes | ID of the turnover |
| fields | body | object | Yes | See Update Fields |
| revenue | body | array | Yes | See Update Revenue |
| payments | body | array | Yes | See Update Payments |
| noSale | body | array | Yes | See Update No Sale |
Update Fields
PUT /turnover/{turnoverId}/fields
Updates the independent fields of a turnover and returns the updated turnover. Only the fields that are sent are updated, but at least one must be sent.
Example curl request
curl -X PUT \
-H "X-Api-Token: {apiToken}" \
-H "Content-Type: application/json" \
-d '{"openingTill": 150.00, "addedToTill": 0, "paidFromTill": 12.50, "moneyInTill": 812.40, "deposited": 662.40}' \
https://api.kassatellen.nl/turnover/226/fields
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| turnoverId | path | integer | Yes | ID of the turnover |
| openingTill | body | number | No | The cash the till starts the day with |
| addedToTill | body | number | No | Cash added to the till during the day |
| moneyInTill | body | number | No | The cash counted in the till after closing, before depositing |
| deposited | body | number | No | Cash removed from the till and deposited to a safe or bank. Must be ≥ 0 |
| paidFromTill | body | number | No | Total expenses paid from the till. Ignored once receipts exist; see Save a Receipt |
| onTab | body | number | No | Total sold on tab (op rekening) |
| vouchersSold | body | number | No | Vouchers sold. Ignored if the company does not use vouchers |
| vouchersRedeemed | body | number | No | Vouchers redeemed. Ignored if the company does not use vouchers |
| paidInCash | body | number | No | Cash received outside of sales. Only for Belgian companies; ignored otherwise |
| comment | body | string | No | Comment on the turnover |
Update Revenue
PUT /turnover/{turnoverId}/revenue
Updates revenue items of a turnover and returns the updated turnover. The body is an array of items.
Whether amount includes VAT depends on the company setting including-tax
(see General settings, also returned as meta.includesTax on the turnover).
A company that never enabled this setting counts revenue excluding VAT.
Example curl request
curl -X PUT \
-H "X-Api-Token: {apiToken}" \
-H "Content-Type: application/json" \
-d '[{"groupId": 7, "amount": 1234.56}]' \
https://api.kassatellen.nl/turnover/226/revenue
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| turnoverId | path | integer | Yes | ID of the turnover |
| [].id | body | integer | No | ID of an existing revenue item |
| [].groupId | body | integer | Yes | ID of the revenue group (see /settings/revenue) |
| [].amount | body | number | Yes | Amount for the revenue group |
Update Payments
PUT /turnover/{turnoverId}/payment
Updates payment items of a turnover and returns the updated turnover. The body is an array of items.
Example curl request
curl -X PUT \
-H "X-Api-Token: {apiToken}" \
-H "Content-Type: application/json" \
-d '[{"paymentId": 50, "amount": 1520.80}]' \
https://api.kassatellen.nl/turnover/226/payment
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| turnoverId | path | integer | Yes | ID of the turnover |
| [].id | body | integer | No | ID of an existing payment item |
| [].paymentId | body | integer | Yes | ID of the payment method (see /settings/payment) |
| [].amount | body | number | Yes | Amount for the payment method |
Update No Sale
PUT /turnover/{turnoverId}/nosale
Updates no sale items of a turnover and returns the updated turnover. The body is an array of items.
Example curl request
curl -X PUT \
-H "X-Api-Token: {apiToken}" \
-H "Content-Type: application/json" \
-d '[{"noSaleId": 4, "amount": 38.00}]' \
https://api.kassatellen.nl/turnover/226/nosale
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| turnoverId | path | integer | Yes | ID of the turnover |
| [].id | body | integer | No | ID of an existing no sale item |
| [].noSaleId | body | integer | Yes | ID of the no sale item (see /settings/nosale) |
| [].amount | body | number | Yes | Amount for the no sale item |
Save a Receipt
POST /receipt/{turnoverId}
Adds or updates a receipt paid from the till, optionally with a photo. Once a turnover has receipts,
paidFromTill is the sum of its receipts. Returns the updated turnover.
This endpoint takes multipart/form-data, one receipt per request. Sending a receipt without id always
creates a new receipt.
Example curl request
curl -X POST \
-H "X-Api-Token: {apiToken}" \
-F "amount=12.50" \
-F "description=Citroenen" \
-F "costType=3" \
-F "file=@bon.jpg" \
https://api.kassatellen.nl/receipt/226
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| turnoverId | path | integer | Yes | ID of the turnover |
| id | form | integer | No | ID of an existing receipt to update |
| amount | form | number | Yes | Amount of the receipt |
| description | form | string | Yes | Description of the receipt |
| costType | form | integer | No | ID of the cost type (see /settings/cost-type/list) |
| file | form | file | No | Photo or PDF of the receipt |
To delete a receipt, use DELETE /receipt/{turnoverId}/{receiptId}.
Save a Tab
POST /tab/{turnoverId}
Adds or updates a tab (op rekening): a sale paid later by a customer, specified in lines. Once a turnover has tabs,
onTab is the sum of its tabs and a separately sent fields.onTab is ignored. Returns the updated turnover.
This endpoint takes multipart/form-data, one tab per request. Sending a tab without id always creates a new tab.
If the company has an invoice integration, a tab can be linked to a customer and invoiced with
POST /tab/invoice/{tabId}.
Example curl request
curl -X POST \
-H "X-Api-Token: {apiToken}" \
-F "description=Vereniging De Vriendenkring" \
-F "includesTax=true" \
-F 'lines=[{"id": 0, "amount": 121.00, "description": "Borrel", "tax": {"id": 3}, "ledgernumber": null}]' \
https://api.kassatellen.nl/tab/226
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| turnoverId | path | integer | Yes | ID of the turnover |
| id | form | integer | No | ID of an existing tab to update |
| description | form | string | Yes | Description of the tab. Replaced by the customer’s name if customer is set |
| includesTax | form | bool | No | Whether the line amounts include VAT |
| customer | form | integer | No | ID of a customer from the invoice integration (see Get Customers) |
| lines | form | string | Yes | JSON array of lines, each with id (0 for a new line), amount, description, tax ({"id": …} from /settings/vat-code, or null) and ledgernumber (or null) |
| file | form | file | No | Attachment, e.g. the signed bill |
To delete a tab, use DELETE /tab/{turnoverId}/{tabId}.
Save a Deposit
POST /deposit/{turnoverId}
Adds or updates cash received outside of sales (betaald in kas), for example a customer paying an earlier
invoice in cash. Intended for Belgian companies. Once a turnover has deposits, paidInCash is the sum of its
deposits. Returns the updated turnover.
This endpoint takes multipart/form-data, one deposit per request. Sending a deposit without id always creates a
new deposit.
Example curl request
curl -X POST \
-H "X-Api-Token: {apiToken}" \
-F "amount=250.00" \
-F "description=Factuur 2026-0412" \
https://api.kassatellen.nl/deposit/226
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| turnoverId | path | integer | Yes | ID of the turnover |
| id | form | integer | No | ID of an existing deposit to update |
| amount | form | number | Yes | Amount received |
| description | form | string | Yes | Description of the deposit |
| file | form | file | No | Attachment |
To delete a deposit, use DELETE /deposit/{turnoverId}/{depositId}.
Attach a document
POST /turnover/{turnoverId}/attachment
Attaches a document to the turnover, such as the Z report of the register. A turnover has one attachment;
uploading again replaces it. Only possible while the turnover is editable. Returns the updated turnover; the
attachment is available as meta.turnoverAttachment.
When the turnover is confirmed, its attachments are emailed to the company’s bookkeeping email address, if set.
Example curl request
curl -X POST \
-H "X-Api-Token: {apiToken}" \
-F "file=@z-rapport-2026-10-21.pdf" \
https://api.kassatellen.nl/turnover/226/attachment
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| turnoverId | path | integer | Yes | ID of the turnover |
| file | form | file | Yes | Exactly one PNG, JPEG or PDF file, max. 10 MB |
Uploading a file of another type returns 415; a file that is too large returns 413.
The same file rules apply to receipts, tabs and deposits.
Delete a document
DELETE /turnover/{turnoverId}/attachment
Deletes the attachment of a turnover. Returns 204 No Content.
Example curl request
curl -X DELETE \
-H "X-Api-Token: {apiToken}" \
-H "Content-Type: application/json" \
-d '{"turnoverAttachmentId": 31}' \
https://api.kassatellen.nl/turnover/226/attachment
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| turnoverId | path | integer | Yes | ID of the turnover |
| turnoverAttachmentId | body | integer | Yes | The id of meta.turnoverAttachment |
Download a document
GET /attachment/{attachmentId}
Returns the file itself (not wrapped in the envelope) with its original content type.
This works for the attachments of turnovers, receipts, tabs and deposits. For a turnover, use
meta.turnoverAttachment.attachment.id:
"turnoverAttachment": {
"id": 31,
"attachment": { "id": 1024, "originalName": "z-rapport-2026-10-21.pdf" }
}
Example curl request
curl -H "X-Api-Token: {apiToken}" \
-o z-rapport.pdf \
https://api.kassatellen.nl/attachment/1024
Finalize a Turnover
POST /turnover/{turnoverId}/finalize
Finalizes the turnover and sets its status to complete. Returns the turnover ID.
A turnover can only be finalized when:
openingTill,addedToTill,moneyInTill,depositedandpaidFromTillhave been filled in;- every enabled revenue group, payment method and no sale item has a value (
0counts as a value).
Otherwise this endpoint returns 409 with the missing fields or categories in data.
Finalizing does not book the turnover.
Example curl request
curl -X POST \
-H "X-Api-Token: {apiToken}" \
https://api.kassatellen.nl/turnover/226/finalize
Example response
226
Confirm a Turnover
POST /turnover/{turnoverId}/confirm
Confirms a complete turnover. Requires the beheerder role or higher, or an accountant.
If automatic booking is enabled for the company, the turnover is booked right after confirming. Attachments of the turnover are emailed to the company’s bookkeeping email address, if set.
Example curl request
curl -X POST \
-H "X-Api-Token: {apiToken}" \
https://api.kassatellen.nl/turnover/226/confirm
Reopen a Turnover
POST /turnover/{turnoverId}/reopen
Sets a complete or confirmed turnover back to in-progress so it can be edited again.
Requires the beheerder role or higher, or an accountant.
Example curl request
curl -X POST \
-H "X-Api-Token: {apiToken}" \
https://api.kassatellen.nl/turnover/226/reopen
Set date to bank
PUT /turnover/{turnoverId}/date-to-bank
Sets the date on which the deposited cash was brought to the bank.
Requires the beheerder role or higher, or an accountant.
Example curl request
curl -X PUT \
-H "X-Api-Token: {apiToken}" \
-H "Content-Type: application/json" \
-d '{"date": "2026-10-23"}' \
https://api.kassatellen.nl/turnover/226/date-to-bank
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| turnoverId | path | integer | Yes | ID of the turnover |
| date | body | string | Yes | Date in Y-m-d format |
Register
Get all Registers
GET /settings/register
Returns all enabled registers of the current company.
Use GET /settings/register/all to include disabled registers (requires the eigenaar role or an accountant).
Example curl request
curl -H "X-Api-Token: {apiToken}" \
https://api.kassatellen.nl/settings/register
Example response
[
{
"id": 2,
"name": "Hoofd Kassa",
"costCenter": null,
"disabled": false
},
{
"id": 7,
"name": "Tweede kassa",
"costCenter": "100",
"disabled": false
}
]
Update a Register
PUT /settings/register/{registerId}
Updates a register. Requires the eigenaar role or an accountant.
Example curl request
curl -X PUT \
-H "X-Api-Token: {apiToken}" \
-H "Content-Type: application/json" \
-d '{"name": "Standaard Kassa", "costCenter": null, "disabled": false}' \
https://api.kassatellen.nl/settings/register/2
Example response
{
"id": 2,
"name": "Standaard Kassa",
"costCenter": null,
"disabled": false
}
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| registerId | path | integer | Yes | ID of the register |
| name | body | string | Yes | Name of the register |
| costCenter | body | string | No | Cost center for this register |
| disabled | body | bool | No | Disable this register |
Integrations
Kassatellen connects to external systems of three types:
| Type | Integrations | Purpose |
|---|---|---|
payment |
lightspeedlseries, lightspeedkseries, untill, mrwinston |
Load revenue and payments from a POS |
bookkeeping |
visma, twinfield, exact, yuki |
Book confirmed turnovers |
invoice |
thenextinvoice |
Invoice tabs (op rekening) to customers |
A company can have one integration per type. Integrations can also be connected by the company’s accountant;
those are returned with isAccountant: true. A company integration takes precedence over an accountant integration.
Wherever {integration} appears in a path, use one of the names above.
Get active integrations
GET /integration
Returns the integrations connected to the current company.
Example curl request
curl -H "X-Api-Token: {apiToken}" \
https://api.kassatellen.nl/integration
Example response
[
{
"id": 42,
"name": "yuki",
"type": "bookkeeping",
"enabled": true,
"externalId": "abcdef01-2345-6789-abcd-ef123456789a",
"option": { "apiUrl": "https://api.yukiworks.nl" },
"isAccountant": false
},
{
"id": 4242,
"name": "lightspeedlseries",
"type": "payment",
"enabled": true,
"externalId": "12345",
"option": [],
"isAccountant": false
}
]
Check if an integration is linked
GET /integration/linked/{integration}
Returns whether the integration is connected to the current company and has valid credentials.
Example curl request
curl -H "X-Api-Token: {apiToken}" \
https://api.kassatellen.nl/integration/linked/visma
Example response
{
"active": true
}
Connect an integration with OAuth
GET /integration/oauth/{integration}
Starts the OAuth flow for lightspeedlseries, lightspeedkseries, visma, twinfield or exact.
Redirect the user to the returned redirectURI; after authorizing, the external system redirects back to
Kassatellen, which completes the connection. Requires the eigenaar role or an accountant.
Only one Lightspeed integration (L-series or K-series) can be connected per company.
Example curl request
curl -H "X-Api-Token: {apiToken}" \
https://api.kassatellen.nl/integration/oauth/visma
Example response
{
"redirectURI": "https://identity.vismaonline.com/connect/authorize?response_type=code&client_id=kassatellen&..."
}
Parameters
| Parameter | In | Type | Required | Default | Description |
|---|---|---|---|---|---|
| integration | path | string | Yes | Name of the integration | |
| region | query | string | No | NL |
Only for exact: the Exact Online region |
Connect an integration with credentials
POST /integration/oauth/{integration}
Connects, or updates the credentials of, an integration that uses an API key or login instead of OAuth.
Requires the eigenaar role or an accountant.
Example curl request
curl -X POST \
-H "X-Api-Token: {apiToken}" \
-H "Content-Type: application/json" \
-d '{"fields": {"key": "{apiKey}"}}' \
https://api.kassatellen.nl/integration/oauth/mrwinston
Parameters
The body contains a fields object, whose contents depend on the integration:
| Integration | Fields |
|---|---|
thenextinvoice, mrwinston |
key: API key |
yuki |
access-key: Yuki access key; apiUrl: Yuki environment, e.g. https://api.yukiworks.nl |
untill |
username, password, database, ip, port. username and password may be left out when updating |
Remove an integration
DELETE /integration/{integrationId}
Disconnects an integration. Use the id from Get active integrations.
Requires the eigenaar role or an accountant.
Example curl request
curl -X DELETE \
-H "X-Api-Token: {apiToken}" \
https://api.kassatellen.nl/integration/4242
Integration options
GET /integration/options/{integration}
PUT /integration/options/{integration}
Gets or replaces the integration-specific options (the option object in Get active integrations).
Reading requires the beheerder role or higher, or an accountant; updating requires the eigenaar role or an accountant.
Example curl request
curl -H "X-Api-Token: {apiToken}" \
https://api.kassatellen.nl/integration/options/yuki
Example response
{
"apiUrl": "https://api.yukiworks.nl"
}
External ID and journal code
GET /integration/external/{integration}
PUT /integration/external/{integration}
For integrations where the user picks an administration (for example a Yuki or Twinfield administration),
GET returns the administrations available in the external system and PUT selects one.
Optionally, PUT also sets the journal code to book on; GET /integration/journal/{integration} returns the
available journal codes.
Reading requires the beheerder role or higher, or an accountant; updating requires the eigenaar role or an accountant.
Integrations without a configurable administration return 400.
Example curl request
curl -X PUT \
-H "X-Api-Token: {apiToken}" \
-H "Content-Type: application/json" \
-d '{"externalId": "abcdef01-2345-6789-abcd-ef123456789a", "journalCode": "KAS"}' \
https://api.kassatellen.nl/integration/external/yuki
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| integration | path | string | Yes | Name of the integration |
| externalId | body | string | Yes | ID of the administration to book in |
| journalCode | body | string | No | Journal code to book on |
Payment Integrations
Load Revenue
GET /integration/revenue/{integration}
Loads revenue and payments for a register on a date from the POS, saves them on the turnover and returns the updated turnover (see Get a Turnover). If no turnover exists yet, it is created.
Loading again replaces the amounts the integration loaded before, so it does not count them twice.
Returns null if the POS returned no data.
Example curl request
curl -H "X-Api-Token: {apiToken}" \
"https://api.kassatellen.nl/integration/revenue/lightspeedlseries?date=2026-10-21®isterId=7"
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| integration | path | string | Yes | Name of the payment integration |
| date | query | string | Yes | Date in Y-m-d format |
| registerId | query | integer | Yes | ID of the register |
Category mapping
GET /integration/mapping/{integration}
POST /integration/mapping/{integration}
POST /integration/mapping/{integration}/sync
Before revenue can be loaded, the categories of the POS must be mapped to Kassatellen revenue groups and payment
methods. GET returns the current mapping, POST updates it, and /sync imports the latest categories from the POS.
The exact fields differ per integration.
Reading requires the beheerder role or higher, or an accountant; updating and syncing require the
eigenaar role or an accountant.
Example response (
mrwinston)
[
{
"external_id": "12",
"external_name": "Bier van de tap",
"kt_id": "9",
"kt_name": "Drank hoog"
}
]
Example request (
mrwinston)
[
{ "external_id": "12", "kt_id": 9 }
]
Bookkeeping Integrations
Get VAT Codes
GET /integration/vatcode/{integration}
Returns the VAT codes from the bookkeeping or invoice integration.
Example curl request
curl -H "X-Api-Token: {apiToken}" \
https://api.kassatellen.nl/integration/vatcode/visma
Example response (
visma)
[
{
"id": "ef4f9ed7-209e-4308-bb2c-26f6dfd1229c",
"rate": 0.21,
"code": "1",
"description": "BTW VERKOOP, HOOG TARIEF"
}
]
Get Ledger Numbers
GET /integration/ledgernumber/{integration}
Returns the general ledger accounts from the bookkeeping or invoice integration, in the format of that system. To link these accounts to revenue groups, payment methods and other categories, see Ledgernumbers.
Example curl request
curl -H "X-Api-Token: {apiToken}" \
https://api.kassatellen.nl/integration/ledgernumber/visma
Example response (
visma)
[
{
"name": "Kas",
"number": "1000",
"vatCodeId": null,
"vatCodeDescription": "",
"isActive": true
}
]
Invoice Integrations
Get Customers
GET /integration/customer/{integration}
Returns the customers from the invoice integration, used to invoice tabs (op rekening).
Example curl request
curl -H "X-Api-Token: {apiToken}" \
https://api.kassatellen.nl/integration/customer/thenextinvoice
Settings
The categories a company counts in are configured per company:
- revenue groups (
/settings/revenue), counted asrevenue[]with agroupId; - payment methods (
/settings/payment), counted aspayments[]with apaymentId; - no sale items (
/settings/nosale), counted asnoSale[]with anoSaleId.
Each endpoint below returns the enabled items of the current company. Append /all to include disabled items
(requires the eigenaar role or an accountant).
Get General Settings
GET /settings/general
Returns the counting settings of the current company. Several of these change how the API interprets the amounts you send, so read them before counting.
Only settings the company has ever changed are returned. A missing setting is false.
Example curl request
curl -H "X-Api-Token: {apiToken}" \
https://api.kassatellen.nl/settings/general
Example response
{
"including-tax": true,
"vouchers": true,
"starting-till": false,
"pin-only": false,
"paid-till-attachment": true,
"paid-till-attach-email": "boekhouding@example.com",
"closing-time": "06:00"
}
| Setting | Type | Effect on the API |
|---|---|---|
including-tax |
bool | revenue[].amount includes VAT. When false, amounts are treated as excluding VAT and Kassatellen adds VAT |
vouchers |
bool | vouchersSold and vouchersRedeemed are used. When false, they are ignored |
starting-till |
bool | The opening till is entered by hand. When false, a new turnover’s openingTill is prefilled with the previous closing till |
receipt-cost-type |
bool | Receipts are specified with a cost type |
receipt-vat |
bool | Receipt amounts include VAT |
pin-only |
bool | The company does not handle cash; the web app hides the cash fields |
coin-count |
bool | Cash is counted per coin and note |
cost-centers |
bool | Registers have a cost center for booking |
table-revenue |
bool | Legacy setting for average revenue per table |
paid-till-attachment |
bool | Attachments are emailed when a turnover is confirmed |
paid-till-attach-email |
string | Email address the attachments are sent to |
closing-time |
string | Closing time of the company (HH:MM). Informational; not used by the API |
Update General Settings
POST /settings/general
Updates one or more general settings. Settings you leave out are not changed. Requires the eigenaar role or an
accountant.
Example curl request
curl -X POST \
-H "X-Api-Token: {apiToken}" \
-H "Content-Type: application/json" \
-d '{"including-tax": true, "vouchers": true}' \
https://api.kassatellen.nl/settings/general
Get Revenue Groups
GET /settings/revenue
Example curl request
curl -H "X-Api-Token: {apiToken}" \
https://api.kassatellen.nl/settings/revenue
Example response
[
{
"id": 7,
"name": "Keuken hoog",
"tax": {
"id": 3,
"name": "21%",
"factor": 0.21,
"percentage": 21,
"enabled": true
},
"ledger": null,
"enabled": true
}
]
Get Payment Methods
GET /settings/payment
Example curl request
curl -H "X-Api-Token: {apiToken}" \
https://api.kassatellen.nl/settings/payment
Example response
[
{
"id": 50,
"name": "Pin",
"default": false,
"enabled": true,
"sort": 1
}
]
Get No Sale Items
GET /settings/nosale
Example curl request
curl -H "X-Api-Token: {apiToken}" \
https://api.kassatellen.nl/settings/nosale
Example response
[
{
"id": 4,
"name": "Fooi",
"enabled": true
}
]
Get VAT Rates
GET /settings/vat-code
Returns the enabled VAT rates of the current company.
Example curl request
curl -H "X-Api-Token: {apiToken}" \
https://api.kassatellen.nl/settings/vat-code
Example response
[
{
"id": 3,
"name": "21%",
"factor": 0.21,
"percentage": 21,
"enabled": true
}
]
Ledgernumbers
To book a turnover, every category needs a general ledger account in the company’s bookkeeping integration. Ledgernumbers are grouped by type:
| Type | Category | id refers to |
Columns |
|---|---|---|---|
default |
General turnover fields (see below) | Built-in field ID | depends on the field |
group |
Revenue groups | Revenue group (/settings/revenue) |
credit_column |
payment |
Payment methods | Payment method (/settings/payment) |
debit_column |
receipt |
Cost types for receipts paid from the till | Cost type (/settings/cost-type/list) |
debit_column |
extra |
No sale items | No sale item (/settings/nosale) |
debit_column, credit_column |
tax |
VAT rates | VAT rate (/settings/vat-code) |
debit_column (ledger), credit_column (VAT code in the bookkeeping system) |
The default type covers these built-in fields:
id |
Field | Columns |
|---|---|---|
-5 |
Till mutation (cash) | debit_column |
-6 |
Paid from till | debit_column |
-7 |
Till difference | debit_column, credit_column |
-8 |
Deposited | debit_column |
-12 |
Added to till | credit_column |
-18 |
Vouchers sold | credit_column |
-19 |
Vouchers redeemed | debit_column |
-20 |
On tab | debit_column |
-21 |
Paid in cash | credit_column |
Voucher fields are only present if the company uses vouchers.
Get Ledgernumbers
GET /integration/mapping/{integration}
Returns the current ledgernumbers per type, together with the accounts (or VAT codes) available in the
bookkeeping integration as options. Use the name of the company’s bookkeeping integration as {integration}.
Requires the beheerder role or higher, or an accountant.
Example curl request
curl -H "X-Api-Token: {apiToken}" \
https://api.kassatellen.nl/integration/mapping/visma
Example response
[
{
"type": "default",
"options": [
{ "value": "1000", "label": "1000 (Kas)" },
{ "value": "8990", "label": "8990 (Kasverschillen)" }
],
"values": [
{
"id": -7,
"name": "till-difference",
"type": "default",
"debit_column": { "value": "8990", "label": "8990 (Kasverschillen)" },
"credit_column": { "value": "8990", "label": "8990 (Kasverschillen)" }
}
]
},
{
"type": "group",
"options": [
{ "value": "8000", "label": "8000 (Omzet keuken hoog)" }
],
"values": [
{
"id": 7,
"name": "Keuken hoog",
"type": "group",
"credit_column": { "value": "8000", "label": "8000 (Omzet keuken hoog)" }
}
]
},
{
"type": "payment",
"options": [
{ "value": "1100", "label": "1100 (Kruisposten pin)" }
],
"values": [
{
"id": 50,
"name": "Pin",
"type": "payment",
"debit_column": null
}
]
}
]
A column is null when no ledgernumber has been set.
Save Ledgernumbers
POST /integration/mapping/{integration}
Sets ledgernumbers. Send only the rows you want to change; for each row, the columns you send are set and the
columns you leave out are cleared. Requires the eigenaar role or an accountant.
If any row refers to a category that does not belong to the company, the whole request is rejected.
Example curl request
curl -X POST \
-H "X-Api-Token: {apiToken}" \
-H "Content-Type: application/json" \
-d '[
{ "id": 50, "type": "payment", "debit_column": { "value": "1100" } },
{ "id": -7, "type": "default", "debit_column": { "value": "8990" }, "credit_column": { "value": "8990" } }
]' \
https://api.kassatellen.nl/integration/mapping/visma
Parameters
The body is an array of rows:
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| [].id | body | integer | Yes | ID of the category, see the tables above |
| [].type | body | string | Yes | Type of the category, see the tables above |
| [].debit_column.value | body | string | No | Debit ledgernumber (max. 20 characters) |
| [].credit_column.value | body | string | No | Credit ledgernumber or VAT code (max. 20 characters) |
Errors
Errors are returned in the following format:
{
"success": false,
"error": {
"code": "ERR400",
"message": "Turnover already exists.",
"severity": "error"
},
"data": null
}
When a request fails, success is false and the error object describes what went wrong:
| Property | Type | Description |
|---|---|---|
| code | string | ERR400 for errors raised by the API itself, ERR500 for unexpected errors |
| message | string | Human-readable error message |
| severity | string | One of error, warning or info |
The top-level data property may contain additional details, such as validation messages per field
or the list of categories that still need to be counted before a turnover can be finalized.
Use the HTTP status code to determine the kind of error. The Kassatellen API uses the following HTTP status codes:
| Status Code | Meaning |
|---|---|
| 400 | Bad Request – Missing or invalid request data |
| 401 | Unauthorized – Missing or expired access token |
| 403 | Forbidden – Your role is not allowed to perform this action |
| 404 | Not Found – The requested resource or route does not exist |
| 409 | Conflict – The action is not allowed in the current state (e.g. finalizing an already completed turnover) |
| 500 | Internal Server Error – An unexpected error occurred. Try again later. |
| 503 | Service Unavailable – Server is offline. Try again later. |
Note: a request to a route that does not exist returns 404 with the body {"message": "Not found"},
without the envelope.