Loading...

Knowledge Base

Suspend a Customer Account Using the API

When you want to suspend a customer account using the API. This article explains required parameters, suspension reasons, customer visibility of suspension messages, and response details for account suspension requests.

Suspend Customer Account

Description

Suspends a customer account. 

Parameters

NameData TypeRequired / OptionalDescription
auth-useridIntegerRequiredAuthentication Parameter
api-keyStringRequiredAuthentication Parameter
customer-idIntegerRequiredCustomer ID of the customer account which you want to suspend.
reasonStringRequiredReason for suspension of the account. This will be visible to the customer from the panel.

HTTP Method

POST

Example Test URL Request

https://test.httpapi.com/api/customers/suspend.json?auth-userid=0&api-key=key&customer-id=0&reason=reason-for-suspension

Response

  • Returns true if the action is completed. 

  • In case of any errors, a status key with value as ERROR along with an error message will be returned.