Hi all, I want to create envelope but I receive the following error: errorCode":"UNSPECIFIED_ERROR","message":"Cannot find recipient with ID '1'.
The code:
EnvelopeDefinition envelopeDefinition = new EnvelopeDefinition();envelopeDefinition.setTemplateId(properties.getTemplateId());TemplateRole signer = new TemplateRole();signer.setEmail(“test@gmail.com”);signer.setName(“Test Test”);signer.clientUserId(“123456789”);signer.setRoleName("signer");Tabs tabs = fillTabs();signer.setTabs(tabs);envelopeDefinition.setTemplateRoles(List.of(signer));envelopeDefinition.setStatus("sent");
EnvelopesApi envelopesApi = new EnvelopesApi(getApiClient());EnvelopeSummary summary = envelopesApi.createEnvelope(accountId, envelopeDefinition);
Is there something I do wrong? What can be a reason for this error?