Ban Customer

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

You can use this endpoint to ban (Add to blacklist) one of your customers by providing the ID of the customer you want to ban in the customer path parameter.

Banned customer won't be able to create new orders.

Note: banned customers can login to the store.

OAuth Scopes


customers.read customers.read_write

Request Body

{"reason"=>"untrusted customer"}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring

RESPONSES

status: OK

{"status":0,"success":true,"data":{"id":0,"first_name":"string","last_name":"string","mobile":0,"mobile_code":"string","email":"string","avatar":"string","gender":"string","city":"string","country":"string","currency":"string","location":"string","updated_at":{"date":"string","timezone_type":0,"timezone":"string"}}}