Module AutoTiers EN: Difference between revisions

Jump to navigation Jump to search
Configuration : clé API INSEE requise (portail-api.insee.fr, API Sirene 3.11), captures d'écran, SIRET d'essai / INSEE API key required, screenshots
(Create module page)
 
(Configuration : clé API INSEE requise (portail-api.insee.fr, API Sirene 3.11), captures d'écran, SIRET d'essai / INSEE API key required, screenshots)
 
Line 38: Line 38:
= Configuration =
= Configuration =


No configuration is required. The module works as soon as it is enabled (the PHP cURL extension must be available).
AutoTiers needs a free INSEE API key.
 
# On portail-api.insee.fr: '''Se connecter''', '''CONNEXION-POUR-LES-EXTERNES''', then '''Enregistrement''' (fill the form without accents). Confirm the account from the email you receive.
# '''Tableau de bord -> Créer ma première application''': name, description, "simple" mode, then '''Créer l'application'''.
# '''Catalogue -> API Sirene''' (version 3.11, not V4) '''-> Souscrire''': "Accès public" plan, then the application you created.
# Copy the key shown; it stays visible in the application, '''Souscriptions''' tab.
# In Dolibarr: '''Home -> Setup -> Modules/Applications''', AutoTiers gear icon. Paste the key, '''Save''', then '''Test API Connection'''.
 
[[File:AutoTiers-configuration.jpg|thumb|none|700px|AutoTiers setup page: the INSEE API key]]


= Usage =
= Usage =


On a new third party, enter the SIRET number and click '''Search''': the fields are filled automatically from the INSEE database.
On '''Third parties -> New third party''', enter the SIRET in "Prof Id 2 (SIRET)" and click '''Search''': company name, address, postal code, town, SIREN, NAF/APE code and VAT number are filled from the INSEE Sirene database. Check them, then '''Create third party'''.
 
To try it: 12000101100010, the SIRET of the Secrétariat général du Gouvernement (French government).
 
[[File:AutoTiers-saisie-siret.jpg|thumb|none|700px|SIRET entered, Search button (French interface)]]
[[File:AutoTiers-champs-remplis.jpg|thumb|none|700px|After Search: the fields are filled]]


= Compatibility =
= Compatibility =


Dolibarr 14.0+ (tested on 22.0.2), PHP 7.4+, cURL.
Dolibarr 14.0+ (tested on 22.0.2 and 23.0.4), PHP 7.4+, cURL.
24

edits

Navigation menu