Soft-delete a user
Marks the user as deleted and revokes all active sessions. The row is retained for audit purposes.
Authorization
bearerAuth AuthorizationBearer <token>
JWT Bearer access token. Clock skew tolerance is ±60 seconds.
In: header
Path Parameters
userId*string
Format
uuidResponse Body
application/json
application/json
application/json
application/json
application/json
curl -X DELETE https://sandbox.505pay.link/v1/admin/users/{userId} \ -H "Authorization: Bearer $TOKEN" \ -H "Content-Type: application/json"Empty
{
"error": "unauthenticated",
"message": "missing or invalid bearer token",
"request_id": "req_01abc123"
}{
"error": "password_rotation_required",
"message": "Your password has expired under the tenant policy. Rotate it to continue.",
"request_id": "req_01abc130"
}{
"error": "not_found",
"message": "the requested resource was not found",
"request_id": "req_01abc125"
}{
"error": "validation_failed",
"message": "request body is invalid",
"request_id": "string"
}{
"error": "rate_limited",
"message": "too many requests",
"request_id": "req_01abc127"
}Was this page helpful?