Get Details of Add Funds Request
Retrieve details of a specific Add Funds to Wallet Account request.
Use this method in the sandbox for testing purposes.
id
ID of the Add Funds to Wallet Account request, from the
id
field in thedata
object of the response. UUID.
Code Samples
.NET
using System; namespace RapydApiRequestSample { class Program { static void Main(string[] args) { try { string id = "04c5e3f6-bd50-473d-8722-869a7e5c97bb"; string result = RapydApiRequestSample.Utilities.MakeRequest("GET", $"/v1/account/deposit/{id}"); 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 result = await makeRequest( 'GET', '/v1/account/deposit/04c5e3f6-bd50-473d-8722-869a7e5c97bb' ); 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); try { $object = make_request('get', '/v1/account/deposit/04c5e3f6-bd50-473d-8722-869a7e5c97bb'); var_dump($object); } catch(Exception $e) { echo "Error: $e"; } ?>
Python
from pprint import pprint from utilities import make_request id = '04c5e3f6-bd50-473d-8722-869a7e5c97bb' results = make_request(method='get', path=f'/v1/account/deposit/{id}') pprint(results)
/v1/account/deposit/:id
Get Details of Add Funds Request
curl -X get https://sandboxapi.rapyd.net/v1/account/deposit/04c5e3f6-bd50-473d-8722-869a7e5c97bb -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": "8032d3d3-d5cf-4de1-a41a-8b3a5ea6f8a2" }, "data": { "id": "04c5e3f6-bd50-473d-8722-869a7e5c97bb", "account_id": "0a6bff42-48f7-11ea-833c-02e199f7f6f5", "phone_number": "+14155539886", "amount": 5000, "currency": "MXN", "balance_type": "available_balance", "metadata": { "merchant_defined": true } } }