Skip to content

External work

External work lets you hand a part of a signing to your own system. When the recipient reaches the stage that contains a file group with an externalUrl, Addo Sign sends the recipient to your url. Your system prepares the documents, uploads them to Addo Sign, and sends the recipient back to the signing portal, where they continue with the signing.

Use external work when the documents for a signing are not known when the signing is created. Typical cases are documents generated from a case or order that the recipient completes on your site first, or a form that the recipient fills in before the contract is produced.

Concepts

  • External file group: a file group with an externalUrl. It can be created without files. Its files are provided later through the upload endpoint.
  • Return url: the signing portal address that your system sends the recipient to after the upload. The upload endpoint returns it.

Creating a signing with an external file group

To create a signing with an external file group, call POST /api/v1/groups/{groupId}/signings (endpoint CreateSigning) and set externalUrl on one or more file groups. The file group does not need any files assigned to it, but they can be added if needed.

The externalUrl must:

  • be an absolute https url,
  • have no user info (credentials),
  • have no fragment (#),
  • be at most 1000 characters.

Query parameters that you put in the url are kept. The parameters signingId, fileGroupId and recipientId are added by Addo Sign. If you already use one of these names, Addo Sign replaces your value.

The following rules apply to the signing as a whole:

  • The first stage in which an external file group is used must map that group to exactly one recipient.
  • The signing does not need any other files if it contains at least one external file group.
  • There can be multiple external file groups in a signing and multiple ordinary file groups, both can participate in a single signing.

Below is an incomplete example of a request to send when you want to have a single external file group signed by a single recipient.

{
  "fileGroups": [
    {
      "id": 1,
      "name": "Contract",
      "order": 0,
      "externalUrl": "https://your-system.example.com/flow?customerRef=abc123"
    }
  ],
  "recipientGroups": [
    {
      "id": 1,
      "name": "Customer"
    }
  ],
  "recipients": [
    {
      "recipientGroupId": 1,
      "name": "Jane Doe",
      "email": "jane.doe@example.com"
    }
  ],
  "stages": [
    {
      "sequenceNumber": 0,
      "fileGroups": [
        {
          "fileGroupId": 1,
          "recipientGroupIds": [1]
        }
      ]
    }
  ]
}

Flow

sequenceDiagram
    autonumber
    participant integrator as Integrator system
    participant recipient as Recipient
    participant addo as Addo Sign

    integrator ->> addo: Create signing with external file group
    addo -->> recipient: Notify recipient
    recipient ->> addo: Authenticate and reach the external step
    addo -->> recipient: Redirect to integrator site
    recipient ->> integrator: Complete their part on your site
    integrator ->> addo: Upload files for the file group
    addo -->> integrator: Return url
    integrator -->> recipient: Redirect to return url
    recipient ->> addo: Continue and sign the files

If the recipient, for whatever reason cannot return to Addo Sign from your site, they can still sign in normally with their signing link and sign the files.

Step by step

Integrator steps

  1. Create the signing with the external file group. No files are needed for that group yet.
  2. Receive the recipient. When the recipient is redirected to your externalUrl, Addo Sign adds signingId, fileGroupId and recipientId to the url. Use them to find the matching signing and recipient in your system.
  3. Upload the files. Upload each file to POST /api/v1/uploads (endpoint UploadFile), then send all files of the group to POST /api/v1/signings/{signingId}/file-groups/{fileGroupId}/files (endpoint UploadFileGroupFiles). The request body is shown below.
{
  "files": [
    {
      "storageId": "88c2bb37-33f2-42b4-8570-c4122b97aca1",
      "order": 0,
      "isSigningRequired": true,
      "metadata": "{\"caseId\": \"abc123\"}"
    }
  ]
}
  1. Send the recipient back. Redirect the recipient to the returnUrl from the upload response. The response contains the url to send the recipient back to:
{
  "returnUrl": "https://addosign.net/signingportal/#/return/3f1c0c0e-6d8a-4a52-9c1b-2f7a9a1d2e11"
}

Rules for the upload

  • Upload once. A file group can be filled one time. Later uploads to the same group return HTTP 409.
  • The signing must be active.
  • For every recipient group present in a stage, at least one file to sign must exist. After the upload, every recipient in the stages that use the group must have at least one file to sign in that stage. Set isSigningRequired to true on at least one file or upload a file to sign during signing creation. If there are multiple external file groups in a stage, this check is delayed until the last upload.

If the upload is refused because of an incorrect request, nothing is stored. The request can be corrected and sent again.

Rejection

A rejected external group counts as completed and will not block the recipient from progress. The rejection flow is possible when dependent file group feature is used.