Reference Source Test
public class | source

Document

Document methods

Static Method Summary

Static Public Methods
public static

Cancels an invite to a document

public static

Cancels sent freeform invite

public static
this method was deprecated. use Document.cancelFieldInvite instead of this

Cancels an invite to a document

public static

Uploads a file and creates a document.

public static

Downloads document with embedded fields and elements.

public static

Uploads a file that contains SignNow Document Field Tags.

public static

Retrieves a document action log (history) data

public static

Creates an invite to sign a document.

public static

Retrieve user's document list

public static

Merges existing documents into one.

public static

Removes a specified document from folder

public static

Requests a link to download document with embedded fields and elements Link can be used once and then will expire

public static
this method is experimental. this class includes breaking change.

Retrieves all signers of specific document

public static

Updates an existing document.

public static

Retrieves a document detailed data

Static Public Methods

public static cancelFieldInvite(data: DocumentFieldInviteCancelParams, callback: function(err: ApiErrorResponse, res: DocumentFieldInviteCancelResponse)) source

Cancels an invite to a document

Params:

NameTypeAttributeDescription
data DocumentFieldInviteCancelParams

cancel field invite payload

callback function(err: ApiErrorResponse, res: DocumentFieldInviteCancelResponse)
  • optional

error first node.js callback

public static cancelFreeFormInvite(data: CancelFreeformInviteParams, callback: function(err: ApiErrorResponse, res: CancelFreeformInviteResponse)) source

Cancels sent freeform invite

Params:

NameTypeAttributeDescription
data CancelFreeformInviteParams

cancel freeform invite payload

callback function(err: ApiErrorResponse, res: CancelFreeformInviteResponse)
  • optional

error first node.js callback

public static cancelInvite(data: DocumentFieldInviteCancelParams, callback: function(err: ApiErrorResponse, res: DocumentFieldInviteCancelResponse)) source

this method was deprecated. use Document.cancelFieldInvite instead of this

Cancels an invite to a document

Params:

NameTypeAttributeDescription
data DocumentFieldInviteCancelParams

cancel field invite payload

callback function(err: ApiErrorResponse, res: DocumentFieldInviteCancelResponse)
  • optional

error first node.js callback

public static create(data: DocumentCreateParams, callback: function(err: ApiErrorResponse, res: DocumentCreateResponse)) source

Uploads a file and creates a document. This endpoint accepts .pdf, .doc, .docx, .odt, .rtf, .png, .jpg, .jpeg, .gif, .bmp, .xml, .xls, .xlsx, .ppt, .pptx file types

Params:

NameTypeAttributeDescription
data DocumentCreateParams

create document payload

callback function(err: ApiErrorResponse, res: DocumentCreateResponse)
  • optional

error first node.js callback

public static download(data: DocumentDownloadParams, callback: function(err: ApiErrorResponse, res: DocumentDownloadResponse)) source

Downloads document with embedded fields and elements. By default document is downloaded without history. To download document with history set withHistory option to true.

Params:

NameTypeAttributeDescription
data DocumentDownloadParams

download document request payload

callback function(err: ApiErrorResponse, res: DocumentDownloadResponse)
  • optional

error first node.js callback

public static fieldextract(data: DocumentFieldExtractParams, callback: function(err: ApiErrorResponse, res: DocumentFieldExtractResponse)) source

Uploads a file that contains SignNow Document Field Tags. This endpoint only accepts .pdf (you may convert the document from .doc or .docx to .pdf)

Params:

NameTypeAttributeDescription
data DocumentFieldExtractParams

upload document with field extract payload

callback function(err: ApiErrorResponse, res: DocumentFieldExtractResponse)
  • optional

error first node.js callback

public static history(data: DocumentHistoryParams, callback: function(err: ApiErrorResponse, res: DocumentHistoryResponse)) source

Retrieves a document action log (history) data

Params:

NameTypeAttributeDescription
data DocumentHistoryParams

payload

callback function(err: ApiErrorResponse, res: DocumentHistoryResponse)
  • optional

error first node.js callback

public static invite(data: DocumentInviteParams, callback: function(err: ApiErrorResponse, res: DocumentInviteResponse)) source

Creates an invite to sign a document. You can create a simple free form invite(s) or a role-based invite(s).

Params:

NameTypeAttributeDescription
data DocumentInviteParams

create document invite payload

callback function(err: ApiErrorResponse, res: DocumentInviteResponse)
  • optional

error first node.js callback

public static list(data: DocumentListParams, callback: function(err: ApiErrorResponse, res: DocumentListItem)) source

Retrieve user's document list

Params:

NameTypeAttributeDescription
data DocumentListParams

payload to receive user's document list

callback function(err: ApiErrorResponse, res: DocumentListItem)
  • optional

error first node.js callback

public static merge(data: DocumentMergeParams, originalCallback: function(err: ApiErrorResponse, res: DocumentMergeResponse)) source

Merges existing documents into one. By default original documents are not removed after merging. To remove original documents set removeOriginalDocuments option to true.

Params:

NameTypeAttributeDescription
data DocumentMergeParams

merge documents payload

originalCallback function(err: ApiErrorResponse, res: DocumentMergeResponse)
  • optional

error first node.js callback

public static remove(data: DocumentRemoveParams, originalCallback: function(err: ApiErrorResponse, res: DocumentRemoveResponse)) source

Removes a specified document from folder

Params:

NameTypeAttributeDescription
data DocumentRemoveParams

remove document payload

originalCallback function(err: ApiErrorResponse, res: DocumentRemoveResponse)
  • optional

error first node.js callback

public static share(data: DocumentShareParams, callback: function(err: ApiErrorResponse, res: DocumentShareResponse)) source

Requests a link to download document with embedded fields and elements Link can be used once and then will expire

Params:

NameTypeAttributeDescription
data DocumentShareParams

share document request payload

callback function(err: ApiErrorResponse, res: DocumentShareResponse)
  • optional

error first node.js callback

public static signers(data: DocumentSignersParams, callback: function(err: ApiErrorResponse, res: DocumentSignersResponse)) source

this method is experimental. this class includes breaking change.

Retrieves all signers of specific document

Params:

NameTypeAttributeDescription
data DocumentSignersParams

get document signers payload

callback function(err: ApiErrorResponse, res: DocumentSignersResponse)
  • optional

error first node.js callback

public static update(data: DocumentUpdateParams, callback: function(err: ApiErrorResponse, res: DocumentUpdateResponse)) source

Updates an existing document. Adds fields (signature, text, initials, checkbox, radiobutton group, calculated) and elements (signature, text, check). Every call of this method will add only specified fields into document. Old fields will be removed

Params:

NameTypeAttributeDescription
data DocumentUpdateParams

update document request payload

callback function(err: ApiErrorResponse, res: DocumentUpdateResponse)
  • optional

error first node.js callback

public static view(data: DocumentViewParams, callback: function(err: ApiErrorResponse, res: DocumentViewResponse)) source

Retrieves a document detailed data

Params:

NameTypeAttributeDescription
data DocumentViewParams

view document details payload

callback function(err: ApiErrorResponse, res: DocumentViewResponse)
  • optional

error first node.js callback