Полезная нагрузка события Connect не имеет имени роли в качестве опции.
Но вы можете вызвать метод API EnvelopeRecipients :: list с envelopeId из полезной нагрузки события.
Вы получите обратно данные для всех получателей конверта, включая их роль. Пример ответа:
{
agents: [],
carbonCopies: [
{
email: "larry@example.com",
name: "Larry Kluger",
note: "",
recipientId: "2",
recipientIdGuid: "a31eaf15-48bb-4a40-a8a7-cf28325f1d78",
requireIdLookup: "false",
roleName: "cc", // <<===
routingOrder: "2",
status: "created",
userId: "00db048f-1dbc-489f-935a-c2d7bc178ca1"
}
],
certifiedDeliveries: [],
currentRoutingOrder: "1",
editors: [],
inPersonSigners: [],
intermediaries: [],
recipientCount: "2",
seals: [],
signers: [
{
creationReason: "sender",
deliveryMethod: "email",
email: "Pat.Edwards@example.com",
isBulkRecipient: "false",
name: "Pat Edwards",
note: "",
recipientId: "1",
recipientIdGuid: "f21e3531-277a-4ee1-912b-1d359d342fa7",
requireIdLookup: "false",
roleName: "signer", // <<===
routingOrder: "1",
status: "sent",
userId: "69e573ac-d2e2-41d0-9ad3-b5e64317942f"
}
]
}