Users
Close a Natural User
Permanently close a user account so it can no longer be used
DELETE
This endpoint allows your platform to close a Mangopay Account, as per Mangopay’s terms and conditions, in the event that the agreement between the user and the platform comes to an end. Closure is only possible if all wallets held by the user are empty. Closure is allowed for bothDocumentation Index
Fetch the complete documentation index at: https://docs.mangopay.com/llms.txt
Use this file to discover all available pages before exploring further.
UserCategory OWNER and PAYER.
When a User is closed (whether via this endpoint or by Mangopay):
- The
UserStatuschanges toCLOSED(and theUSER_ACCOUNT_CLOSEDwebhook is sent) - The user has inflows and outflows blocked (and the relevant webhooks are sent)
- The user object remains available via the API and Dashboard for historical purposes
Note – Do not overuse OAuth token endpoint if automating callsIf you are writing a script to close a set of users, ensure you do not call the OAuth token endpoint before each DELETE call. You must use your authentication for the full duration of its lifetime, as described in the authentication guide.Overuse of the OAuth token endpoint is a security and performance risk and may result in preventative action from Mangopay.
Path parameters
The unique identifier of the user.
Responses
204 - No Content
204 - No Content
The 204 response code indicates that the closure request was successful.
400 - Wallets not empty
400 - Wallets not empty
400 - User already closed
400 - User already closed