get-customer-by-id
Fetch one Shopify customer by numeric ID, selecting only needed fields to reduce response size and prevent context flooding.
Instructions
Get a single customer by ID. Supports field selection via 'fields' to reduce response size.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Numeric customer ID (e.g. 7832529321). Do not pass a full GID. | |
| 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", "firstName"] returns only customer GID and firstName. Available: id, firstName, lastName, email, phone, createdAt, updatedAt, tags, note, taxExempt, defaultAddress, addresses, amountSpent, numberOfOrders, metafields |