Skip to content

Delete the current customer's account​

DELETE
/auth/me

Self-service account deletion (Apple / Google requirement). Scoped strictly to the token's customerId; the password confirms the action.

The account is anonymised, not removed: name, email, phone and saved addresses are erased, sign-in is disabled, every refresh token is deleted, and every existing access token is refused afterwards (401 on protected routes, treated as a guest on guest-friendly ones). The email is released, so a later signup with it creates a new, unrelated account. Orders and invoices are kept in anonymised form for accounting.

Deletion is refused with 409 ACTIVE_ORDERS while an order is confirmed, processing, in_fulfillment or shipped, or pending and placed less than 30 days ago.

A wrong password is 403, never 401: clients treat 401 as an expired session. An account with no password (legacy customers) gets 403 WRONG_PASSWORD with a message asking to reset the password first.

All error.message values are French and meant to be shown to the customer.

Auth: Bearer JWT required; allowed realms: customer.

Authorizations​

bearerAuth

Jeton client obtenu par POST /auth/login (ou /auth/register), renouvelé par POST /auth/refresh.

Type
HTTP (bearer)

Request Body​

application/json
JSON
{
  
"password": "string"
}

Responses​

Account anonymised.

application/json
JSON
{
  
"ok": true,
  
"data": {
  
  
"deleted": true,
  
  
"deletedAt": "2024-01-01T00:00:00Z"
  
}
}

Playground​

Authorization
Body

Samples​

Powered by VitePress OpenAPI

Tarifs : contactez-nous — contact@marketkit.ai