1. Introduction
This article is about the BitaBIZ API.
The BitaBIZ API provides access to raw data such as employee master data and registrations. These data can be used in integrations, reports, and business intelligence solutions.
This article describes how to retrieve raw data via REST or CSV (e.g. vacation days, sick days, employee data).
đ This is not the same as:
Payroll Export â the API cannot be used for exporting data to payroll systems.
HR Reports â the BitaBIZ report library contains a range of pre-configured HR reports and KPIs.
đ API Variants:
REST (JSON) â for integrations and developers
CSV (Excel & Power BI) â for reporting and analysis
2. API Variants
The BitaBIZ API can return data in both JSON and CSV format depending on the query string URL you use in the API call:
Use JSON for REST methods
Use CSV for Excel & Power BI
REST
The REST API returns data in JSON format and has the following main query URL:
https://registrations.api.bitabiz.com/v2/
The REST API can be tested in a desktop tool like Postman.
In Postman, you must add your companyâs API Key as x-apikey
in the Headers section of your request.
Excel & Power BI
The Excel & Power BI API returns data in CSV format and has the following main query URL:
https://registrations.api.bitabiz.com/pbi/
Use the BitaBIZ Excel & Power BI API to create your own reports.
Insert the query URLs you want to use directly in Power BI or Excel.
3. Endpoints
The BitaBIZ API provides several main endpoints. Each endpoint delivers different types of data:
Endpoint | Method | Returns | Note |
| GET | Employee master data | Retrieves all employees and their master data (e.g. name, department, email, employment dates, approvers). |
| GET | National holidays per employee | Shows bank holidays within a given period, including how many days/hours each employee is entitled to. |
| GET | Registrations for the entire company | Provides all registration types (vacation, sick leave, time off, mileage, etc.) for all employees. Can be filtered by date, status, and reason code. |
| GET | Registrations for one employee | Shows registrations for a specific employee. Often used for reporting or integrations per person. |
| GET | Balance adjustments | Returns changes to balances (Vacation, Other vacation, Time bank, Day bank). Covers increases/decreases, payouts, and carried-over balances. |
Examples of endpoints
/employees/
REST
curl -H "x-apikey: $API_KEY" \
https://registrations.api.bitabiz.com/v2/employees/
CSV
https://registrations.api.bitabiz.com/pbi/INSERT_API_KEY_HERE/employees
/registrations
REST
curl -H "x-apikey: $API_KEY" \
"https://registrations.api.bitabiz.com/v2/registrations?from=2025-01-01&to=2025-12-31"
CSV
https://registrations.api.bitabiz.com/pbi/INSERT_API_KEY_HERE/registrations?from=2025-01-01&to=2025-12-31
4. Parameters
How parameters are used in API queries:
Parameters are added to the URL.
The first parameter starts with
?
.Additional parameters are added with
&
.
Parameter | Format / Values | Description |
? | Symbol | Used to start the parameter section in the URL. Example: |
& | Symbol | Used to add multiple parameters after the first one. Example: |
from | YYYY-MM-DD or | Start date for data retrieval. Example: |
to | YYYY-MM-DD | End date for data retrieval. Example: |
status | APP, PEN, REJ, DEL, CHK | Filters registrations by status. APP = ApprovedPEN = PendingREJ = RejectedDEL = DeletedCHK = Checked in (without checked out, active registration). |
inactive | true / false | Used on |
reason | e.g. HH, IS, VT | Filters by registration type. Example: |
employeeGuid | Text string (GUID) | Unique employee ID, used to get registrations for a specific employee: |
Examples with status
Rest
curl -H "x-apikey: $API_KEY" \
"https://registrations.api.bitabiz.com/v2/registrations?from=2025-01-01&to=2025-12-31&status=pen"
CSV
https://registrations.api.bitabiz.com/pbi/INSERT_API_KEY_HERE/registrations?from=2025-01-01
đĄ Tip on parameters in the API
?
starts the parameters in the URL.&
is used to add more parameters.You can combine parameters:
...?from=2025-01-01&to=2025-12-31&status=APP
...?from=2025-01-01&to=2025-12-31&reason=HH,IS
By default, only APP (Approved) registrations are returned. If you need other statuses, add them with the
status
parameter (comma separated).Parameters work in both REST and CSV versions of the API.
5. Registration types (reason codes)
The BitaBIZ API uses reason codes to identify different types of registrations.
Registration type | Reason code | Description |
Vacation | HH | Standard vacation days. |
Other vacation | HF | Extra vacation days (e.g. 6th week, care days). In the API these are always called âOther vacationâ regardless of the policy name. |
Sick | IS | Employeeâs own sick day. |
Child sick | IC | Childâs first sick day or similar child-related absence. |
Other absence / Leave | L | E.g. maternity leave, parental leave, paternity leave. |
Custom registration types | P | Custom absence types defined by the company (e.g. training, courses). |
Overtime | VO | Overtime hours, often linked to job codes with different pay rates. |
Time off (Comp time) | VT | Time off earned through overtime. |
Time registration | TT | Pure time registration without time bank. |
Mileage | MI | Registration of mileage (in kilometers). |
Flex time | FT | Time registration with time bank (earned/flexible hours). |
Day bank â plus days | DO | Addition of extra days in the day bank. |
Day bank â minus days | DT | Subtraction of days from the day bank. |
Vacation payout | RHH | Payout of vacation balance. |
Other vacation payout | RHF | Payout of other vacation balance (e.g. 6th week, care days). |
Time bank payout (hours) | RVT | Payout of hours from the time bank. |
Day bank payout (days) | RDT | Payout of days from the day bank. |
Examples with use of reason code
A single reason code (vacation = HH)
REST
curl -H "x-apikey: $API_KEY" \
"https://registrations.api.bitabiz.com/v2/registrations?from=2025-01-01&to=2025-12-31&reason=HH"
CSV
https://registrations.api.bitabiz.com/pbi/INSERT_API_KEY_HERE/registrations?from=2025-01-01&to=2025-12-31&reason=HH
More reason codes (vacation + sick = HH, IS)
REST
curl -H "x-apikey: $API_KEY" \
"https://registrations.api.bitabiz.com/v2/registrations?from=2025-01-01&to=2025-12-31&reason=HH,IS"
CSV
https://registrations.api.bitabiz.com/pbi/INSERT_API_KEY_HERE/registrations?from=2025-01-01&to=2025-12-31&reason=HH,IS
đ This example retrieves both vacation (HH) and sick (IS) registrations.
6. Known considerations
â ď¸ Employee names on registrations are historical. If an employeeâs name changes, the name on historical registrations will not be updated. Use /employees
to retrieve current names.
â ď¸ Hour bank earnings in Adjustments are only supported from 2022-01-01 onwards.
â ď¸ GDPR deletion rules may remove historical registrations and adjustments depending on your companyâs GDPR settings.
Appendix: Data schemas per endpoint
Below you will find the complete overview of fields delivered by each endpoint.
This reference is useful when you need to understand exactly what data is returned in the API response.
7. FAQ
Why do my Power BI data appear in a single column?
Why do my Power BI data appear in a single column?
When calling the CSV endpoints (/pbi/
or /v2-pbi/
), the data is returned as one single column.
To split the data into separate columns in Power Query, follow these steps:
1) = Csv.Document(Web.Contents(the url query you want to use), [Delimiter=",", Columns=30, Encoding=65001, QuoteStyle=QuoteStyle.None])
2) = Table.ReplaceValue(Source,"registrations.","",Replacer.ReplaceText,{"Column1", "Column2", ..., "Column30"})
= Table.PromoteHeaders(#"Replaced Value", [PromoteAllScalars=true])
Why does some absence count as 0 days in the API?
Why does some absence count as 0 days in the API?
Absence types such as Vacation (HH), Other vacation (HF), Sick (IS), Child sick (IC) and Leave (L) do not count on weekends, national holidays or company-defined days off.
This means that if you register vacation MondayâSunday, only 5 days will be counted because the weekend is excluded.
Column | Value | Weekend | Holiday | Day off |
| Number of days | 0 if the registration falls on a weekend | 0 if on a holiday | 0 if on a day off |
| Number of hours | Hours are only calculated on working days according to standard work hours | â | â |
Appendix: Data schemas per endpoint
Below you will find the complete overview of fields delivered by each endpoint.
This reference is useful when you need to understand exactly what data is returned in the API response.
/employees/
â Employee master data
API field | Description |
| Unique employee ID (used for joining reports). |
| First and last name. |
| First, middle, last name. |
| Employeeâs department. |
| P-number for Statistics Denmark reporting. |
| Job title. |
| Internal company employee number. |
| Payroll system ID (alphanumeric). |
| Office location tag. |
| Country, region, calendar group. |
| Group company tag. |
| Email address. |
| Birthday. |
| Mobile phone number. |
| Employment start date. |
| Termination date (for inactive employees). |
| Last login timestamp. |
| Active status (add |
| Policy ID. |
| Policy name. |
| Work week length (5/7). |
| Standard work hours per week. |
| Vacation days per year (without adjustments). |
| Other vacation days per year (without adjustments). |
| Weekday name (1=Monday, 2=Tuesday...). |
| Standard hours per weekday. |
| Standard start time per weekday. |
| Standard end time per weekday. |
| Secondary start time per weekday. |
| Secondary end time per weekday. |
| Payroll vacation factor (e.g. 1:1, 1:1.25). |
| Vacation payroll code. |
| Other vacation payroll code. |
| Sick payroll code. |
| Child sick payroll code. |
| Week rule: Odd/Even for secondary week. |
| List of active breaks (e.g. |
| Employeeâs time zone. |
| Payroll, HR and Employee tags. |
| Approversâ emails (or âselfapproverâ). |
/employees/nationalholidays
â National holidays
API field | Description |
| Unique employee ID. |
| First and last name. |
| Total holidays in days. |
| Total holidays in hours (according to employeeâs daily hours). |
| Count of national holidays in the period. |
| Holiday name (e.g. âNew Yearâs Dayâ). |
| Holiday start date. |
| Holiday end date. |
| Day name (MondayâSunday). |
| 1 = full day, 0.5 = half day. |
| Hours according to employeeâs daily hours. |
/registrations
â Registrations
API field | Description |
| Unique employee ID. |
| Name saved on registration (historical). |
| Unique registration ID. |
| TRUE if spanning multiple days. |
| Day number in spanned registration (0 = first). |
| Registration date. |
| Start time. |
| End time. |
| Value in days. |
| Value in hours. |
| Value in km (if relevant). |
| Unit (days/hours). |
| Week number. |
| Weekday number (1=Monday). |
| Weekday name. |
| TRUE if overlaps holiday. |
| Holiday name if overlapped. |
| Vacation, Sick, Overtime, etc. |
| Subtype/job code. |
| Reason code (HH, IS, VT, etc.). |
| Timestamp of creation. |
| Note text (sick notes are private). |
| Out of office status: Free/Busy/Out of office. |
| Job code ID for payroll. |
| TRUE if processed by payroll. |
| Project name. |
| Project ID. |
/adjustments
â Adjustments
API field | Description |
| Unique employee ID. |
| Employee name. |
| Payroll admin who created adjustment (blank if system-generated). |
| Employeeâs policy. |
| Balance type (Vacation, Other vacation, Hour bank, Day bank). |
| Reason code (HH, HF, VT, DT). |
| Action type: |
| Date created. |
| Date valid from. |
| Adjustment amount. |
| Conversion rate (days â hours). |
| Note text. |