List PrestaShop Orders
ps_list_ordersRetrieve and filter PrestaShop orders with pagination and sorting; choose full records, aggregated summary stats, or ID-only output for reporting and order lookup.
Instructions
List orders with optional filtering and pagination.
Args:
limit: Max orders to return (default: 50)
offset: Pagination offset (default: 0)
sort: Sort field and direction (e.g., "id_DESC", "date_add_DESC") (default: "id_DESC")
id_customer: Filter by customer ID
current_state: Filter by order state ID
reference: Filter by order reference
mode: Response shape (default: "raw"): • "raw" → full order records (default, backward-compatible) • "summary" → aggregated stats only (count, total revenue, avg basket, state breakdown) • "ids_only" → flat array of order IDs — minimal payload
Returns: Array of orders with id, reference, customer_id, state, payment method, totals, and dates.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "ps_list_orders"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Response shape: 'raw'=full records (default), 'summary'=aggregated stats only, 'ids_only'=flat ID array | raw |
| sort | No | Sort field_direction | id_DESC |
| limit | No | Max orders | |
| offset | No | Pagination offset | |
| reference | No | Filter by order reference | |
| id_customer | No | Filter by customer ID | |
| current_state | No | Filter by order state ID |