Skip to Content
Webhook eventsBundles

bundle.completed

Fires when no party has a signature left to give on any document in the bundle, so a bundle with a rejected document completes too. Each signed document fires its own document.completed once its sealed PDF is ready, which can be after this event.

Header Parameters

webhook-id*string

The event id. It stays the same across retries and replays, so deduplicate on it.

webhook-timestamp*string

When sajn sent this attempt, in Unix seconds. Reject a timestamp older than your tolerance, such as five minutes.

webhook-signature?string

One or more space-separated signatures, v1,<base64 HMAC-SHA256>, over <webhook-id>.<webhook-timestamp>.<raw request body>. The key is the base64 decoding of the secret after whsec_. Accept the request when any signature matches; for 24 hours after a secret rotation, there is one per secret. Any Standard Webhooks library verifies it. Webhooks created without a secret don't send this header.

Sajn-Version*"2026-10"

The endpoint's API version, the same value as apiVersion in the body.

Value in"2026-10"

Request Body

application/json
  1. body
id*string

Event ID, also in webhook-id. It's the same on every retry, replay and endpoint that receives the event, so deduplicate on it. To read the event again, pass it to GET /api/v1/events/{id}.

type*"bundle.completed"
Value in"bundle.completed"
createdAt*string

When the event happened. It doesn't change across retries and replays.

Formatdate-time
apiVersion*"2026-10"

The endpoint's API version, which sets the shape of data.

Value in"2026-10"
workspaceId*string
organizationId*string

The organization the event happened in.

environment*string

SANDBOX for an event in a sandbox organization.

Value in"PRODUCTION""SANDBOX"
actor*|null
data*

Response Body

Return any 2xx status code within 30 seconds to acknowledge the delivery. sajn retries any other status code, a redirect, a timeout and a network error with backoff for about three days, 12 attempts in all. A 410 Gone stops the retries and pauses the webhook.

Example Requests
POST/bundle.completed
Request Body
application/json
{  "id": "cm4k2x9p10014abcd1234efgh",  "type": "bundle.completed",  "createdAt": "2026-09-28T14:03:00.000Z",  "apiVersion": "2026-10",  "workspaceId": "cm4k2x9p10001abcd1234efgh",  "organizationId": "cm4k2x9p10000abcd1234efgh",  "environment": "PRODUCTION",  "actor": null,  "data": {    "object": {      "id": "cm4k2x9p10044abcd1234efgh",      "name": "Anställningspaket – Kai Lindqvist",      "status": "COMPLETED",      "subject": "Ditt anställningspaket från Exempelbolaget AB",      "message": "Hej Kai! Här är ditt anställningsavtal och sekretessavtalet. Signera båda med BankID senast den 28 oktober.",      "expiresAt": "2026-10-28T22:00:00.000Z",      "signingMode": "PARALLEL",      "language": "sv",      "reminderIntervalDays": 3,      "signableAfterExpired": false,      "internalRecipients": [        "hr@example.com"      ],      "nationalIdDisplayMode": null,      "openVerification": null,      "sendPlainTextEmailOnly": null,      "redirectUrl": null,      "redirectEnabled": false,      "documentCount": 2,      "createdAt": "2026-09-28T09:12:00.000Z",      "updatedAt": "2026-09-28T09:15:00.000Z",      "documents": [        {          "id": "cm4k2x9p10003abcd1234efgh",          "name": "Anställningsavtal – Kai Lindqvist",          "status": "COMPLETED",          "parties": [            {              "id": "cm4k2x9p10004abcd1234efgh",              "bundlePartyId": "cm4k2x9p10091abcd1234efgh",              "name": "Kai Lindqvist",              "email": "kai@example.com",              "role": "SIGNER",              "signingStatus": "SIGNED",              "signedAt": "2026-09-29T07:41:00.000Z"            }          ]        },        {          "id": "cm4k2x9p10022abcd1234efgh",          "name": "Sekretessavtal – Kai Lindqvist",          "status": "COMPLETED",          "parties": [            {              "id": "cm4k2x9p10090abcd1234efgh",              "bundlePartyId": "cm4k2x9p10091abcd1234efgh",              "name": "Kai Lindqvist",              "email": "kai@example.com",              "role": "SIGNER",              "signingStatus": "SIGNED",              "signedAt": "2026-09-29T07:41:00.000Z"            }          ]        }      ],      "parties": [        {          "id": "cm4k2x9p10091abcd1234efgh",          "name": "Kai Lindqvist",          "email": "kai@example.com",          "phone": "+46701740605",          "role": "SIGNER",          "signingOrder": 1,          "delivery": [            "EMAIL"          ],          "signatureMethod": "SE_BANKID",          "signVerification": null,          "openVerification": null,          "status": "SIGNED",          "documentIds": [            "cm4k2x9p10003abcd1234efgh",            "cm4k2x9p10022abcd1234efgh"          ]        }      ]    },    "documentIds": [      "cm4k2x9p10003abcd1234efgh",      "cm4k2x9p10022abcd1234efgh"    ]  }}
Header Parameters
{  "webhook-id": "cm4k2x9p10014abcd1234efgh",  "webhook-timestamp": "1759304580",  "webhook-signature": "v1,K5oZfzN95Z9UVu1EsfQmfVNQhnkZ2pj9o9NDN/H/pI4=",  "Sajn-Version": "2026-10"}

Was this page helpful?