The APIs offered on the platform are available free of charge until 10/31/2024 inclusive.
For any additional information, contact your Customer Success Manager or send an email directly to
subscription@abraxio.com .
Preamble
The APIs allow you to interface your IS with Abraxio to automate processes, retrieve data from Abraxio or integrate data into Abraxio.
API calls are secured using the OAuth2 protocol.
Getting started
- Step 1 : Go to Admin > Integrations > API
- Before any call to the platform, it is necessary to obtain an access token by means of API access, consisting of the pair of parameters (clientId, clientSecret):
- The clientId (similar to a user account) is an identifier shared between the client and Abraxio.
- The clientSecret (similar to a password) is known only to the client.
- Step 2: click on “ + Add API access ” and modify the key wording if necessary.
- Step 3: copy the secret and keep it safe in a secure space. Once you leave the page, you will no longer be able to recover it.
- Step 4 : Test the API calls by clicking on “ Go to test interface ”. You will be redirected to a swagger space allowing you to test the connection chain, the available APIs, the associated documentation:
- Click on Authorize and copy the ClientID and Client Secret
- Click on the /v1/echo API to check authentication validation
- Click an API and fill in the input parameters to examine the exchanged JSON feeds
- Step 5 : implement API calls in your applications.
API key management
You can create several keys if your architectural and town planning rules require it.
Deactivation temporarily suspends the validity of access.
Deletion permanently suspends the validity of the access.
API access has a validity period limited to 12 months. Ultimately, you will need to generate a new access and use it in your API calls.
Management
Absences
List of planned absences
GET /v1/collaborators/absences/{year}/{month}
This API allows you to read forecast absences for a given month.
Settings :
- Year (required)
- Month (required)
- ref (optional): allows you to filter on a collaborator by their reference
- email (optional): allows you to filter on a collaborator by their email
If no filter on an employee is passed as a parameter, this method returns the list of employees present for the month with for each the list of forecast absences for the month.
Updating forecast absences
PUT /v1/collaborators/absences/{year}/{month}
This API allows you to update an employee's forecast absences for a month.
Settings :
- Year (required)
- Month (required)
The body of the request contains an employee identified by their reference or email and their planned absences for the month. The API expects an absence value (maximum 1 for an absence over the entire day) per day of the month.
Each day must be unique, if the request body contains the same day several times, the last value will be retained
This route works by "cancel and replace", that is to say it expects to receive the employee's complete forecast absence situation for the month in order to replace what is currently known in Abraxio.
Timesheets
List of timesheets
GET /v1/timesheets/{year}/{month}
This API allows you to retrieve details from Abraxio timesheets.
Input parameters:
- Year (required)
- Month (required)
- Status (optional): if not specified, returns all timesheets
Finance
Orders
Importing a batch of orders to integrate
POST /v1/orders/import
This API allows you to import a batch of commands to integrate.
Setting :
- allowDirectIntegration (boolean): if this parameter is true, orders for which all lines are recognized will be directly integrated into the budget
The request body contains a list of commands to import and returns an identifier of the import batch.
Limitations: A query can contain a maximum of 100 orders and an order has a maximum of 10 lines
GET /v1/orders/import/{id}
This API allows you to obtain the progress status of the import of a batch. It takes as a parameter a batch identifier returned by the POST import request.
For each command in the batch, it returns:
- The content of the import request
- The import status of the order:
- Rejected
- To integrate
- Integrated
- A list of error messages and warnings from the import