🏷️ **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
| Name | Type | Required | Description | Example |
|---|---|---|---|---|
| domain | string | yes | Domain to filter tags for. | profi-parfemy.cz |
| action | string | no | Action type: stats (default), products, product, global. | stats |
| tag | string | no | Filter by specific tag name (for action=products). | min_margin_hit |
| product_id | integer | no | Product ID (for action=product). | 12345 |
| severity | string | no | Filter by severity: info, warning, error. | warning |
| limit | integer | no | Maximum number of results (default 100). | 100 |
curl -H "Authorization: ApiKey YOUR_API_KEY" "https://admin.elpricing.com/api/pricing-tags?domain=profi-parfemy.cz&action=stats"
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.