Caution – Closure is irreversibleCalling this endpoint immediately and permanently changes the
UserStatus
to CLOSED
if the API call is successful. This cannot be undone, even by Mangopay.Your platform can re-register the user using POST Create a Natural User (SCA).UserCategory
OWNER
and PAYER
.
When a User is closed (whether via this endpoint or by Mangopay):
- The
UserStatus
changes toCLOSED
(and theUSER_ACCOUNT_CLOSED
webhook 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