Skip to main content

Documentación

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_a7f40f90f6140a9f69459284330ee6f2/escrows/escrow_6c435c866b0377496599225bc780a82a/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": "b836d129-4642-4dbf-b633-67b3d386a61e"
        },
        "data": [
            {
                "id": "er_8dd4414e7d04a2fb03927d520d04f494",
                "amount": 45,
                "trigger": "cancel_escrow",
                "proportional_release": true,
                "ewallets": [
                    {
                        "ewallet": "ewallet_c1943cfeda5f98247ab117e5d2648861",
                        "amount": 45
                    }
                ],
                "created_at": 1764090610,
                "currency": "EUR"
            }
        ]
    }