About the Dolibarr category

Dolibarr is a Open Source ERP & CRM for Business.
Always check the ‘How to use the Alumio connector packages’ topic.

Extra information

System documentation: Dolibarr API Reference

Dolibarr

Connector Package Documentation

Setting up HTTP Client Dolibarr

Steps

  1. In the Alumio Dashboard, go to Clients > HTTP Client. Create a new HTTP Client and select Dolibarr HTTP Client as the prototype of the HTTP Client.
  2. Fill in the Base URI (Example: https://your-dolibarr.saas2.doliondemand.fr/api/index.php).
  3. Fill the Username & Password
  4. Enable the logging (Optional but recommended)
  5. Enable the caching of the token and select or create the storage for the token (recommended)
  6. Save and Continue.

Subscribing to Entities from Dolibarr

Steps

  1. Go to Connections → Incoming, then create a new incoming configuration and select Dolibarr - Subscriber as the subscriber.
  2. Select the entity you want to subscribe to Dolibarr.
  3. Add any request parameters needed to subscribe to the entity (optional).
  4. You can optionally add a transformer to transform the request parameters into something you need.
  5. Select the Dolibarr Client to use.

General Concept

We follow Dolibarr documentation on building this connector, so you can easily use the connector based on Dolibarr API Reference.

Entity
It’s the entity you want to subscribe from Dolibarr. Please refer to the entities in Management APIs from the Dolibarr API Reference page.

Request Parameters
These are the parameters you can provide to get the needed entity based on Dolibarr API Reference. Please look at the example below on how to fill the Request Parameters field when subscribing One Contracts entity

That’s why we need to define the id property inside the path property in the Request Parameters field. The properties inside query parameters will be parsed as query parameters. Here is the final URL that will be called when using such a Request Parameters field on the Contract entity.

/api/index.php/contracts/{CONTRACT_ID_HERE}

Input Transformer
Any transformers set here will be executed after the Request Parameters are loaded. So, you basically can add any transformer to provide and transform the request parameters into anything you need, either as path parameters and/or as query parameters of an entity.

HTTP Client
It’s the HTTP Client configuration or prototype you will use to access Dolibarr Rest API.

Publishing Entity to Dolibarr

Steps

  1. Go to Connections → Outgoing, create a new outgoing configuration, and select Dolibarr Publisher as the publisher.
  2. Select the action that you want the publisher to do with the data.
  3. Select the Dolibarr entity you want the data to be published.
  4. You can optionally add any query parameters to the request.
  5. You can also optionally add any transformers to transform the data into anything you need before submitting it to Dolibarr.
  6. Select the HTTP Client to use.

General Concept

Like the subscriber, the publisher has similar methods on how to use it. The difference is the payload that will be submitted by the publisher originating from the data (from routes, from transformers in outgoing configuration).

Entity
We support publishing to most Dolibarr REST endpoints.

For endpoints that require an object as the request payload, please look at the example below. For example, we want to Create a Contact

You can put the payload you want to send to Dolibarr into the payload property in the data. Here is an example of the Possible Response after Creation.

image

Which only returns the ID of the new contact.

HTTP Client
It’s the HTTP Client configuration or prototype you will use to access Dolibarr REST API.