DocuSign UNKNOWN_ENVELOPE_RECIPIENT 出现错误 虽然我所做的所有字段都是正确的

时间:2021-06-23 09:40:46

标签: docusignapi

我使用 PHP 作为使用原始 API 的语言。 创建信封时,我会发布以下 JSON 代码。

{
  "compositeTemplates": [
    {
      "compositeTemplateId": "b55d12e6-d82b-445c-910e-7e04a4480a82",
      "serverTemplates": [
        {
          "templateId": "b55d12e6-d82b-445c-910e-7e04a4480a82",
          "sequence": "1"
        }
      ]
    }
  ],
  "recipients": {
    "signers": [
      {
        "clientUserId": "1001",
        "email": "dev@gmail.com",
        "tabs": {
          "emailTabs": [
            {
              "anchorXOffset": "429",
              "anchorYOffset": "309",
              "value": "dev@gmail.com",
              "recipientId": "1"
            }
          ],
          "textTabs": [
            {
              "anchorXOffset": "429",
              "anchorYOffset": "309",
              "name": "Job Title",
              "value": "JobTitleValue",
              "recipientId": "1"
            }
          ],
          "fullNameTabs": [
            {
              "anchorXOffset": "37",
              "anchorYOffset": "165",
              "recipientId": "1",
              "value": "Signer One"
            }
          ]
        },
        "name": "Signer One",
        "recipientId": "1",
        "routingOrder": "1",
        "roleName": "WebUser"
      }
    ]
  },
  "sender": {
    "accountId": "-------"
  },
  "status": "sent"
}

但是当我调用收件人视图 API 时,我收到此“UNKNOWN_ENVELOPE_RECIPIENT”错误。 调用 API 时的 JSON 数据。

{
  "authenticationMethod": "email",
  "clientUserId": "1001",
  "email": "dev@gmail.com",
  "recipientId": "1",
  "returnUrl": "-----",
  "userName": "Signer One"
}

此外,当我调用信封收件人列表中的获取列表时

"signers": [
    {
      "creationReason": "sender",
      "canSignOffline": "true",
      "isBulkRecipient": "false",
      "recipientSuppliesTabs": "true",
      "requireUploadSignature": "false",
      "name": "Rakesh Jangid",
      "firstName": "",
      "lastName": "",
      "email": "rakesh@crystaltechesolutions.com",
      "recipientId": "1",
      "routingOrder": "1",
      "note": "",
      "roleName": "Owner",
      "status": "delivered",
      "completedCount": "0",
      "deliveredDateTime": "2021-06-23T09:22:23.3800000Z",
      "deliveryMethod": "email",
      "recipientType": "signer"
    }
  ],
  "agents": [],
  "editors": [],
  "intermediaries": [],
  "carbonCopies": [],
  "certifiedDeliveries": [],
  "inPersonSigners": [],
  "seals": [],
  "witnesses": [],
  "notaries": [],
  "recipientCount": "1",
  "currentRoutingOrder": "1"
}

谁能帮我从 API 获取 Receipent View 链接。

1 个答案:

答案 0 :(得分:0)

"clientUserId": "1001"

这一行也必须在收件人/签名者上,而不仅仅是在请求收件人视图时。 所以添加这个:

    "name": "Signer One",
    "recipientId": "1",
    "routingOrder": "1",
    "roleName": "WebUser",
    "clientUserId": "1001"