Document passes several states during its lifetime. OKdokument API uses the following document states:
- tags – state that searches text tags and inserts signature acrofields. After successful insertion of acrofields it automatically changes state to tosign
- tostamp – state that insert digital stamp into the document
- tosign – document ready to be signed
- signed – signed document (within given signatureRequestID)
- errorsendinfo – error while calling info service
- canceled – canceled document – signer pressed the “Cancel” button in the document
