Abraxio APIs - Management

Abraxio APIs - Management

Preamble

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.

Presentation of the scopes

When creating your API accesses, you can choose to include in your access all or part of the scope to which your subscription gives you the right. Creating a new access therefore necessarily involves choosing associated scopes.
Here is a summary of the scopes available by subscription.
NB: the "/*" indication on an API route means "all routes that start with"

Subscription
Scope
API Routes
Description
API reporting
dataset.finance.read
- datasets/budgets/*
- datasets/timesheets
List of budgetary exercises, budget lines, archives and orders, orders, invoices
API reporting
dataset.portfolios.read
- datasets/projects/*
List of projects and their signage
Transactional APIs
management.read
- collaborators/absences
- timesheets
List of planned absences and details of timesheets entered
Transactional APIs
management.write
- collaborators/absences
Import of forecast absences for a given month
Transactional APIs
finance.read
- orders/import
Order import progress status
Transactional APIs
finance.write
- orders/import
Importing orders

Creating an API Access

  1. Step 1 : Go to Admin > Integrations > API
  2. Step 2 : Click on “ + Add API access ” and enter the access label and the desired scope.

  1. Step 3: Click on "Save". The registration automatically generates an access token, consisting of the parameter pair (clientId, clientSecret):
    1. The clientId (similar to a user account) is an identifier shared between the client and Abraxio.
    2. The clientSecret (similar to a password) is known only to the client.
  2. Step 4: Copy the secret and keep it safe in a secure space. Once you leave the page, you will not be able to retrieve it.
  3. Step 5 : Test the API calls by clicking on " Access the test interface ". You will be redirected to a Swagger space allowing you to test the connection string, the available APIs and the associated documentation:
    1. Click on Authorize, copy the ClientID and Client Secret and check the desired scope(s)
    2. Click on API /v1/echo to check authentication validation
    3. Click on an API and fill in the input parameters to examine the exchanged JSON streams
  4. Step 6 : Implement API calls in your applications.

API Key Management

You can create multiple keys if your architectural and urban planning rules require it.
Deactivation temporarily suspends the validity of access.
Deletion permanently suspends the validity of access.

Managing reminders



  1. API Access Supervisor : Abraxio user in charge of supervising API access
  2. Other recipient : additional field in which you can enter an email address in addition to the supervisor
  3. Expiration reminder period : number of months before expiration from which Abraxio sends an email per week to the supervisor and the other recipient. To cancel the reminder, disable the concerned API access

Warning
An API access has a validity period limited to 12 months. At the end, you will need to generate a new access and use it in your API calls.

Management

Absences

List of expected absences

Info
GET /v1/collaborators/absences/{year}/{month}
This API allows you to read forecast absences for a given month.
Settings:
  1. Year (required)
  2. Month (required)
  3. ref (optional): allows you to filter on a collaborator by their reference
  4. email (optional): allows you to filter a collaborator by their email
If no filter on an employee is passed as a parameter, this method returns the list of employees present during the month with for each the list of expected absences for the month.

Update of forecast absences

Info
PUT /v1/collaborators/absences/{year}/{month}
This API allows you to update an employee's forecast absences for a month.
Settings:
  1. Year (required)
  2. Month (required)
The body of the request contains a collaborator identified by his reference or his email and his forecast absences for the month. The API expects an absence value (maximum 1 for an absence over the whole day) per day of the month.

Alert
Each day must be unique, if the body of the request contains the same day several times, the last value will be retained
This route works by "cancel and replace", that is, 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

Info
GET /v1/timesheets/{year}/{month}
This API allows the retrieval of Abraxio timesheet details.
Input parameters:
  1. Year (required)
  2. Month (required)
  3. Status (optional): if not specified, returns all timesheets

Finance

Orders

Importing a batch of orders to integrate

Info
POST /v1/orders/import
This API allows you to import a batch of orders to integrate.
Setting :
  1. allowDirectIntegration (boolean): if this parameter is true, orders whose all lines are recognized will be directly integrated into the budget
The body of the request contains a list of commands to import and returns an import batch ID.
Alert
Limitations: A query can contain a maximum of 100 orders and an order has a maximum of 10 lines

Info
GET /v1/orders/import/{id}

This API allows you to obtain the progress status of a batch import. It takes as a parameter a batch identifier returned by the import POST request.
For each order in the batch, it returns:
  1. The content of the import request
  2. The import status of the order:
    1. Rejected
    2. To be integrated
    3. Integrated
  3. A list of error and warning messages from the import

    • Related Articles

    • Abraxio APIs - General

      Two categories of APIs are made available in Abraxio: 1. Transactional APIs (creation and updating of Abraxio data from your tools) Goals : Fine and real-time integration of information or Bulk batch integration of certain information: Injection via ...
    • Configuration of the Management module

      Timesheets Section Abraxio allows you to manage your teams' timesheets and allocate the times entered to the budget lines of your projects and activities. Enable time recording to make time management features visible in the Abraxio platform In the ...
    • Abraxio APIs - PowerBI Tutorial

      Connect your data to Abraxio example files Step 1 : Download one of the models attached to this article (at the bottom of the page): DemoAbraxio_v2.pbit or DemoAbraxioBasic_v1.pbit DemoAbraxio_v2: If you were already using our previous model "v1", ...
    • User Management

      Access to user management You can access user management from the Administration menu on the left-hand side of the screen . Select the “Users” submenu Access to these features requires Administrator permissions. Principles and life cycle A user is a ...
    • Employee management

      Introduction The purpose of the Management module is to manage teams and Collaborators. As a Team Manager, you can describe your organisation, your teams and your Collaborators. This article describes the various elements of describing and ...