Skip to main content

Documentation

Update Wallet Contact

Update a contact for a Rapyd Wallet.

Note

  1. The following body parameters can only be updated if they previously had an empty value.

    This limitation does not apply to a Payment Facilitator (PayFac).

    • country

    • date_of_birth

    • first_name

    • last_name

    • identification_number

    • identification_type

    • nationality

  2. The code samples include successful requests (200), bad requests (400), and an unauthorized request (401). For all error messages that appear due to bad requests, see Wallet Contact Errors, Wallet Errors, and General Errors.

    • contact

    • ID of the contact. String starting with cont_.

    • wallet

    • ID of the wallet associated with the contact. String starting with ewallet_.

Note

The following fields can be updated only if they previously had an empty value.

This limitation does not apply to a Payment Facilitator (PayFac).

  • · country

  • · date_of_birth

  • · first_name

  • · identification_number

  • · identification_type

  • · last_name

  • · nationality

The following business_details fields can be updated only by a PayFac:

  • · customer_service_phone_number

  • · mcc

  • · statement_descriptor

  • · website_url

Code Samples
    • .NET

      • using System;
        using System.Text.Json;
        
        namespace RapydApiRequestSample
        {
            class Program
            {
                static void Main(string[] args)
                {
                    try
                    {
                        string wallet = "ewallet_053d64c44834e1d3057ecb68a34c6b6c";
                        string contact = "cont_f2b7f98b019af17df892dcc92abc3cc2";
        
                        var metadata = new
                        {
                            merchant_defined = "updated"
                        };
        
                        var requestObj = new
                        {
                            phone_number = "+14155551237",
                            metadata,
                        };
        
                        string request = JsonSerializer.Serialize(requestObj);
        
                        string result = RapydApiRequestSample.Utilities.MakeRequest("POST", $"/v1/ewallets/{wallet}/contacts/{contact}", request);
        
                        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 body = {
              phone_number: '+14155551237',
              metadata: {
                merchant_defined: "updated"
              }
            };
            const result = await makeRequest(
              'POST',
              '/v1/ewallets/ewallet_053d64c44834e1d3057ecb68a34c6b6c/contacts/cont_f2b7f98b019af17df892dcc92abc3cc2',
              body
            );
        
            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);
        $body = [
            'phone_number' => '+14155551237',
            'metadata' => [
                'merchant_defined' => "updated"
            ]
          ];
        
        try {
            $object = make_request('post', '/v1/ewallets/ewallet_053d64c44834e1d3057ecb68a34c6b6c/contacts/cont_f2b7f98b019af17df892dcc92abc3cc2', $body);
            var_dump($object);
        } catch(Exception $e) {
            echo "Error: $e";
        }
        ?>
    • Python

      • from pprint import pprint
        
        from utilities import make_request
        
        contact_details = {
            "phone_number": "+14155551237",
            "metadata": {
                "merchant_defined": "updated"
            }
        }
        
        results = make_request(method='post',
                               path=f'/v1/ewallets/ewallet_053d64c44834e1d3057ecb68a34c6b6c/contacts/cont_f2b7f98b019af17df892dcc92abc3cc2',
                               body=contact_details)
        pprint(results)
  • /v1/ewallets/:wallet/contacts/:contact

  • Update PayFac Fields

  • curl -X post 'https://sandboxapi.rapyd.net/v1/ewallets/ewallet_b355f1e8657f2a02ae38d060c9512dd6/contacts/cont_964aa848bf107c2ebe819fd8ce1a85a3' \
    -H 'access_key: your-access-key-here'
    -H 'Content-Type: application/json'
    -H 'idempotency: your-idempotency-parameter-here'
    -H 'salt: your-random-string-here'
    -H 'signature: your-calculated-signature-here'
    -H 'timestamp: your-unix-timestamp-here'
    -d '{
        "business_details": {
            "website_url": "https://updatedurl.com",
            "statement_descriptor": "updatewalletcontact",
            "mcc": "124",
            "customer_service_phone_number": "+14155551212",
            "address": {
                "zip": "54321",
                "city": "Anytown",
                "country": "US",
                "line_1": "789 Main Street",
                "line_2": "Apt 4E",
                "phone_number": "+14155555555",
                "name": "John Doe"
            }
        }
    }'
  • {
        "status": {
            "error_code": "",
            "status": "SUCCESS",
            "message": "",
            "response_code": "",
            "operation_id": "8af16a9f-a5de-4ed0-b7b6-1f267fe58209"
        },
        "data": {
            "id": "cont_18c0d881a3d0d2e9e54d4664c6b0022d",
            "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": "john.doe.162417@example.com",
            "identification_type": "",
            "identification_number": "",
            "issued_card_data": {
                "preferred_name": "",
                "transaction_permissions": "",
                "role_in_company": ""
            },
            "date_of_birth": null,
            "country": "US",
            "nationality": null,
            "address": null,
            "ewallet": "ewallet_b5320c566cc4aa01fe77440ad08693f7",
            "created_at": 1753881858,
            "metadata": {},
            "business_details": {
                "id": "busi_aba4330005786f053d25c46168d21fc4",
                "name": "",
                "registration_number": "",
                "entity_type": "n/a",
                "industry_category": "n/a",
                "industry_sub_category": "n/a",
                "address": {
                    "id": "address_3c15646a8e2011f884c92eb416f52a02",
                    "name": "John Doe",
                    "line_1": "789 Main Street",
                    "line_2": "Apt 4E",
                    "line_3": "",
                    "city": "Anytown",
                    "state": "",
                    "country": "US",
                    "zip": "54321",
                    "phone_number": "+14155555555",
                    "metadata": {},
                    "canton": "",
                    "district": "",
                    "created_at": 1755781052
                },
                "created_at": 1753881858,
                "annual_revenue": 0,
                "establishment_date": null,
                "legal_entity_type": null,
                "cnae_code": null,
                "statement_descriptor": null,
                "mcc": null,
                "website_url": null,
                "customer_service_phone_number": null
            },
            "compliance_profile": 0,
            "verification_status": "not verified",
            "send_notifications": false,
            "mothers_name": "",
            "contact_reference_id": null
        }
    }
  • Update Personal Contact in Company Wallet

  • curl -X post 'https://sandboxapi.rapyd.net/v1/ewallets/ewallet_b5320c566cc4aa01fe77440ad08693f7/contacts/cont_6b37bac42846c7046bdb9e24b89a5d05' \
    -H 'access_key: your-access-key-here' \
    -H 'Content-Type: application/json' \
    -H 'idempotency: your-idempotency-parameter-here' \
    -H 'salt: your-random-string-here' \
    -H 'signature: your-calculated-signature-here' \
    -H 'timestamp: your-unix-timestamp-here' \
    --data-raw '{
        "phone_number": "+14155551997",
        "metadata": {
            "merchant_defined": "updated"
        }
    }'
  • {
        "status": {
            "error_code": "",
            "status": "SUCCESS",
            "message": "",
            "response_code": "",
            "operation_id": "e1bfc929-1860-47f3-a530-e7dc9276d5d3"
        },
        "data": {
            "id": "cont_6b37bac42846c7046bdb9e24b89a5d05",
            "first_name": "Jane",
            "last_name": "Doe",
            "middle_name": "",
            "second_last_name": "",
            "gender": "not_applicable",
            "marital_status": "not_applicable",
            "house_type": "",
            "contact_type": "personal",
            "phone_number": "+14155551997",
            "email": "",
            "identification_type": "PA",
            "identification_number": "1233242424",
            "issued_card_data": {
                "preferred_name": "",
                "transaction_permissions": "",
                "role_in_company": ""
            },
            "date_of_birth": null,
            "country": "US",
            "nationality": null,
            "address": {
                "id": "address_2c98c788eafe3a5a6b7541431e0ced5e",
                "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": 1754572956
            },
            "ewallet": "ewallet_b5320c566cc4aa01fe77440ad08693f7",
            "created_at": 1754572956,
            "metadata": {
                "merchant_defined": "updated"
            },
            "business_details": null,
            "compliance_profile": 0,
            "verification_status": "not verified",
            "send_notifications": false,
            "mothers_name": "",
            "contact_reference_id": null
        }
    }
  • Update Contact Reference ID

  • curl -X post 'https://sandboxapi.rapyd.net/v1/ewallets/ewallet_053d64c44834e1d3057ecb68a34c6b6c/contacts/cont_3625cb4fc18d005b12f9ccf0c466755e' \
    -H 'access_key: your-access-key-here' \
    -H 'Content-Type: application/json' \
    -H 'idempotency: your-idempotency-parameter-here' \
    -H 'salt: your-random-string-here' \
    -H 'signature: your-calculated-signature-here' \
    -H 'timestamp: your-unix-timestamp-here' \
    --data-raw '{
        "contact_reference_id": "johndoe2025-11-03a"
    }'
  • {
        "status": {
            "error_code": "",
            "status": "SUCCESS",
            "message": "",
            "response_code": "",
            "operation_id": "6f0929be-0313-40c5-a8f3-24a82fd0dc85"
        },
        "data": {
            "id": "cont_6b37bac42846c7046bdb9e24b89a5d05",
            "first_name": "Jane",
            "last_name": "Doe",
            "middle_name": "",
            "second_last_name": "",
            "gender": "not_applicable",
            "marital_status": "not_applicable",
            "house_type": "",
            "contact_type": "personal",
            "phone_number": "+14155551997",
            "email": "",
            "identification_type": "PA",
            "identification_number": "1233242424",
            "issued_card_data": {
                "preferred_name": "",
                "transaction_permissions": "",
                "role_in_company": ""
            },
            "date_of_birth": null,
            "country": "US",
            "nationality": null,
            "address": {
                "id": "address_2c98c788eafe3a5a6b7541431e0ced5e",
                "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": 1754572956
            },
            "ewallet": "ewallet_b5320c566cc4aa01fe77440ad08693f7",
            "created_at": 1754572956,
            "metadata": {
                "merchant_defined": "updated"
            },
            "business_details": null,
            "compliance_profile": 0,
            "verification_status": "not verified",
            "send_notifications": false,
            "mothers_name": "",
            "contact_reference_id": "johndoe2025-11-03a"
        }
    }
  • Bad Request - Wallet Disabled

  • curl -X post 'https://sandboxapi.rapyd.net/v1/ewallets/ewallet_b5320c566cc4aa01fe77440ad08693f7/contacts/cont_6b37bac42846c7046bdb9e24b89a5d05' \
    -H 'access_key: your-access-key-here' \
    -H 'Content-Type: application/json' \
    -H 'idempotency: your-idempotency-parameter-here' \
    -H 'salt: your-random-string-here' \
    -H 'signature: your-calculated-signature-here' \
    -H 'timestamp: your-unix-timestamp-here' \
    --data-raw '{
        "contact_reference_id": "johndoe2025-11-03a"
    }'
  • {
        "status": {
            "error_code": "ERROR_EWALLET_DISABLED",
            "status": "ERROR",
            "message": "The request attempted an operation that requires a wallet, but the wallet is disabled. The request was rejected. Corrective action: Enable the wallet.",
            "response_code": "ERROR_EWALLET_DISABLED",
            "operation_id": "1d089df1-780f-4286-9b2d-0fe2caacade2"
        }
    }
  • Bad Request - Wallet Contact Not Found

  • curl -X post 'https://sandboxapi.rapyd.net/v1/ewallets/ewallet_d496b5377c6c6c1d8c0c9ba3fec1d073/contacts/cont_6b37bac42846c7046bdb9e24b89a5d05' \
    -H 'access_key: your-access-key-here' \
    -H 'Content-Type: application/json' \
    -H 'idempotency: your-idempotency-parameter-here' \
    -H 'salt: your-random-string-here' \
    -H 'signature: your-calculated-signature-here' \
    -H 'timestamp: your-unix-timestamp-here' \
    --data-raw '{
        "contact_reference_id": "johndoe2025-11-03a"
    }'
  • {
        "status": {
            "error_code": "ERROR_GET_EWALLET_CONTACT",
            "status": "ERROR",
            "message": "The request attempted an operation that requires a wallet contact, but the contact was not found. The request was rejected. Corrective action: In the path, specify the ID of a valid wallet, a string starting with 'ewallet_', and the ID of a valid contact belonging to that wallet, a string starting with 'cont_'.",
            "response_code": "ERROR_GET_EWALLET_CONTACT",
            "operation_id": "e26db2cc-7681-4eb2-a848-91f50224927b"
        }
    }
    
  • Unauthorized

  • curl -X post 'https://sandboxapi.rapyd.net/v1/ewallets/ewallet_053d64c44834e1d3057ecb68a34c6b6c/contacts/cont_3625cb4fc18d005b12f9ccf0c466755e' \
    -H 'access_key: your-access-key-here' \
    -H 'Content-Type: application/json' \
    -H 'idempotency: your-idempotency-parameter-here' \
    -H 'salt: your-random-string-here' \
    -H 'signature: your-calculated-signature-here' \
    -H 'timestamp: your-unix-timestamp-here' \
    --data-raw '{
        "contact_reference_id": "johndoe2025-11-03a"
    }'
  • {
        "status": {
            "error_code": "UNAUTHENTICATED_API_CALL",
            "status": "ERROR",
            "message": "The request was rejected due to an authentication issue. Corrective action: Check the status of your account in the 'Account Details' page of the Client Portal.",
            "response_code": "UNAUTHENTICATED_API_CALL",
            "operation_id": "b4a58037-119a-4629-ba05-d218dd88a081"
        }
    }