Attachments View/print
View an attachment from an expense line
Parameter | Description | Examples |
---|---|---|
API | The API area | expenselines.json |
Action | Remove Attachments | &action=attachmentview |
General | Parameters described in overview | user=user&password=user&version=3.3 |
company: | Company ID | &company=1 |
expenseline: | Expense Line ID | &expenseline=1234 |
OR | ||
UUID: | Expense Line UUID | &uuid=1234 |
Example request:
Request to view attachment
http://<SERVER>/jsonAPI/expenselines.json?user=user&password=user&version=3.3&company=1&action=attachmentview&expenseline=3404
Example response:
{
"responsecode": 1,
"responsestatus": "OK",
"errorcode": 0,
"errormessage": "",
"totalrows": 1,
"totalpages": 1,
"responsemessage": "",
"pagerows": 0,
"pagenumber": 1,
"success": true,
"data": [
{
"attachmentUuid": "96718E76A5624745B535E0371C6B4B1F",
"attachmentTimestampModified": 1523968717,
"attachmentRecordVersionNumber": 0,
"attachmentOriginalFilename": "office.txt",
"attachmentBase64": "ZnJvbSBUOlxTdXBwbGllclxNaWNyb3NvZnRcT2ZmaWNlIDIwMTYgUHJvZmVzc2lvbmFsXCAgVGhlIGxpY=",
"attachmentContentDisposition": "attachment; filename=\"doc.txt\"",
"attachmentContentType": "application"
}
]
}