【问题标题】:Docusign NodeJS EnvelopeViews: createRecipient UNKNOWN_ENVELOPE_RECIPIENTDocusign NodeJS 信封视图:createRecipient UNKNOWN_ENVELOPE_RECIPIENT
【发布时间】:2021-05-02 05:39:46
【问题描述】:

我调用 GET 信封收件人 API https://demo.docusign.net/restapi/v2.1/accounts/cf70dfa7-a861-4029-b149-5360c090ebfa/envelopes/4de0ca11-e07b-4ff0-936f-cdd37ff18ed2/recipients 它返回 clientUserId、userId、email 等。奇怪的是,即使我将其发送给自己,它返回的用户 ID 与我发送的用户 ID 不同。

{
    "signers": [
        {
            "creationReason": "sender",
            "isBulkRecipient": "false",
            "recipientSuppliesTabs": "true",
            "requireUploadSignature": "false",
            "name": "michael",
            "firstName": "",
            "lastName": "",
            "email": "email@email.email",
            "recipientId": "2",                  //idk why this is 2
            "recipientIdGuid": "smth",
            "requireIdLookup": "false",
            "userId": "fdbb65f9-ea71-4e59-8374-0e1952c70e0a",
            "clientUserId": "random",
            "routingOrder": "1",
            "roleName": "signer",
            "status": "sent",
            "completedCount": "0",
            "deliveryMethod": "email",
            "recipientType": "signer"
        }
    ],etcetc
}

使用我调用 POST /view/recipient API 并插入所有相同的东西

{
  "authenticationMethod": "HTTPBasicAuth",//I've tried this and password
  "clientUserId": "random",
  "email": "userid", //Tried both user ID's, and email + name, didnt work
  "recipientId": "2",     //same as above
  "returnUrl": "http://localhost:3001/marketplace",
  "userName": "userid"//tried same thing, and leaving this blank, gave another error
}

但它给出了错误代码

{
    "errorCode": "UNKNOWN_ENVELOPE_RECIPIENT",
    "message": "The recipient you have identified is not a valid recipient of the specified envelope."
}

【问题讨论】:

    标签: node.js docusignapi


    【解决方案1】:

    以下是您的第二次呼叫应基于您的第一次呼叫:

    {
      "authenticationMethod": "none",
      "clientUserId": "123456",
      "email": "email@email.email", 
      "returnUrl": "http://localhost:3001/marketplace",
      "userName": "michael"
    }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-11-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多