Test Example Code
- Check if the
private_infois encrypted correctly. - Check if the decrypted
private_infois 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
- Send Permission Request to Robot VASP with VASP code
ROBOTWAAand the beneficiary nameJohn Smithand account number1KFHE7w8BhaENAswwryaoccDb6qcT6DbYYor 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"
]
}
}{
"Originator": {
"originatorPerson": [
{
"naturalPerson": {
"name": {
"nameIdentifier": [
{
"primaryIdentifier": "YOUR_INPUT", // last_name
"secondaryIdentifier": "YOUR_INPUT", // first_name
"naturalPersonNameIdentifierType": "YOUR_INPUT"
}
],
},
"geographicAddress": [
{
"addressType": "YOUR_INPUT",
"department": "YOUR_INPUT",
"subDepartment": "YOUR_INPUT",
"streetName": "YOUR_INPUT",
"buildingNumber": "YOUR_INPUT",
"buildingName": "YOUR_INPUT",
"floor": "YOUR_INPUT",
"postBox": "YOUR_INPUT",
"room": "YOUR_INPUT",
"postCode": "YOUR_INPUT",
"townName": "YOUR_INPUT",
"townLocationName": "YOUR_INPUT",
"districtName": "YOUR_INPUT",
"countrySubDivision": "YOUR_INPUT",
"addressLine": [ //required
"YOUR_INPUT",
"YOUR_INPUT"
],
"country": "YOUR_INPUT"
}
],
"nationalIdentification": {
"nationalIdentifier": "YOUR_INPUT",
"nationalIdentifierType": "YOUR_INPUT",
"countryOfIssue": "YOUR_INPUT",
"registrationAuthority": "YOUR_INPUT"
},
"countryOfResidence": "YOUR_INPUT"
},
"accountNumber": [
"YOUR_INPUT"
]
}
]
},
"Beneficiary": {
"beneficiaryPerson": [
{
"naturalPerson": {
"name": {
"nameIdentifier": [
{
"primaryIdentifier": "Smith",
"secondaryIdentifier": "John",
"naturalPersonNameIdentifierType": "LEGL"
}
],
"localNameIdentifier": [
{
"primaryIdentifier": "YOUR_INPUT",
"secondaryIdentifier": "YOUR_INPUT",
"nameIdentifierType": "YOUR_INPUT"
}
],
"phoneticNameIdentifier": [
{
"primaryIdentifier": "YOUR_INPUT",
"secondaryIdentifier": "YOUR_INPUT",
"nameIdentifierType": "YOUR_INPUT"
}
]
},
"dateAndPlaceOfBirth": {
"dateOfBirth": "1987-03-21" //required
}
},
"accountNumber": [
"1KFHE7w8BhaENAswwryaoccDb6qcT6DbYY"
]
}
]
},
"PayloadMetadata": {
"payloadVersion": "101.2023"
}
}- Receive debug information with Originator/Permission
You want to test as a beneficiary VASP
SynchronousRight after the successful testing from step 2, Robot VASP will switch its role to originator VASP and will continue the testing.
- Robot VASP will send the Bridge/PermissionRequest to your VASP
4. You can then verify whether or not the incomingprivate_infois 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"
]
}
}- 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.
Updated 16 days ago
