使用DocuSign REST API頁面http://iodocs.docusign.com/我已在「請求籤名」選項卡下使用「From Composite Templatesv2/accounts /:accountId/envelopes」選項創建了複合信封。我請求URL是: 「URI」: 「//demo.docusign.net/restapi/v2/accounts/660598/envelopes」 和身體創建成功後無法查看複合信封
{
"emailBlurb": "Sign Me",
"emailSubject": "Sign this",
"status": "Created",
"templateId": "d34e9aa1-bc1d-41bc-ab3d-de42057dc990",
"templateRoles": [
{
"tabs": {
"textTabs": [
{
"tabLabel": "AccountFirstName",
"value": "FirstName"
},
{
"tabLabel": "AccountLastName",
"value": "LastName"
}
]
},
"roleName": "Account Holder",
"name": "William Heine",
"email": "[email protected]"
}
],
"compositeTemplates": [
{
"serverTemplates": [
{
"sequence": "1",
"templateId": "d34e9aa1-bc1d-41bc-ab3d-de42057dc990"
}
],
"inlineTemplates": [
{
"sequence": "1"
}
]
},
{
"serverTemplates": [
{
"sequence": "2",
"templateId": "2661f101-6bea-4ec1-826d-d3f69863c393"
}
],
"inlineTemplates": [
{
"sequence": "2"
}
]
},
{
"serverTemplates": [
{
"sequence": "3",
"templateId": "1e2aa3b8-8e17-4b57-b7b1-5539a896f1c0"
}
],
"inlineTemplates": [
{
"sequence": "3"
}
]
},
{
"serverTemplates": [
{
"sequence": "4",
"templateId": "5a59fdd0-ae1d-4907-aead-608fc544422f"
}
],
"inlineTemplates": [
{
"sequence": "4"
}
]
}
]
}
對此的迴應是:
{
"envelopeId": "3a9388dc-5c8e-49f5-88c5-7e666363534a",
"uri": "/envelopes/3a9388dc-5c8e-49f5-88c5-7e666363534a",
"statusDateTime": "2014-07-25T22:50:45.9000000Z",
"status": "created"
}
接下來,我進入「視圖」選項卡並使用以下URL調用「Recipientv2/accounts /:accountId/envelopes /:envelopeId/views/recipient」:「uri」:「//demo.docusign.net/restapi/v2/accounts/660598/envelopes/3a9388dc-5c8e-49f5-88c5-7e666363534a/views/recipient「and this body:
{
"authenticationMethod": "email",
"email": "[email protected]",
"returnUrl": "http://testing.ad.mtrust.com/",
"userName": "William Heine"
}
,我得到這個錯誤:
{
"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."
}
的用戶名和電子郵件是相同的。沒有地方可以在複合信封上輸入clientUserId。那麼,爲什麼這不起作用?