The Product Catalogs API governs curated, rule-based product universes in the GOAL ecosystem. Rather than assigning static product lists across commercial channels, GOAL utilizes a two-tier architecture:
product_catalog_filters) and exclusion rules (product_catalog_exclude_filters) based on brands, categories, classifications, or individual SKUs.product_catalog_lines) compiled by BuildProductCatalogLinesAction. Consuming modules (Online Stores, Presale Teams, Promotions Engine, Gamification Contests) query materialized lines for instant membership evaluation./v1/inventory/master/product-catalogsGET /{id}/dependents — see Object Dependents API.App\Http\Controllers\V1\Backend\Inventory\Master\ProductCatalogControllerDomain\Inventory\Master\Catalog\*ProductCatalog (product_catalogs)ProductCatalogFilter (product_catalog_filters)ProductCatalogExcludeFilter (product_catalog_exclude_filters)ProductCatalogExclude (product_catalog_excludes)ProductCatalogLine (product_catalog_lines)Authorization: Bearer <jwt-token>
x-app-stage: <stage-identifier>
x-app-uid: <application-uuid>
Content-Type: application/json
Accept: application/json
| Parameter | Type | Required | Description |
|---|---|---|---|
companyId |
integer |
Yes | Multi-tenant company context identifier. |
| Method | Endpoint | Description |
|---|---|---|
GET |
/v1/inventory/master/product-catalogs |
List product catalogs with type/status filters and pagination |
POST |
/v1/inventory/master/product-catalogs |
Create a new product catalog |
GET |
/v1/inventory/master/product-catalogs/types |
List available catalog types enum |
GET |
/v1/inventory/master/product-catalogs/{id} |
Get catalog details by ID or UUID |
PUT |
/v1/inventory/master/product-catalogs/{id} |
Update catalog general information, dates, or validity flags |
DELETE |
/v1/inventory/master/product-catalogs/{id} |
Soft delete a catalog and cascade-deactivate lines |
POST |
/v1/inventory/master/product-catalogs/{id}/build-lines |
Execute the assortment compilation engine to materialize catalog lines |
GET |
/v1/inventory/master/product-catalogs/{id}/filters |
Retrieve inclusion filter rules |
POST |
/v1/inventory/master/product-catalogs/{id}/filters |
Save / replace all inclusion filter rules |
POST |
/v1/inventory/master/product-catalogs/{id}/filters/copy-from |
Copy inclusion filter rules from another catalog (merge or override) |
GET |
/v1/inventory/master/product-catalogs/{id}/dimension-stats |
Aggregate product counts grouped by brand, category, and classification |
GET |
/v1/inventory/master/product-catalogs/{id}/dimension-products |
List active catalog line products for a dimension value (drill-down) |
GET |
/v1/inventory/master/product-catalogs/{id}/lines |
List compiled/materialized catalog lines with SKU details |
GET |
/v1/inventory/master/product-catalogs/{id}/exclude-filters |
Retrieve exclusion filter rules |
POST |
/v1/inventory/master/product-catalogs/{id}/exclude-filters |
Save / replace all exclusion filter rules |
POST |
/v1/inventory/master/product-catalogs/{id}/exclude-filters/copy-from |
Copy exclusion filter rules from another catalog (merge or override) |
GET |
/v1/inventory/master/product-catalogs/{id}/exclude-lines |
List individual manually blacklisted products |
POST |
/v1/inventory/master/product-catalogs/{id}/exclude-lines |
Manually blacklist one SKU (skips if already active; restores if soft-deleted) |
POST |
/v1/inventory/master/product-catalogs/{id}/exclude-lines/bulk |
Bulk manual blacklist with per-SKU skip / restore / create summary |
DELETE |
/v1/inventory/master/product-catalogs/{id}/exclude-lines/{productId} |
Remove a SKU blacklist override |
ProductCatalogTypeEnum)GET /v1/inventory/master/product-catalogs/types
Returns all valid catalog types recognized by consuming modules:
{
"success": true,
"message": "Operación exitosa.",
"data": {
"online_store": "Tienda Online (B2B/B2C)",
"sales_team": "Equipo de Ventas / Preventa",
"promotion": "Mecánica de Promoción",
"supplier": "Catálogo de Proveedor",
"contest": "Concurso Comercial",
"purchase_contest": "Concurso de Compras",
"custom": "Catálogo Personalizado"
}
}
GET /v1/inventory/master/product-catalogs
| Parameter | Type | Required | Description |
|---|---|---|---|
companyId |
integer |
Yes | Company ID |
catalog_type |
string |
No | Filter by type: online_store, sales_team, promotion, etc. |
status |
string |
No | Status code (A or I) |
search |
string |
No | Search by code or name |
page |
integer |
No | Page number (Default: 1) |
per_page |
integer |
No | Limit per page (Default: 15) |
200 OK{
"success": true,
"message": "Operación exitosa.",
"data": {
"current_page": 1,
"data": [
{
"id": 12,
"uuid": "8b52a970-07bf-4f24-912a-3c58253a699c",
"company_id": 10,
"code": "CAT-B2B-SUR",
"name": "Catálogo B2B Zona Sur 2026",
"description": "Portafolio oficial para tiendas online y preventa zona sur",
"catalog_type": "online_store",
"validates": "Y",
"valid_from": "2026-01-01",
"valid_to": "2026-12-31",
"status": "A",
"lines_count": 348,
"created_at": "2026-01-02T10:00:00.000000Z"
}
],
"total": 1,
"per_page": 15,
"last_page": 1
}
}
POST /v1/inventory/master/product-catalogs
{
"code": "CAT-SUMMER-2026",
"name": "Campaña Verano 2026",
"description": "Portafolio promocional bebidas y cervezas",
"catalog_type": "promotion",
"validates": "Y",
"valid_from": "2026-01-01",
"valid_to": "2026-03-31",
"status": "A"
}
| Field | Type | Required | Description |
|---|---|---|---|
code |
string |
Yes | Unique catalog code within the company |
name |
string |
Yes | Human-readable catalog title |
catalog_type |
string |
Yes | Must match one of ProductCatalogTypeEnum |
validates |
string |
No | 'Y' enforces validity date window; 'N' is always active |
valid_from |
date |
No | Start date (YYYY-MM-DD) when validates = 'Y' |
valid_to |
date |
No | End date (YYYY-MM-DD) when validates = 'Y' |
status |
string |
No | 'A' (Active) or 'I' (Inactive). Default 'A' |
201 Created{
"success": true,
"message": "Catálogo de productos creado exitosamente.",
"data": {
"id": 13,
"uuid": "fe87a120-7463-4b61-9c60-a4a34b28e64b",
"company_id": 10,
"code": "CAT-SUMMER-2026",
"name": "Campaña Verano 2026",
"catalog_type": "promotion",
"status": "A"
}
}
A catalog's assortment is dynamically defined via tree expressions:
connector: AND / ORfilter_field: brand_id, product_category_id, product_line_id, product_clasification_id, supplier_id, product_idfilter_operator: IN, NOT_IN, =, !=filter_value: Comma-separated IDs (e.g., "1,4,9") or single scalarPOST /v1/inventory/master/product-catalogs/{id}/filters
Replaces all current inclusion rules with the supplied payload:
{
"filters": [
{
"sequence": 1,
"group_id": 1,
"parent_group_id": null,
"connector": "AND",
"filter_field": "brand_id",
"filter_operator": "IN",
"filter_value": "1,2,5"
},
{
"sequence": 2,
"group_id": 1,
"parent_group_id": null,
"connector": "AND",
"filter_field": "product_category_id",
"filter_operator": "IN",
"filter_value": "10,12"
}
]
}
200 OK{
"success": true,
"message": "Filtros del catálogo guardados correctamente.",
"data": [
{
"id": 101,
"uuid": "4fa88d12-...",
"product_catalog_id": 13,
"sequence": 1,
"group_id": 1,
"connector": "AND",
"filter_field": "brand_id",
"filter_operator": "IN",
"filter_value": "1,2,5",
"status": "A"
}
]
}
POST /v1/inventory/master/product-catalogs/{id}/filters/copy-from
POST /v1/inventory/master/product-catalogs/{id}/exclude-filters/copy-from
Duplicates inclusion or exclusion rules from source_catalog_id into target catalog {id}.
{
"source_catalog_id": 12,
"mode": "merge"
}
| Field | Type | Required | Description |
|---|---|---|---|
source_catalog_id |
integer |
Yes | Source catalog ID (must belong to the same company) |
mode |
string |
Yes | merge (appends non-duplicate rules) or override (clears and replaces existing rules) |
POST /v1/inventory/master/product-catalogs/{id}/build-lines
Executes BuildProductCatalogLinesAction. The backend evaluates all inclusion filters, applies exclusion filters, strips manually blacklisted SKUs, and writes rows into product_catalog_lines.
200 OK{
"success": true,
"message": "Líneas del catálogo generadas correctamente.",
"data": {
"included_count": 306,
"excluded_count": 42,
"filter_excluded_count": 30,
"persisted_excluded_count": 12,
"stats_status": "pending"
}
}
| Field | Description |
|---|---|
included_count |
Active rows in product_catalog_lines (status = A) after include, exclude filters, and persisted manual excludes |
excluded_count |
filter_excluded_count + persisted_excluded_count |
filter_excluded_count |
Products moved by exclude filter rules on this build |
persisted_excluded_count |
Manual exclude lines re-applied (include lines soft-deleted) |
GET /v1/inventory/master/product-catalogs/{id}/dimension-stats
Returns aggregated counts across brands, lines, and categories within the catalog's assortment. Useful for frontend dashboards and validation before publishing.
200 OK{
"success": true,
"message": "Operación exitosa.",
"data": {
"total_products": 348,
"brands": [
{ "id": 1, "name": "CRISTAL", "count": 18 },
{ "id": 2, "name": "PILSEN CALLAO", "count": 24 }
],
"categories": [
{ "id": 10, "name": "CERVEZAS NACIONALES", "count": 120 }
]
}
}
GET /v1/inventory/master/product-catalogs/{id}/lines
| Parameter | Type | Required | Description |
|---|---|---|---|
companyId |
integer |
Yes | Company ID |
search |
string |
No | Search product name or SKU code |
brand_id |
integer |
No | Filter by brand |
page |
integer |
No | Page number (Default: 1) |
per_page |
integer |
No | Rows per page (Default: 20) |
200 OK{
"success": true,
"message": "Operación exitosa.",
"data": {
"current_page": 1,
"data": [
{
"id": 1024,
"product_catalog_id": 13,
"product_id": 55,
"status": "A",
"product": {
"id": 55,
"code": "PROD-001",
"name": "CERVEZA CRISTAL 650ML RETORNABLE",
"brand": { "id": 1, "name": "CRISTAL" },
"line": { "id": 4, "name": "CERVEZAS" }
}
}
],
"total": 348
}
}
POST /v1/inventory/master/product-catalogs/{id}/exclude-lines
Explicitly suppresses a SKU from the catalog, regardless of dynamic inclusion rules.
{
"product_id": 55,
"reason": "Desabastecimiento temporal de envase de vidrio"
}
200 OKdata.outcome is created.data.outcome is skipped (success, no duplicate row).data.outcome is restored.POST /v1/inventory/master/product-catalogs/{id}/exclude-lines/bulk
Applies the same upsert rules as the single endpoint for each product_id in one transaction.
{
"product_ids": [55, 102, 203],
"reason": "Exclusión manual masiva"
}
200 OK{
"success": true,
"message": "Proceso de exclusión masiva finalizado.",
"data": {
"created": 2,
"restored": 0,
"skipped": 1,
"failed": []
}
}
| Field | Description |
|---|---|
created |
New exclude lines inserted |
restored |
Soft-deleted exclude lines reactivated |
skipped |
Product already on the active exclusion list |
failed |
Per-product errors, e.g. { "product_id": 999, "message": "Producto no encontrado." } |
DELETE /v1/inventory/master/product-catalogs/{id}/exclude-lines/{productId}
Restores the SKU to normal rule evaluation.
| HTTP Code | Condition | Example Reason |
|---|---|---|
401 Unauthorized |
Invalid or expired token | Token expired |
404 Not Found |
Catalog or product does not exist | Catalog {id} not found |
422 Unprocessable |
Mode not in ['merge', 'override'] or invalid filter operator |
"Modo inválido. Use merge u override." |
500 Server Error |
Execution exception in rule builder | Database query error |