📦 Returns raw order items (line items) from the orders table with pagination and filtering. Each row represents a single product in an order.
HTTP: GET /orders
| Name | Type | Required | Description | Example |
|---|---|---|---|---|
| domain | string | no | Filter by domain (e.g., profi-parfemy.cz, parfumsetmoi.fr). | profi-parfemy.cz |
| oid | string | no | Filter by order ID (e.g., PM4544521). | PM4544521 |
| product | integer | no | Filter by product ID. | 882725 |
| date_from | string | no | Start date for filtering (YYYY-MM-DD format). | 2025-01-01 |
| date_to | string | no | End date for filtering (YYYY-MM-DD format). | 2025-12-31 |
| cur | string | no | Filter by currency (e.g., EUR, CZK, PLN). | EUR |
| partner | string | no | Filter by partner code. | znz |
| limit | integer | no | Maximum number of records (default 100, max 1000). | 100 |
| page | integer | no | Page number for pagination (1-indexed). | 1 |
| sort | string | no | Sort column: datum, price, ks, product, domain. | datum |
| direction | string | no | Sort direction: asc or desc (default: desc). | desc |
curl -H "Authorization: ApiKey YOUR_API_KEY" "https://admin.elpricing.com/api/orders?domain=profi-parfemy.cz&limit=50"
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.