Rules For Product

Lists all strategies and rules that evaluate a product for a domain, including inactive records.

HTTP: GET /reprice/rules_for_product

Query parameters

NameTypeRequiredDescriptionExample
domainstringyesDomain to evaluate.profi-parfemy.cz
idstringyesProduct ID to evaluate.900258
include_inactivebooleannoSet to false to hide inactive strategies and rules (defaults to true).true
preparedatabooleannoSet to true to refresh cache before loading data (ensures fresh strategy/rule names).true

Notes

Sample request

curl -H "Authorization: ApiKey YOUR_API_KEY" "https://admin.elpricing.com/api/reprice/rules_for_product?domain=profi-parfemy.cz&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.