Reprice (Product IDs)

Queues go.php reprice for selected product IDs.

HTTP: POST | GET /reprice/domain-id

Query parameters

NameTypeRequiredDescriptionExample
domainstringyesDomain to reprice.profi-parfemy.cz
idstringyesSingle product ID or comma separated list of IDs.667301
strategy_idstringnoOptional strategy row ID to limit the repricing run to a single strategy.recYb7E8QiPbovU9d
waitbooleannoSet to true to run immediately and include CLI output in the response.false

Wait mode: Set "wait": true to execute immediately and include CLI output in the response.

Notes

Sample request

curl -X POST https://admin.elpricing.com/api/reprice/domain-id
  -H "Authorization: ApiKey YOUR_API_KEY"
  -H "Content-Type: application/json"
  -d '{"domain":"profi-parfemy.cz","id":"667301","strategy_id":"recYb7E8QiPbovU9d","wait":false}'

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.