Skip to main content
Anchor to CustomerAccessTokenCreatePayload

CustomerAccessTokenCreatePayload

payload

Return type for customerAccessTokenCreate mutation.

•CustomerAccessToken

The newly created customer access token object.

•[CustomerUserError!]!
non-null

The list of errors that occurred from executing the mutation.

•[UserError!]!
non-nullDeprecated

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.


Arguments

•CustomerAccessTokenCreateInput!
required

The fields used to create a customer access token.



Was this section helpful?