Dokumentasjon

Normal signature posting service

The Normal signature posting service is the primary service for creating a standard <a class=»topiclink» href=»https://devdoc.signant.eu/definitions.html#def_signature_posting»>signature posting</a>. This web service allows you to upload documents and assign signatories. When you execute a signature posting, Signant will start to notify the signatories requesting their digital signatures to your documents. When all signatories have signed you may use the Posting Service to retrieve the signed documents.

Web service endpoint

Web service description endpoint in the testing environment T3: <a href=»https://test3.signant.no/WS/V1/PostingsService.svc?wsdl»>https://test3.signant.no/WS/V1/PostingsService.svc?wsdl</a>

Posting service work flow

The illustration below demonstrate the work flow for a standard signature posting:

Posting service steps

1.Create posting.
Here you will use the webservice function CreateSignPosting to create and prepare a new signature posting.
2.The Signant message service sends email notifications to all recipients.
a) Keeps track of signing priority.
b) Sends reminders to recipients that have not completed their tasks.
c) Sends notification to the posting owner and other posting managers when all recipients have successfully completed, or if one or more have declined.
3.Signatory login
Recipients login to the Signant portal using one of the supported eID providers for electronic identification.
4.Recipient signs all required documents using a secure electronic identification.
5.A Callback post notification with the final status is sent to the External system.
6.Check status
The external system checks the signature posting status using the function GetPostingStatus.
7.Email notification is sent to the posting owner and all posting managers.
8.Download files
The final step is to download the signed documents from the signature posting, and save the documents to your own business application. See the function DownloadAttachment.

Code sample for CreateSignPosting

<!– TODO: legg inn kodeeksempel for CreateSignPosting her (samme akkordeon-mønster som InitAuth-eksemplene). Kilde-siden viste ingen statisk kode å kopiere her. –>

Web service functions

NameDescription
CreateSignPostingFor creating a new signature document request.
GetPostingStatusReturns a simple status overview for the posting.
GetSignPostingStatusDetailsReturns a detailed status of the posting.
DeletePostingDelete post from the system and removes all files from server.
DownloadAttachmentDownload attachment for archiving
Seal service functions
RequestEnterpriseSignatureUpload document and apply signature with enterprise certificates

Function CreateSignPosting

Function input parameters

NameTypeDescriptionRequired
DistributorIDStringFor authentication (Provided by Signant)Yes
AccessCodeStringFor authentication (Provided by Signant)Yes
DistributorSystemIDStringExternal system reference, for tracking what system is accessing the service, for example: CRM or WEBNo
ConsumerOrgNoStringCorporate identity number of invoice recipient. Usage depending on the distributor agreement. Only to be used when Signant sends invoice to end user. Leave this field empty for normal distributor agreement.No
ConsumerNameStringName of invoice recipient. Usage depending on the distributor agreement. Only to be used when Signant sends invoice to end user. Leave this field empty for normal distributor agreement.No
ConsumerInvoiceInfoStringLabel for posting, this will show on the system usage report.
Usage: To be used by distributor to retrieve extra information with the invoice.
No
ConsumerOrderOrgNoStringExtra invoice info, this will appear on the system usage report.
Intended usage: optional info for the consumer to identify project cost.
No
ConsumerOrderOrgNameStringExtra invoice info, this will appear on the system usage report.
Intended usage: optional info for the consumer to identify project cost.
No
ConsumerOrderInvoiceInfoStringExtra invoice info, this will appear on the system usage report.
Intended usage: optional info for the consumer to identify project cost.
No
TitleStringName of the posting, used in emails sent to posting recipients and notifications sent to end users.Yes
DescriptionStringShort description of posting, will be included in emails sent to posting recipients.No
ActiveToDateTimeExpired date for posting, after this date posting will be locked for further activity.
Limitation: Cannot exceed 1 year.
Yes
ArchiveOnPostingCompletedBoolIf the posting documents should be archived in the Signant archieve.
Requirement: The Signant archive is enabled for the account.
No
WillBeDeletedDateTimeDateTimeWhen Posting will be deleted from system (1)Yes
UseWidgetBoolVisible signature widget in the PDF file. If set to false the signature will be visible only from the “Signature panel” in Acrobat ReaderYes
UseWidgetOnAllPagesBoolWidget will be created on all pages. Only works when UseWidget is true.No
WidgetLocationDirectionStringControls where the signature widget is placed and the layout direction of successive widgets.
Values:
Right_TopToBottom – first widget goes the top right corner, vertical successors.
Left_TopToBottom – first widget on the top left corner, vertical successors.
Top_RightToLeft – first widget on top right corner, horisontal successors.
Top_LeftToRight – first widget on top left corner, horisontal successors.
Bottom_RightToLeft – first widget on bottom right corner, horisontal successors.
Bottom_LeftToRight – first widget on bottom left corner, horisontal successors.
No
PostingAdminsPostingAdmin()List of Posting administrators (owner)
Note: At least one PostingAdmin must be provided, first PostingAdmin will be set as PostingOwner
Yes
RecipientsRecipient()List of posting RecipientsYes
RecipientAccessControlStringAccess control to enter the signature posting landing page.
Values:
uacEID – Identification with electronic ID
uacRecaptcha – Easy access without identification. ReCaptcha only.
No
AttachmentsAttachment()List of files to signYes
AutoActivateBoolManual activation (3)
Note: Customers that have ServiceToService mode can use the AutoActivation to skip manual activation.
Yes
SenderNameStringName of the email sender used in system emails to recipients. (4)
Note: If empty or not specified, the name of the PostingOwner will be used.
No

Structure PostingAdmin

NameTypeDescriptionRequired
NameStringName of adminYes
EmailStringEmail of adminYes
MobileNumberStringMobile number to adminYes
SSNStringSocial security number (1)No
NotifyByEmailBoolShould receive status emails or notYes

1) When AutoActivate is false then PostingOwner must provide SSN

Structure Recipient

NameTypeDescriptionRequired
NameStringFull name of recipientYes
EmailStringEmail to recipientYes
MobileNumberStringRecipient Mobile NumberNo
SSNStringSocial security number of recipient (1)No
LanguageStringThe desired language for notifications to the recipients. Country code alpha-2 (NO, SE, DK, NL..).No
PriorityInt0 = No priority, 2 = Must sign first (2)No
NotifyByEmailBoolNotify recipient by e-mail or notYes
NotifyBySMSBoolNotify recipient by SMS or notNo
DistributeOnPostingCompletedBoolWhen the posting is completed (all have signed), a notification with an access code is sent to the recipient by mail in order for him/her to download the signed documents from a temporary location.No

1) User of WS must have permission from recipient to use their SSN<br>2) Read more about priority in <a href=»https://devdoc.signant.eu/definitions.html»>definitions</a>

Attachment

NameTypeDescriptionRequired
NameStringFull name of recipientYes
EmailStringEmail to recipientYes
MobileNumberStringRecipient Mobile NumberNo
SSNStringSocial security number of recipient (1)No
LanguageStringThe desired language for notifications to the recipients. Country code alpha-2 (NO, SE, DK, NL..).No
PriorityInt0 = No priority, 2 = Must sign first (2)No
NotifyByEmailBoolNotify recipient by e-mail or notYes
NotifyBySMSBoolNotify recipient by SMS or notNo
DistributeOnPostingCompletedBoolWhen the posting is completed (all have signed), a notification with an access code is sent to the recipient by mail in order for him/her to download the signed documents from a temporary location.No

1) File for signing must be a valid PDF file

Output

NameTypeDescription
SuccessBoolMethod call Result
MessageStringError/Validation Message when Success is false
ErrorCodeIntError/Validation code when Success is false
PostingIDGuidID of newly created posting
ActivationUrlStringUrl for manual activation of posting, empty when AutoActivation = true
AttachmentInfosAttachmentInfo()Return information about attachments.

AttachmentInfo

NameTypeDescription
DescriptionStringDescription of file
FileNameStringFileName
GroupIDGuidGroupID gived by Signant to the attachment
AttachmentIDGuidAttachmentID gived by Signant to the attachment

Webservice function GetPostingStatus

Input

NameTypeDescriptionRequired
DistributorIDStringProvided by SignantYes
AccessCodeStringProvided by SignantYes
PostingIDGuidPosting IDYes

Output

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.
SignatureCountIntDocument signing completed count.
ActivatedBoolPosting Activation Status
PostingTypeEnumSignViewDocument, RequestDocument, SignOwnDocument
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
TotalDocsToReadIntIgnore when Postingtype is SignViewDocument
TotalDocsReadIntIgnore when Postingtype is SignViewDocument
TotalDocsToUploadIntIgnore when Postingtype is SignViewDocument
TotalDocsUploadedIntIgnore when Postingtype is SignViewDocument

Webservice function GetSignPostingStatusDetails

Input

NameTypeDescriptionRequired
DistributorIDStringProvided by SignantYes
AccessCodeStringProvided by SignantYes
PostingIDGuidPosting IDYes
AccessTokenGuidApplies to ApplicationToService modeNo

Output

NameTypeDescription
SuccessBoolMethod call Result
MessageStringError/Validation Message when Success is false
ErrorCodeIntError/Validation code when Success is false
PostingIDGuidPosting ID
AttachmentsAttachment()Array of output object Attachment

Output object GetSignPostingStatusDetails.Attachment

NameTypeDescription
AttachmentIDGuidAttachment ID
GroupIDGuidAttachment Group ID
FileNameStringName for file
DescriptionStringAttachment Description
FileSizeIntSize of the file in bytes
FileModifiedDateTimeLast time file was modified
FileCreatedDateTimeDate when file was created
FileHashStringMd5 checksum of the file
AttachmentStatusEnumPending, Rejected, Completed
CompletedDateTimeDateTimeThe date when the actions on this attachment are completed
RecipientsRecipient()Array of output object Recipient

Output object GetSignPostingStatusDetails.Attachment.Recipient

NameTypeDescription
RecipientIDGuidRecipient ID
NameStringRecipient Full Name
MobileNumberStringRecipient Mobile Number
EmailStringRecipient email
ReadBoolRead status of the Attachment.Recipient
ReadDateTimeDateTimeDateTime when recipient read the attachment
SignedBoolSigned status of the Attachment.Recipient
SignedDatetimeDateTimeDateTime of signing
RejectedBoolRejected status of the Attachment.Recipient
RejectedDateTimeDateTimeDateTime of reject
RejectReasonStringReject reason
SignatureURLStringSignatur URL for this recipient
LastReminderDateTimeDateTimeDate when last reminder was sent to recipient
ActionTypeEnumRead,Send,Sign (Legacy information. Is always Sign)
ActionLastDateTimeDateTimePosting Action Date Time (Legacy information. Replaced by Read/Sign/Reject DateTime)
ActionStatusEnumSent, Completed, Rejected, Delayed (Legacy information. Replaced by Read/Sign/Reject boolean)
CompletedDateTimeDateTimePosting Action Completed DateTime (Legacy information. Replaced by Sign/Reject DateTime)

Webservice function DeletePosting

Input

NameTypeDescriptionRequired
DistributorIDStringProvided by SignantYes
AccessCodeStringProvided by SignantYes
PostingIDGuidPosting to deleteYes
AccessTokenGuidApplies to ApplicationToService modeNo

Output

NameTypeDescription
SuccessBoolMethod call Result
MessageStringError/Validation Message when Success is false
ErrorCodeIntError/Validation code when Success is false

Webservice function DownloadAttachment

Input

NameTypeDescriptionRequired
DistributorIDStringProvided by SignantYes
AccessCodeStringProvided by SignantYes
PostingIDGuidPosting IDYes
AttachmentIDGuidAttachment IDYes
AccessTokenGuidApplies to ApplicationToService modeNo

Output

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

Error Codes

Error CodeDescription
0No error
4201Unauthorized access. Invalid combination of DistributorID and AccessCode
3102Invalid parameter(s) value
3103Error validating File. File not valid or eligible for requested operation
3104Error validating FileToSign. File to big
3105HSM error – timeout or not responding
3106Enterprise certificate not present
3107Enterprise certificate not valid or expired
3108Operation timeout
9XXXOther unknown

Webservice function Callback

The Callback service can be turned on upon request, Distributor then needs to provide Signant with a valid callback URL. When callback is turned on a HTTP request to the provided URL is executed for each posting after the signing process is completed, rejected or expired. This can be used to trigger the DownloadAttachment and/or DeletePosting functions.

Parameters

NameTypeDescription
PostingIDGuidPosting ID
PostingStatusChangeBoolIndicates if the callback was initiated because of a status change
PostingStatusEnumCompleted, CompletedPartially, Expired
SignatoryActivityBoolIndicates if the callback was initiated because of an activity by one of the posting recipients

Example

https://somesite.com/SignantCallBack/Callback.php?PostingID=11111111-2222-3333-4444-555555555555&PostingStatusChange=True&PostingStatus=Completed&SignatoryActivity=True

Retries

The callback URL must return a HTTP statuscode 200. Any other statuscode will trigger a retry after a short delay, the service will retry the callback up to 5 times with exponential time delay.