---
updatedAt: 2025-11-26T08:40:32.000Z
agentTools:
  projectIndex: https://developers.sygna.io/llms.txt
---

# 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](https://developers.sygna.io/reference/permission-request) to Robot VASP with VASP code `ROBOTWAA` and the beneficiary name `John Smith` and account number `1KFHE7w8BhaENAswwryaoccDb6qcT6DbYY ` or using the [VAAI](https://developers.sygna.io/docs/virtual-asset-account-information-vaai) code as

```text Robot VASP VAAI code for testing
bitcoin:1KFHE7w8BhaENAswwryaoccDb6qcT6DbYY?personType=NaturalPerson&primaryIdentifier=Smith&secondaryIdentifier=John&vc=ROBOTWAA
```

```json JSON (legacy)
{
  "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"
    ]
  }
}
```
```json JSON (v2023)
{
  "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"
  }
}
```

2. Receive debug information with [Originator/Permission](https://developers.sygna.io/reference/originatorpermission-3)

## 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](https://developers.sygna.io/reference/bridgepermissionrequest-3) to your VASP\
>    4\. You can then verify whether or not the incoming `private_info` is successfully decrypted as the following format:

```json
{
  "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"
    ]
  }
}
```

5. 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.