v1
latestOpenAPI 3.0.02026-07-1315476656.4 KBVoucher
Upload voucher file
To attach a document to a voucher, you will need to upload it first for later use.<br> To do this, you can use this request.<br> When you successfully uploaded the file, you will get a sevdesk internal filename in the response.<br> The filename will be a hash generated from your uploaded file. You will need it in the next request!<br> After you got the just mentioned filename, you can enter it as a value for the filename parameter of the saveVoucher request.<br> If you provided all necessary parameters and kept all of them in the right order, the file will be attached to your voucher.
post/Voucher/Factory/uploadTempFile
Response
A pdf file
Example response
{
"objects": {
"pages": 1,
"mimeType": "image/jpg",
"originMimeType": "application/pdf",
"filename": "f019bec36c65f5a0e7d2c63cc33f0681.pdf",
"contentHash": "1998dea8c6e9e489139caf896690641c0ea065ce5770b51cf2a4d10797f99685"
}
}