A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
Hello,
I am trying to create a customer using admin API, I have thrown a test API and it seems like API keeps giving me status code: 422 whenever I add "password" parameter. please look into it if possible
JSON:
"customer": {
"first_name": "firstname",
"last_name": "lastname",
"email": "firslast@hotmail.com",
"password": "testPassword!123",
"confirm_password": "testPassword!123",
}
if I remove both confirm and passowrd it works fine and creates the user.
request id: 90ad4650-c59d-49d9-809b-b365bce5c9b6
uhh, I legit figured it out right after posting, "confirm_password" is written wrong, it should be "password_confirmation"
also just a note for future people, if you put "password" parameter only it will give you status code 422
you MUST have "password_confirmation" with it when creating a customer.