Skip to main content
Anchor to CustomerAccessTokenCreatePayload

CustomerAccessTokenCreatePayload

payload

Return type for customerAccessTokenCreate mutation.

•CustomerAccessToken

The newly created customer access token object.

Show fields
•[CustomerUserError!]!
non-null

The list of errors that occurred from executing the mutation.

Show fields
•[UserError!]!
non-nullDeprecated
Show fields

Was this section helpful?

Anchor to Mutations with this payloadMutations with this payload

•mutation

For legacy customer accounts only.

Creates a CustomerAccessToken using the customer's email and password. The access token is required to read or modify the Customer object, such as updating account information or managing addresses.

The token has an expiration time. Use customerAccessTokenRenew to extend the token before it expires, or create a new token if it's already expired.


Caution

This mutation handles customer credentials. Always transmit requests over HTTPS and never log or expose the password.


Show payload

Arguments

•CustomerAccessTokenCreateInput!
required

The fields used to create a customer access token.

Show input fields


Was this section helpful?