Test Example Code

  • Check if the private_info is encrypted correctly.
  • Check if the decrypted private_info is in the correct format.
  • Check if the beneficiary name aligns with the beneficiary VASP database. (As User-code is entered correctly on the originator VASP interface)
  • Checking if there is any network issue.

You want to test as an originator VASP

  1. Send Permission Request to Robot VASP with VASP code ROBOTWAA and the beneficiary name John Smith and account number 1KFHE7w8BhaENAswwryaoccDb6qcT6DbYY or using the VAAI code as
bitcoin:1KFHE7w8BhaENAswwryaoccDb6qcT6DbYY?personType=NaturalPerson&primaryIdentifier=Smith&secondaryIdentifier=John&vc=ROBOTWAA
{
  "originator": {
    "originator_persons": [
      {
        "natural_person": {
          "name": {
            "name_identifiers": [
              {
                "primary_identifier": "YOUR_INPUT",
                "secondary_identifier": "YOUR_INPUT", ///Optional
                "name_identifier_type": "YOUR_INPUT"
              }
            ]
          },
          "national_identification": {
            "national_identifier": "YOUR_INPUT",
            "national_identifier_type": "YOUR_INPUT",
            "registration_authority": "YOUR_INPUT"
          },
          "country_of_residence": "YOUR_INPUT"
        }
      }
    ],
    "account_numbers": [
      "YOUR_INPUT"
    ]
  },
  "beneficiary": {
    "beneficiary_persons": [
      {
        "natural_person": {
          "name": {
            "name_identifiers": [
              {
                "primary_identifier": "Smith",
                "secondary_identifier": "John",
                "name_identifier_type": "LEGL"
              }
            ]
          }
        }
      }
    ],
    "account_numbers": [
      "1KFHE7w8BhaENAswwryaoccDb6qcT6DbYY"
    ]
  },
  "payload_metadata": {
    "transliteration_method": [
      "HANI"
    ]
  }
}
  1. Receive debug information with Originator/Permission

You want to test as a beneficiary VASP

πŸ“˜

Synchronous

Right after the successful testing from step 2, Robot VASP will switch its role to originator VASP and will continue the testing.
3. Robot VASP will send the Bridge/PermissionRequest to your VASP
4. You can then verify whether or not the incoming private_info is successfully decrypted as the following format:

{
  "originator": {
    "originator_persons": [
      {
        "natural_person": {
          "name": {
            "name_identifiers": [
              {
                "primary_identifier": "Smith",
                "secondary_identifier": "John",
                "name_identifier_type": "LEGL"
              }
            ]
          },
          "date_and_place_of_birth": {
            "date_of_birth": "1999-12-31",
            "place_of_birth": "US"
          }
        }
      }
    ],
    "account_numbers": [
      "1KFHE7w8BhaENAswwryaoccDb6qcT6DbYY"
    ]
  },
  "beneficiary": {
    "beneficiary_persons": [
      {
        "natural_person": {
          "name": {
            "name_identifiers": [
              {
                "primary_identifier": "YOUR_INPUT_FROM_STEP_1",
                "secondary_identifier": "YOUR_INPUT_FROM_STEP_1",
                "name_identifier_type": "YOUR_INPUT_FROM_STEP_1"
              }
            ]
          }
        }
      }
    ],
    "account_numbers": [
      "YOUR_INPUT_FROM_STEP_1"
    ]
  },
  "payload_metadata": {
    "transliteration_method": [
      "HANI"
    ]
  }
}
  1. Congratulation, you have completed the Robot VASP testing process.

Notes

This is a test robot, but, the information will still be kept inside our database. Thus, for security measures, please do not send real user data to Robot VASP.