From e8b375d1c99d9420883859f847d36e67f01551fa Mon Sep 17 00:00:00 2001 From: Alexandra Zota Date: Mon, 14 Jul 2025 14:42:45 +0300 Subject: [PATCH 1/4] ACP2E-3990: GraphQL B2B Schema Not Returning Customer ID --- .../graphql/schema/b2b/company/queries/company.md | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/pages/graphql/schema/b2b/company/queries/company.md b/src/pages/graphql/schema/b2b/company/queries/company.md index 29fe41cc5..5b8f00d0a 100644 --- a/src/pages/graphql/schema/b2b/company/queries/company.md +++ b/src/pages/graphql/schema/b2b/company/queries/company.md @@ -110,6 +110,7 @@ query{ firstname lastname email + id } ... on CompanyTeam { name @@ -138,7 +139,8 @@ query{ "__typename": "Customer", "firstname": "Taina", "lastname": "Garofalo", - "email": "donadmin@example.com" + "email": "donadmin@example.com", + "id": "Ng==" } }, { @@ -154,7 +156,8 @@ query{ "__typename": "Customer", "firstname": "B", "lastname": "BB", - "email": "bbb@example.com" + "email": "bbb@example.com", + "id": "Nw==" } }, { @@ -170,7 +173,8 @@ query{ "__typename": "Customer", "firstname": "A", "lastname": "AA", - "email": "aa@example.com" + "email": "aa@example.com", + "id": "NQ==" } }, { @@ -186,7 +190,8 @@ query{ "__typename": "Customer", "firstname": "C", "lastname": "CC", - "email": "ccc@example.com" + "email": "ccc@example.com", + "id": "NQ==" } } ] From 16b1317cc1bf106b7d47d8acc8211c3a94d06719 Mon Sep 17 00:00:00 2001 From: Alexandru Plapana Date: Mon, 28 Jul 2025 18:24:36 +0300 Subject: [PATCH 2/4] ACP2E-4046: [Documentation] placeOrder error field --- src/pages/graphql/schema/cart/mutations/place-order.md | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/pages/graphql/schema/cart/mutations/place-order.md b/src/pages/graphql/schema/cart/mutations/place-order.md index d23cd3e30..7a2654753 100644 --- a/src/pages/graphql/schema/cart/mutations/place-order.md +++ b/src/pages/graphql/schema/cart/mutations/place-order.md @@ -18,6 +18,8 @@ Perform the following actions before using the `placeOrder` mutation: As of Commerce 2.4.7, the `PlaceOrderOutput` object can contain `orderV2`, which provides full details about the order. When the mutation runs, Commerce generates and returns a token in the `orderV2.token` field. You can supply the token value to the [`guestOrderByToken` query](../../orders/queries/guest-order-by-token.md) to retrieve details about an order created by a guest shopper. +As of Commerce 2.4.9, the `PlaceOrderOutput` object contains the errors available on the top of the response node. This assures easy error control and provides compatibility with older versions. + The `placeOrder` mutation runs asynchronously if the `AsyncOrder` module has been enabled. By default, the mutation runs synchronously. [Asynchronous order placement](https://experienceleague.adobe.com/docs/commerce-operations/performance-best-practices/high-throughput-order-processing.html#asynchronous-order-placement) describes the benefits of enabling the module. @@ -53,10 +55,6 @@ mutation { number token } - errors { - message - code - } } } ``` @@ -70,8 +68,7 @@ mutation { "orderV2": { "number": "000000006", "token": "0:3:OSScWU6PKLn3kFyMhNWyskG0opgVvFBnJmtuaFHKGwDFT83S6Kv9U39iYwixuU+vhwDz2AF4pCs3GtLhHbQ=" - }, - "errors": [] + } } } } @@ -91,3 +88,4 @@ Code | Error | Description `UNABLE_TO_PLACE_ORDER` | `Enter a valid payment method and try again` | The payment method was not set. See [setPaymentMethodOnCart](../../cart/mutations/set-payment-method.md) mutation. `UNABLE_TO_PLACE_ORDER` | `Some of the products are out of stock` | One of the products in the shopping cart are currently out of stock. `UNDEFINED` | `UNDEFINED` | The error message does not match any error code + From edce96fd7e4db16de3433772893cebcaf8988e1a Mon Sep 17 00:00:00 2001 From: Kevin Harper Date: Mon, 28 Jul 2025 16:06:50 -0500 Subject: [PATCH 3/4] Update place-order.md --- src/pages/graphql/schema/cart/mutations/place-order.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/graphql/schema/cart/mutations/place-order.md b/src/pages/graphql/schema/cart/mutations/place-order.md index 7a2654753..d77de1b04 100644 --- a/src/pages/graphql/schema/cart/mutations/place-order.md +++ b/src/pages/graphql/schema/cart/mutations/place-order.md @@ -16,10 +16,10 @@ Perform the following actions before using the `placeOrder` mutation: - Set the payment method - For guest customers, assign an email to the cart -As of Commerce 2.4.7, the `PlaceOrderOutput` object can contain `orderV2`, which provides full details about the order. When the mutation runs, Commerce generates and returns a token in the `orderV2.token` field. You can supply the token value to the [`guestOrderByToken` query](../../orders/queries/guest-order-by-token.md) to retrieve details about an order created by a guest shopper. - As of Commerce 2.4.9, the `PlaceOrderOutput` object contains the errors available on the top of the response node. This assures easy error control and provides compatibility with older versions. +As of Commerce 2.4.7, the `PlaceOrderOutput` object can contain `orderV2`, which provides full details about the order. When the mutation runs, Commerce generates and returns a token in the `orderV2.token` field. You can supply the token value to the [`guestOrderByToken` query](../../orders/queries/guest-order-by-token.md) to retrieve details about an order created by a guest shopper. + The `placeOrder` mutation runs asynchronously if the `AsyncOrder` module has been enabled. By default, the mutation runs synchronously. [Asynchronous order placement](https://experienceleague.adobe.com/docs/commerce-operations/performance-best-practices/high-throughput-order-processing.html#asynchronous-order-placement) describes the benefits of enabling the module. From d5ed21250763ba4d59a3ab58c2dbbcd91bea17a4 Mon Sep 17 00:00:00 2001 From: Kevin Harper Date: Mon, 28 Jul 2025 16:25:46 -0500 Subject: [PATCH 4/4] Update place-order.md --- src/pages/graphql/schema/cart/mutations/place-order.md | 1 - 1 file changed, 1 deletion(-) diff --git a/src/pages/graphql/schema/cart/mutations/place-order.md b/src/pages/graphql/schema/cart/mutations/place-order.md index d77de1b04..a23373b9b 100644 --- a/src/pages/graphql/schema/cart/mutations/place-order.md +++ b/src/pages/graphql/schema/cart/mutations/place-order.md @@ -88,4 +88,3 @@ Code | Error | Description `UNABLE_TO_PLACE_ORDER` | `Enter a valid payment method and try again` | The payment method was not set. See [setPaymentMethodOnCart](../../cart/mutations/set-payment-method.md) mutation. `UNABLE_TO_PLACE_ORDER` | `Some of the products are out of stock` | One of the products in the shopping cart are currently out of stock. `UNDEFINED` | `UNDEFINED` | The error message does not match any error code -