Skip to main content

Documentation

List Escrow Releases

Retrieve a list of all releases of funds from a specified escrow.

    • payment

    • ID of the payment. String starting with payment_.

    • escrow

    • ID of the escrow. String starting with escrow_.

Code Samples
    • .NET

      • using System;
        
        namespace RapydApiRequestSample
        {
            class Program
            {
                static void Main(string[] args)
                {
                    try
                    {
                        string payment = "payment_414360121003a3c3bdaf4f3cb1d9a1f8";
                        string escrow = "escrow_006fa9200fd7436a74b75fac963fadcf";
        
                        string result = RapydApiRequestSample.Utilities.MakeRequest("GET", $"/v1/payments/{payment}/escrows/{escrow}");
        
                        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/payments/payment_b8f1f3c75eb74fc318daa89418f6c8e9/escrows/escrow_8484400128afa6aa8b31297088e81f45/escrow_releases'
            );
        
            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/payments/payment_a813e2bac82bad744b98defa727f7e3c/escrows/escrow_f3c4db8e23bde2973704a7f9f32baabb/escrow_releases");
            var_dump($object);
        } catch(Exception $e) {
            echo "Error: $e";
        }
        ?>
    • Python

      • from pprint import pprint
        
        from utilities import make_request
        
        payment = "payment_35544ff0d05c578c87ad171f2dd2ba6e"
        escrow = "escrow_71193eec47ff06ce000e0c4423cbb68d"
        response = make_request(method='get',
                                path=f'/v1/payments/{payment}/escrows/{escrow}/escrow_releases')
        
        pprint(response)
        
  • /v1/payments/:payment/escrows/:escrow/escrow_releases

  • List Escrow Releases

  • curl -X get
    https://sandboxapi.rapyd.net/v1/payments/payment_7150ae9ae089c7f70d87291afc0fe92f/escrows/escrow_e4a2437fd8e5cf467028c2762e46ac8d/escrow_releases
    -H 'access_key: your-access-key-here'
    -H 'Content-Type: application/json'
    -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": "15024a78-4086-4298-b1cf-e6a3f43cc3e6"
        },
        "data": [
            {
                "id": "er_acd170e0ef62743157e7156f0272b5e9",
                "amount": 1,
                "trigger": "event",
                "proportional_release": false,
                "ewallets": [
                    {
                        "ewallet": "ewallet_c1943cfeda5f98247ab117e5d2648861",
                        "amount": 1
                    }
                ],
                "created_at": 1698303566,
                "currency": "EUR"
            },
            {
                "id": "er_1c63073139a26d501e9559718edee63f",
                "amount": 4,
                "trigger": "event",
                "proportional_release": false,
                "ewallets": [
                    {
                        "ewallet": "ewallet_c1943cfeda5f98247ab117e5d2648861",
                        "amount": 4
                    }
                ],
                "created_at": 1698304595,
                "currency": "EUR"
            }
        ]
    }