ordercloud.lineItems.list
Retrieve all line items for a specified order, with paging, keyword search, filtering, and sorting to inspect or manage order contents.
Instructions
List all line items for a specific order
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": {
"orderId": "<orderId>",
"direction": "<direction>"
},
"name": "ordercloud.lineItems.list"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number (1-based) | |
| search | No | Keyword search | |
| sortBy | No | Sort field, prefix with ! for descending | |
| filters | No | Field-level filters | |
| orderId | Yes | The order ID | |
| pageSize | No | Items per page (max 100) | |
| direction | Yes | Order direction |