Skip to main content

Documentation

Delete Wallet Contact

Delete a personal contact from a company wallet or client wallet.

    • contact

    • ID of the contact. String starting with the prefix cont_.

    • 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_5d228399661dac92968ace74f7aa00c6";
                        string contact = "cont_78cb81b4ef7e079d0a95445e15e820fd";
                      
                        string result = RapydApiRequestSample.Utilities.MakeRequest("DELETE", $"/v1/ewallets/{wallet}/contacts/{contact}");
        
                        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(
              'DELETE', '/v1/ewallets/ewallets/ewallet_5d228399661dac92968ace74f7aa00c6/contacts/cont_78cb81b4ef7e079d0a95445e15e820fd'
            );
        
            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('delete', '/v1/ewallets/ewallet_5d228399661dac92968ace74f7aa00c6/contacts/cont_78cb81b4ef7e079d0a95445e15e820fd');
            var_dump($object);
        } catch(Exception $e) {
            echo "Error: $e";
        }
        ?>
    • Python

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

  • Delete Wallet Contact

  • curl -X delete
    https://sandboxapi.rapyd.net/v1/ewallet_62f756c384f52bb2aaf7f6a05da36b9f/contacts/cont_91a70854acf4b78ddbbf767d2e4c0cf3
    -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": "fa1c1243-bdf0-4109-ac8d-df1727184fd4"
        },
        "data": {
            "id": "cont_91a70854acf4b78ddbbf767d2e4c0cf3",
            "delete": true
        }
    }