Skip to main content

Documentation

Retrieve Wallet Contact

Retrieve a contact for an existing Rapyd Wallet.

    • wallet

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

    • contact

    • ID of the contact. String starting with the prefix cont_. Required when contact_reference_id is not used.

    • contact_reference_id

    • ID of the wallet contact, defined by the customer or end user. String. Must be unique and cannot start with cont_. Required when contact is not used.

Code Samples
    • .NET

      • using System;
        
        namespace RapydApiRequestSample
        {
            class Program
            {
                static void Main(string[] args)
                {
                    try
                    {
                        string wallet = "ewallet_72b4ff39ca50dccc73c0ee65d85e124e";
                        string contact = "cont_abaa4abbe87afc22c97ac249d9302efe";
        
                        string result = RapydApiRequestSample.Utilities.MakeRequest("GET", $"/v1/ewallets/{wallet}/contacts/{contact}");
        
                        Console.WriteLine(result);
                    }
                    catch (Exception e)
                    {
                        Console.WriteLine("Error completing request: " + e.Message);
                    }
                }
            }
        }
    • JavaScript

      • onst makeRequest = require('<path-to-your-utility-file>/utilities').makeRequest;
        
        async function main() {
          try {
            const result = await makeRequest(
              'GET', 'v1/ewallets/ewallet_72b4ff39ca50dccc73c0ee65d85e124e/contacts/cont_abaa4abbe87afc22c97ac249d9302efe'
            );
        
            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/cont_abaa4abbe87afc22c97ac249d9302efe');
            var_dump($object);
        } catch(Exception $e) {
            echo "Error: $e";
        }
        ?>
    • Python

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

    /v1/ewallets/:wallet/contacts/:contact_reference_id

  • Retrieve Wallet Contact

  • curl -X get
    https://sandboxapi.rapyd.net/v1/ewallets/ewallet_8d2d52f431a4d3d9d49aab3df94a2adf/contacts/cont_4bd588fb8a711a4dbd5c1f21989780d2
    -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": "ef42cf95-cf77-4794-a042-601b319d1567"
        },
        "data": {
            "id": "cont_4bd588fb8a711a4dbd5c1f21989780d2",
            "first_name": "Jane",
            "last_name": "Doe",
            "middle_name": "",
            "second_last_name": "",
            "gender": "female",
            "marital_status": "single",
            "house_type": "lease",
            "contact_type": "personal",
            "phone_number": "+14155551997",
            "email": "jane200@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_4ea38a3d61d383f03d424cb80189b21a",
                "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": 1625581619
            },
            "ewallet": "ewallet_8d2d52f431a4d3d9d49aab3df94a2adf",
            "created_at": 1625581619,
            "metadata": {
                "merchant_defined": "updated"
            },
            "business_details": null,
            "compliance_profile": 0,
            "verification_status": "not verified",
            "send_notifications": false,
            "mothers_name": "Jane Smith"
        }
    }
  • Retrieve Wallet Contact by Contact Reference ID

  • curl -X get
    https://sandboxapi.rapyd.net/v1/ewallets/ewallet_ca8e764afff51baa58eb47a52da6b5b0/contacts/johndoe
    -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": "e36924c2-91cf-4a42-ad78-c23e3ad7f1f6"
        },
        "data": {
            "id": "cont_88e387ef31488c0f4b385d157a27425a",
            "first_name": "John",
            "last_name": "Doe",
            "middle_name": "",
            "second_last_name": "",
            "gender": "not_applicable",
            "marital_status": "not_applicable",
            "house_type": "",
            "contact_type": "personal",
            "phone_number": "+123456789",
            "email": "johndoe@rapyd.net",
            "identification_type": "DL",
            "identification_number": "1234567890",
            "issued_card_data": {
                "preferred_name": "",
                "transaction_permissions": "",
                "role_in_company": ""
            },
            "date_of_birth": "2000-11-22",
            "country": "IS",
            "nationality": "IS",
            "address": {
                "id": "address_b6d52e34fffce3c20d6000dd6faea3a2",
                "name": "John Doe",
                "line_1": "123 Main Street",
                "line_2": "",
                "line_3": "",
                "city": "Anytown",
                "state": "NY",
                "country": "US",
                "zip": "12345",
                "phone_number": "+15555555555",
                "metadata": {},
                "canton": "",
                "district": "",
                "created_at": 1694069068
            },
            "ewallet": "ewallet_ca8e764afff51baa58eb47a52da6b5b0",
            "created_at": 1694069068,
            "metadata": {
                "merchant_defined": true
            },
            "business_details": null,
            "compliance_profile": 0,
            "verification_status": "not verified",
            "send_notifications": false,
            "mothers_name": "Jane Smith",
            "contact_reference_id": "johndoe"
        }
    }