Business Partner Addresses (BusinessPartnerAddress) model delivery drop-off points, billing headquarters, and operational warehouses with precise GPS coordinates, territory codes, and SUNAT Ubigeo standards.
/v1/base/business-partner-addresses
| 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. |
| Parameter | Type | Default | Description |
|---|---|---|---|
companyId |
integer |
Required | Current operational company ID. |
view |
string |
A |
State filter: A (Active), I (Inactive), D (Trashed), ALL (All). |
search |
string |
- | Search query by address line, code, or city. |
limit |
integer |
15 |
Limit items count. |
skip |
integer |
0 |
Offset count. |
Retrieve addresses with filtering and pagination.
GET /v1/base/business-partner-addresses?companyId=1&view=A&search=Principal
200 OK{
"success": true,
"message": "Proceso realizado correctamente",
"data": [
{
"id": 412,
"company_id": 1,
"business_partner_id": 1045,
"address_code": "ENTR-01",
"address_name": "Sede Principal",
"address_type": "B",
"street": "Av. Los Industriales 1420",
"block": "Urb. Industrial",
"city": "Lima",
"state": "Lima",
"country": "PE",
"ubigeo": "150103",
"coordinates": {
"latitude": -12.083419,
"longitude": -76.972145,
"altitude": 140.5
},
"status": "A"
}
]
}
Register a delivery or fiscal address for a business partner.
POST /v1/base/business-partner-addresses?companyId=1
Content-Type: application/json
{
"business_partner_id": 1045,
"address_code": "ENTR-02",
"address_name": "Sucursal Norte",
"address_type": "S",
"street": "Av. Alfredo Mendiola 3600",
"city": "Independencia",
"state": "Lima",
"country": "PE",
"ubigeo": "150112",
"coordinates": {
"latitude": -11.992384,
"longitude": -77.059281,
"altitude": 110.0
}
}
200 OK{
"success": true,
"message": "Dirección creada correctamente",
"data": {
"id": 413,
"address_code": "ENTR-02",
"status": "A"
}
}
Modify descriptive address information.
PUT /v1/base/business-partner-addresses/413?companyId=1
Content-Type: application/json
{
"street": "Av. Alfredo Mendiola 3650 Int. 201",
"address_name": "Sucursal MegaPlaza"
}
Dedicated fast endpoint for mobile collectors and field geocoding apps.
PUT /v1/base/business-partner-addresses/413/location?companyId=1
Content-Type: application/json
{
"coordinates": {
"latitude": -11.992415,
"longitude": -77.059312,
"altitude": 112.5
}
}
200 OK{
"success": true,
"message": "Ubicación actualizada correctamente",
"data": {
"id": 413,
"latitude": -11.992415,
"longitude": -77.059312
}
}
Automatically update the Peruvian 6-digit SUNAT Ubigeo code based on geographic coordinates.
PUT /v1/base/business-partner-addresses/413/fix-ubigeo?companyId=1
200 OK{
"success": true,
"message": "Ubigeo actualizado correctamente según coordenadas",
"data": {
"id": 413,
"ubigeo": "150112",
"district": "Independencia",
"province": "Lima",
"department": "Lima"
}
}
Trigger background synchronization of CRD1 address records from SAP Business One.
POST /v1/base/business-partner-addresses/sync?companyId=1
200 OK{
"success": true,
"message": "Sincronización de direcciones ejecutada exitosamente",
"data": {
"imported_count": 14,
"updated_count": 82
}
}
DELETE /v1/base/business-partner-addresses/413?companyId=1
PUT /v1/base/business-partner-addresses/413/restore?companyId=1
Patch delivery phone, email, and default contact without triggering ERP sync.
PUT /v1/base/business-partner-addresses/413/comms?companyId=1
Content-Type: application/json
{
"phone": "999888777",
"email": "entrega@cliente.pe",
"default_business_partner_contact_id": 92
}
Copy phone (fallback mobile) and email from a contact:
POST /v1/base/business-partner-addresses/413/comms/copy-from-contact?companyId=1
Content-Type: application/json
{ "contact_id": 92 }
Permission: BUSINESS_PARTNER_ADDRESS_UPDATE (copy also requires CONTACT_LIST).