Skip to content

Change user status ​

http
PATCH /api/admin/users/:id/status

Admin

Body ​

FieldType
statusACTIVE, SUSPENDED or BANNED

Effects ​

  • Updates the user's status.
  • When the new status isn't ACTIVE, all the user's ACTIVE orders are set to CANCELLED.
  • Restricted users receive 403 ACCOUNT_RESTRICTED on their next request and can't connect sockets.

Response 200 ​

The updated user (admin fields).

Errors ​

StatusCodeCause
400BAD_REQUESTChanging your own status, or targeting an admin
404NOT_FOUND

Nexlm is a peer-to-peer facilitator and never holds customer Naira.