The envelope instance returned by envelopes.create
Properties:
| Name | Type | Description |
|---|---|---|
id |
string | The envelope id |
data |
object | The raw envelope data from the last reflection |
documents |
Array.<Document> | The envelopes documents |
Methods
-
Adds a new recipient to the envelope
Name Type Description recipientobject The recipient data Name Type Description givenNamestring The recipients first name familyNamestring The recipients last name languagestring The language code. "en_EN", "nb_NO", "sv_SE" etc signingMethodstring The recipients signing method. "email", "touch-sign", "bankid-no", "bankid-se" emailstring The recipients email address ordernumber The recipients order in the envelope process roleobject The role of the recipient Name Type Description actionstring The recipients action. "sign", "review", "edit" labelstring The recipients label that will appear in the Verified Webapp namestring The role name as described in the envelope descriptor -
Creates a new document
Name Type Description dataobject The payload to be sent with the request to the API Returns:
Type Description object Raw HTTP response form the API -
firstDocument ()Document
-
Get the first document in the envelope
Returns:
Type Description Document The first document in the envelope -
firstTemplate ()Template
-
Get the first template in the first document of the envelope
Returns:
Type Description Template The first template in the first document -
Poll for bearer token
Name Type Description flowIdstring The flow id of the envelope as specified in the descriptor Returns:
Type Description string JWT with permissions to make actions on the envelope -
Get sign link for a recipient
Name Type Description idstring The id of the recipient Returns:
Type Description string Full URL to signpage -
Poll for a sign token
Name Type Description flowIdstring The flow id of the envelope as specified in the descriptor Returns:
Type Description string JWT with permissions to sign the documents -
Publish the envelope
-
Makes a raw PUT request to the API on the envelope
Name Type Description dataobject The payload to be sent -
Fetches the envelope data from API and parses the data, instanciating documents etc