我想知道我是否能通过api了解签字人拒绝信封的原因。
我正在使用这个电话:
public function buscaDadosEnvelope(){
# Call API method
# Exceptions will be caught by the calling function
$config = new DocuSigneSignConfiguration();
$config->setHost(env('DOCUSIGN_BASE_URL'));
$config->addDefaultHeader('Authorization', 'Bearer ' . $this->token);
$api_client = new ApiClient($config);
$envelope_api = new DocuSigneSignApiEnvelopesApi($api_client);
$results = $envelope_api->getEnvelope( env('DOCUSIGN_ACCOUNT_ID'), $this-
>envelope_id);
return $results;
}
它不返回原因。
您将需要获得信封审计跟踪。这是信封审核中的事件列表。请参阅关于如何做到这一点的博客文章-https://www.docusign.com/blog/developers/common-api-tasks-parsing-envelopes-audit-events
然后,您必须在事件列表中搜索无效/取消原因,它将包括原因。