使用复合模板创建信封并为自定义选项卡设置值

问题描述 投票:0回答:1

我录制了下面的视频来解释我想要实现的目标。

https://www.awesomescreenshot.com/video/23765847?key=c6107a99bee1285ea91f533a1e52b1f6

如果有人知道如何使用复合模板创建信封并使用 API V2.1 填写选项卡信息,请帮助我

我正在发送以下请求以使用复合模板创建信封,但未选择列表项的值

端点:/restapi/v2.1/accounts/e52b70de-****************-dd90c61f9eac/envelopes

REQUEST : 
{
  "status": "sent",
  "compositeTemplates": [
    {
      "compositeTemplateId": "1",
      "serverTemplates": [
        {
          "templateId": "a975e66**********************68f3fb0d19",
          "sequence": "1"
        }
      ],
      "inlineTemplates": [
        {
          "sequence": "1",
          "recipients": {
            "signers": [
              {
                "email": "[email protected]",
                "name": "test user",
                "clientUserId": "15623477",
                "roleName": "Tester",
                "recipientId": "76987934",
                "tabs": {
                  "listTabs": [
                    {
                      "value": "ONE",
                      "tabLabel": "Dropdown",
                      "tabType": "list",
                      "documentId": "1"
                    }
                  ]
                }
              }
            ]
          }
        }
      ]
    }
  ]
}

回应:enter image description here

当我尝试使用下面的请求时,它也不适用于这个

{
 "status": "sent",
 "compositeTemplates": [
   {
     "compositeTemplateId": "1",
     "serverTemplates": [
       {
         "templateId": "a975e66**********************68f3fb0d19",
         "sequence": "1"
       }
     ],
     "inlineTemplates": [
       {
         "sequence": "1",
         "recipients": {
           "signers": [
             {
               "email": "[email protected]",
               "name": "test user",
               "clientUserId": "15623477",
               "roleName": "Tester",
               "recipientId": "76987934",
               "tabs": {
                 "listTabs": [
                   {
                     "tabId": "fd07f90c-e98c-4ee9-bcd8-8a46dcbace1f",
                     "value": "ONE"
                   }
                 ]
               }
             }
           ]
         }
       }
     ]
   }
 ]
}

仍然不起作用。

下面是我从
收到的列表选项卡数据 /restapi/v2.1/accounts/{accountId}/templates/{templateId}/recipients/{recipientId}/tabs API 调用

"listTabs": [
    {
      "listItems": [
        {
          "text": "ONE",
          "value": "ONE",
          "selected": "false"
        },
        {
          "text": "TWO",
          "value": "TWO",
          "selected": "false"
        }
      ],
      "value": "",
      "originalValue": "",
      "shared": "false",
      "required": "true",
      "locked": "false",
      "requireAll": "false",
      "tabLabel": "Dropdown",
      "font": "lucidaconsole",
      "fontColor": "black",
      "fontSize": "size9",
      "localePolicy": {},
      "documentId": "1",
      "recipientId": "76987934",
      "pageNumber": "1",
      "xPosition": "236",
      "yPosition": "229",
      "width": "78",
      "height": "0",
      "tabId": "fd07f90c-e98c-4ee9-bcd8-8a46dcbace1f",
      "templateLocked": "false",
      "templateRequired": "false",
      "tabType": "list"
    }
  ]
docusignapi
1个回答
0
投票

试试这个:

{
 "status": "sent",
 "compositeTemplates": [
   {
     "compositeTemplateId": "1",
     "serverTemplates": [
       {
         "templateId": "a975e66**********************68f3fb0d19",
         "sequence": "1"
       }
     ],
     "inlineTemplates": [
       {
         "sequence": "1",
         "recipients": {
           "signers": [
             {
               "email": "[email protected]",
               "name": "test user",
               "clientUserId": "15623477",
               "roleName": "Tester",
               "recipientId": "76987934",
               "tabs": {
                 "listTabs": [
{
      "listItems": [
        {
          "text": "ONE",
          "value": "ONE",
          "selected": "true"
        },
        {
          "text": "TWO",
          "value": "TWO",
          "selected": "false"
        }
      ],
      "value": "",
      "originalValue": "",
      "shared": "false",
      "required": "true",
      "locked": "false",
      "requireAll": "false",
      "tabLabel": "Dropdown",
      "font": "lucidaconsole",
      "fontColor": "black",
      "fontSize": "size9",
      "localePolicy": {},
      "documentId": "1",
      "recipientId": "76987934",
      "pageNumber": "1",
      "xPosition": "236",
      "yPosition": "229",
      "width": "78",
      "height": "0",
      "tabId": "fd07f90c-e98c-4ee9-bcd8-8a46dcbace1f",
      "templateLocked": "false",
      "templateRequired": "false",
      "tabType": "list"
    }
                   }
                 ]
               }
             }
           ]
         }
       }
     ]
   }
 ]
}
© www.soinside.com 2019 - 2024. All rights reserved.