需要帮助.准备好的信封已注册,但未发送到电子邮件



我刚刚开始使用这个库,在第一步中需要一些帮助。

我需要有一个模板,用于发送到预先填充数据的代码中定义的收件人。

我有一个带有fullName字段和一个符号字段的模板

在代码中,我正在创建新的信封。代码示例为:

$envelopeDefinition = new DocuSigneSignModelEnvelopeDefinition(
[
'status' => 'sent',
'template_id' => $templateId,
]
);
$signer = new DocuSigneSignModelTemplateRole(
[
'email' => $email,
'name' => $name,
'role_name' => 'signer',
'client_user_id' => 1000,
'tabs' => new DocuSigneSignModelTabs(
[
'sign_here_tabs' => [
new DocuSigneSignModelSignHere(['tab_label' => 'sign'])
]
]
)
]
);
$envelopeDefinition->setTemplateRoles([$signer]);
$envelopeApi = new DocuSigneSignApiEnvelopesApi($authService->getAuthorizedApiClient());
$envelopeApi->createEnvelope($accountId, $envelopeDefinition);

信封已创建,并显示在DocusignUI 的管理选项卡中

历史上只列出了注册事件。我看不到任何发送电子邮件活动邀请的

未收到任何电子邮件

你能解释一下我的代码出了什么问题吗?


添加

我也在尝试以类似于EG008CreateTemplate的方式从短版本的示例中创建新模板,以检查我的模板配置是否有任何问题。我的请求发送邮件数据:

{
"description": "Example template created via the API",
"documents": [
{
"documentBase64": "...",
"documentId": "1",
"fileExtension": "pdf",
"name": "Debug Agreement"
}
],
"emailSubject": "Please sign this document",
"name": "Debug Agreement Template",
"recipients": {
"signers": [
{
"recipientId": "1",
"roleName": "signer",
"routingOrder": "1",
"tabs": {
"numberTabs": [
{
"documentId": "1",
"font": "helvetica",
"fontSize": "size14",
"pageNumber": "1",
"required": "false",
"tabLabel": "numbersOnly",
"width": "84",
"xPosition": "163",
"yPosition": "260"
}
],
"signHereTabs": [
{
"documentId": "1",
"pageNumber": "1",
"xPosition": "191",
"yPosition": "148"
}
],
"textTabs": [
{
"documentId": "1",
"font": "helvetica",
"fontSize": "size14",
"height": "23",
"pageNumber": "1",
"required": "false",
"tabLabel": "text",
"width": "84",
"xPosition": "153",
"yPosition": "230"
}
]
}
}
]
},
"shared": "false",
"status": "created"
}

并再次接收错误The request body is missing or improperly formatted. New Account definition(s) not found in the request body.

谁能解释这个错误意味着什么?我找不到任何关于这种情况的描述

取出这一行:

'client_user_id' => 1000

此行用于嵌入签名,即不发送电子邮件,因为您将其嵌入到应用程序中。您希望使用电子邮件进行远程签名,因此不应该提供client_user_id。

在挖掘代码和请求过程后,检测到accountId为空,请求调用https://demo.docusign.net/restapi/v2.1/accounts//templates提供的错误信息并不像我想的那样正确。

对我来说很奇怪的是,我能够获得模板列表,用空的accountId创建新的信封。。。

相关内容

最新更新