get-customer-orders
Retrieve orders for a specific customer by numeric ID, using field selection and pagination to limit response size.
Instructions
Get orders for a specific customer. Supports field selection via 'fields' to reduce response size.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| after | No | Cursor for forward pagination | |
| limit | No | Number of orders to return (default 10, max 250) | |
| before | No | Cursor for backward pagination | |
| fields | No | IMPORTANT: Always specify this to minimize token usage and avoid flooding context with unnecessary data. Only the listed fields will be fetched from the API and returned. 'id' is always included. If you are unsure which fields are needed, ask the user before fetching all fields. Example: ["id", "name"] returns only order GID and name. Available: id, name, createdAt, financialStatus, fulfillmentStatus, totalPrice, subtotalPrice, shippingPrice, tax, customer, lineItems, tags, note | |
| reverse | No | Reverse the sort order | |
| sortKey | No | Sort key for orders | |
| countOnly | No | IMPORTANT: Use this to check result set size before fetching data. Returns only { count: N } without any resource data, saving significant context. Recommended before paginating large result sets. | |
| customerId | Yes | Numeric customer ID (e.g. 7832529321). Do not pass a full GID. |