Upload document using application/json
Tuesday, October 20, 2020 at 05:10pmIts possible append document to existing package using application/json content type and base64 coded pdf?
OneSpan Introduces DigipassONE, Bringing a Unified Platform Approach to Authentication Modernization
A new authentication platform helps financial institutions support diverse customer authentication preferences while modernizing at their own pace Learn More
Its possible append document to existing package using application/json content type and base64 coded pdf?
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