david_berroa | Posts: 1

Upload document using application/json

0 votes

Its possible append document to existing package using application/json content type and base64 coded pdf?


Duo_Liang | Posts: 3776

Reply to: Upload document using application/json

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.

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


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