Go Price - Unified Repricing

Universal repricing endpoint that accepts domain + strategy/rule/dsl and returns structured pricing data with execution trace.

HTTP: GET | POST /go_price

Query parameters

NameTypeRequiredDescriptionExample
domainstringyesDomain to reprice (required).profi-parfemy.cz
strategy_idintegernoReprice all rules within this strategy.5
rule_idintegernoReprice specific rule (auto-detects strategy).42
dsljsonnoDirect DSL expression (requires product_id).{"rule":{"action":{"base_strategy":"cost_plus","calculation":{"factor":1.20}}}}
product_idstringnoProduct ID to reprice (required when using DSL, optional otherwise).900258
idstringnoAlias for product_id.900258

Notes

Sample request

curl -H "Authorization: ApiKey YOUR_API_KEY" "https://admin.elpricing.com/api/go_price?domain=profi-parfemy.cz&strategy_id=5&product_id=900258"

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.