Skip to main content

Documentation

List Contacts for a Rapyd Wallet

Retrieve all contacts for a wallet.

    • wallet

    • ID of the Rapyd Wallet that this contact is associated with. String starting with ewallet_.

Code Samples
    • .NET

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

      • from pprint import pprint
        
        from utilities import make_request
        
        wallet = 'ewallet_72b4ff39ca50dccc73c0ee65d85e124e'
        
        results = make_request(method='get', path=f'/v1/ewallets/{wallet}/contacts')
        pprint(results)
  • /v1/ewallets/:wallet/contacts

  • List Contacts for a Rapyd Wallet

  • curl -X get
    https://sandboxapi.rapyd.net/v1/ewallet_81f73a4ca8fe9dba1c64a5ed411bf322/contacts
    -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": "9fd8c27e-674f-4956-9e0e-8a2fb4485e4a"
        },
        "data": [
            {
                "id": "cont_a272089507ac84b6c1f2d9a240d56914",
                "first_name": "John",
                "last_name": "Doe",
                "middle_name": "",
                "second_last_name": "",
                "gender": "not_applicable",
                "marital_status": "not_applicable",
                "house_type": "",
                "contact_type": "business",
                "phone_number": "+14155551234",
                "email": "johndoe@rapyd.net",
                "identification_type": "PA",
                "identification_number": "1234567890",
                "issued_card_data": {
                    "preferred_name": "",
                    "transaction_permissions": "",
                    "role_in_company": ""
                },
                "date_of_birth": "1960-11-22",
                "country": "US",
                "nationality": null,
                "address": {
                    "id": "address_267b3e88f754b0095aef7823a6c0f921",
                    "name": "John Doe",
                    "line_1": "123 Main Street",
                    "line_2": "",
                    "line_3": "",
                    "city": "Anytown",
                    "state": "NY",
                    "country": "US",
                    "zip": "12345",
                    "phone_number": "+14155551234",
                    "metadata": {},
                    "canton": "",
                    "district": "",
                    "created_at": 1694069761
                },
                "ewallet": "ewallet_81f73a4ca8fe9dba1c64a5ed411bf322",
                "created_at": 1694069761,
                "metadata": {
                    "merchant_defined": true
                },
                "business_details": {
                    "id": "busi_2e8e1cfad76a0d1e4d5432a9277bb717",
                    "name": "Four Star Professional Services",
                    "registration_number": "4234567779",
                    "entity_type": "association",
                    "industry_category": "company",
                    "industry_sub_category": "home services",
                    "address": {
                        "id": "address_2b895c1305473db3bc91fb2106a8f3cd",
                        "name": "John Doe",
                        "line_1": "1234 Main Street",
                        "line_2": "Suite 1200",
                        "line_3": "",
                        "city": "Anytown",
                        "state": "NY",
                        "country": "US",
                        "zip": "10101",
                        "phone_number": "14155557779",
                        "metadata": {
                            "merchant_defined": true
                        },
                        "canton": "",
                        "district": "",
                        "created_at": 1694069761
                    },
                    "created_at": 1694069761,
                    "annual_revenue": 0,
                    "establishment_date": null,
                    "legal_entity_type": null,
                    "cnae_code": null
                },
                "compliance_profile": 0,
                "verification_status": "not verified",
                "send_notifications": false,
                "mothers_name": "",
                "contact_reference_id": "johndoe"
            },        
            {
                "id": "cont_c0cfad613d42d54fb26b5beb3a4897d2",
                "first_name": "Jane",
                "last_name": "Doe",
                "middle_name": "",
                "second_last_name": "",
                "gender": "female",
                "marital_status": "single",
                "house_type": "lease",
                "contact_type": "personal",
                "phone_number": "+14155551233",
                "email": "jane@rapyd.net",
                "identification_type": "PA",
                "identification_number": "1233242424",
                "issued_card_data": {
                    "preferred_name": "",
                    "transaction_permissions": "",
                    "role_in_company": ""
                },
                "date_of_birth": "2000-11-22",
                "country": "US",
                "nationality": "FR",
                "address": {
                    "id": "address_33de3e4a5aaa96fd8bfd060e517c3c43",
                    "name": "Jane Doe",
                    "line_1": "123 Lake Forest Drive",
                    "line_2": "",
                    "line_3": "",
                    "city": "Anytown",
                    "state": "NY",
                    "country": "",
                    "zip": "12345",
                    "phone_number": "+14155551234",
                    "metadata": {
                        "merchant_defined": true
                    },
                    "canton": "",
                    "district": "",
                    "created_at": 1694070609
                },
                "ewallet": "ewallet_81f73a4ca8fe9dba1c64a5ed411bf322",
                "created_at": 1694070609,
                "metadata": {
                    "merchant_defined": true
                },
                "business_details": null,
                "compliance_profile": 0,
                "verification_status": "not verified",
                "send_notifications": false,
                "mothers_name": "Jane Smith",
                "contact_reference_id": "janedoe"
            }
        ]
    }