我们有一位客户在申请工作时为候选人发出9个或更多信封。而不是向他们发送9个单独的电子邮件(我们已经考虑合并这些信封的模板 - 它不起作用,因为一些工作需要不同的文档来签名),我们想要为信封生成我们自己的URL并创建我们自己的我们系统中的电子邮件,其中包含正文中的所有网址。为此,我们计划使用Recipient View api方法。
我们正在尝试为使用REST API发送的docusign信封创建收件人视图(POST @ / accounts /:accountId / envelopes /:envelopeId / views / recipient)。
虽然我们能够通过iodocs创建的信封创建视图,但通过REST API创建的信封不允许我们创建视图。
除了创建日期和收件人电子邮件地址外,信封完全相同。
碘离子包膜:71a4255f-1444-4aa9-9aa8-142679f8d410
REST信封:3921d151-c11b-404c-bd1e-7c5d19d01dbb
尝试使用REST信封创建视图会给我们带来以下错误:
{
"errorCode": "UNKNOWN_ENVELOPE_RECIPIENT",
"message": "The recipient you have identified is not a valid recipient of the specified envelope. Envelope recipient could not be determined. 'clientUserId', 'email', or 'userName' in request and envelope may not match."
}
两个信封的信封信息:
{
"status": "sent",
"documentsUri": "/envelopes/71a4255f-1444-4aa9-9aa8-142679f8d410/documents",
"recipientsUri": "/envelopes/71a4255f-1444-4aa9-9aa8-142679f8d410/recipients",
"envelopeUri": "/envelopes/71a4255f-1444-4aa9-9aa8-142679f8d410",
"emailSubject": "Test",
"envelopeId": "71a4255f-1444-4aa9-9aa8-142679f8d410",
"customFieldsUri": "/envelopes/71a4255f-1444-4aa9-9aa8-142679f8d410/custom_fields",
"notificationUri": "/envelopes/71a4255f-1444-4aa9-9aa8-142679f8d410/notification",
"enableWetSign": "true",
"allowReassign": "true",
"createdDateTime": "2014-07-01T15:52:13.7130000Z",
"lastModifiedDateTime": "2014-07-01T15:52:13.7130000Z",
"sentDateTime": "2014-07-01T15:52:14.2430000Z",
"statusChangedDateTime": "2014-07-01T15:52:14.2430000Z",
"documentsCombinedUri": "/envelopes/71a4255f-1444-4aa9-9aa8-142679f8d410/documents/combined",
"certificateUri": "/envelopes/71a4255f-1444-4aa9-9aa8-142679f8d410/documents/certificate",
"templatesUri": "/envelopes/71a4255f-1444-4aa9-9aa8-142679f8d410/templates"
}
{
"status": "sent",
"documentsUri": "/envelopes/3921d151-c11b-404c-bd1e-7c5d19d01dbb/documents",
"recipientsUri": "/envelopes/3921d151-c11b-404c-bd1e-7c5d19d01dbb/recipients",
"envelopeUri": "/envelopes/3921d151-c11b-404c-bd1e-7c5d19d01dbb",
"emailSubject": "Please DocuSign this document: 2010 I-9.pdf",
"envelopeId": "3921d151-c11b-404c-bd1e-7c5d19d01dbb",
"customFieldsUri": "/envelopes/3921d151-c11b-404c-bd1e-7c5d19d01dbb/custom_fields",
"notificationUri": "/envelopes/3921d151-c11b-404c-bd1e-7c5d19d01dbb/notification",
"enableWetSign": "true",
"allowReassign": "true",
"createdDateTime": "2014-07-01T15:44:40.8630000Z",
"lastModifiedDateTime": "2014-07-01T15:44:40.8630000Z",
"sentDateTime": "2014-07-01T15:44:42.0470000Z",
"statusChangedDateTime": "2014-07-01T15:44:42.0470000Z",
"documentsCombinedUri": "/envelopes/3921d151-c11b-404c-bd1e-7c5d19d01dbb/documents/combined",
"certificateUri": "/envelopes/3921d151-c11b-404c-bd1e-7c5d19d01dbb/documents/certificate",
"templatesUri": "/envelopes/3921d151-c11b-404c-bd1e-7c5d19d01dbb/templates"
}
两个信封的收件人:
{
"name": "John K",
"email": "yyy@yyy.com",
"recipientId": "1",
"recipientIdGuid": "cb781ffb-3ba0-44b6-8d06-e16d0e4d66aa",
"requireIdLookup": "false",
"userId": "e02aa2f7-4f95-48fa-8d19-38b853c8a0ca",
"routingOrder": "1",
"note": "",
"roleName": "Applicant",
"status": "sent",
"templateLocked": "false",
"templateRequired": "false"
}
{
"name": "Johnathan K",
"email": "xxx@xxx.com",
"recipientId": "1",
"recipientIdGuid": "ce19ceeb-6c2b-4487-82af-fc75307b9a56",
"requireIdLookup": "false",
"userId": "2d10cfbc-a68d-4508-a230-ad6f68646cf1",
"routingOrder": "1",
"note": "",
"roleName": "Applicant",
"status": "sent",
"templateLocked": "false",
"templateRequired": "false"
}