Change Wallet Status
Disable, enable, or close a Rapyd Wallet.
This method triggers the Wallet Status Changed Webhook.
In addition, disabling a wallet triggers the Wallet Disabled Webhook, enabling a wallet triggers the Wallet Enabled Webhook, and closing a wallet triggers the Wallet Closed Webhook.
The webhooks contain the same information as the response.
Disable a wallet to prevent the following actions:
Moving money into or out of the wallet.
Issuing a bank account number or card to the wallet.
Disable a wallet when the customer requests it, or while you conduct an investigation.
Disabling a wallet changes the status of the wallet to DIS (disabled).
Enable a wallet to reverse the process.
Enabling a wallet changes the status of the wallet to ACT (enabled and active).
Close a wallet to permanently disable it. The wallet must have no balances, no pending transactions, and no open virtual accounts.
Closing a wallet changes the status of the wallet to CLO (permanently closed). You cannot change the status of a closed wallet.
ewallet
ID of the Rapyd Wallet. String starting with ewallet_.
status
The change to make in the wallet status. One of the following:
close - Change the status from enabled and active (ACT) or disabled (DIS) to permanently closed (CLO).
disable - Change the status from enabled and active (ACT) to disabled (DIS).
enable - Change the status from disabled (DIS) to enabled and active (ACT).
/v1/user/ewallets/:ewallet/statuses/:status
Disable Wallet
curl -X post https://sandboxapi.rapyd.net/v1/ewallets/ewallet_67b83dcb34c274156da8607ab2abca4b/statuses/disable -H 'access_key: your-access-key-here' -H 'Content-Type: application/json' -H 'idempotency: your-idempotency-parameter-here' -H 'salt: your-random-string-here' -H 'signature: your-calculated-signature-here' -H 'timestamp: your-unix-timestamp-here'
{ "status": { "error_code": "", "status": "SUCCESS", "message": "", "response_code": "", "operation_id": "c2330ab6-4e49-4995-a854-34a832aa0661" }, "data": { "id": "ewallet_67b83dcb34c274156da8607ab2abca4b", "phone_number": "+6305551212", "email": null, "first_name": "John", "last_name": "Doe", "status": "DIS", "accounts": [], "verification_status": "not verified", "type": "company", "metadata": {}, "ewallet_reference_id": "2023-01-30b15716", "category": null, "contacts": null, "parent_ewallet": null } }
Enable Wallet
curl -X post https://sandboxapi.rapyd.net/v1/ewallets/ewallet_67b83dcb34c274156da8607ab2abca4b/statuses/enable -H 'access_key: your-access-key-here' -H 'Content-Type: application/json' -H 'idempotency: your-idempotency-parameter-here' -H 'salt: your-random-string-here' -H 'signature: your-calculated-signature-here' -H 'timestamp: your-unix-timestamp-here'
{ "status": { "error_code": "", "status": "SUCCESS", "message": "", "response_code": "", "operation_id": "015f6b52-fc60-4fb1-8d63-670340a736a8" }, "data": { "id": "ewallet_67b83dcb34c274156da8607ab2abca4b", "phone_number": "+6305551212", "email": null, "first_name": "John", "last_name": "Doe", "status": "ACT", "accounts": [], "verification_status": "not verified", "type": "company", "metadata": {}, "ewallet_reference_id": "2023-01-30b15716", "category": null, "contacts": null, "parent_ewallet": null } }
Close Wallet
curl -X post https://sandboxapi.rapyd.net/v1/ewallets/ewallet_67b83dcb34c274156da8607ab2abca4b/statuses/close -H 'access_key: your-access-key-here' -H 'Content-Type: application/json' -H 'idempotency: your-idempotency-parameter-here' -H 'salt: your-random-string-here' -H 'signature: your-calculated-signature-here' -H 'timestamp: your-unix-timestamp-here'
{ "status": { "error_code": "", "status": "SUCCESS", "message": "", "response_code": "", "operation_id": "2a325899-f00a-45b1-9eec-ec35ef7b5966" }, "data": { "id": "ewallet_67b83dcb34c274156da8607ab2abca4b", "phone_number": "+6305551212", "email": null, "first_name": "John", "last_name": "Doe", "status": "CLO", "accounts": [], "verification_status": "not verified", "type": "company", "metadata": {}, "ewallet_reference_id": "2023-01-30b15716", "category": null, "contacts": null, "parent_ewallet": null } }