Skip to main content

Documentation

Get Details of Remove Funds Request

Retrieve details of a specific Remove Funds From Wallet Account request.

Use this method in the sandbox for testing purposes.

Code Samples
    • .NET

      • using System;
        
        namespace RapydApiRequestSample
        {
            class Program
            {
                static void Main(string[] args)
                {
                    try
                    {
                        string id = "91ddcad5-5876-4731-8afd-8ddea84e4846";
        
                        string result = RapydApiRequestSample.Utilities.MakeRequest("GET", $"/v1/account/withdraw/{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/withdraw/91ddcad5-5876-4731-8afd-8ddea84e4846'
            );
        
            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/withdraw/91ddcad5-5876-4731-8afd-8ddea84e4846');
            var_dump($object);
        } catch(Exception $e) {
            echo "Error: $e";
        }
        ?>
    • Python

      • from pprint import pprint
        
        from utilities import make_request
        
        id = '91ddcad5-5876-4731-8afd-8ddea84e4846'
        
        results = make_request(method='get', path=f'/v1/account/withdraw/{id}')
        pprint(results)
  • /v1/account/withdraw/:id

  • Get Details of Remove Funds Request

  • curl -X get
    https://sandboxapi.rapyd.net/v1/account/withdraw/bad146c1-95bd-4af4-8e16-01ee4770dca5
    -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": "eb31ac1c-007c-466c-aa7d-9403c28b087b"
        },
        "data": {
            "id": "bad146c1-95bd-4af4-8e16-01ee4770dca5",
            "account_id": "41cfc9c4-349a-11eb-9403-124eb1b705c1",
            "phone_number": "+14155551238",
            "amount": -500,
            "currency": "PHP",
            "balance_type": "available_balance",
            "metadata": {
                "merchant_defined": true
            }
        }
    }