在模板列表DocuSign中获取Custom_fields

时间:2017-06-20 16:30:14

标签: docusignapi

我尝试在POSTMAN中使用GET调用来获取模板列表并包含自定义字段,但是响应没有返回custom_fields值,有什么想法吗?

获取

https://demo.docusign.net/restapi/v2/accounts/{account_id}/templates?include=recipients,documents,custom_fields

RESPONSE

 {
        "templateId": "XXXXXXXXXXXXXXXXXXXXX",
        "name": "DEMO",
        "shared": "true",
        "password": "",
        "description": "",
        "lastModified": "2017-06-20T14:13:57.9270000Z",
        "pageCount": 2,
        "uri": "xxxxxxxxxxx",
        "folderName": "DEMO",
        "folderId": "617c1361-8576-4b62-930e-735442256a25",
        "folderUri": "xxxxxxxxx",
        "owner": {
            "userName": "XXXXXXXXXXXXXXX",
            "userId": "XXXXXXXXXXXXXXXXXX",
            "email": "XXXXXXXXX@XXXX.COM"
        },
        "documents": [
            {
                "documentId": "1",
                "uri": "xxxxxxxxxxxx",
                "name": "DS_DEMO.pdf",
                "order": "1",
                "pages": "1",
                "display": "inline",
                "includeInDownload": "true",
                "signerMustAcknowledge": "no_interaction",
                "templateLocked": "false",
                "templateRequired": "false",
                "documentGroup": "content"
            },
            {
                "documentId": "54582351",
                "uri": "xxxxxxxxxxxx",
                "name": "XXXXXXXXXXXXXX.png",
                "order": "2",
                "pages": "1",
                "display": "inline",
                "includeInDownload": "true",
                "signerMustAcknowledge": "no_interaction",
                "templateLocked": "false",
                "templateRequired": "false",
                "documentGroup": "content"
            }
        ],
        "emailSubject": "Please sign this DS Document",
        "emailBlurb": "Thank you for reaching and showing us your interest in how DocuSign works. Please, practice here.\n\n",
        "signingLocation": "Online",
        "authoritativeCopy": "false",
        "enforceSignerVisibility": "false",
        "enableWetSign": "false",
        "allowMarkup": "true",
        "allowReassign": "true",
        "recipients": {
            "signers": [
                {
                    "defaultRecipient": "false",
                    "signInEachLocation": "false",
                    "email": "",
                    "recipientId": "4",
                    "accessCode": "",
                    "requireIdLookup": "false",
                    "routingOrder": "2",
                    "note": "",
                    "roleName": "System Analyst",
                    "status": "created",
                    "deliveryMethod": "email",
                    "templateLocked": "false",
                    "templateRequired": "false",
                    "inheritEmailNotificationConfiguration": "false",
                    "documentVisibility": [
                        {
                            "documentId": "1",
                            "visible": "true"
                        },
                        {
                            "documentId": "54582351",
                            "visible": "true"
                        }
                    ]
                },
                {
                    "defaultRecipient": "false",
                    "signInEachLocation": "false",
                    "name": "DS Training",
                    "email": "",
                    "signingGroupId": "10749",
                    "signingGroupName": "DS Training",
                    "recipientId": "2",
                    "accessCode": "",
                    "requireIdLookup": "false",
                    "routingOrder": "1",
                    "note": "Please complete it as soon you can",
                    "roleName": "Sales Analyst",
                    "status": "created",
                    "deliveryMethod": "email",
                    "templateLocked": "false",
                    "templateRequired": "false",
                    "inheritEmailNotificationConfiguration": "false",
                    "documentVisibility": [
                        {
                            "documentId": "1",
                            "visible": "true"
                        },
                        {
                            "documentId": "54582351",
                            "visible": "true"
                        }
                    ]
                }
            ],
            "agents": [],
            "editors": [],
            "intermediaries": [],
            "carbonCopies": [
                {
                    "email": "",
                    "recipientId": "3",
                    "accessCode": "",
                    "requireIdLookup": "false",
                    "routingOrder": "3",
                    "note": "",
                    "roleName": "Manager",
                    "status": "created",
                    "templateLocked": "false",
                    "templateRequired": "false",
                    "inheritEmailNotificationConfiguration": "false",
                    "documentVisibility": [
                        {
                            "documentId": "1",
                            "visible": "true"
                        },
                        {
                            "documentId": "54582351",
                            "visible": "true"
                        }
                    ]
                }
            ],
            "certifiedDeliveries": [],
            "inPersonSigners": [],
            "recipientCount": "3"
        }
    },

参考:

Templates: list documentation

1 个答案:

答案 0 :(得分:0)

你是对的。这是一个错误。感谢您的报告。我已经验证并提交了DocuSign内部错误报告API-7048。

与此同时,解决方法是对Templates: get操作返回的每个模板使用Templates: list