Skip to main content

Documentation

Add Contact to Wallet
  • Add a personal contact to a company wallet or client wallet.

  • This page also includes details on the required parameters for a business contact_type that should be added when creating a company wallet:

    • address

    • business_details

    • country

Note

  • The status of the wallet must be ACT (enabled).

  • You can only add a personal contact to a company wallet or a client wallet.

  • For best practices, include the first_name, last_name, date_of_birth, country, address.name and address.line_1 fields. These fields are required for other operations.

  • To change parameter values of a wallet contact, see Update Wallet Contact.

  • The code samples include successful requests (200) and bad requests (400).

    • wallet

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

  • /v1/ewallets/:wallet/contacts

  • Add Contact to Wallet

  • curl -X post 'https://sandboxapi.rapyd.net/v1/ewallets/ewallet_b5320c566cc4aa01fe77440ad08693f7/contacts' \
    -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 '{
        "first_name": "Jane",
        "last_name": "Doe",
        "contact_type": "personal",
        "identification_type": "PA",
        "identification_number": "1233242424",
        "country": "US",
        "address": {
            "name": "Jane Doe",
            "line_1": "123 First Street",
            "city": "Anytown",
            "zip": "12345",
            "phone_number": "+14155551234"
        }
    }'
  • {
        "status": {
            "error_code": "",
            "status": "SUCCESS",
            "message": "",
            "response_code": "",
            "operation_id": "4f3ca7e4-759d-4630-aa57-1c9c4bb251ba"
        },
        "data": {
            "id": "cont_6493a93a65b59e7aa3c9c223be7cdeb4",
            "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": "",
            "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_c5696fba97628d9f079f844bd14631b2",
                "name": "Jane Doe",
                "line_1": "123 First Street",
                "line_2": "",
                "line_3": "",
                "city": "Anytown",
                "state": "",
                "country": "",
                "zip": "12345",
                "phone_number": "+14155551234",
                "metadata": {},
                "canton": "",
                "district": "",
                "created_at": 1762174004
            },
            "ewallet": "ewallet_b5320c566cc4aa01fe77440ad08693f7",
            "created_at": 1762174004,
            "metadata": {},
            "business_details": null,
            "compliance_profile": 0,
            "verification_status": "not verified",
            "send_notifications": false,
            "mothers_name": "",
            "contact_reference_id": null
        }
    }
  • Bad Request - Wallet Not Found

  • curl -X post 'https://sandboxapi.rapyd.net/v1/ewallets/ewallet_b5320c566cc4aa01fe77440ad08693f7/contacts' \
    -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 '{
        "first_name": "Jane",
        "last_name": "Doe",
        "contact_type": "personal",
        "identification_type": "PA",
        "identification_number": "1233242424",
        "country": "US",
        "address": {
            "name": "Jane Doe",
            "line_1": "123 First Street",
            "city": "Anytown",
            "zip": "12345",
            "phone_number": "+14155551234"
        }
    }'
  • {
        "status": {
            "error_code": "ERROR_GET_USER",
            "status": "ERROR",
            "message": "The request attempted an operation that requires a wallet, but the wallet was not found. The request was rejected. Corrective action: Use the ID of a valid wallet that has not been deleted. The ID is a string starting with 'ewallet_'.",
            "response_code": "ERROR_GET_USER",
            "operation_id": "2f17e6d3-50c6-46c5-9af2-7dd7c95a507d"
        }
    }
  • Bad Request - Too Many Contacts (Person Wallet)

  • curl -X post 'https://sandboxapi.rapyd.net/v1/ewallets/ewallet_d496b5377c6c6c1d8c0c9ba3fec1d073/contacts' \
    -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 '{
        "first_name": "Jane",
        "last_name": "Doe",
        "contact_type": "personal",
        "identification_type": "PA",
        "identification_number": "1233242424",
        "country": "US",
        "address": {
            "name": "Jane Doe",
            "line_1": "123 Lake Forest Drive",
            "city": "Anytown",
            "zip": "12345",
            "phone_number": "+14155551234"
        }
    }'
  • {
        "status": {
            "error_code": "ERROR_ADD_CONTACT_TOO_MANY_CONTACTS",
            "status": "ERROR",
            "message": "The request tried to add a contact to a personal wallet, but a personal wallet can have only one contact. The request was rejected. Corrective action: None. Determine why an attempt was made to give a personal wallet two contacts. Consider creating a company wallet.",
            "response_code": "ERROR_ADD_CONTACT_TOO_MANY_CONTACTS",
            "operation_id": "0cce690c-8275-4944-a21b-9e6951e52694"
        }
    }