Universal repricing endpoint that accepts domain + strategy/rule/dsl and returns structured pricing data with execution trace.
HTTP: GET | POST /go_price
| Name | Type | Required | Description | Example |
|---|---|---|---|---|
| domain | string | yes | Domain to reprice (required). | profi-parfemy.cz |
| strategy_id | integer | no | Reprice all rules within this strategy. | 5 |
| rule_id | integer | no | Reprice specific rule (auto-detects strategy). | 42 |
| dsl | json | no | Direct DSL expression (requires product_id). | {"rule":{"action":{"base_strategy":"cost_plus","calculation":{"factor":1.20}}}} |
| product_id | string | no | Product ID to reprice (required when using DSL, optional otherwise). | 900258 |
| id | string | no | Alias for product_id. | 900258 |
curl -H "Authorization: ApiKey YOUR_API_KEY" "https://admin.elpricing.com/api/go_price?domain=profi-parfemy.cz&strategy_id=5&product_id=900258"
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.