How to disable/remove SMS authentication for a recipient when creating envelope

31 views Asked by At

use case: I want to skip sms authentication for a particular recipient using java sdk.

I tried making below changes: 1. //earlier xIdCheckConfigurationName : SMS Auth $

//chnages x.setIdCheckConfigurationName(null);

  1. envelopesApi.updateRecipients(docuSignAccountId,envId,recipients);
1

There are 1 answers

3
Inbar Gazit On

You can decide for each signer/recipient if they need to authenticate with SMS/phone or not.

Here is a partial Java code, just remember to set signer1 and signer2 with everything except the SMS part for signer1 only.

RecipientIdentityInputOption inputOption = new RecipientIdentityInputOption();
inputOption.setName("phone_number_list");
inputOption.setValueType("PhoneNumberList");
inputOption.setPhoneNumberList(List.of(phoneNumber));
    
RecipientIdentityVerification identityVerifcation = new RecipientIdentityVerification();
    
identityVerifcation.setWorkflowId(workFlowId);
identityVerifcation.setInputOptions(List.of(inputOption));

signer1.setIdentityVerification(identityVerifcation);
// signer2 WILL NOT HAVE THIS LINE

Recipients recipients = new Recipients();
recipients.setSigners(List.of(signer1, signer2));