From 0f65810bdd0e83922165eda5d15d24ce1b0f08eb Mon Sep 17 00:00:00 2001 From: Sangmi Lee Date: Mon, 10 Aug 2026 14:01:56 +0200 Subject: [PATCH 1/2] ACCS-1448: document search filter on customer.orders Adds a "Search a customer's order history" example showing the new search filter (matches order number, product name, or SKU) added to CustomerOrdersFilterInput via the Storefront Compatibility Package. --- .../schema/customer/queries/customer.md | 54 +++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/src/pages/graphql/schema/customer/queries/customer.md b/src/pages/graphql/schema/customer/queries/customer.md index 3289acbd8..91e418ef8 100644 --- a/src/pages/graphql/schema/customer/queries/customer.md +++ b/src/pages/graphql/schema/customer/queries/customer.md @@ -592,6 +592,60 @@ These topics contain examples with fragments and provide even more details: } ``` +### Search a customer's order history + +The following example uses the `search` filter to return orders matching a term against the order number or an item's product name or SKU. `search` is combined with other filters, such as `status`, using AND logic. The matched item is included in the response to show why the order matched the search term. + +**Request:** + +```graphql +{ + customer { + orders(filter: {search: "shirt", status: {eq: "complete"}}) { + total_count + items { + id + number + order_date + status + items { + product_name + product_sku + } + } + } + } +} +``` + +**Response:** + +```json +{ + "data": { + "customer": { + "orders": { + "total_count": 1, + "items": [ + { + "id": "MQ==", + "number": "000000001", + "order_date": "2020-11-14 22:25:48", + "status": "Complete", + "items": [ + { + "product_name": "Aria Flannel Shirt", + "product_sku": "MS12-M-Blue" + } + ] + } + ] + } + } + } +} +``` + ### Retrieve the store credit history The following example returns the store credit history for the logged-in user. From e37a88346d11e0e436c8eda51c047a68838e8d0d Mon Sep 17 00:00:00 2001 From: Kevin Harper Date: Tue, 11 Aug 2026 11:01:46 -0500 Subject: [PATCH 2/2] Document customer order history search functionality Added documentation for searching a customer's order history using filters. --- src/pages/graphql/schema/customer/queries/customer.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pages/graphql/schema/customer/queries/customer.md b/src/pages/graphql/schema/customer/queries/customer.md index 91e418ef8..77c469b46 100644 --- a/src/pages/graphql/schema/customer/queries/customer.md +++ b/src/pages/graphql/schema/customer/queries/customer.md @@ -594,6 +594,8 @@ These topics contain examples with fragments and provide even more details: ### Search a customer's order history + + The following example uses the `search` filter to return orders matching a term against the order number or an item's product name or SKU. `search` is combined with other filters, such as `status`, using AND logic. The matched item is included in the response to show why the order matched the search term. **Request:**