這與Rest api有關。我們在實施過程中看到了一些有趣的內容。我爲信封中的每個文檔創建了一個複合模板,因此如果有4個文檔,則會有4個複合模板。假設我的信封中有5個文檔,每個文檔都有一個簽名選項卡。我們所看到的是,當收件人處理信封時,他們需要在每個文檔的簽名選項卡上單擊5次以完成文檔的處理。如果信封有4個文件,則每個簽名選項卡將爲4次。它似乎與信封中的文件數量相關。這聽起來不像我們想要的行爲。我們可能會做錯什麼?使用複合模板時出現多個文檔的奇怪行爲
這裏是JSON被髮送:
"compositeTemplates": [
{
"serverTemplates": [
{
"sequence": "1",
"templateId": "15a22617-4525-438c-aaf1-45f8632ba2d1"
}
],
"inlineTemplates": [
{
"sequence": "1",
"recipients": {
"signers": [
{
"name": "BAT SDTwo",
"email": "[email protected]",
"recipientId": "6116945",
"accessCode": "4792989",
"customFields": [],
"routingOrder": "1",
"note": "",
"roleName": "Customer_SellerName",
"emailNotification": {
"emailSubject": "Please sign the document(s)",
"emailBody": "Hello,\r\n\r\nYour consultant has sent you a new document to view and sign. Please click on the View Documents link below, review the content, and sign the Cartus document. If you have any questions, please contact your consultant.\r\n\r\nThank you!",
"supportedLanguage": "en"
}
},
{
"name": "SpouseF SpouseL",
"email": "[email protected]",
"recipientId": "6116946",
"accessCode": "4792989",
"customFields": [],
"routingOrder": "2",
"note": "",
"roleName": "Spouse_CoOwnerName",
"emailNotification": {
"emailSubject": "Please sign the document(s)",
"emailBody": "Hello,\r\n\r\nYour consultant has sent you a new document to view and sign. Please click on the View Documents link below, review the content, and sign the Cartus document. If you have any questions, please contact your consultant.\r\n\r\nThank you!",
"supportedLanguage": "en"
}
}
],
"certifiedDeliveries": []
},
}
}
],
"document": {
"documentId": "1",
"name": "e Bookmarks and Tags.pdf",
"fileExtension": ".pdf",
"documentBase64": "[Document:Base64Array]"
}
},
{
"serverTemplates": [
{
"sequence": "2",
"templateId": "15a22617-4525-438c-aaf1-45f8632ba2d1"
}
],
"inlineTemplates": [
{
"sequence": "2",
"recipients": {
"signers": [
{
"name": "BAT SDTwo",
"email": "[email protected]",
"recipientId": "6116945",
"accessCode": "4792989",
"customFields": [],
"routingOrder": "1",
"note": "",
"roleName": "Customer_SellerName",
"emailNotification": {
"emailSubject": "Please sign the document(s)",
"emailBody": "Hello,\r\n\r\nYour consultant has sent you a new document to view and sign. Please click on the View Documents link below, review the content, and sign the Cartus document. If you have any questions, please contact your consultant.\r\n\r\nThank you!",
"supportedLanguage": "en"
}
},
{
"name": "SpouseF SpouseL",
"email": "[email protected]",
"recipientId": "6116946",
"accessCode": "4792989",
"customFields": [],
"routingOrder": "2",
"note": "",
"roleName": "Spouse_CoOwnerName",
"emailNotification": {
"emailSubject": "Please sign the document(s)",
"emailBody": "Hello,\r\n\r\nYour consultant has sent you a new document to view and sign. Please click on the View Documents link below, review the content, and sign the Cartus document. If you have any questions, please contact your consultant.\r\n\r\nThank you!",
"supportedLanguage": "en"
}
}
],
"certifiedDeliveries": []
},
}
],
"document": {
"documentId": "2",
"name": "e Bookmarks and Tags II.pdf",
"fileExtension": ".pdf",
"documentBase64": "[Document:Base64Array]"
}
},
{
"serverTemplates": [
{
"sequence": "3",
"templateId": "15a22617-4525-438c-aaf1-45f8632ba2d1"
}
],
"inlineTemplates": [
{
"sequence": "3",
"recipients": {
"signers": [
{
"name": "BAT SDTwo",
"email": "[email protected]",
"recipientId": "6116945",
"accessCode": "4792989",
"customFields": [],
"routingOrder": "1",
"note": "",
"roleName": "Customer_SellerName",
"emailNotification": {
"emailSubject": "Please sign the document(s)",
"emailBody": "Hello,\r\n\r\nYour consultant has sent you a new document to view and sign. Please click on the View Documents link below, review the content, and sign the Cartus document. If you have any questions, please contact your consultant.\r\n\r\nThank you!",
"supportedLanguage": "en"
}
},
{
"name": "SpouseF SpouseL",
"email": "[email protected]",
"recipientId": "6116946",
"accessCode": "4792989",
"customFields": [],
"routingOrder": "2",
"note": "",
"roleName": "Spouse_CoOwnerName",
"emailNotification": {
"emailSubject": "Please sign the document(s)",
"emailBody": "Hello,\r\n\r\nYour consultant has sent you a new document to view and sign. Please click on the View Documents link below, review the content, and sign the Cartus document. If you have any questions, please contact your consultant.\r\n\r\nThank you!",
"supportedLanguage": "en"
}
}
],
"certifiedDeliveries": []
},
}
],
"document": {
"documentId": "3",
"name": "e Bookmarks and Tags Embedded.pdf",
"fileExtension": ".pdf",
"documentBase64": "[Document:Base64Array]"
}
},
{
"serverTemplates": [
{
"sequence": "4",
"templateId": "15a22617-4525-438c-aaf1-45f8632ba2d1"
}
],
"inlineTemplates": [
{
"sequence": "4",
"recipients": {
"signers": [
{
"name": "BAT SDTwo",
"email": "[email protected]",
"recipientId": "6116945",
"accessCode": "4792989",
"customFields": [],
"routingOrder": "1",
"note": "",
"roleName": "Customer_SellerName",
"emailNotification": {
"emailSubject": "Please sign the document(s)",
"emailBody": "Hello,\r\n\r\nYour consultant has sent you a new document to view and sign. Please click on the View Documents link below, review the content, and sign the Cartus document. If you have any questions, please contact your consultant.\r\n\r\nThank you!",
"supportedLanguage": "en"
}
},
{
"name": "SpouseF SpouseL",
"email": "[email protected]",
"recipientId": "6116946",
"accessCode": "4792989",
"customFields": [],
"routingOrder": "2",
"note": "",
"roleName": "Spouse_CoOwnerName",
"emailNotification": {
"emailSubject": "Please sign the document(s)",
"emailBody": "Hello,\r\n\r\nYour consultant has sent you a new document to view and sign. Please click on the View Documents link below, review the content, and sign the Cartus document. If you have any questions, please contact your consultant.\r\n\r\nThank you!",
"supportedLanguage": "en"
}
}
],
"certifiedDeliveries": []
},
}
],
"document": {
"documentId": "4",
"name": "e Static.pdf",
"fileExtension": ".pdf",
"documentBase64": "[Document:Base64Array]"
}
},
{
"serverTemplates": [
{
"sequence": "5",
"templateId": "15a22617-4525-438c-aaf1-45f8632ba2d1"
}
],
"inlineTemplates": [
{
"sequence": "5",
"recipients": {
"signers": [
{
"name": "BAT SDTwo",
"email": "[email protected]",
"recipientId": "6116945",
"accessCode": "4792989",
"customFields": [],
"routingOrder": "1",
"note": "",
"roleName": "Customer_SellerName",
"emailNotification": {
"emailSubject": "Please sign the document(s)",
"emailBody": "Hello,\r\n\r\nYour consultant has sent you a new document to view and sign. Please click on the View Documents link below, review the content, and sign the Cartus document. If you have any questions, please contact your consultant.\r\n\r\nThank you!",
"supportedLanguage": "en"
}
},
{
"name": "SpouseF SpouseL",
"email": "[email protected]",
"recipientId": "6116946",
"accessCode": "4792989",
"customFields": [],
"routingOrder": "2",
"note": "",
"roleName": "Spouse_CoOwnerName",
"emailNotification": {
"emailSubject": "Please sign the document(s)",
"emailBody": "Hello,\r\n\r\nYour consultant has sent you a new document to view and sign. Please click on the View Documents link below, review the content, and sign the Cartus document. If you have any questions, please contact your consultant.\r\n\r\nThank you!",
"supportedLanguage": "en"
}
}
],
"certifiedDeliveries": []
},
}
],
"document": {
"documentId": "5",
"name": "e Static II.pdf",
"fileExtension": ".pdf",
"documentBase64": "[Document:Base64Array]"
}
},
{
"serverTemplates": [
{
"sequence": "6",
"templateId": "15a22617-4525-438c-aaf1-45f8632ba2d1"
}
],
"inlineTemplates": [
{
"sequence": "6",
"recipients": {
"signers": [
{
"name": "BAT SDTwo",
"email": "[email protected]",
"recipientId": "6116945",
"accessCode": "4792989",
"customFields": [],
"routingOrder": "1",
"note": "",
"roleName": "Customer_SellerName",
"emailNotification": {
"emailSubject": "Please sign the document(s)",
"emailBody": "Hello,\r\n\r\nYour consultant has sent you a new document to view and sign. Please click on the View Documents link below, review the content, and sign the Cartus document. If you have any questions, please contact your consultant.\r\n\r\nThank you!",
"supportedLanguage": "en"
}
},
{
"name": "SpouseF SpouseL",
"email": "[email protected]",
"recipientId": "6116946",
"accessCode": "4792989",
"customFields": [],
"routingOrder": "2",
"note": "",
"roleName": "Spouse_CoOwnerName",
"emailNotification": {
"emailSubject": "Please sign the document(s)",
"emailBody": "Hello,\r\n\r\nYour consultant has sent you a new document to view and sign. Please click on the View Documents link below, review the content, and sign the Cartus document. If you have any questions, please contact your consultant.\r\n\r\nThank you!",
"supportedLanguage": "en"
}
}
],
"certifiedDeliveries": []
},
}
],
"document": {
"documentId": "6",
"name": "e Static Embedded.pdf",
"fileExtension": ".pdf",
"documentBase64": "[Document:Base64Array]"
}
}
],
可以請您發佈您的請求JSON。 –
我對包裝器採取了非常直接的方法,因爲我們仍然在學習模板以及如何完成我們需要做的事情。我也誤以爲每個複合模板只能有一個文檔。對於我們大多數的信封,我們可能會有8或10個文檔,並且可能只有1個模板適用於所有這些文檔。 –