Read-only endpoints that aggregate where a master record is used in GOAL (operational goal-data-db). Responses use the standard ActionResult envelope with grouped sections, each containing items with a front_path for deep linking in GOAL Frontend.
Each front_path uses the related entity UUID in the route segment (e.g. /commercial/sales-teams/{uuid}). Numeric id is returned on items for display/API use but is not used in front_path when uuid is present.
| Header | Type | Description |
|---|---|---|
Authorization |
string |
Bearer <token> |
x-app-stage |
string |
Tenant stage (dev, staging, prod) |
x-app-uid |
string |
Client UUID |
| Parameter | Type | Default | Description |
|---|---|---|---|
companyId |
integer |
Required | Company scope |
limit |
integer |
50 |
Max items per section (capped at 200) |
section |
string |
— | Repeatable; restrict to section keys |
Promotions sections include only rows where promo_status = 'A' and master status = 'A' (no date window).
{
"success": true,
"message": "Dependientes del producto obtenidos correctamente",
"data": {
"entity_type": "product",
"entity_id": 1042,
"entity_uuid": "…",
"entity_code": "SKU-001",
"sections": [
{
"key": "product_catalogs",
"label": "Catálogos de producto",
"count": 3,
"truncated": false,
"items": [
{
"id": 10,
"uuid": "…",
"code": "CAT-010",
"name": "Surtido equipo norte",
"status": "A",
"meta": { "catalog_type": "sales_team" },
"front_path": "/inventory/product-catalogs/{uuid}"
}
]
}
]
}
}
GET /v1/backend/inventory/product/products/{id}/dependents?companyId=1
{id} resolves as numeric id, uuid, or product code.
| Section key | Source |
|---|---|
product_catalogs |
product_catalog_lines |
price_lists |
price_list_lines |
promotions |
promotions_products → promotions |
sales_teams |
sales_team_products |
online_stores |
online_store_products |
GET /v1/backend/purchase/master/suppliers/{id}/dependents?companyId=1
{id} resolves as numeric id or uuid.
| Section key | Source |
|---|---|
product_catalogs |
product_catalog_lines or product_catalog_filters (supplier_id) |
sales_teams |
sales_team_catalog_suppliers |
sales_team_groups |
Groups on teams linked via catalog suppliers or group products |
online_stores |
Stores listing products with products.supplier_id |
GET /v1/backend/inventory/master/product-catalogs/{id}/dependents?companyId=1
{id} resolves as numeric id, uuid, or catalog code.
| Section key | Source |
|---|---|
sales_teams |
sales_team_product_catalogs |
online_stores |
online_store_product_catalogs |
promotions |
promotions_product_groups → active promotions |
sales_team_products |
Materialized links with source_product_catalog_id |
| Code | When |
|---|---|
200 |
Success |
404 |
Entity not found for company |
401 / 403 |
Auth / permission |
422 |
Invalid query parameters |
500 |
Server error |