После того, как вы создали конверт, вам нужно сделать вызовы ниже, чтобы добавить документ и получателей с правильными вкладками в документе, у меня есть только пример кода JSON, не могу проверить с кодом CSharp, но вы точно знаете вызовдля того же самого:
Чтобы добавить документ, позвоните ниже конечной точки,
нет необходимости добавлять получателей в этот вызов, просто добавьте документ
PUT /restapi/v2/accounts/{accountId}/envelopes/{envelopeId}/documents/2
с ниже заголовки:
Accept:application/json
Authorization:Bearer <AccessToken>
Content-Type:application/pdf
Content-Disposition:file; filename="Cross Company Guaranty"; fileExtension=pdf; documentId=2
Content-Transfer-Encoding:base64
Тело:
base64bytes
Оба UpdateDocuments()
и UpdateDocument()
могут добавить документ в конверт.
Чтобы добавить получателей и их вкладки, вам нужно позвонить ниже конечной точки,
вместо EnvelopeRecipients: update , должно быть Envelopes: update с параметром запроса advanced_update=true
PUT / restapi / v2 / accounts / {accountId} / envelopes / {envelopeId}? advanced_update = true
Тело:
{
"recipients": {
"signers": [{
"email": "FakeTempEmailAddressRequired@bccfaketemp.com",
"name": "Mary GS",
"recipientId": "78647ecb-ee2e-4910-92ef-c9bf18710657",
"roleName": "Guarantor_Signor",
"routingOrder": "4",
"status": "Created",
"tabs": {
"dateSignedTabs": [],
"initialHereTabs": [],
"signHereTabs": [{
"documentId": "2",
"optional": "false",
"pageNumber": "1",
"recipientId": "78647ecb-ee2e-4910-92ef-c9bf18710657",
"scaleValue": "0.9",
"tabOrder": "2",
"xPosition": "60",
"yPosition": "343"
}],
"textTabs": [{
"disableAutoSize": "true",
"documentId": "2",
"fontSize": "Size8",
"height": 10,
"pageNumber": "1",
"recipientId": "78647ecb-ee2e-4910-92ef-c9bf18710657",
"required": "true",
"tabLabel": "SealDate",
"tabOrder": "1",
"validationMessage": "Please enter valid date using \"mm/dd/yyyy\" format",
"validationPattern": "^((0?[1-9]|1[012])[/](0?[1-9]|[12][0-9]|3[01])[/]?[0-9]{4})*$",
"width": 100,
"xPosition": "248",
"yPosition": "319"
},
{
"disableAutoSize": "true",
"documentId": "2",
"fontSize": "Size8",
"height": 10,
"pageNumber": "1",
"recipientId": "78647ecb-ee2e-4910-92ef-c9bf18710657",
"required": "true",
"tabLabel": "Guarantor_SignorTitle",
"tabOrder": "3",
"validationMessage": "",
"validationPattern": "",
"width": 210,
"xPosition": "71",
"yPosition": "408"
},
{
"disableAutoSize": "true",
"documentId": "2",
"fontSize": "Size8",
"height": 10,
"pageNumber": "1",
"recipientId": "78647ecb-ee2e-4910-92ef-c9bf18710657",
"required": "true",
"tabLabel": "Guarantor_SignorTitle",
"tabOrder": "4",
"validationMessage": "",
"validationPattern": "",
"width": 210,
"xPosition": "114",
"yPosition": "522"
}]
}
},
{
"email": "FakeTempEmailAddressRequired@bccfaketemp.com",
"name": "Tony GW",
"recipientId": "259e95e8-b774-47c1-b2dd-acab0d3b965e",
"roleName": "GuarantorWitness",
"routingOrder": "5",
"status": "Created",
"tabs": {
"dateSignedTabs": [{
"documentId": "2",
"fontSize": "Size8",
"pageNumber": "1",
"recipientId": "259e95e8-b774-47c1-b2dd-acab0d3b965e",
"tabOrder": "4",
"xPosition": "80",
"yPosition": "660"
}],
"initialHereTabs": [],
"signHereTabs": [{
"documentId": "2",
"optional": "false",
"pageNumber": "1",
"recipientId": "259e95e8-b774-47c1-b2dd-acab0d3b965e",
"scaleValue": "0.9",
"tabOrder": "2",
"xPosition": "84",
"yPosition": "579"
}],
"textTabs": [{
"disableAutoSize": "true",
"documentId": "2",
"fontSize": "Size8",
"height": 10,
"pageNumber": "1",
"recipientId": "259e95e8-b774-47c1-b2dd-acab0d3b965e",
"required": "true",
"tabLabel": "GuarantorWitnessTitle",
"tabOrder": "1",
"validationMessage": "",
"validationPattern": "",
"width": 200,
"xPosition": "425",
"yPosition": "464"
},
{
"disableAutoSize": "true",
"documentId": "2",
"fontSize": "Size8",
"height": 10,
"pageNumber": "1",
"recipientId": "259e95e8-b774-47c1-b2dd-acab0d3b965e",
"required": "true",
"tabLabel": "GuarantorWitnessTitle",
"tabOrder": "3",
"validationMessage": "",
"validationPattern": "",
"width": 210,
"xPosition": "80",
"yPosition": "645"
}]
}
}]
}
}
Update
метод должен работать, но обязательно передайте / установите advancedUpdate
как true в UpdateOptions
параметры