Skip to Content

CustomerCreatePayload

Payload returned by the customerCreate mutation

Type Definition

type CustomerCreatePayload { customer: Customer customerAccessToken: CustomerAccessToken customerUserErrors: [CustomerUserError]! }

Fields

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

Relationships

CustomerCreatePayload is returned by the customerCreate mutation. It contains a reference to the newly created Customer object, an associated CustomerAccessToken for authentication, and a list of CustomerUserError objects that describe any validation or processing errors that occurred during customer creation.

Example

mutation { customerCreate(input: { email: "customer@example.com" password: "securepassword123" firstName: "John" lastName: "Doe" }) { customer { id email firstName lastName } customerAccessToken { accessToken expiresAt } customerUserErrors { field message } } }

Implements

None