Export C1B
Generation of C1B files containing employee activity data
API REST
To export employee activity data for a company in C1B format, use the following REST API :
POST /companies/generate_tachograph_files
Content-Type: application/json
{
"company_ids": [1],
"user_ids": [100],
"min_date": "2021-12-16",
"max_date": "2022-02-14",
"with_digital_signatures": false,
"employee_version": false
}Authentification
In order to use this API, you must be authenticated : Authentification.
Query
company_ids
Companies for which we want to export data
List of company IDs
Yes
user_ids
Employees for whom we want to filter the data. By default, the data is brought up for all employees
List of employee IDs
No (by default: [])
min_date
Start date of the desired period
Date in "YYYY-MM-dd" format
No
max_date
End date of the desired period
Date in "YYYY-MM-dd" format
No
with_digital_signatures
Allows digital signatures to be added to files to prove their integrity
Boolean
No (by default: [])
employee_version
Allows to add employee version to the files
Boolean
No (by default: false)
Response
If successful, the API returns a ZIP file :
Error cases
No authentication token
401 Unauthorized
The authentication token does not correspond to one of the companies entered
403 Forbidden
The request is ill-formed (details are in the body of the response)
404 Bad request
Last updated
