tatternutz

Creating role with the same NAME value

0 votes
I have an issue where I am adding 2 signers to a package that have the same name. They have unique IDs and different email addresses. Is there a solution to this use case?
{
    "signers": [{
        "firstName": "JOHN",
        "lastName": "SMITH",
        "email": "[email protected]"
    }],
    "name": "JOHN SMITH",
    "id": "0012a00000AIGloAAH",
    "type": "SIGNER"
}
{
    "signers": [{
        "firstName": "JOHN",
        "lastName": "SMITH",
        "email": "[email protected]"
    }],
    "name": "JOHN SMITH",
    "id": "a0L2a00000055wyEAA",
    "type": "SIGNER"
}
Error
{
    "messageKey": "error.validation.existingRole",
    "message": "Invalid role name. Another role exists with the same name.",
    "code": 400,
    "name": "Validation Error"
}

Approved Answer

Reply to: Creating role with the same NAME value

1 votes
Hi there, From my test, if you add all roles when creating package, the "name" attribute can be the same. While if you add roles separately, their name can't be the same(but firstname and lastname are allowed to be same). So you can either add two roles together at one call when creating transaction, or you simply don't assign their name and you can use Firstname and Lastname to combine the name in your code. Hope this could help you! Duo

Duo Liang OneSpan Evangelism and Partner Integrations Developer


Hello! Looks like you're enjoying the discussion, but haven't signed up for an account.

When you create an account, we remember exactly what you've read, so you always come right back where you left off