post/customer/disable?customerId=<CUSTOMER_ID>

Toggle Status

Suspend or reactivate a customer's account.

Authentication required: Bearer Token in Authorization header.

Parameters

customerIdrequired
querystring

ID of the customer

Example<CUSTOMER_ID>
Idempotency-Key
headerstring

Use a unique value to safely retry this request without repeating its effects.

Example<IDEMPOTENCY-KEY>

Responses

200Customer status toggled successfully

Response Body (200)

action
string
status
boolean
message
string
code
integer
Request Example
curl -X POST "https://api.keymint.dev/customer/disable?customerId=%3CCUSTOMER_ID%3E" \
  -H "Authorization: Bearer <YOUR_API_KEY>"
Response (200 OK)
{
  "action": "toggleActive",
  "status": true,
  "message": "Customer disabled",
  "code": 0
}