Editus

Neo Data Provider

Version:  1.0.0
State:  Published
Environment: Sandbox
Base URI: https://apis-sbx.luxhub.com/neo-data-provider/1.0
Authorization Endpoint: N/A
Token Endpoint: https://apis-sbx.luxhub.com/api/oauth/token
Types: OPEN

Neo Data Provider

 

1. Introducing the Neo Data Provider

Editus Data provides APIs to source business information such as:

  • Financials: balance sheets, …
  • Facilities Management information: sales, number of employees;
  • Contact information : phone numbers, email addresses;
  • Signaletic / fact sheet information: address, company name, manager names
  • Products and services offering and industry sector information:


2. Requests format 

2.1       POST /token

curl --location --request POST 'https://apis-<env>.luxhub.com/api/oauth/token' \
--header 'Authorization: Basic ...' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'grant_type=client_credentials' \
--data-urlencode 'scope=read'

 

2.2       GET /api/Contact/rcsl/{rcslNumber}

curl --location --request POST 'https://apis-<env>.luxhub.com/neo-data-provider/1.0/api/Contact/rcsl/{rcslNumber}' \
--header 'Accept: text/plain' \
--header 'Authorization: Bearer ...'


3. Code snippet 

First request a token using the userid and password. Then use this token to call the URL of API.

Below C# example uses the ResSharp and Newtonsoft.Json packages.

 

Define connection details to the authentication server:

string username = "Your_Client_ID";
string password = "Your_Secret_ID";
string UrlAuth = "https://apis-<env>.luxhub.com/api/oauth/token";
string contentType = "application/x-www-form-urlencoded";
string connexionString = $"grant_type=client_credentials&scope=read&client_id={username}&client_secret={password}";

 

Send a request and parse the token from the response:

var clientAuth = new RestClient(UrlAuth);
var requestPost = new RestRequest(Method.POST);
requestPost.AddHeader("cache-control", "no-cache");
requestPost.AddHeader("content-type", contentType);
requestPost.AddParameter(contentType, connexionString, ParameterType.RequestBody);
IRestResponse responseAuth = clientAuth.Execute(requestPost);

JObject joResponse = JObject.Parse(responseAuth.Content);
string tokenValue = joResponse.SelectToken("access_token").ToString();
string tokenType = joResponse.SelectToken("token_type").ToString();

 

Subsequently call the API with the token

string UrlAPI = "https://apis-<env>.luxhub.com/neo-data-provider/1.0/api/Product/rcsl/B12138";
var clientAPI = new RestClient(UrlAPI);
var requestGet = new RestRequest(Method.GET);
requestGet.AddHeader("content-type", "application/json");
requestGet.AddHeader("authorization", $"{tokenType} {tokenValue}");
IRestResponse responseAPI = clientAPI.Execute(requestGet);

 

Notes: the URL should be adapted per environment. The variable <env> environment will be 'sbx' (apis-sbx.luxhub.com) for the Sandbox and the production URL will be apis.luxhub.com

In sandbox environment, only 5 companies are available. Those are the following (RCSLNumber - Name - VAT)

  • B31650 - Grosbusch - LU31380782
  • B12138 - Editus Luxembourg S.A. - LU16448513
  • B31794 - Naturata - LU29901564
  • B85650 - BEXEB - LU19030018
  • B86546 - Restaurant La Cellula S.A. - LU19097368

 

This website uses cookies. By continuing to use our website, you accept the use of these cookies.