Skip to main content

Set an expiry or close it yourself: ending a signature request nobody finished

· 4 min read
IgniSign Team
IgniSign Team

Every signing flow you ship has a second path: the one where the user never signs. A quote is valid for fourteen days. An offer is replaced by a new version. A customer cancels the order the contract was for. If the signature request stays open, a signer can still open it later and sign something your product no longer stands behind. So before you launch the flow, decide how each request ends when nobody finishes it: with an expiration date that IgniSign enforces, or with a close call that your backend sends.

Two ways to end a request​

Expiration date. The signature request carries expirationDate and expirationDateIsActivated: true. IgniSign runs the expiration check every five minutes (at :05, :10, :15 and so on) and closes the request once the date has passed. Nothing has to run on your side.

Close call. Your backend calls POST /v4/signature-requests/{signatureRequestId}/close when something in your product makes the request obsolete. The request ends at that moment, for a reason only your product knows.

Both end the request. What differs is who knows when it should end.

Use an expiration date when the deadline is known at creation​

Pick expiry when the limit is a fixed fact of the document:

  • a quote or proposal with a validity period;
  • an offer letter that must be accepted by a given date;
  • a consent collected for a campaign that has an end date.

You already know the date when you create the request, so let IgniSign hold it. One detail shapes your integration: the expiration fields are set while the request is still a DRAFT, with the update call. The one-call signature request takes a title, a signature method, signers and documents, and no expiry. For flows that need a deadline, use the init, update, publish sequence and set expirationDate before you publish.

Because the check runs every five minutes, do not build logic that assumes the request closes to the second. If your product shows "valid until 18:00", a signer who opens the request at 18:02 may still find it open. If that gap matters, enforce the same deadline in your own screen as well.

Use the close call when an event in your product ends it​

Pick close when the end is not a date but something that happens:

  • the user edits the quote and you issue a new version;
  • the order or account the document belongs to is cancelled;
  • an admin withdraws an invitation from your back office.

Here no date chosen at creation would be right. Wire the close call into the same code path that changes your record. If you stored your own reference on the request as externalId, the handler that cancels the order already holds what it needs to find the request.

Expect a race. The signer may finish just before your close call arrives. The API refuses to close a request that has already finished, so treat that error as "the signer got there first", read the signature request context, and update your record from what it returns rather than from your intent to close.

Many flows need both​

The two are not exclusive. A quote can carry a fourteen-day expiry and still be closed early when the user issues a revised version. Set the expiry as the default end, and keep the close call for the events that come first.

What your backend should listen for​

Whichever path ends the request, your webhook endpoint is where your record learns about it. When no one has signed, an expired request sends EXPIRED and a closed one sends CANCELLED. When at least one signer had already signed, do not infer the outcome from the action alone: fetch the signature request context and compare signerIds with signedBy before you mark the document as signed, partly signed or void in your product.

A short rule​

Ask one question about each flow: do you know the end date when you create the request?

  • Yes: set expirationDate on the draft, and use the init, update, publish path.
  • No: call close from the code that changes your record, and handle the "already finished" case.

The choice is made per request, so one integration can run time-boxed quotes and event-driven withdrawals side by side.