Business Partner Groups (BusinessPartnerGroup) mirror SAP Business One OCRG group entities, classifying customers and suppliers for commercial channel policies, default price lists, and trade discount structures.
/v1/base/business-partner-groups
| 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 on group name or code. |
Retrieve all business partner groups.
GET /v1/base/business-partner-groups?companyId=1&view=A
200 OK{
"success": true,
"message": "Proceso realizado correctamente",
"data": [
{
"id": 100,
"company_id": 1,
"group_code": "100",
"group_name": "MAYORISTAS LIMA",
"group_type": "C",
"price_list_id": 1,
"status": "A"
},
{
"id": 101,
"company_id": 1,
"group_code": "101",
"group_name": "CANAL TRADICIONAL BODEGAS",
"group_type": "C",
"price_list_id": 2,
"status": "A"
}
]
}
Register a new customer or supplier group.
POST /v1/base/business-partner-groups?companyId=1
Content-Type: application/json
{
"group_name": "SUPERMERCADOS E HIPERMERCADOS",
"group_type": "C",
"price_list_id": 4
}
Import groups directly from SAP Business One OCRG table.
GET /v1/base/business-partner-groups/sync?companyId=1
200 OK{
"success": true,
"message": "Grupos de socios sincronizados correctamente",
"data": {
"synced_count": 18
}
}
GET /v1/base/business-partner-groups/100?companyId=1
PUT /v1/base/business-partner-groups/100?companyId=1
DELETE /v1/base/business-partner-groups/100?companyId=1
PUT /v1/base/business-partner-groups/100/restore?companyId=1