Posts: 258 Ryan_Coleman Multiple documents per transaction example? Monday, August 6, 2018 at 12:46pm 0 votes I'm looking for a coding example of a JSON package that would have multiple documents per transaction. Does anyone happen to know of a good link or example that I can use? August 6 Created January 21 Last Updated 5 years ago Last Reply 2 Replies 21 Views 2 Users 0 Likes 0 Links Posts: 3775 Duo_Liang Reply to: Multiple documents per transaction example? Monday, August 6, 2018 at 01:08pm 0 votes Hi Ryan, If you are looking for a JSON example where a package is created with multiple documents, below is one: HTTP Request POST /api/packages HTTP Headers Accept: application/json Content-Type: multipart/form-data Authorization: Basic api_key Attachment shows you how to organize the http body. And this is an example for creating a package with two documents and two signers: { "documents":[ { "approvals":[ { "id":"Signature1", "role":"Role1", "fields":[ { "page":0, "top":300, "subtype":"FULLNAME", "optional":true, "height":50, "left":100, "width":200, "type":"SIGNATURE", "name":"ExampleSignature" } ], "name":"" } ], "id":"document1", "name":"Test Document1" }, { "approvals":[ { "id":"Signature2", "role":"Role2", "fields":[ { "page":0, "top":300, "subtype":"FULLNAME", "height":50, "left":100, "width":200, "type":"SIGNATURE", "name":"ExampleSignature" } ], "name":"" } ], "id":"document2", "name":"Test Document2" } ], "status":"SENT", "type":"PACKAGE", "roles":[ { "id":"Role1", "type":"SIGNER", "signers":[ { "id":"Signer1", "email":"[email protected]", "firstName":"1.firstname", "lastName":"1.lastname" } ], "name":"Role1" }, { "id":"Role2", "type":"SIGNER", "signers":[ { "id":"Signer2", "email":"[email protected]", "firstName":"2.firstname", "lastName":"2.lastname" } ], "name":"Role2" } ], "name":"Example Package with multiple documents" } And if I misunderstood your need, please let me know! Duo Duo Liang OneSpan Evangelism and Partner Integrations Developer Log in or register to post comments Posts: 258 Ryan_Coleman Reply to: Multiple documents per transaction example? Monday, August 6, 2018 at 05:58pm 0 votes Nope, that answered my question perfectly. Thank you! Log in or register to post comments
Posts: 3775 Duo_Liang Reply to: Multiple documents per transaction example? Monday, August 6, 2018 at 01:08pm 0 votes Hi Ryan, If you are looking for a JSON example where a package is created with multiple documents, below is one: HTTP Request POST /api/packages HTTP Headers Accept: application/json Content-Type: multipart/form-data Authorization: Basic api_key Attachment shows you how to organize the http body. And this is an example for creating a package with two documents and two signers: { "documents":[ { "approvals":[ { "id":"Signature1", "role":"Role1", "fields":[ { "page":0, "top":300, "subtype":"FULLNAME", "optional":true, "height":50, "left":100, "width":200, "type":"SIGNATURE", "name":"ExampleSignature" } ], "name":"" } ], "id":"document1", "name":"Test Document1" }, { "approvals":[ { "id":"Signature2", "role":"Role2", "fields":[ { "page":0, "top":300, "subtype":"FULLNAME", "height":50, "left":100, "width":200, "type":"SIGNATURE", "name":"ExampleSignature" } ], "name":"" } ], "id":"document2", "name":"Test Document2" } ], "status":"SENT", "type":"PACKAGE", "roles":[ { "id":"Role1", "type":"SIGNER", "signers":[ { "id":"Signer1", "email":"[email protected]", "firstName":"1.firstname", "lastName":"1.lastname" } ], "name":"Role1" }, { "id":"Role2", "type":"SIGNER", "signers":[ { "id":"Signer2", "email":"[email protected]", "firstName":"2.firstname", "lastName":"2.lastname" } ], "name":"Role2" } ], "name":"Example Package with multiple documents" } And if I misunderstood your need, please let me know! Duo Duo Liang OneSpan Evangelism and Partner Integrations Developer Log in or register to post comments
Posts: 258 Ryan_Coleman Reply to: Multiple documents per transaction example? Monday, August 6, 2018 at 05:58pm 0 votes Nope, that answered my question perfectly. Thank you! Log in or register to post comments
Reply to: Multiple documents per transaction example?
Monday, August 6, 2018 at 01:08pmDuo Liang OneSpan Evangelism and Partner Integrations Developer
Reply to: Multiple documents per transaction example?
Monday, August 6, 2018 at 05:58pm