Delete Account

How to delete a user account #

Delete an account associated with the app. This function used by a user who is logged into the app to delete an account.

This function was added to support Apple’s iOS store requirement for account deletion.

The handle user’s email or user name

URL #
    /api/appuser/deleteAccount
Method #
    POST
Headers #
    access-token: "<Access Token>"
Data Parameter #
    {
        handle: "<user handle>",
        password: "<user password>"
    }

Response: #

Success: #

StatusCode: #
200 (OK)
Contents: #
    true

Error: #

StatusCode: #
    400 (BAD REQUEST)
    500 (INTERNAL SERVER ERROR)
Content: #
    {
        code: "<internal error code>",
        message: "<readable error description>"
    }

The internal codes are integers:

  • 401 - app no longer exists
  • 402 - app is suspended
  • 403 - missing parameter
  • 404 - user account is suspended
  • 405 - invalid access token
  • 413 - app is migrated
  • 500 - internal server error
  • 600 - invalid login credentials
  • 602 - invalid data
  • 603 - email does not exist
  • 607 - user name does not exist