Get Customer Order History
ps_get_customer_ordersRetrieves a customer's order history by customer ID, including totals, statuses, payment methods, dates, and a summary of total orders and spend.
Instructions
Get the complete order history for a customer, with totals and statuses.
Args:
id_customer: Customer ID (required)
limit: Max orders to return (default: 50)
Returns: Array of orders sorted by date (newest first) with id, reference, state, payment method, totals, and dates. Also returns customer summary (total orders, total spent).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"id_customer": "<id_customer>"
},
"name": "ps_get_customer_orders"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max orders to return | |
| id_customer | Yes | Customer ID |