GraphQL customerCreate

Hello everyone,

Right now I experience troubles with the StoreFront API “customerCreate”. Maybe someone can help me out on this.

The setup looks as follows:

  1. storeFrontApiVersion ‘2022-07’
  2. All permissions set including: unauthenticated_write_customers
  3. Email and Password are set in the request

Response looks as follows:

QueryResult OperationException(linkException: null, graphqlErrors: [GraphQLError(message: Kundenkonten sind deaktiviert., locations: [ErrorLocation(line: 3, column: 3)], path: [customerCreate], extensions: null)])

“Kundenkonten sind deaktiviert” equals “Customer is disabled.” if am correct in the error list.

Does anyone could give me a hint if something is missing to make this work?

LG

Answer:

  1. Open Shopify Settings
  2. Click ‘Checkout’
  3. In ‘Customer accounts’ select ‘Accounts are optional’ or ‘Accounts are required’

Hope it will save some time for other people with the same problem.