Descripción
The Spanish Business Information Service allows you to obtain precise details about a company registered in Spain using its NIF (Tax Identification Number). By providing the NIF, the service returns information such as the company's address, business name, CNAE code (National Classification of Economic Activities), constitution date, document number and type, legal form, phone number, SIC code (Standard Industrial Classification), and social purpose.
Parameters
Name |
Type |
Required? |
Description |
Example |
documentType |
String |
True |
Document type. Allowed value: NIF. |
NIT |
documentType |
String |
True |
Tax Identification Number (NIF) to be consulted. |
201340512231248910 |
Implementation
Request
import axios from 'axios';
const options = {
method: 'GET',
url: '<https://api.verifik.co/v2/es/company>',
params: {documentType: 'NIF', documentNumber: 'B45549201'},
headers: {
Accept: 'application/json',
Authorization: 'jwt <tu_token>'
}
};
try {
notFou const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
Response 200 - (Successful response)
{
"data": {
"address": "CTRA. MOCEJON, S/N 45280, OLIAS DEL REY, TOLEDO",
"businessName": "PANADERIA MILAGROS DIAZ SL",
"cnae": "1072 Fabricación de galletas y productos de panadería y pastelería de larga duración",
"constitutionDate": "20 años, 7 meses y 14 dias",
"documentNumber": "B45549201",
"documentType": "CIF",
"legalForm": "SOCIEDAD LIMITADA",
"phone": "925490311",
"sic": "2052 GALLETAS Y AFINES",
"socialObject": "LA FABRICACION Y COMERCIALIZACION DE PRODUCTOS DE PANADERIA Y OTROS DERIVADOS TALES COMO BOLLERIA Y PASTELERIA. LA"
},
"signature": {
"dateTime": "August 5, 2024 4:54 PM",
"message": "Certified by Verifik.co"
},
"id": "ZJ0Q8"
}
Other responses
|
Code |
Descripción |
Response Body |
404 |
Not Found |
Información no encontrada |
{ |
"code": "NotFound", |
|
|
|
"message": "No existe contribuyente asociado a la CUIT ingresada", |
|
|
|
"signature": { |
|
|
|
"dateTime": "February 21, 2024 7:52 PM", |
|
|
|
"message": "Certified by Verifik.co" |
|
|
|
} |
|
|
|
} |
|
|
|
409 |
Conflict |
Hace falta suministrar algún parámetro. |
{ |
"code": "MissingParameter", |
|
|
|
"message": "missing documentType\n. missing documentNumber\n" |
|
|
|
} |
|
|
|
409 |
Conflict |
documentType inválido para esta consulta. |
{ |
"code": "MissingParameter", |
|
|
|
"message": "documentType must be one of: [NIF]" |
|
|
|
} |
|
|
|