FROM CACHE - en_header

Disabling Customer Account via API

Corbin
New Member
1 0 1

There does not appear to be any documented way to Disable a Customer Account via API.

I assume it's possible, since it seems inconsistent to have a way of sending an Account Invite for a customer, thus Enabling the Account, but no way of then Disabling the Account.

Is this functionality available in one of the API calls, and I've just missed it?

Replies 7 (7)
Jason
Shopify Expert
10921 193 2199

There's no API property that you can use to set the state of the customer to Disabled. The option to disable a customers account is limited to staff in the Admin itself. 

★ I jump on these forums in my free time to help and share some insights. Not looking to be hired, and not looking for work. http://freakdesign.com.au ★
tahiralvi
Tourist
10 0 1

Hi @Jason 

 

Is there still no method in API (June 2020) to disable the customer ?

HunkyBill
Shopify Expert
4795 56 562

Imagine that. Allowing API access to disabling a customer. Some stupid coding error could essentially shut down an entire store by accidentally disabling all customer accounts. Imagine how that would go over... seems like a hard no on that, even in 2020 😉

 

 

Custom Shopify Apps built just for you! hunkybill@gmail.com http://www.resistorsoftware.com
tahiralvi
Tourist
10 0 1

Got your point.

But I have a scenario where I have synced my customers from an external source via a custom app. If in an external source, if a customer is marked disable then I need to mark it as disable (not delete). As this customer might have order in history the deleting the customer may not be a good choice.

HunkyBill
Shopify Expert
4795 56 562

You don't define what it means to disable a customer. Without a definition of what that means, clearly there is no resolution possible. If you do define what it means from an external perspective to disable a customer, then there could very well be some suggestions on what you could do.

Custom Shopify Apps built just for you! hunkybill@gmail.com http://www.resistorsoftware.com
tahiralvi
Tourist
10 0 1

Hi @HunkyBill 

Thanks.

urwausman
Shopify Partner
4 0 0

you can do one thing, as you can give "disabled" tag to the customers whom you want to make disable, rather you wanna do it using api or from admin panel. and then you can use that tag to abandon that customer from any action which you want.

Consider it Solved! Consider it Done.