Closed NALAWALAMURTUZA closed 5 years ago
Are you reusing existing email addresses? You can only reuse an existing email address 3 times in a 5 minute window.
I m not use an existing email address. but when I fire query without Phone, acceptsMarketing then I create a customer successfully. ultimately I create a customer with only 4 parameter email, firstName, lastName, password
let input = Storefront.CustomerCreateInput.create(email:email,
password: password,
firstName:firstName,
lastName:lastName)
return Storefront.buildMutation { $0
.customerCreate(input: input) { $0
.customer { $0
.id()
.email()
.firstName()
.lastName()
}
.userErrors { $0
.field()
.message()
}
}
}
This Query work but when I add a phone, acceptsMarketing it not work anymore.and getting a usererror.
So my Question what about phone? And how we pass sucessfully phone property in query.
How are you formatting the phone number? A phone number formatted like "+15551112222" should work - provided that you are sending a valid phone number (with a valid area code and a valid dialing code).
ok, I got your point and it working with country code.
if API returns user error with please adds a phone number with country code. so the user gets an idea about a wrong phone number.instand of Creating Customer Limit exceeded. Please try again later.
The create customer throttle of 3 times in 5 minutes is still being applied, even though you are unsuccessfully creating a customer. If you wait 5 minutes, and then send the request, you should see a "Phone is invalid" user error.
when I create customer through android it's working perfect.but while creating a customer I receive this userErrors every time we have only 3 customers in my store.