deleteUser
Delete user account This allows you to delete a user account. The userID can be either the Sensibill specific userID or \"me\", which will delete the user object for the user who is authenticated with the access token.
This endpoint can be used with either a client token or a user token.
When using a user token, you are only allowed to delete the account information for the user associated with the access token you supply in.
The optional export parameters may be passed as query parameters or in the request body.
In order to use this endpoint with client tokens, you must have that feature explicitly enabled on your account. It is disabled by default. Please contact the Sensibill team in order to have this enabled.
Deleting a user will also purge all documents from Sensibill's system. Responses:
200: Success. The user was successfully queued for destruction.
401: Unauthorized. This will occur if you do not supply an access-token to this endpoint, or if you provide an expired or invalid access token.
403: Forbidden. This will occur if the access-token you have provided is not authorized to retrieve the information for the user you have requested. This can also occur if you attempt to use a client token with this endpoint.
404: Not Found. The userID you have provided is invalid. It should be either \"me\" or a valid userID.
Return
Parameters
A unique ID that identifies this user in the Sensibill system. It can be 'me' to reference the user associated with the access token.
Specifies whether or not to fire off an export prior to deleting the user's account. Should be either 'true' or 'false'. (optional)
If you have requested an export, you may provide the email address you want the exported information to go to. If you do not supply an exportEmail, the email address for the user will be used. (optional)