Remove/Correct 来自 DocuSign SDK 的签名者的身份验证

Remove/Correct Identity Verification from a signer from DocuSign SDK

我创建了一个信封,我想实现与 API 中的 DocuSign 门户相同的正确功能。

创建时,我将身份验证类型设置为签名者并且工作正常。

Signer signer = new Signer
{
   Email = email,
   Name = name,
   RecipientId = recipientId
};

//On Create
RecipientSMSAuthentication smsAuth = new RecipientSMSAuthentication();
smsAuth.SenderProvidedNumbers = new List<string>();


foreach (var telephone in telephoneNumbers)
{
    smsAuth.SenderProvidedNumbers.Add(telephone);
}

signer.IdCheckConfigurationName = "SMS Auth $";
signer.SmsAuthentication = smsAuth;

当我尝试更正此签名者并删除或更改(等 phone)时,此身份验证类型不起作用

//On Update
signer.IdCheckConfigurationName = "";
signer.SmsAuthentication = null;

我使用 UpdateAsync api 调用

Recipients Recipients = new Recipients();
List<Signer> Signers = new List<Signer>();
Signers.Add(signer);

Recipients.Signers = Signers;



await envelopesApi.UpdateAsync(accountId, envelopeId, new Envelope() { Recipients = Recipients }, new EnvelopesApi.UpdateOptions() { resendEnvelope = "true" });

几件事。 首先,您在此代码中使用旧方法进行 SMS 验证。最近引入了一种新方法,它会给您带来更大的灵活性。它看起来像这样:

        RecipientIdentityVerification workflow = new RecipientIdentityVerification()
        {
            WorkflowId = workflowId,
            InputOptions = new List<RecipientIdentityInputOption> {
                new RecipientIdentityInputOption
                {
                    Name = "phone_number_list",
                    ValueType = "PhoneNumberList",
                    PhoneNumberList = new List<RecipientIdentityPhoneNumber>
                    {
                        new RecipientIdentityPhoneNumber
                        {
                            Number = phoneNumber,
                            CountryCode = countryAreaCode,
                        }
                    }
                }
            }
        };

        Signer signer1 = new Signer()
        {
            Name = signerName,
            Email = signerEmail,
            RoutingOrder = "1",
            Status = "Created",
            DeliveryMethod = "Email",
            RecipientId = "1", //represents your {RECIPIENT_ID},
            Tabs = signer1Tabs,
            IdentityVerification = workflow,
        };

注意您的帐户可能没有启用新的身份验证方法,您可以创建一个新的开发者帐户或联系支持人员为您启用它,。

其次,更新现有信封的收件人有一些限制。只有当信封处于“草稿”状态(“已创建”)而不是在发送后(“已发送”)时才能完成。在这种情况下,您可能需要使用 Correct 操作。