Skip to Content

CustomerAccessTokenCreatePayload

Payload returned by the customerAccessTokenCreate mutation. This type encapsulates the result of attempting to create a new customer access token, including either the successfully created token or any errors that occurred during the operation.

Type Definition

type CustomerAccessTokenCreatePayload { customerAccessToken: CustomerAccessToken customerUserErrors: [CustomerUserError]! }

Fields

FieldTypeDescription
customerAccessTokenCustomerAccessTokenThe created customer access token
customerUserErrors[CustomerUserError]!List of errors that occurred during the operation

Relationships

The CustomerAccessTokenCreatePayload type is returned by the customerAccessTokenCreate mutation and contains references to two related types. The customerAccessToken field holds the newly created access token when the operation succeeds, while the customerUserErrors field provides detailed error information when validation or processing fails. Both fields work together to provide complete feedback about the token creation attempt.

Example

{ customerAccessTokenCreatePayload { customerAccessToken { accessToken expiresAt } customerUserErrors { code field message } } }

Implements

This type does not implement any interfaces.