Skip to main content

Documentation

Retrieve Sender

Retrieve details of a payout sender.

Note

The example response for individual includes additional fields for the ca_general_bank payout method. The response for company includes an additional field for the us_ach_bank payout method.

    • sender

    • ID of the sender. String starting with sender_.

    • .NET

      • using System;
        
        namespace RapydApiRequestSample
        {
            class Program
            {
                static void Main(string[] args)
                {
                    try
                    {
                        string senderId = "sender_87a87cfef195f2e9418b7c582de653bc";
        
                        string result = RapydApiRequestSample.Utilities.MakeRequest("GET", $"/v1/payouts/sender/{senderId}");
        
                        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/payouts/sender/sender_87a87cfef195f2e9418b7c582de653bc'
            );
        
            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/payouts/sender/sender_87a87cfef195f2e9418b7c582de653bc');
            var_dump($object);
        } catch(Exception $e) {
            echo "Error: $e";
        }
        ?>
    • Python

      • from pprint import pprint
        
        from utilities import make_request
        
        sender_id = 'sender_87a87cfef195f2e9418b7c582de653bc' 
        results = make_request(method='get',
                               path=f'/v1/payouts/sender/{sender_id}')
        pprint(results)
  • /v1/payouts/sender/:sender

  • Retrieve Sender - individual

  • curl -X get
    https://sandboxapi.rapyd.net/v1/payouts/sender/sender_87a87cfef195f2e9418b7c582de653bc
    -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": "ba1cecde-4c5d-4b60-bbca-4f16c9b4802c"
        },
        "data": {
            "id": "sender_87a87cfef195f2e9418b7c582de653bc",
            "last_name": "Smith",
            "first_name": "Jane",
            "country": "CA",
            "entity_type": "individual",
            "address": "1 Second Street",
            "name": "Jane Smith",
            "date_of_birth": "12/12/2000",
            "postcode": "12345",
            "city": "Montreal",
            "state": "Quebec",
            "currency": "USD",
            "identification_type": "identification_id",
            "identification_value": "987654321"
        }
    }
  • Retrieve Sender - company

  • curl -X get
    https://sandboxapi.rapyd.net/v1/payouts/sender/sender_8897b29d6e423fa5a16e9acec4a54a26
    -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": "549ccaea-5f41-44e4-b42a-37301d2900c1"
         },
         "data": {
             "id": "sender_8897b29d6e423fa5a16e9acec4a54a26",
             "country": "US",
             "entity_type": "company",
             "name": "Four Star Professional Services",
             "company_name": "Four Star Professional Services",
             "currency": "USD",
             "identification_type": "company_registered_number",
             "identification_value": "0123456789",
             "purpose_code": "Transfer"
         }