Recreating a customer in production

Hi,

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?

Thank you for the help in advance.

Best,
Allan

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.

Let me know if that doesn’t help!

@shreya, thank you for getting back to me.

I haven’t attempted to create a new customer. I will deactivate the client’s old account and have them create it again.

Since they will use the old email and info from the deactivated account, Will they encounter any issues?

Thanks for the help 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.

You’re welcome! :slight_smile:

Hi @shreya

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?

Thanks in advance for the help.

Hi @allano , that’s strange, I wonder if something went wrong with the update to deactivate. Do you have the customer ID of the user you deactivated?

Yes, I will send it to you privately. It seems suspending a customer is insufficient to free up their email based on one of your colleague’s posts.