Dokumentasjon

Instant signature posting service

The instant signature web service is intended for situations where the signature posting is to be signed immediately by the signatories.

A typical use case is a web form where the user completes the form and commit an electronic signature in the same session.

As the signatories needs to be present at the time of signing, the instant signature web service does not send any notifications to the signatories. Instead you may run the instant service several times in order to add more signatures to a document.

Web service endpoint

Web service description endpoint in the testing environment T3: https://test3.signant.no/WS/V1/InstantSignatureService.svc?wsdl

Instant sign sequence diagram

The following sequence diagram demonstrates the data flow and operational sequence in an instant signature posting.

Instant signature steps

  1. Integrator web initializes a new «Instant Sign» posting.
  2. Url to signing is returned.
  3. User is redirected to signature page.
  4. After successful signing the user is redirected back to Integrator web.
  5. Integrator backend checks status (every 5 minutes), or when user is redirected back to Integrator web.
  6. Signant WS returns signature status.
  7. When signature status is completed Integrator backend downloads the document.
  8. Signant WS returns the signed document.

Time to live

The instant signature service creates a signature posting for a limited period of time while the signatories perform their signatures. The posting will then be removed from the service.

This is how the posting expiry time is set and updated:

  • Upon creation the posting will expire after 15 minutes.
  • When user begins the signing process the posting expiry will be set to 15 minutes from that time.
  • When signing process is done the posting expiry will again be set to 15 from that time.

Example of a posting expired date being moved 15 minutes for each time an action is executed.

It is crucial for the «Integrator backend» to check the status regularly (every 5 min) and download the document as soon as the WS returns a status indicating that the document has been signed. If this step is not executed correctly the Integrator can potentially lose the signed documents because it will be deleted from Signant servers when the expired date has been reached.

Code sample for CreateInstantPosting

Web service functions

NameDescription
CreateInstantPostingFor creating a new instant sign posting.
GetPostingStatusReturns a simple status overview for the posting.
DownloadInstantAttachmentDownload attachment for archiving

Functions description

Function: CreateInstantPosting

Function to create the instant signature posting.

Input parameters

NameTypeDescriptionRequired
DistributorIDStringFor authentication (Provided by Signant)Yes
AccessCodeStringFor authentication (Provided by Signant)Yes
PostingInstantPostingInstantPosting objectYes

Object: InstantPosting

Field nameTypeDescriptionRequired
DistributorSystemIDStringExternal system reference, for tracking what system is accessing the service, for example: WebDisclaimer or OrderTermsNo
TitleStringTitle of the posting.Yes
DescriptionStringShort description of postingNo
UseWidgetBoolAdd visible signature widget in PDF documentYes
RecipientsInstantPostingRecipient()List of InstantPostingRecipientYes
AttachmentToSignAttachmentAttachment objectNo
AfterSignActionEnumSpecifies what action should be performed after successful signing. Valid values are: NoAction, Redirect, CloseWindow 1)Yes
AfterSignRedirectUrlStringRedirect URL if AfterSignAction is set to RedirectNo
AfterSignRedirectDelayIntRedirect delay in sec, should not be set if AfterSignRedirectCaption is usedNo
AfterSignRedirectCaptionStringIf Action is set to Redirect and AfterSignRedirectDelay is not set then this will be the caption on the redirect linkNo
CancelUrlStringRedirect url if the user cancels in the signing process. This must be a https addressNo

1) CloseWindow only works if the browser window is opened from a parent window.

Object: InstantPostingRecipient

Field nameTypeDescriptionRequired
NameStringFull name of recipientYes
EmailStringEmail to recipientNo
SSNStringSocial security number of recipient (1)No
MinimumAgeIntIf this field is set, it will be considered as a constraint for minimum age. Signing process will be cancelled if person does not meet this criteria (2)No
MaximumAgeIntIf this field is set, it will be considered as a constraint for maximum age. Signing process will be cancelled if person does not meet this criteria (2)No
DateOfBirthRequiredDateTimeSigning process will be cancelled if person does not meet this criteria (2)No

1) User of WS must have permission from recipient to use their SSN 2) If this check fails, the user will be redirected to CancelUrl from InstantPosting object (if that parameter is set).

Object: Attachment

Field nameTypeDescriptionRequired
FileBinaryFile to sign (1)Yes
FileNameStringName of fileYes
DescriptionStringShort description of fileNo
ActionTypeEnumMust be: SignYes
CancelUrlStringRedirect if user cancelled the process. (2)No

1) File for signing must be a valid PDF file 2) BankID requires a https address.

CreateInstantPosting output – object CreateInstantPostingResponse

Field nameTypeDescription
SuccessBoolMethod call Result
MessageStringError/Validation Message when Success is false
ErrorCodeIntError/Validation code when Success is false
PostingIDGuidID of newly created posting
AttachmentIDGuidAttachmentID of attachment created by Signant
SignUrlsUrlToSigning()Array of UrlToSigning, one for each recipient

Object: UrlToSigning

Field nameTypeDescription
NameStringName of person to sign (from InstantPostingRecipient)
UrlStringUrl to signature page

Function: GetPostingStatus

Used to check posting status. When function returns «Incorrect postingID/ErrorCode: 4008» posting is expired and has been deleted from the system.

Input parameters

Field nameTypeDescriptionRequired
DistributorIDStringProvided by SignantYes
AccessCodeStringProvided by SignantYes
PostingIDGuidPosting IDYes

GetPostingStatus output – object: GetPostingStatusResponse

Field nameTypeDescription
SuccessBoolMethod call Result
MessageStringError/Validation Message when Success is false
ErrorCodeIntError/Validation code when Success is false
PostingIDGuidPosting ID
StatusEnumSent, Completed, CompletedPartially, Expired
TotalDocsToSignIntTotal documents to be signed
TotalDocsSignedIntDocument count where recipients have signed
TotalDocsRejectedIntDocument count where at least one recipient has rejected
ToBeSignedCountIntDocument signing request count.
SignatureCountIntNumber of completed signatures.
ActivatedBoolPosting Activation Status
PostingTypeEnumFor Instant Sign this will be: InstantSign
ActiveToDateTimePosting Expiration DateTime
CreatedDateTimeDateTimePosting Creation DateTime
LastModifiedDateTimeDateTimePosting Modified DateTime
WillBeDeletedDateTimeDateTimeDate when the posting will to be deleted
TitleStringTitle of the posting
DescriptionStringShort description on
DefaultLanguageStringDefault Language Code
CompletedDateTimeDateTimePosting completed date time
LastReminderDateTimeDateTimeNot in use
TotalDocsToReadIntNot in use
TotalDocsReadIntNot in use
TotalDocsToUploadIntNot in use
TotalDocsUploadedIntNot in use

Function: DownloadInstantAttachment

For downloading the attachment after successful signing. Attachment cannot be downloaded after posting has expired.

Input parameters

Parameter nameTypeDescriptionRequired
DistributorIDStringProvided by SignantYes
AccessCodeStringProvided by SignantYes
PostingIDGuidPosting IDYes
AttachmentIDGuidAttachment IDYes

DownloadInstantAttachment output – object: DownloadInstantAttachmentResponse

Field nameTypeDescription
SuccessBoolMethod call Result
MessageStringError/Validation Message when Success is false
ErrorCodeIntError/Validation code when Success is false
AttachmentIDGuidAttachment ID
FileNameStringName for file
AttachmentFileByte[]The file
DescriptionStringAttachment Description
FileHashStringMd5 checksum of the file

Sample requests

The sample requests and responses have been shortened down for readability and will therefore not work «as is», you will have to replace all required fields with correct data before trying to send a request to the service.

Sample request: CreateInstantPosting – Kopier fra Visual til Code

Sample response: CreateInstantPosting – Kopier fra Visual til Code

Sample request: GetPostingStatus – Kopier fra Visual til Code

Sample response: GetPostingStatus – Kopier fra Visual til Code

Sample request: DownloadInstantAttachment – Kopier fra Visual til Code

Sample response: DownloadInstantAttachment – Kopier fra Visual til Code