Its possible append document to existing package using application/json content type and base64 coded pdf?
October 20Created
October 20Last Updated
5 years agoLast Reply
1Replies
290Views
2Users
0Likes
0Links
Duo_Liang | Posts: 3777
Reply to: Upload document using application/json
Wednesday, October 21, 2020 at 10:02am
0
votes
Hi David,
OneSpan Sign offers the API to upload a document to an existing package, however the request type has to be multipart/form-data and contains the actual bytes of the pdf rather than the base64 representation of it.
Reply to: Upload document using application/json
Wednesday, October 21, 2020 at 10:02amHi David,
OneSpan Sign offers the API to upload a document to an existing package, however the request type has to be multipart/form-data and contains the actual bytes of the pdf rather than the base64 representation of it.
HTTP Request
POST /api/packages/{packageId}/documents
HTTP Headers
Accept: text/html
Content-Type: multipart/form-data
Authorization: Basic api_key
Request Body (key : value):
"file": PDF binary data
"payload": JSON payload
Duo