Permissions
Who opens a document, what your API token reaches, which people a request may name and who may submit, approve, archive or send for signature.
On this page
The groups of its class and the people who took part in a document open it. The readers field lists both.
{
"groups": [
"finance",
"purchasing"
],
"people": [
"sorin-avram",
"ioana-marin"
]
} Who opens a document
readers.groups holds the groups of the class: everyone in them opens every document of that class. readers.people holds the people of your company who took part in this document.
| Class | Groups that open it |
|---|---|
contract | finance, sales, purchasing |
invoice | finance, purchasing |
offer | finance, sales |
report | finance, warehouse |
A person takes part as the owner, as an approver of the route or as the signatory of your company in a request for signature. The groups are settings of the company; read them with listClasses.
What your token reaches
You ask for a token with the client credentials flow, and it carries the limit of access documents.access. It reaches every document of the company your account is opened for, whatever readers says.
A request without the limit, or for data outside your company, answers 403 with forbidden. See Authentication.
People a request names
A request names who acts. The person must be a person of your account, or the request is refused and nothing changes.
| Field | Operations | Refused with |
|---|---|---|
owner | createDocument, importDocument | person_not_found |
by | updateProperties, reviseDocument, submitDocument, archiveDocument, sendForSignature | person_not_found |
approver | approveDocument, rejectDocument | person_not_found |
recipients | sendForSignature | recipient_not_found |
A recipient is the signatory of your company or a contact named at the counterparty of the document. Anyone else is refused with recipient_not_found.
Who may do what
| Operation | Who | Refused with |
|---|---|---|
submitDocument | Any person of your company named in by, when the owner is not on the route. | owner_is_approver |
approveDocument, rejectDocument | The next approver of the route, named in approver. | not_an_approver, not_your_turn, already_decided |
archiveDocument | Any person of your company named in by. | person_not_found |
sendForSignature | Any person of your company named in by. The recipients are the signatory of your company and the contacts at the counterparty. | person_not_found, recipient_not_found |
Approvers decide in order
The route is fixed when the document is submitted, and each approver decides once, in order. Read approval.next for the approver who is awaited before you send an approval.
A person who is not on the route is refused with not_an_approver. One who comes later gets not_your_turn, and one who approved already gets already_decided. A document that is not in review is refused with document_not_in_review.