Have your say in Community Polls: What was/is your greatest motivation to start your own business?
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

GraphQL customerCreate

Solved

GraphQL customerCreate

juustanotherdev
Tourist
8 1 2

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

 

Accepted Solution (1)

juustanotherdev
Tourist
8 1 2

This is an accepted solution.

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. 

View solution in original post

Reply 1 (1)

juustanotherdev
Tourist
8 1 2

This is an accepted solution.

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.