Integrate Bancomail’s B2B database directly into your application or website. Access real-time segmentation, automate list purchases, and activate outbound campaigns faster with structured, GDPR-compliant data.
To activate the integration and start using Bancomail datasets within your platform:
Authentication is handled through an access token.
To obtain the access token, provide username:password in the request headers, encoded in Base64. Example: Authorization: Basic dGVzdDpibWwyYVRwRg==.
The access token must be included in the headers of all subsequent calls using Authorization: Bearer {{token}}. The token remains valid until logout or for 15 minutes after the last request in which it was included. While the token is valid, every request that uses it resets the session timeout counter.
| HTTP Method | POST |
|---|---|
| Test URL | https://api.neosoft.it/fmi/data/v1/databases/BM_WS_TEST/sessions |
| Production URL | https://api.neosoft.it/fmi/data/v1/databases/BM_WS/sessions |
| HTTP Headers |
Content-Type: application/json cache-control: no-cache Authorization: Basic dGVzdDpibWwyYVRwRg== |
| Body | {} |
| Response | The access token, the current layout, and an error code of 0. |
{
"response": {
"token": "536076f226e28b2a2bd0e4bbc3de6add6927e778a8819882628"
},
"messages": [
{
"code": "0",
"message": "OK"
}
]
}
The main search layout is result. For each query, the returned value is the total number of available records. Queries must use only the parameters defined below.
To retrieve the valid references for these parameters, use the layouts described in the next section (Reference Layout).
| Parameter | Description |
|---|---|
| country_code | ISO Alpha-2 country code |
| admin1_code | Alphanumeric code of the 1st-level administrative division |
| admin2_code | Alphanumeric code of the 2nd-level administrative division |
| dipendenti | 8 employee-count ranges |
| fatturato | 6 revenue ranges |
| forma_giuridica_id | Numeric legal-form code |
| macro_id | Numeric macro-category code |
| micro_id | Numeric micro-category code |
| HTTP Method | POST |
|---|---|
| Test URL | https://api.neosoft.it/fmi/data/v1/databases/BM_WS_TEST/layouts/result/_find |
| Production URL | https://api.neosoft.it/fmi/data/v1/databases/BM_WS/layouts/result/_find |
| HTTP Headers |
Content-Type: application/json cache-control: no-cache Authorization: Bearer {{token}} |
| Body |
{
"query": [
{"macro_id": "40", "country_code": "IT"}
],
"limit": "1"
}
|
| Response | Number of records with macro_id = 40 and country_code = IT. |
limit: "1".Dedicated layouts have been created to define search parameters and provide the nomenclatures needed to populate dropdown menus or search interfaces.
| Layout | Description | Total Records |
|---|---|---|
| country | List of countries | 242 |
| admin1_geo | List of 1st-level administrative divisions | 3,967 |
| admin2_geo | List of 2nd-level administrative divisions | 45,430 |
| macrocategorie | List of macro categories | 293 |
| microcategorie | List of micro categories | 1,891 |
| fatturato | Revenue ranges in millions of euros | 8 |
| dipendenti | Employee-count ranges | 6 |
| forma_giuridica | List of legal forms split by country_code | — |
| Layout | Fields |
|---|---|
| country | country_code country_name_IT country_name_EN |
| admin1_geo | ID admin1_name admin1_name_ascii country_code |
| admin2_geo | ID admin2_name admin2_name_ascii country_code id_admin1 |
| Layout | Fields |
|---|---|
| macrocategorie | ID macro_name_IT macro_name_EN |
| microcategorie | ID micro_name_IT micro_name_EN id_macro |
| fatturato | fatturato |
| dipendenti | dipendenti |
| forma_giuridica | ID forma_giuridica country_code |
If you need to query one of these layouts and return more than 100 records, such as retrieving the full list of macro categories, you must set the limit parameter to the maximum number of records available in that layout.
| HTTP Method | POST |
|---|---|
| Test URL | https://api.neosoft.it/fmi/data/v1/databases/BM_WS_TEST/layouts/nome_layout/_find |
| Production URL | https://api.neosoft.it/fmi/data/v1/databases/BM_WS/layouts/nome_layout/_find |
| HTTP Headers |
Content-Type: application/json cache-control: no-cache Authorization: Bearer {{token}} |
| Body |
{
"query": [
{"id": ">0"}
],
"limit": "300"
}
|
| Response | All macro categories (nome_layout = macrocategorie). |
To complete a purchase, the order information must be inserted into the acquisti layout.
The required information is listed below:
| Field | Description |
|---|---|
| user | User name = [test] |
| order_user_id | ID assigned by you to the order |
| query | Final search query |
| numero_anagrafiche | Search result count |
| est_garanzia | Customer data required for warranty extension (company name, city, province/state, country) |
| HTTP Method | POST |
|---|---|
| Test URL | https://api.neosoft.it/fmi/data/v1/databases/BM_WS_TEST/layouts/acquisti/records |
| Production URL | https://api.neosoft.it/fmi/data/v1/databases/BM_WS/layouts/acquisti/records |
| HTTP Headers |
Content-Type: application/json cache-control: no-cache Authorization: Bearer {{token}} |
{
"fieldData": {
"query": "{\"country_code\":\"AL\",\"macro_id\":\"180\"},{\"admin1_code\":\"IT.02\",\"country_code\":\"IT\",\"macro_id\":\"180\"},{\"admin2_code\":\"DE.02.094\",\"admin1_code\":\"DE.02\",\"country_code\":\"DE\",\"macro_id\":\"180\"},{\"admin2_code\":\"IT.01.AQ\",\"admin1_code\":\"IT.01\",\"country_code\":\"IT\",\"macro_id\":\"180\"}",
"numero_anagrafiche": "51",
"user": "test",
"order_user_id": "FD459",
"est_garanzia": "Bancomail S.p.A., Genova, GE, Italia"
},
"script": "notifica_ordine"
}
Once the order has been registered and completed, the databases will be made available via FTP within a maximum of 3 working days.
You can query the same layout to verify the purchase status using the following parameters:
| Field | Description |
|---|---|
| order_user_id | ID assigned by you to the order |
| data_ordine | Order completion date in MM/DD/YYYY format |
| status | accepted / processing / fulfilled / cancelled |
| data_evasione | FTP upload date |
| HTTP Method | POST |
|---|---|
| Test URL | https://api.neosoft.it/fmi/data/v1/databases/BM_WS_TEST/layouts/acquisti/_find |
| Production URL | https://api.neosoft.it/fmi/data/v1/databases/BM_WS/layouts/acquisti/_find |
| HTTP Headers |
Content-Type: application/json cache-control: no-cache Authorization: Bearer {{token}} |
| Body |
{
"query": [
{"order_user_id": "FD459"}
]
}
|
After the order is completed, the Database department will prepare the requested databases and make them available for download. The partner must retrieve the data through an FTP connection.
takoaka.com (standard port)user_orderid.zip..xlsx and .csv format.fulfilled.The payment model for orders placed through the Bancomail Web Service is based on purchasing credits in advance. Credit top-ups are handled through an external Bancomail procedure that is communicated to each service user.
To verify the available credit balance, query the credits layout using the parameter name (user name).
| Returned Field | Description |
|---|---|
| crediti_acquistati | Total credits purchased |
| crediti_utilizzati | Total credits used |
| crediti_residui | Remaining credit balance |
The remaining credit balance is not updated in real time because it depends on an administrative check. Updates may take from one hour up to one working day. Orders are still recorded immediately, and the related credits are deducted during the update process.
curl \ -X <HTTP METHOD> \ -H 'authorization: Bearer <TOKEN>' \ -H 'cache-control: no-cache' \ -H 'content-type: application/json' \ -d '<BODY>' \ <URL>
curl \
-H 'authorization: Bearer 536076f226e28b2a2bd0e4bbc3de6add6927e778a8819882628' \
-H 'cache-control: no-cache' \
-H 'content-type: application/json' \
-d '{
"query": [
{"macro_id": "40", "country_code":"IT"}
],
"limit":"1"
}' \
https://api.neosoft.it/fmi/data/v1/databases/BM_WS_TEST/layouts/result/_find
Postman documentation links:
Align on the integration use cases (search, purchase, delivery), the pricing logic, and how Bancomail data will be used within the platform.
Configure API access, share the authorized IP addresses, and manage the authentication flow, ensuring the integration is correctly orchestrated within the partner's infrastructure.
Integration is available to Bancomail partners. Apply to the Partner Program and activate your setup with direct support from our team.