post
https://api-{tenant}.stage2.tappbank.com/org/branches/private/v1/delete-profile-otp
Generate and send an OTP (One-Time Password) for profile deletion verification. This endpoint validates that the user is eligible for profile deletion and sends an OTP that will be required for the actual deletion process.
List of possible error codes:
| Code | Status | Target | Description |
|---|---|---|---|
| REQUIRED_WITH | 400 | accountID | This field is required if fee is required |
| VALID_ACCOUNT | 400 | accountID | Incorrect account for debiting fee |
| ERROR_ACCOUNT_CREATION_PROCESS | 400 | common | Cannot delete profile, accounts are being created |
| OTP_RATE_LIMITED | 400 | common | OTP rate limited - too many requests |
| FORBIDDEN | 403 | common | User is not allowed to delete profile |
Deletion blockers (422 status):
In case something prevents deletion of user (e.g. having balance in accounts or pending transactions) returns 422 response with array of blockers:
- [422] POSITIVE_BALANCE - User has positive balance in accounts
- [422] PENDING_TRANSACTIONS - User has pending transactions
- [422] INSUFFICIENT_FUNDS_FOR_FEE - Insufficient funds to pay closure fee
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
Sends an OTP to the user's registered phone or email to verify the account closure request.
This endpoint is shared across Individual and Business Owner user types at the same URL:
POST /branches/private/v1/delete-profile-otp
200Ok
