Pricing Tags & Diagnostics

🏷️ **Pricing diagnostics system** - tracks why pricing decisions were made. Automatically records when products hit guardrails (min/max price), margin issues (below cost, low margin), or custom tags from DSL rules. Use for monitoring pricing health and identifying problematic products.

HTTP: GET | DELETE /pricing-tags

Query parameters

NameTypeRequiredDescriptionExample
domainstringyesDomain to filter tags for.profi-parfemy.cz
actionstringnoAction type: stats (default), products, product, global.stats
tagstringnoFilter by specific tag name (for action=products).min_margin_hit
product_idintegernoProduct ID (for action=product).12345
severitystringnoFilter by severity: info, warning, error.warning
limitintegernoMaximum number of results (default 100).100

Notes

Sample request

curl -H "Authorization: ApiKey YOUR_API_KEY" "https://admin.elpricing.com/api/pricing-tags?domain=profi-parfemy.cz&action=stats"

Interactive call

Queue workflow

Tasks are persisted to var/api_queue/tasks.json. Process them with:

php go.php cron:list\nphp go.php cron:go

Logs are written to var/api_queue/logs/{task_id}.log.