CriiptoDOCS
  1. GraphQL
  2. Query Builder

createSignatureOrder

Documents

General Settings

Old signature orders that are not cancelled or closed are automatically cleaned up.
You can use https://webhook.site/ for testing

UI Settings

# Query
mutation examplesCreateSignatureOrder(
  $input: CreateSignatureOrderInput!
) {
  createSignatureOrder(input: $input) {
    signatureOrder {
      id

      documents {
        id
        title
      }

      signatories {
        id
        status
      }

      evidenceProviders {
        __typename
        ... on NoopSignatureEvidenceProvider {
          id
        }
        ... on OidcJWTSignatureEvidenceProvider {
          id
        }
        ... on DrawableSignatureEvidenceProvider {
          id
        }
      }
    }
  }
}
# Variables
{
  "input": {
    "maxSignatories": 14,
    "expiresInDays": 90,
    "documents": [
      {
        "pdf": {
          "title": "Example PDF 1",
          "storageMode": "Temporary",
          "blob": "JVBERi0yLjANCg0KMSAwIG9iag0KPDwNCiAgL1R5cGUgL0NhdGFsb2cNCiAgL01ldGFkYXRhIDIgMCBSDQogIC9QYWdlcyAzIDAgUg0KPj4NCmVuZG9iag0KDQoyIDAgb2JqDQo8PA0KICAvTGVuZ3RoIDIzNTENCiAgL1R5cGUgL01ldGFkYXRhDQogIC9TdWJ0eXBlIC9YTUwNCj4+DQpzdHJlYW0NCjx4OnhtcG1ldGEgeG1sbnM6eD0nYWRvYmU6bnM6bWV0YS8nIHg6eG1wdGs9J0luc2VydCBYTVAgdG9vbCBuYW1lIGhlcmUuJz4NCiAgPHJkZjpSREYgeG1sbnM6cmRmPSdodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjJz4NCiAgICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczpwZGY9Imh0dHA6Ly9ucy5hZG9iZS5jb20vcGRmLzEuMy8iPg0KICAgICAgPHBkZjpQcm9kdWNlcj5EYXRhbG9naWNzIC0gZXhhbXBsZSBwcm9kdWNlciBwcm9ncmFtIG5hbWUgaGVyZTwvcGRmOlByb2R1Y2VyPg0KICAgICAgPHBkZjpDb3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createSignatureOrder builder above to automatically get a signature order id.

Evidence Validation

Evidence validation lets you validate the token provided by Criipto Verify when the user signs.
For Denmark, cprNumberIdentifier can be a useful evidence validation key.
See examples of various Criipto Verify tokens for more details.

Documents

This example requires using the createSignatureOrder example above with documents.

Signatories can be scoped to particular documents in a signature order (i.e. only wanting a particular signatory to see two of three documents).

Additionally signatories can have their documents preapproved if you handle document approval in your own application.

Leaving the documents input empty is the default, and enabled the signatory to see all documents.

# Query
mutation exampleAddSignatory(
  $input: AddSignatoryInput!
) {
  addSignatory(input: $input) {
    signatory {
      id
      href
      token
    }
  }
}
# Variables
{
  "input": {
    "signatureOrderId": "[signatureOrder.id]",
    "evidenceValidation": null,
    "documents": null
  }
}
;