cURL
curl --request POST \ --url http://localhost:3091/v1/api/superadmin/users/{id}/toggle-status \ --header 'Authorization: Bearer <token>'
{ "id": 123, "firstName": "<string>", "lastName": "<string>", "username": "<string>", "email": "<string>", "phoneNumber": "<string>", "nationality": "<string>", "birthDate": "<string>", "enabled": true, "banned": true, "banReason": "<string>", "bannedAt": "2023-11-07T05:31:56Z", "roles": [ "<string>" ], "walletBalance": 123, "pendingWithdrawalAmount": 123, "totalEarned": 123, "totalWithdrawn": 123, "stripeConnectedAccountId": "<string>", "stripeAccountComplete": true, "kycStatus": "PENDING", "kycSubmittedAt": "2023-11-07T05:31:56Z", "kycReviewedAt": "2023-11-07T05:31:56Z", "totalAnnonces": 123, "totalReservationsAsSender": 123, "totalReservationsAsCarrier": 123, "totalTransactions": 123, "createdAt": "2023-11-07T05:31:56Z", "updatedAt": "2023-11-07T05:31:56Z", "lastLoginAt": "2023-11-07T05:31:56Z" }
JWT access token from POST /v1/api/auth/login
Status toggled
PENDING
APPROVED
REJECTED
EXPIRED