Create Package and all Sub classes needed in one call.
Monday, August 20, 2018 at 05:49amHello,
I'm trying to create a package with all of it dependencies and documents at once:
if I try a payload as
{ "documents":[ { "approvals":[ { "id":"Signature1", "role":"Role1", "fields":[ { "page":0, "top":800, "subtype":"FULLNAME", "optional":true, "height":50, "left":300, "width":200, "type":"SIGNATURE", "name":"ExampleSignature" }, { "binding": "{signer.email}", "validation": nil, "page": 0, "data": nil, "subtype": "LABEL", "top": 700, "height": 30, "extractAnchor": nil, "width": 100, "extract": false, "left": 300, "type": "INPUT", "name": "Signer Email" } ], "name":"" }, { "id":"Signature2", "role":"Role2", "fields":[ { "page":0, "top":850, "subtype":"FULLNAME", "optional":true, "height":50, "left":300, "width":200, "type":"SIGNATURE", "name":"ExampleSignature" }, { "binding": "{signer.title}", "validation": nil, "page": 0, "data": nil, "subtype": "LABEL", "top": 750, "height": 30, "extractAnchor": nil, "width": 100, "extract": false, "left": 300, "type": "INPUT", "name": "Signer Email" } ], "name":"" } ], "id":"document1", "name":"Test Document1" } ], "roles":[ { "id":"Role1", "type":"SIGNER", "signers":[ { "id":"Signer1", title: "role 1", "email":"[email protected]", "firstName":"1.firstname", "lastName":"1.lastname" } ], "name":"Role1" }, { "id":"Role2", "type":"SIGNER", "signers":[ { "id":"Signer2", title: "rol2", "email":"[email protected]", "firstName":"2.firstname", "lastName":"2.lastname" } ], "name":"Role2" } ], "settings":{ "ceremony":{ "inPerson": false, "declineButton": false, disableDownloadForUncompletedPackage: true, hideLanguageDropdown: true, "hideWatermark":true, "optOutButton":false, disableOptOutOther: false, handOver: {link: 'https://localhost:3000.info'}, "layout": { "brandingBar": nil, "footer": nil, "header": nil, titleBar: nil, "navigator": false, "iframe": true }, } }, "status":"SENT", "type":"PACKAGE", language: "en", emailMessage: "", autocomplete: true, "name":"Example Package with multiple documents" }It works but I do not want to override ids, so If I remove the ids and send payload as
{ "documents":[ { "approvals":[ { "role":"Role1", "fields":[ { "page":0, "top":800, "subtype":"FULLNAME", "optional":true, "height":50, "left":300, "width":200, "type":"SIGNATURE", "name":"ExampleSignature" }, { "binding": "{signer.email}", "validation": nil, "page": 0, "data": nil, "subtype": "LABEL", "top": 700, "height": 30, "extractAnchor": nil, "width": 100, "extract": false, "left": 300, "type": "INPUT", "name": "Signer Email" } ], "name":"" }, { "role":"Role2", "fields":[ { "page":0, "top":850, "subtype":"FULLNAME", "optional":true, "height":50, "left":300, "width":200, "type":"SIGNATURE", "name":"ExampleSignature" }, { "binding": "{signer.title}", "validation": nil, "page": 0, "data": nil, "subtype": "LABEL", "top": 750, "height": 30, "extractAnchor": nil, "width": 100, "extract": false, "left": 300, "type": "INPUT", "name": "Signer Email" } ], "name":"" } ], "name":"Test Document1" } ], "roles":[ { "type":"SIGNER", "signers":[ { title: "role 1", "email":"[email protected]", "firstName":"1.firstname", "lastName":"1.lastname" } ], "name":"Role1" }, { "type":"SIGNER", "signers":[ { title: "rol2", "email":"[email protected]", "firstName":"2.firstname", "lastName":"2.lastname" } ], "name":"Role2" } ], "settings":{ "ceremony":{ "inPerson": false, "declineButton": false, disableDownloadForUncompletedPackage: true, hideLanguageDropdown: true, "hideWatermark":true, "optOutButton":false, disableOptOutOther: false, handOver: {link: 'https://localhost:3000.info'}, "layout": { "brandingBar": nil, "footer": nil, "header": nil, titleBar: nil, "navigator": false, "iframe": true }, } }, "status":"SENT", "type":"PACKAGE", language: "en", emailMessage: "", autocomplete: true, "name":"Example Package with multiple documents" }so does using the same id in multiple requests override them? if yes, how can I make the second json work? Thanks
Reply to: Create Package and all Sub classes needed in one call.
Monday, August 20, 2018 at 06:56amReply to: Create Package and all Sub classes needed in one call.
Monday, August 20, 2018 at 08:12amReply to: Create Package and all Sub classes needed in one call.
Monday, August 20, 2018 at 08:46am