tatternutz

Add a New Document to an Existing Package

0 votes
I am needing to add a new document to an existing package (http://docs.esignlive.com/content/c_integrator_s_guide/rest_api/documents.htm#Add) but I am not finding any JSON Request samples. I will be in my integration adding documents to an existing package one at time. I am creating a package then using that packageId in the POST /packages/{packageId}/documents. JSON Request Body (Create Package):
{
   "name": "nCino Package Test",
   "type":"PACKAGE",
   "language":"en",
   "emailMessage":"I just created a new Package",
   "description":"New Package",
   "autoComplete":true
}
I have also referenced this blog post (which was really good): https://www.esignlive.com/blog/e-signlive-for-new-users-how-to-create-and-send-your-first-package-rest-api/?_ga=1.239069376.1926485674.1488917201 But that blog post is not exactly my use and I tried gleaning what I could from it. Can I get a sample JSON payload along with all the available options?

Approved Answer

Reply to: Add a New Document to an Existing Package

1 votes
Sorry about that! Before you can add signatures that are tied to a person, you have to add that person to the package as a signer! :) Take a look at this guide: https://developer.esignlive.com/guides/feature-guides/signer-management/#rest-api Once you get your signer added, try again and let me know!

- Michael

Director, Partner and Developer Technologies, OneSpan

Facebook - Twitter - LinkedIn


Reply to: Add a New Document to an Existing Package

1 votes
Hey tatternutz, Take a look at this: https://developer.esignlive.com/guides/feature-guides/document-management/#rest-api And if you want to add signatures and fields at the same time of upload of the document, you can add them manually by including the JSON from this guide in the JSON {“approvals”:[{SignatureJSON}]} https://developer.esignlive.com/guides/feature-guides/signatures/#rest-api Which can better be seen in this guide which talks about other fields: https://developer.esignlive.com/guides/feature-guides/fields/#rest-api Finally, the best way to see a full package payload so you can see what the bits and pieces are of each would be to look at the full package JSON in this guide ( which is the same as the blog you referenced, essentially :) ): https://developer.esignlive.com/guides/quick-start/creating-and-sending-a-package-rest/#csharp You can also see a slightly dated schema, here: http://docs.e-signlive.com/10.0/schema/index.html

- Michael

Director, Partner and Developer Technologies, OneSpan

Facebook - Twitter - LinkedIn


Reply to: Add a New Document to an Existing Package

0 votes
Reference: https://developer.esignlive.com/guides/feature-guides/signatures/ I'm starting top down from your post (noob). I can create package and add document just fine. On to Signatures and this is what I'm getting for response - POST url: https://sandbox.esignlive.com/api/packages/8sZBIINEducdbChajGu4g-vgIPM=/documents/ce105de465c75bf598a3d4ba68080117b9d271a4ae139256/approvals Payload:
{
    "role": "Signer1",
    "id": "signature1",
    "fields": [{
        "top": 510,
        "left": 215,
        "width": 200,
        "height": 50,
        "page": 0,
        "type": "SIGNATURE",
        "subtype": "FULLNAME"
    }]
}
Response:
{
  "messageKey": "error.validation.validateApproval.noRolesOnApproval",
  "message": "No role specified as part of this approval.",
  "code": 400,
  "name": "Validation Error"
}

Reply to: Add a New Document to an Existing Package

0 votes
Bingo Michael!!! I can now (in PostMan) -Create Package -Add Document -Add Signer -Set Approvals -Send out Package for signing. Thanks for the quick response. I'll Accept your last post as the answer. Now all I have to do is start building my integration :) Thank you, Rich

Reply to: Add a New Document to an Existing Package

0 votes
Fantastic news! Let us know if you run into any other issues!

- Michael

Director, Partner and Developer Technologies, OneSpan

Facebook - Twitter - LinkedIn


Hello! Looks like you're enjoying the discussion, but haven't signed up for an account.

When you create an account, we remember exactly what you've read, so you always come right back where you left off