ACP2E-4552: GraphQL response does not return company status

The ACP2E-4552 patch fixes the issue where the company status is not returned in the GraphQL response. This patch is available when the Quality Patches Tool (QPT) 1.1.80 is installed. The patch ID is ACP2E-4552. Please note that this issue is scheduled to be fixed in Adobe Commerce B2B 1.5.2-p3.

Affected products and versions

The patch is created for Adobe Commerce version:

  • Adobe Commerce (all deployment methods) B2B 1.5.2-p3

Compatible with Adobe Commerce versions:

  • Adobe Commerce (all deployment methods) B2B >=1.5.0 <1.5.3
NOTE
The patch might become applicable to other versions with new Quality Patches Tool releases. To check if the patch is compatible with your Adobe Commerce version, update the magento/quality-patches package to the latest version and check the compatibility on the Quality Patches Tool: Search for patches page. Use the patch ID as a search keyword to locate the patch.

Issue

The GraphQL response does not return the company status.

Prerequisites:

B2B is installed.

Steps to reproduce:

  1. In the Admin, go to Stores > Settings > Configuration > General > B2B Features, and set Enable Company to Yes.

  2. Log in to the Commerce Admin as an administrator.

  3. Create three companies with these statuses: Active, Rejected, and Pending Approval.

  4. In the Admin, go to Customers > All Customers. Open a customer account, and from the Associate to Company list, assign the customer to each of the created companies.

  5. Send the following GraphQL request:

    code language-none
    {
      customer {
        firstname
        lastname
        email
        status
        companies {
         items {
            id
            legal_name
            name
            status
         }
        }
      }
    }
    

Expected results:

The GraphQL response returns the correct status values (such as Active, Pending Approval, Rejected, and Blocked) for all companies associated with the customer. The response can also be filtered or sorted by company status.

Actual results:

The GraphQL response does not include the company status values for companies associated with the customer.

Apply the patch

To apply individual patches, use the following links depending on your deployment method:

To learn more about Quality Patches Tool, refer to:

recommendation-more-help
commerce-operations-help-tools