Last modified:2026-11-19 19:55:02
x-auth:Purge signature
x-called-from:break-glass only, when a person must be removed from the database. This is not the customer screen and it does not use a login token or the internal secret.
x-details:`DELETE /application` with body `{ userId }` where userId looks like `user_1735123456789`. Send `X-Purge-Timestamp` (unix seconds, within 5 minutes) and `X-Purge-Signature`. The signature is `sha256=` plus HMAC-SHA256 of four lines: the timestamp, `DELETE`, `/application`, and the sha256 hex of the exact JSON bytes. The HMAC key stays on the server. A missing, stale, or reused signature returns `403` with message `Request was not allowed.` Unknown user returns `404`. Another account on the same phone is kept. KYC files stored as documents are not deleted.
x-errors:[{"meaning":"forbidden: Request was not allowed.","status":403},{"meaning":"not_found: That user was not found.","status":404},{"meaning":"conflict: This person has an active advance.","status":409},{"meaning":"validation_failed: A userId is required.","status":422}]
x-next:none. The user cannot sign in again.
x-order:0
x-section:account
x-when:`DELETE /application` with body `{ userId }` where userId looks like `user_1735123456789`.