The Business Partner Resources endpoint group provides cached auxiliary catalogs, lookups, and third-party entity resolution tools (such as live SUNAT RUC and RENIEC queries).
/v1/base/business-partners-resources
| Header | Type | Description |
|---|---|---|
Authorization |
string |
Bearer <token> OAuth2 token. |
x-app-stage |
string |
Current tenant stage (dev, staging, prod). |
x-app-uid |
string |
Authenticated user UUID. |
Query official SUNAT public registry for RUC validation, legal representative, and tax condition.
GET /v1/base/business-partners-resources/get-by-ruc?ruc=20485918231
200 OK{
"success": true,
"message": "Datos de RUC obtenidos",
"data": {
"ruc": "20485918231",
"razon_social": "DISTRIBUIDORA SAN JUAN S.A.C.",
"estado": "ACTIVO",
"condicion": "HABIDO",
"direccion": "AV. LOS INDUSTRIALES NRO. 1420",
"ubigeo": "150103",
"departamento": "LIMA",
"provincia": "LIMA",
"distrito": "ATE"
}
}
Check whether a tax ID (RUC, DNI, CE) already exists in the system before registering a duplicate.
GET /v1/base/business-partners-resources/find-by-tax-id?tax_id=20485918231
200 OK{
"success": true,
"message": "Socio encontrado",
"data": {
"exists": true,
"partner_id": 1045,
"card_code": "C20485918231",
"card_name": "DISTRIBUIDORA SAN JUAN S.A.C."
}
}
List supported tax identification types (RUC, DNI, CE, Pasaporte).
GET /v1/base/business-partners-resources/business-partner-tax-id-types
200 OK{
"success": true,
"data": [
{ "id": "1", "code": "DNI", "description": "Documento Nacional de Identidad", "length": 8 },
{ "id": "6", "code": "RUC", "description": "Registro Único de Contribuyentes", "length": 11 },
{ "id": "4", "code": "CE", "description": "Carné de Extranjería", "length": 12 },
{ "id": "7", "code": "PASAPORTE", "description": "Pasaporte", "length": 12 }
]
}
Query supported legal person types.
GET /v1/base/business-partners-resources/business-partner-person-types
200 OK{
"success": true,
"data": [
{ "code": "J", "name": "Persona Jurídica" },
{ "code": "N", "name": "Persona Natural con Negocio" },
{ "code": "S", "name": "Persona Natural sin Negocio" }
]
}
Query entity classification roles.
GET /v1/base/business-partners-resources/business-partner-types
{
"success": true,
"data": [
{ "key": "customer", "label": "Cliente" },
{ "key": "supplier", "label": "Proveedor" },
{ "key": "employee", "label": "Empleado" }
]
}
GET /v1/base/business-partners-resources/territories
Lists commercial and distribution territories configured for the enterprise.
GET /v1/base/business-partners-resources/ubigeos?search=Ate
Full INEI Peruvian 6-digit administrative geographic directory (Department, Province, District).
GET /v1/base/business-partners-resources/business-partner-shipping-types
GET /v1/base/business-partners-resources/business-types
GET /v1/base/business-partners-resources/employee-positions
GET /v1/base/business-partners-resources/payment-terms