Enable Wallet
Note
This endpoint is deprecated. See Change Wallet Status.
Rapyd will continue to support the deprecated endpoint until December 31, 2024.
Unblock a Rapyd Wallet that was previously disabled with Disable Wallet.
This method changes the status of the wallet to ACT (enabled and active) and triggers the Wallet Status Changed Webhook and the Wallet Enabled Webhook.
ewallet
ID of the Rapyd Wallet. String starting with ewallet_.
Required when
phone number
is not used.
phone_number
Phone number of the Rapyd Wallet in E.164 format.
Required when
ewallet
is not used. Deprecated.
None.
Code Samples
.NET
using System; using System.Text.Json; namespace RapydApiRequestSample { class Program { static void Main(string[] args) { try { var requestObj = new { ewallet = "ewallet_dd5a3dadd807259b07c7f41c55bce612", }; string request = JsonSerializer.Serialize(requestObj); string result = RapydApiRequestSample.Utilities.MakeRequest("PUT", "/v1/user/enable", request); Console.WriteLine(result); } catch (Exception e) { Console.WriteLine("Error completing request: " + e.Message); } } } }
JavaScript
const makeRequest = require('<path-to-your-utility-file>/utilities').makeRequest; async function main() { try { const body = { ewallet: 'ewallet_dd5a3dadd807259b07c7f41c55bce612' }; const result = await makeRequest('PUT', '/v1/user/enable', body); console.log(result); } catch (error) { console.error('Error completing request', error); } }
PHP
<?php $path = $_SERVER['DOCUMENT_ROOT']; $path .= "/<path-to-your-utility-file>/utilities.php"; include($path); $body = [ 'ewallet' => 'ewallet_dd5a3dadd807259b07c7f41c55bce612' ]; try { $object = make_request('put', '/v1/user/enable', $body); var_dump($object); } catch(Exception $e) { echo "Error: $e"; } ?>
Python
from pprint import pprint from utilities import make_request body = { 'ewallet': 'ewallet_dd5a3dadd807259b07c7f41c55bce612' } results = make_request(method='put', path=f'/v1/user/enable', body=body) pprint(results)
/v1/user/enable
Enable Wallet
curl -X put https://sandboxapi.rapyd.net/v1/user/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' -d '{ "ewallet": "ewallet_dd5a3dadd807259b07c7f41c55bce612" } '
{ "status": { "error_code": "", "status": "SUCCESS", "message": "", "response_code": "", "operation_id": "ddef08ac-bd5a-4d93-87f3-4b2d9a66049c" } }