MageSmith
MutationCustomer · Magento 2.4.9

confirmEmail

confirmEmail is a Magento 2 GraphQL mutation in the Customer module. Confirms the email address for a customer. It returns CustomerOutput and requires an Authorization header (Bearer customer token).

Last verified: against Magento 2.4.9.

Returns

CustomerOutput

Resolver class

\Magento\CustomerGraphQl\Model\Resolver\ConfirmEmail

Arguments

input ConfirmEmailInput! Required

An input object to identify the customer to confirm the email.

Example request

Auto-generated from the SDL — paste-ready against your store's /graphql endpoint. Replace the host, store code, and any required values before running.

Headers

Content-Type
application/json
Store
default store view code; use 'default' for the single-store baseline
Authorization
Bearer <CUSTOMER_TOKEN> obtain from generateCustomerToken mutation

Query

mutation ($input: ConfirmEmailInput!) {
  confirmEmail(input: $input) {
    customer {
      compare_list {
        uid
        items { ... }
        attributes { ... }
        item_count
      }
      created_at
      group_id
      prefix
      firstname
      middlename
      lastname
      suffix
      email
      default_billing
      default_shipping
      dob
      date_of_birth
      taxvat
      id
      is_subscribed
      addresses {
        id
        uid
        customer_id
        region { ... }
        region_id
        country_id
        country_code
        street
        company
        telephone
        fax
        postcode
        city
        firstname
        lastname
        middlename
        prefix
        suffix
        vat_id
        default_shipping
        default_billing
        custom_attributes { ... }
        custom_attributesV2 { ... }
        extension_attributes { ... }
      }
      addressesV2 {
        items { ... }
        page_info { ... }
        total_count
      }
      gender
      custom_attributes {
        code
      }
      confirmation_status
      group {
        uid
      }
      allow_remote_shopping_assistance
      reviews {
        items { ... }
        page_info { ... }
      }
      orders {
        items { ... }
        page_info { ... }
        total_count
        date_of_first_order
      }
      wishlists {
        id
        items { ... }
        items_v2 { ... }
        items_count
        sharing_code
        updated_at
      }
      wishlist {
        id
        items { ... }
        items_v2 { ... }
        items_count
        sharing_code
        updated_at
      }
      wishlist_v2 {
        id
        items { ... }
        items_v2 { ... }
        items_count
        sharing_code
        updated_at
      }
    }
  }
}

Variables

{
  "input": {
    "confirmation_key": "",
    "email": ""
  }
}

Every Magento dev tool, in one hosted workspace.

Free to sign up. Nothing to install. Drafts, audits, and projects saved across every tool.