Orders Main - Order Headers

📋 Returns order header records from the ordersmain table. Each row represents one complete order.

HTTP: GET /ordersmain

Query parameters

NameTypeRequiredDescriptionExample
domainstringnoFilter by domain.profi-parfemy.cz
oidstringnoFilter by order ID.PM4544521
statusintegernoFilter by order status (0, 1, 2, etc.).2
sourcestringnoFilter by payment source (e.g., WPJ_GoPay, WPJ_PayPal).WPJ_GoPay
closedstringnoFilter by closed status (Y/N).N
date_fromstringnoStart date for filtering (YYYY-MM-DD).2025-01-01
date_tostringnoEnd date for filtering (YYYY-MM-DD).2025-12-31
curstringnoFilter by currency.EUR
limitintegernoMaximum records (default 100, max 1000).100
pageintegernoPage number (1-indexed).1
sortstringnoSort column: datum, price, status, domain.datum
directionstringnoSort direction: asc or desc.desc

Notes

Sample request

curl -H "Authorization: ApiKey YOUR_API_KEY" "https://admin.elpricing.com/api/ordersmain?domain=profi-parfemy.cz&limit=50"

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.