get-order-by-id
Retrieve a specific Shopify order by order number, numeric ID, or GID, and optionally select only needed fields to reduce response size and token usage.
Instructions
Get a specific order by ID. Supports field selection via 'fields' to reduce response size.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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, currentTotalPrice, customer, shippingAddress, billingAddress, lineItems, tags, note, cancelReason, cancelledAt, updatedAt, returnStatus, processedAt, poNumber, discountCodes, metafields | |
| orderId | Yes | Accepts order numbers (e.g. 77713), numeric IDs, or full GIDs (gid://shopify/Order/...) |