Lookup endpoints used by the promotion wizard and maintenance screens. Responses use the standard ActionResult envelope.
/v1/backend/promotion/resources
| Header | Type | Description |
|---|---|---|
Authorization |
string |
Bearer <token> OAuth2 token. |
x-app-stage |
string |
Tenant stage (dev, staging, prod). |
x-app-uid |
string |
Authenticated user UUID. |
Lists wizard strategy options (mechanic family). Values are defined in code as App\Values\Promo\PromotionStrategyEnum (not remote config).
GET /v1/backend/promotion/resources/strategies?companyId=1
200{
"success": true,
"message": "",
"data": [
{
"code": "PP",
"name": "Producto + Producto",
"description": "Compra un producto y recibe otro de bonificación"
},
{
"code": "GPP",
"name": "Mix de productos + producto",
"description": "Compra varios productos y recibe varios de bonificación"
},
{
"code": "PD",
"name": "Producto + Descuento",
"description": "Compra un producto y recibe un descuento en la compra"
},
{
"code": "GPD",
"name": "Mix de productos + Descuento",
"description": "Compra varios productos y recibe un descuento en la compra"
},
{
"code": "PS",
"name": "Plan Sorpresa",
"description": "Recibe un producto sorpresa a un precio especial al comprar un producto"
}
]
}
| Code | Use |
|---|---|
PP |
Single purchase product → bonus product |
GPP |
Product mix purchase → multiple bonus products |
PD |
Single purchase product → discount on the purchase |
GPD |
Product mix purchase → discount on the purchase |
PS |
Surprise product at special price when buying a trigger product |
The selected code is stored on promotion documents as promotion_strategy.
| Code | When |
|---|---|
200 |
Catalog returned |
401 |
Missing or invalid token |
403 |
User lacks promotion permissions |
Returns promotion product catalogs (catalog_type=promotion) that are valid now and whose KPI dimension statistics include at least one line for the given supplier (has_supplier_id filter on product_catalog_dimension_stats).
GET /v1/backend/promotion/resources/product-catalogs?companyId=1&supplierId=244
| Parameter | Type | Required | Description |
|---|---|---|---|
companyId |
integer |
Yes | Company context. |
supplierId |
integer |
Yes | Supplier master id (same as promotion vendorId). |
limit |
integer |
No | Max rows (default 100). |
skip |
integer |
No | Pagination offset. |
search |
string |
No | Search on catalog code/name. |
valid_now |
string |
No | Default Y — only catalogs valid on current date. |
200Same collection shape as GET /v1/backend/inventory/master/product-catalogs (includes active_lines_count, stats_status when snapshot is ready).
{
"success": true,
"message": "Proceso realizado correctamente.",
"data": [
{
"id": 12,
"uuid": "…",
"code": "PROMO-2026-01",
"name": "Catálogo promoción enero",
"catalog_type": "promotion",
"active_lines_count": 150,
"stats_status": "ready"
}
]
}
| Code | When |
|---|---|
200 |
List returned (may be empty if no catalog matches or stats not built) |
401 |
Missing or invalid token |
403 |
User lacks promotion permissions or company access |
422 |
Missing or invalid supplierId |
Other entries under /v1/backend/promotion/resources (companies, suppliers, source types, exclude types, product lists) may still load from goal-promotion-config. See backend route file routes/v1/backend/promotion/resources.php.