如何获取Docusign信封取消的原因?

How to fetch the cause for the cancellation of the Docusign envelope?

我想知道是否可以通过api得到签字人拒收信封的原因。

我正在使用这个电话:

public function buscaDadosEnvelope(){
    # Call API method
    # Exceptions will be caught by the calling function
    $config = new \DocuSign\eSign\Configuration();
    $config->setHost(env('DOCUSIGN_BASE_URL'));
    $config->addDefaultHeader('Authorization', 'Bearer ' . $this->token);
    $api_client = new ApiClient($config);
    $envelope_api = new \DocuSign\eSign\Api\EnvelopesApi($api_client);

    $results = $envelope_api->getEnvelope( env('DOCUSIGN_ACCOUNT_ID'), $this- 
    >envelope_id);
    return $results;
 }

这不是return原因。

您将需要获取信封审计线索。它是信封审计中的事件列表。有关如何执行此操作的信息,请参阅此博客 post - https://www.docusign.com/blog/developers/common-api-tasks-parsing-envelopes-audit-events

然后您必须在事件列表中搜索 void/cancel 原因,它会包含原因。