What are the best practice for recreating a customer in production? We are running into a client onboarding issue that is hard to replicate in the sandbox environment. We noticed that this only happens in production and are unsure why.
Would it be okay for us to suspend the customer to recreate their account in production?
Hi @allano – Would you mind elaborating on the issue that you’re running into?
When recreating a Customer account, are you creating a new Customer account for an existing Customer? If so, are you using all the same details for that customer including email? We use emails as unique identifiers so the API will reject the creation of a new Customer with a previously used email. To get around that, you can deactivate the old Customer account and create a new account for them again.
Yup, that should work with no issues! Deactivating frees up the email address. After deactivating the old Customer account, you can also suspend it to further prevent accidental reactivation of that customer account.
So I deactivated the customer like you said to free up their email address, but it seems not to allow the recreation of the customer. A customer with the specified email already exists. That is the error I see in the logs.
Is there anything else I can programmatically do to free up the deactivated user’s email?