When using a document that contains text tags, OKdokument API needs to know that it is needed to search them (_SO1_, _SO2_, _SO3_, _SO4_, _SO5_) and insert signature acrofields. This isn’t done automatically for all documents. It is required to set the document state to “tags” in the filedata array.
For this example, one-round signing there is no need to define which signature field should be available = they all are available.
But is really necessary to disable sign anywhere function (because the signature place is defined by tags/inserted signature acrofields) via parameter rules:signAnywhere-false, so that signer can sign only into pre-defined signature acrofields.
{
"signatureRequestId": "1d58a59e-e8f7-4d07-bb99-d3fa39cb58a8",
"expirationTime": "1702288000000",
"sendInfoURL": "http://api.okdokument/info",
"resulturl": "https://okdokument.com/",
"rules": {
"signAnywhereEnabled": false
},
"filedata": {
"content": "xyz_JVBERi0xLjc==",
"state": "tags"
}
}
