KontoCloud

Help / Records

Agreements

Agreements with annexes and attachments, sequential signing through a link, cryptographically verified signatures and seals, and concluding the agreement.

On this page

The Agreements screen is in the Records group. Here you keep an agreement with its accompanying documents (annexes, attachments) and with the electronic signatures and seals of the parties. The signatures are verified cryptographically. The database allows the agreement to be concluded only when every party has a valid signature or seal and the PDF has not been changed after the last signature.

Who can do what

Action Roles
New agreement, parties, documents, signatures, events administrator, accountant
Viewing and the signature report all members

If any other role tries to add a record, the database refuses it with error KC033. In read-only mode the database accepts no new records (KC070). Nothing is deleted or changed (KC001): every change is a new record and goes into the audit trail.

New agreement

  1. Enter the Agreement number. It is required and must be unique within the legal entity.
  2. Enter the Subject (required).
  3. Choose the Type: Sale, Services (default), Lease, Employment, Loan or Other.
  4. If needed, enter the Value and Currency (MKD by default, three letters).
  5. Enter Valid from and Valid until. Valid until must not be before Valid from.
  6. For the other party, enter the Other party, Tax ID or company ID and Signatory.
  7. If needed, enter a Note.
  8. Click Create agreement. You will see the message “Agreement … created”.

The legal entity is added automatically as a party, with its EDB. Each party must have an EDB (13 digits) or EMBS (7 digits), or a signatory. A party is matched to a signature by the EDB in the certificate (for a seal) or by the signatory’s name.

Agreement list

The table (how tables work) has the columns Agreement number, Subject, Type, Other party, Value, Valid until, Signed (how many parties out of the total) and Status. Currency and Valid from are hidden. Open opens the agreement.

Statuses: draft, out for signing, concluded, expired, terminated, cancelled. A concluded agreement whose Valid until has passed is shown by the app as expired.

In an open agreement, Signature report saves an HTML report (dogovor-<number>-potpisi.html) with the message “Report saved: …”. Close takes you back to the list.

Parties

The table shows the parties (yours is marked “(us)”), the EDB or EMBS, the signatory and whether the party has signed. If it has, there is a ✓ and the signature; if not, “not signed”.

You add a new party with Other party, Tax ID or company ID, Signatory and Add party. This is possible only while the agreement is a draft or out for signing; after that the database refuses it with KC276.

Documents

The table has the columns Type (Agreement, Annex, Attachment), Document title, Signed and Status. Status shows “superseded” or “changed after signing”. Hidden columns are the file name, SHA-256 and Entered by. Download downloads the file.

Uploading a document

  1. Choose the Type.
  2. Enter the Document title. If you leave it empty, the file name is used.
  3. In New version of, leave “new document” or choose an existing document that you are replacing.
  4. Click Upload document (PDF) and choose a file. Accepted are “PDF, or text (.txt) and images (JPEG, PNG) converted to PDF.” Word, ODT and RTF are not converted; save them as PDF before uploading.

Signatures embedded in the PDF are verified immediately. The message “Document added; signatures found: …” tells you how many were found.

What the database refuses (KC277):

  • the main document (type Agreement) cannot be added twice; upload a new version;
  • the new version must be of the same type and on the same agreement;
  • a document can be replaced only once;
  • new signatures go only on the current version.

The database also refuses (KC276):

  • changing the main document after the agreement is concluded (for a change, add an annex);
  • new documents when the agreement is terminated or cancelled;
  • a new signature on the main document after the agreement is concluded.

Signing

In Documents, choose which document is being signed, then:

  • Add .p7s: upload a separate signature (.p7s or .p7m) for the document. Message: “Signature added”.
  • Sign in KontoCloud: a signature with the legal entity’s certificate, the same as for e-Invoice. That is the server certificate (.p12) or a USB token on this computer (Local signer). Message: “Document signed”.

Sequential signing

The Sequential signing section sends a signature request to the signers one at a time. The administrator and the accountant see it while the agreement is a draft or out for signing. The explanation on the screen: “Each signer gets an email link only after the previous one has signed, and signs in the browser with their own certificate (.p12). The link is valid for 30 days; declining needs a reason and ends the request. The agreement is then concluded manually.”

New request

  1. The agreement must have a main document (type Agreement) and must not have another request in progress.
  2. For each signer, choose the Type:
    • External: enter the Full name, Email and, if needed, Tax ID (optional);
    • Our user: choose a user (“— choose a user —”) from the administrators and accountants of the legal entity.
  3. Add signer adds a row, Remove deletes it. The order in the table is the signing order.
  4. Choose the E-mail language (one of the app’s five languages) and, if needed, enter a Message to the signers.
  5. Click Send for sequential signing. The message is “Signing request created”.

If the first signer is external, they immediately get an email with a link. If mail is not set up or fails, the screen shows “The link to … was not sent (…). Forward it manually:” with the link. An internal signer gets neither a link nor an email; they sign in the app.

External signer

The link opens the public signing page. There the signer sees the PDF, chooses their .p12 file, enters the password and signs in the browser. The key does not go to the server. The signature is PAdES and is added to the PDF without changing the existing signatures. The signer can also decline, with a reason.

Our user

When it is their turn, the user sees in the open agreement:

  • Sign with the certificate: a signature with the legal entity’s qualified certificate (PAdES), without a drawn signature. The server certificate (.p12) or the local signer is used. The message is “The document is signed.”
  • Reason and Decline. The message is “Signing was declined.”

Tracking

The signers table shows for each one “signed …”, “link valid until …”, Signs in the app (for our users) or “waiting for turn”. The status of the request is in progress, signed by all, declined or cancelled. The events are: link sent, link opened, signed, declined, link expired, cancelled. The Emails table shows the emails sent with the status sent, failed or “not sent (no mail settings)”.

While the request is in progress, the administrator or the accountant can:

  • Resend the link: a new link for the signer whose turn it is; the old one stops working. The message is “Link sent again”.
  • Cancel the request: with a Reason entered. The message is “Signing request cancelled”.

The person who sent the request gets a notification for every signature and for a decline. After the last signature, the signed PDF is emailed to them and to all signers (as an attachment of up to 7 MB). Replies to the email (“Reply-To”) go to the legal entity’s contact email or, if there is none, to the user who sent the request.

Note: a request signed by all does not conclude the agreement. You conclude the agreement with Conclude (see below).

What the database refuses

Code When
KC298 the link is not valid
KC299 it is not the signer’s turn
KC300 declining without a reason, or the request is already finished
KC301 the document was changed in the meantime (“The document has changed — open the link again”) or the signing preparation expired (15 minutes)
KC302 the signature is made with a different certificate
KC314 the internal signer is not an administrator or accountant

How signatures are verified

KontoCloud recognises three sources of a signature:

Source What it is
Embedded in the PDF A PAdES signature in the PDF itself. If it does not cover the whole PDF, this is marked.
Separate .p7s A separate signature file for the document.
In KontoCloud A signature with the legal entity’s certificate over the SHA-256 of the document.

Every signature is a signature or a seal. A seal is a signature with a legal entity’s certificate. A signature with a qualified certificate is marked “qualified”. An invalid signature is marked, and the label says why.

A signature is matched to a party if it is valid and if:

  • the digits of the EDB/EMBS in the certificate are the same as the party’s Tax ID or company ID; or
  • (only for a signature, not for a seal) the signer’s name is the same as the party’s Signatory, regardless of upper and lower case.

Important: KontoCloud does not check whether the certificate chains to a trusted issuer or whether it has been revoked (OCSP/CRL). The issuer is only displayed. If this matters to you, check it separately.

Events: sending for signing, concluding, terminating

The events table shows Date, Events, Reason and Entered by. For a new action, enter the Date and, where needed, a Reason, then choose the action:

Button When it is available
Send for signing only from draft
Conclude draft or out for signing
Cancel draft or out for signing
Terminate concluded or expired

After a successful action you will see the message “Agreement is now …”.

If the agreement was signed on paper, turn on Signed on paper before Conclude and enter a reason, for example “signed on paper, the scan is uploaded”.

What the database refuses:

  • KC278: the transition is not allowed (for example terminating a draft).
  • KC092: terminating, cancelling and concluding on paper need a reason.
  • KC279 when sending for signing and concluding: “The agreement has no main document”, “The agreement must have at least two parties”, “None of the parties is the legal entity”.
  • KC279 when concluding electronically: “No valid signature or seal: …” (the parties are listed) or “The PDF has been changed after the last signature”.

Archive and CLI

Agreements, parties, documents, signatures and events are part of the archive. You can do the same from the CLI: kc agreement list, new, show, party, doc (with --pdf for a PDF), sig, sign, send, conclude, terminate, cancel, report, and sequential signing with kc agreement sign-request new|show|resend|cancel (--lang for the language), sign and decline.

Something unclear or wrong? Write to us at [email protected].