Uploads a file document to a transaction. If Id is omitted, a new document is created at version 1. If Id is provided and matches an existing document, a new version is added.
Supported MIME types: application/pdf, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, application/vnd.ms-excel, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, image/jpeg, image/png, image/bmp, image/gif
Query parameters
-
Document name
-
Document description
-
Optional folder ID to store the document in
-
Optional document ID. If provided and found, adds a new version.
application/pdf
POST
/transactions/{transactionId}/documents/file
cURL (application/pdf)
curl \
--request POST 'https://ws.zipformplus.com/api/transactions/{transactionId}/documents/file?Name=string&Description=string' \
--header "X-Auth-ContextId: $API_KEY" \
--header "Content-Type: application/pdf" \
--data-binary '@file'
curl \
--request POST 'https://ws.zipformplus.com/api/transactions/{transactionId}/documents/file?Name=string&Description=string' \
--header "X-Auth-ContextId: $API_KEY" \
--header "Content-Type: application/msword" \
--data-binary '@file'
curl \
--request POST 'https://ws.zipformplus.com/api/transactions/{transactionId}/documents/file?Name=string&Description=string' \
--header "X-Auth-ContextId: $API_KEY" \
--header "Content-Type: image/jpeg" \
--data-binary '@file'