Pular para o conteúdo principal

Track documents

After creating a document, you track its progress in two ways: polling the status actively or receiving notifications via webhook when something happens. You can also send reminders to participants who have not acted yet.

Check the status of a document

To check the status of a document you need its ID. Then call the Document Details API:

GET /api/documents/b12cb1b2-5d6e-40b2-a050-097d068c4c11

{
"id": "b12cb1b2-5d6e-40b2-a050-097d068c4c11",
"name": "Integration Contract",
"status": "Concluded",
"creationDate": "2019-08-18T16:26:03.372Z",
"updateDate": "2019-08-18T16:26:03.372Z",
...
"flowActions": [
{
"id": "4bf61c68-eaf1-455f-b4a1-6141554f1dae",
"type": "Signer",
"status": "Completed",
"step": 1,
...
"user":
{
"id": "4d961566-9b03-450c-b144-930e0294bac2",
"name": "John Wick",
"identifier": "81976153069",
"email": "john.wick@mailinator.com"
},
"title": "Party",
"allowElectronicSignature": true
}
]
}
  • To find out if the document is completed, check that the property status corresponds to Concluded.
  • To find out if a participant has signed/approved, check if the property status corresponds to Completed for the corresponding item in the flowActions list.

Document status

The document's status property can take the following values:

StatusMeaning
PendingWaiting for participant actions
FlowConcludedAll flow actions are done (final processing in progress)
ConcludedDocument concluded
RefusedDocument refused by a participant
CanceledDocument canceled
ExpiredDocument expired

Participant action status

Each flowActions item has its own status:

StatusMeaning
CreatedAction created, not yet released to the participant (waiting for a previous step)
PendingWaiting for the participant's action
CompletedParticipant completed the action (signed/approved)
RefusedParticipant refused

Examples on GitHub: C# · Java · PHP · Node.js

Send signing reminders

Once the status of a participant has been verified, you can send periodic reminders to the flow participants who have not yet completed an action, using the Reminders Sending API. Provide the document ID and the participant's action ID (flowActionId):

POST /api/notifications/flow-action-reminder

{
"documentId": "b12cb1b2-5d6e-40b2-a050-097d068c4c11",
"flowActionId": "4bf61c68-eaf1-455f-b4a1-6141554f1dae"
}

Examples on GitHub: C# · Java · PHP · Node.js

Webhooks

Instead of polling the status repeatedly, you can set up a Webhook that will be triggered every time a document from your organization is completed, approved, declined or signed. For that, access the Organization page and register the required URL in the Integration option:

Webhook

See Webhooks for the complete list of events, the payload format of each one and the delivery behaviour (authentication, retries and ordering).

Next steps

Once the document is concluded, see how to download and list documents.