AFNOR Directory Service
The Directory Service API allows you to:
- View and search for companies (SIREN)
- View and search for establishments (SIRET)
- View, and search for routing codes
- View, and search for directory entries
Authentication: Each endpoint must be called with an access token (Bearer). This token is retrieved by a call to a token URL.
Siren
Company by Siren number
POST /siren/search=> Search for companies (legal unit) meeting all the criteria passed as parameters, potentially multiple results returned.- Request Body :
{ <search criteria in JSON format> }- filters : the list of filters to apply to the search.
- sorting : sorting criteria by field with ascending or descending value.
- fields : the list of fields expected in the response.
- limit : the maximum number of results to return.
- ignore : a number designating the offset to apply to the returned results. Useful for pagination.
- Reponse : a paginated list of siren resources (legal unit).
- Request Body :
GET /siren/code-insee:{siren}=> Consult a siren (legal unit) identified by a siren passed as a parameter.- Mandatory parameter: a SIREN number.
- Response : the details of a siren resource (legal unit).
Siret
Facility by SIRET number
POST /siret/search=> Search for establishments meeting all of the criteria passed as parameters, potentially returning multiple results.- Request body :
{ <search criteria in JSON format> }- filters: the list of filters to apply to the search.
- sorting: sort criteria by field with ascending or descending value.
- fields: the list of fields expected in the response.
- include: the list of relationships (siren) to include in the returned results.
- limit: the maximum number of results to return.
- ignore: A number designating the offset to apply to the returned results. Useful for pagination.
- Response : a paginated list of SIRET (facility) resources.
- Request body :
GET /siret/code-insee:{siret}=> Get a SIRET (facility) identified by SIRET.- Mandatory parameter: a SIRET number.
- Response : the details of a SIRET resource (facility).
Routing Code
POST /routing-code/search=> Search for routing codes that meet all the criteria passed as parameters, potentially returning multiple results.- Request body :
{ <search criteria in JSON format> }- filters: the list of filters to apply to the search.
- sorting: sort criteria by field with ascending or descending value.
- fields: the list of fields expected in the response.
- limit: the maximum number of results to return
- ignore: A number designating the offset to apply to the returned results. Useful for pagination.
- Response : a paginated list of routing code resources.
- Request body :
GET /routing-code/siret:{siret}/code:{routing-identifier}=> Consult the routing code identified by the SIRET and a routing identifier.- Mandatory parameter: the SIRET number of the routing code for which you wish to obtain details.
- Mandatory parameter: the routing identifier for which you want to obtain details.
- Response : the detail of a routing code.
Directory Line
The directory line is the location at which the recipient wishes to receive his invoices (SIREN or SIREN/SIRET or SIREN/SIRET/routingIdentifier). The routing identifier can be a service code, a GLN 0224 code, an ODETTE 0088 code or an internal management code used by the recipient.
POST /directory-line/search=> Search for directory lines that meet all the criteria passed as parameters, potentially returning multiple results.- Request body :
{ <search criteria in JSON format> }- filters: the list of filters to apply to the search.
- sorting: sort criteria by field with ascending or descending value.
- fields: the list of fields expected in the response.
- limit: the maximum number of results to return
- ignore: A number designating the offset to apply to the returned results. Useful for pagination.
- Response : a paginated list of directory-line resources
- Request body :
GET /directory-line/code:{addressing-identifier}=> Get a line in the directory identified by an address identifier.- Permissions : according to your permissions - Mandatory parameter: un identifiant addressage.
- Response : the detail of a directory line.
📄️ Consult a siren (legal unit) by SIREN number
Returns the details of a company (legal unit) identified by the SIREN number passed as a parameter.
📄️ Get a directory line
Retrieve the data from the directory line corresponding to the identifier passed in parameters.
📄️ Get a routing code by SIRET and routing identifier
Retrieve the Routing Code data corresponding to the identifier passed in parameters.
📄️ Gets a siret (facility) by SIRET number
Returns the details of a facility associated to a SIRET.
📄️ Search for a directory line
Search for directory lines that meet all the criteria passed as parameters and return the results in the desired format.
📄️ Search for a routing code
Search for routing codes that meet all the criteria passed as parameters and return the routing codes in the desired format.
📄️ Search for a SIRET (facility)
Multi-criteria search for facilities.
📄️ SIREN search (or legal unit)
Multi-criteria company search.