我正在使用REST api从模板创建信封。模板上的收件人2是签名者类型"签名者"。是否可以在JSON正文的模板角色部分调整此值,以便收件人2成为现场签名者?
答案 0 :(得分:0)
您在创建信封时无法执行此操作,但您可以使用以下API调用更新信封信封:
PUT /v2/accounts/{accountId}/envelopes/{envelopeId}/recipients
例如,创建created (draft)
状态的信封
POST /v2/accounts/{accountId}/envelopes
{
"compositeTemplates": [{
"inlineTemplates": [{
"recipients": {
"signers": [{
"email": "signer1@1mail.com",
"name": "Signer1 Name",
"recipientId": "1",
"roleName": "Signer1"
},
{
"recipientId": "2",
"email": "hostEmail@email.com",
"name": "Host Name",
"roleName": "Signer2"
}]
},
"sequence": "1"
}],
"serverTemplates": [{
"sequence": "1",
"templateId": "267c3673-3381-4b3d-9040-706b341c721g"
}]
}],
"status": "created"
}
然后调用EnvelopeRecipients: update将recipientId2更新为Inperson Signer。
PUT /v2/accounts/{accountId}/envelopes/{envelopeId}/recipients
{
"inPersonSigners": [{
"roleName": "Signer2",
"routingOrder": 1,
"hostEmail": "hostemail@email.com",
"hostName": "Host Name",
"recipientId": "2",
"signerName": "Signer Name"
}]
}