Endpoint
Description
Use this endpoint to change the status of a wallet to active, frozen, or deleted.Status updates are commonly used to temporarily restrict wallet activity, permanently disable a wallet, or re-enable it after review.
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string (UUID) | Yes | Unique identifier of the wallet |
Request Body
Request Fields
| Field | Type | Required | Description |
|---|---|---|---|
status | string | Yes | New status to apply to the wallet |
reason | string | No | Explanation for the status change (recommended for audit and compliance) |
Supported Statuses
| Status | Description |
|---|---|
active | Wallet is enabled and can perform transactions |
frozen | Wallet is temporarily disabled; transactions are blocked |
deleted | Wallet is permanently disabled and cannot be reactivated |
Response
Success Response (200 OK)
Response Fields
| Field | Type | Description |
|---|---|---|
id | string | Wallet identifier |
status | string | Updated wallet status |
Example cURL Request
Common Errors
| Status Code | Reason |
|---|---|
400 | Invalid status value |
401 | Unauthorized request |
404 | Wallet not found |
422 | Invalid status transition |
Status Transition Rules (Recommended)
active→frozen✅frozen→active✅active→deleted✅frozen→deleted✅deleted→ any status ❌ (not allowed)
Notes & Best Practices
- Always include a
reasonwhen freezing or deleting a wallet for audit and compliance purposes. - Freezing a wallet should immediately block:
- Incoming transfers
- Outgoing transfers
- Payment method usage
- Deleting a wallet should be treated as irreversible.
- Log all status changes for traceability and risk monitoring.
Common Use Cases
- Freeze wallet due to suspicious or fraudulent activity
- Reactivate wallet after compliance review
- Delete wallet when a customer account is closed
Next Steps
After updating a wallet’s status, you may want to:- Notify the user of the status change
- Review transaction history
- Trigger internal compliance or risk workflows