GET /en/api/document/cff827fc-e70e-167c-4ae5-d388b1b5c264/check-status.json?access_token=f4b79b72-7587-f417-41f8-2de5a7c87fae HTTP/1.1
Host: app.marksign.local
{
"status": "error",
"message": "Document was not found"
}
Implementation
CURL
curl --location --request GET 'https://app.marksign.local/en/api/document/cff827fc-e70e-167c-4ae5-d388b1b5c264/check-status.json?access_token=f4b79b72-7587-f417-41f8-2de5a7c87fae'
/**
* The document id that was found from "Document upload" request.
* The following is a dummy to use as example.
*/
$documentId = 'c66cf14e-f763-9757-3b83-e5e28126a6df';
$statusCheckReq = (new DocumentStatusCheckRequestBuilder)
->withDocumentId($documentId)
->createRequest();
$statusCheckRes = $client->postRequest($statusCheckReq);
$statusCheckResArray = $response->toArray();
var_dump($statusCheckResArray);