IDCanopy Developers
IDCanopy Workflows & UIUmbrella eID & eSigning

QES identify and sign

Identify one to ten people and collect qualified electronic signatures under eIDAS on a PDF completed after identification. In testing, on request.

In testing. The complete flow runs in our test environment; there is no production host yet. Access, test credentials and the base URL on request from IDCanopy.

QES identify and sign identifies one to ten people and has each of them sign a PDF with a qualified electronic signature (QES) under eIDAS. It is one of IDCanopy's identity and signing blocks: QES identification verifies a person by issuing a one-time qualified certificate, and eSigning signs a document. This API combines the two for documents that are completed only after identification, such as a contract filled with the verified names. After identification it fills your stored contract template, or takes a PDF you compose, then collects the signatures.

In Workflows & UI, blocks such as device and phone risk checks, an identification method (EUDI wallet, QES identification or NFC) and eSigning run as journey steps in the order your process needs. QES identification and signing join them as steps; until then, this API is how you use them.

To identify a person without signing a document of yours, see QES identification: the same API with mode: identification.

Flow

Identify every signer, supply the document, then sign in turn
Identify every signer, supply the document, then sign in turnYour backend to QES service: Create session with 1 to 10 signers. QES service to Your backend: Return session ID and a url per signer. Your backend to Signers / browser: Send each signer to their url. Signers / browser to QES service: Each signer identifies. QES service to Your backend: Webhook: session.awaiting_document. Your backend to QES service: Upload the PDF (or use a stored template). QES service to Your backend: Webhook: signer.signing. Signers / browser to QES service: That signer signs; repeat per signer. QES service to Your backend: Webhook: session.completed. Your backend to QES service: Read evidence and download signed PDFSigners / browserYour backendQES service1. Create session with 1 to 10 signers2. Return session ID and a url per signer3. Send each signer to their url4. Each signer identifies5. Webhook: session.awaiting_document6. Upload the PDF (or use a storedtemplate)7. Webhook: signer.signing8. That signer signs; repeat per signer9. Webhook: session.completed10. Read evidence and download signed PDF

Successful path for the separate QES identify-and-sign service, available on request in a test environment. Not the Umbrella /onboarding/* API. One signer failing fails the session; failed, cancelled and expired sessions do not continue to signing or download.

  1. POST /qes-onboarding/sessions creates a session with one to ten signers and returns a url per signer. Send each person to their own url to identify. The session is identifying.
  2. When the signers named by document_after have identified (default: all of them), the session moves to awaiting_document and your webhook receives session.awaiting_document. GET /qes-onboarding/sessions/{session_id} now carries each signer's identification summary.
  3. The document comes from one of three sources, chosen at creation: you upload the PDF with PUT /qes-onboarding/sessions/{session_id}/document (default); a stored template is used as is (template_id); or a stored template is filled from document.data and the identified name. With a template the pause passes without a call from you. The session moves to signing.
  4. Signers sign one at a time on the same PDF: in signing_order: ordered in the order given, in parallel in the order they identified. When a signer's turn comes you receive signer.signing; send that person to their url. Nobody else notifies them.
  5. On session.completed, read the session for the per-signer evidence and download the one signed PDF, carrying every signature, from GET /qes-onboarding/sessions/{session_id}/signed-document.

A session that is not finished can be cancelled with POST /qes-onboarding/sessions/{session_id}/cancel.

One signer failing or expiring ends the whole session failed with failure_reason: signer_failed and cancels the other signers' requests. There is no partial completion and no replacing a signer; create a new session instead.

Every session expires 7 days after creation, whatever the number of signers or the order; expires_at is that moment.

Where the document comes from

Usually the contract is fixed when you create the session: a stored template, used as is (template_id) or with a few form fields filled from your data (document.template_id and document.data). When the template is filled, the verified names go into its first_name and last_name fields, if it has them. Once the signers named by document_after have identified, the session moves on to signing by itself.

For more freedom in composing the contract, leave the document out at creation and upload the final PDF after identification, when the identified data is known. The session waits at awaiting_document until the PDF arrives.

Either way, the signature_fields you name at creation are passed to the signing service with the request, so the PDF must contain exactly those fields. The content around them is yours to choose.

QES identification needs neither: it signs IDCanopy's contract.

Statuses

The session:

StatusMeaningNext
createdBeing set up.identifying
identifyingSigners can identify at their url; the document is not yet due.awaiting_document
awaiting_documentThe signers named by document_after identified. Upload the PDF; with a template this passes without a call from you.signing
signingThe document is placed; signers sign one after another.completed
completedEvery signer signed. Final.
failedEnded without all signatures. Final.
cancelledCancelled by you. Final.
expiredReached expires_at. Final.

Each signer, in signers[]:

StatusMeaning
identifyingCan identify at url.
identifiedIdentified; waiting for the document or for their turn.
signingTheir turn, announced by signer.signing; can sign at url.
completedSigned.
failed, cancelled, expiredFinal. A final signer other than completed ends the session.

A session that is not completed can carry a failure_reason: provider_unavailable, provider_failed, provider_expired, document_not_uploaded, cancelled_by_client, signer_failed (a signer ended failed or expired, including a cancellation on the signing service's side; see that signer's failure_reason) or template_deleted (the template was deleted before the pause). A signer's failure_reason is provider_failed, provider_expired or signature_not_qualified. An expired session has failure_reason null, or document_not_uploaded when it was still awaiting_document. The session and every signer keep a history of status changes, oldest first.

Authentication

Send your API token as Authorization: Bearer <token> on every call. Tokens are issued by IDCanopy on request, for the test environment only.

Errors

Errors are application/problem+json with type, title, status, code and detail. Branch on the HTTP status and code.

HTTPcodeMeaningWhat to do
400invalid_requestThe request is malformed or fails validation; detail names the field.Fix the request.
400template_not_foundSession creation names an unknown template_id.Store the template first or fix the id.
401unauthorizedMissing or invalid token.Check the token.
403forbiddenThe token is valid but not enabled for QES onboarding.Contact IDCanopy.
404session_not_foundNo session with this id for your account.Check the id.
404template_not_foundNo template with this id for your account.Check the id.
404evidence_not_foundThe evidence file is unknown or no longer available.List the evidence again.
409wrong_stateThe session is not in a state that allows this call.Read the session and follow its status.
409idempotency_conflictThe Idempotency-Key was used with a different body.Use a new key for a new request.
429rate_limitedRate limit reached.Retry after Retry-After seconds.
500internal_errorUnexpected error.Retry later.
503identification_unavailableIdentification sessions are not configured on this environment; nothing was created.Retry later.
503protocol_unavailableThe identification protocol cannot be generated right now.Retry later.
502provider_unavailableThe signing service did not respond as expected.Retry later; after a document upload, read the session first (see Sessions).

Known limitation

After a service restart a signer may receive the resume call twice; harmless when the signing service treats a repeated resume as idempotent (open question to the signing service).

Changes in 0.6.0

  • New GET /qes-onboarding/sessions/{session_id}/protocol.pdf: an identification protocol for a completed identification session, generated on demand, nothing stored. See Identification protocol.

Changes in 0.5.0

Additive: three evidence routes. See Download the evidence.

  • GET /qes-onboarding/sessions/{session_id}/evidence lists a signer's evidence.
  • GET /qes-onboarding/sessions/{session_id}/evidence/{evidence_id} downloads one file.
  • GET /qes-onboarding/sessions/{session_id}/evidence.zip downloads the evidence as one archive.

Changes in 0.4.1

  • In mode: identification, signature_fields on the signer is optional; omitted, the signing service signs every signature field in its contract. At most one entry when given. Sign mode is unchanged.

Changes in 0.4.0

Additive; existing requests and responses are unchanged apart from the new mode field, which may be omitted.

  • POST /qes-onboarding/sessions takes mode (sign, the default, or identification), language and, in identification mode only, contract.display. See QES identification.
  • Session gains mode, and contract in identification mode, where each signer's identification is the full data set (IdentificationFull) with per-field checks.
  • New webhook event session.signing, sent by identification-mode sessions, which send no signer.* events.
  • New 503 identification_unavailable on session creation.

Changes in 0.3.0

Breaking: multi-signer sessions. Nothing was deployed on 0.1.1 or 0.2.0, so no client is affected.

  • POST /qes-onboarding/sessions takes signers[] (1 to 10) instead of person, signature_fields and redirect_url.
  • Session.url, identification and signature moved into Session.signers[], each signer with its own status.
  • Session gains signing_order (parallel or ordered) and document_after.
  • Webhook events gain signer_id and signer_reference, and four event types: signer.identified, signer.signing, signer.completed, signer.failed.
  • New Idempotency-Key header on session creation: a repeat answers 200 with the first session, a different body 409 idempotency_conflict. A request that ends in 502 releases its key, so the same key can be sent again.
  • New GET /qes-onboarding/sessions?reference= with cursor paging.
  • failure_reason gains signer_failed: one signer failing fails the session and cancels the rest.
  • Behaviour change: on a one-signer session a signer's failure now ends the session with failure_reason signer_failed and the detail on the signer, where 0.2.0 put provider_failed/provider_expired on the session.
  • Behaviour change: sessions expire 7 days after creation; expires_at is set by IDCanopy, no longer taken from the signing service.

Changes in 0.2.0

  • New: templates, PUT/GET/DELETE /qes-onboarding/templates/{template_id}, and template_id or document {template_id, data} on session creation (at most one of them).
  • Behaviour change: a session created with a stored template that is deleted before the session reaches the pause ends failed with the new failure_reason template_deleted. Sessions already past the pause keep the copy they were given.
  • Behaviour change: X-Signature can carry two v1= entries for 24 hours after a secret rotation; accept a delivery when any v1 matches. Reject a delivery whose t is more than 5 minutes from your clock.
  • Tokens are issued by IDCanopy on request, test environment only.

Pages

  • QES identification: identification only, confirmed with one qualified signature; the identification protocol.
  • Sessions: create, find by reference, read, upload the document, download the signed PDF and the evidence, cancel; templates.
  • Webhooks: set the URL, verify the signature, the events.
  • Reference: every operation and schema.

On this page