Ban Customer

PUT {{baseUrl}}/customers/blacklist/:customer

This endpoint allows you to ban, aka Add to blacklist, one of your customers by passing the customer as a path parameter.

:::caution[Note] Even though banned customer won't be able to create new orders, they will still be able to login to the store. :::

customers.read_write- Customers Read & Write

Request Body

{"reason"=>"<string>"}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK

{&quot;status&quot;:&quot;\u003cnumber\u003e&quot;,&quot;success&quot;:&quot;\u003cboolean\u003e&quot;,&quot;data&quot;:{&quot;message&quot;:&quot;\u003cstring\u003e&quot;,&quot;code&quot;:&quot;\u003cnumber\u003e&quot;}}