Update Wallet Contact
Update a contact for a Rapyd Wallet.
Note
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).
countrydate_of_birthfirst_namelast_nameidentification_numberidentification_typenationality
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' \ --data-raw '{ "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_8d2d52f431a4d3d9d49aab3df94a2adf/contacts/cont_4bd588fb8a711a4dbd5c1f21989780d2 -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 '{ "phone_number": "+14155551997", "metadata": { "merchant_defined": "updated" } } '{ "status": { "error_code": "", "status": "SUCCESS", "message": "", "response_code": "", "operation_id": "0637a29b-766c-4b2f-b2b1-47a7943ff8af" }, "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" } }
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": "johndoe20251009" }'{ "status": { "error_code": "", "status": "SUCCESS", "message": "", "response_code": "", "operation_id": "c8af6989-05b3-4c43-8d8e-0a19ebefd76b" }, "data": { "id": "cont_3625cb4fc18d005b12f9ccf0c466755e", "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": "johndoefourstar@rapyd.net", "identification_type": "PA", "identification_number": "1234567890", "issued_card_data": { "preferred_name": "", "transaction_permissions": "", "role_in_company": "" }, "date_of_birth": "2000-11-22", "country": "US", "nationality": "NL", "address": { "id": "address_9706af91b503c70a819605222afabc96", "name": "John Doe - Four Star Professional Services", "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": 1608023967 }, "ewallet": "ewallet_053d64c44834e1d3057ecb68a34c6b6c", "created_at": 1608023967, "metadata": { "merchant_defined": "updated" }, "business_details": { "id": "busi_9d2952408ec5dec780f5b88a8fc174aa", "name": "Four Star Professional Services", "registration_number": "R24032020000", "entity_type": "company", "industry_category": "company", "industry_sub_category": "home services", "address": { "id": "address_977b39b4b725fadc9040e1ee1e5df795", "name": "John Doe - Four Star Professional Services", "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": 1608023967 }, "created_at": 1608023967, "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": "Jane Smith", "contact_reference_id": "johndoe20251009" } }