Attachment view

Attachments View

View an attachment

ParameterDescriptionExamples
APIThe API areaexpenselines.json
ActionAttachment View&action=attachmentview
<General>Parameters described in overviewuser=user&password=user&version=3.3
<input mandatory>expenseline:Expense Line ID&expenseline=1234
OR
<input mandatory>UUID:Expense Line UUID&uuid=1234

Example request:
Request to view attachments

http://<SERVER>/jsonapi/expenselines.json?action=attachmentview&version=3.3&password=user&user=user&expenseline=3395

Example response:

{
  "responsecode": 1,
  "responsestatus": "OK",
  "errorcode": 0,
  "errormessage": "",
  "totalrows": 1,
  "totalpages": 1,
  "responsemessage": "",
  "pagerows": 0,
  "pagenumber": 1,
  "success": true,
  "data": [
    {
      "attachmentUuid": "1E568E7B18B9D745BE82F5A71DEB87DA",
      "attachmentTimestampModified": 1504864034,
      "attachmentRecordVersionNumber": 0,
      "attachmentOriginalFilename": "Receipt.jpg",
      "attachmentBase64": "/9j/4AAQSkZJRg873fdQOqV3YdUP3RIG2u+IA4umtv2Kqq+u0JJLy49lm+QncklJtPx6qshbV9dJP8NhEFclTVrt88vwrlFMTskG4+oIjA6rU8L3tpeaaDa1HCi0QGOn4PAnIHhO1Slp9vbvr1A0MAnwCvJ7bhko6TyyxxljnyjyGwr6Tp/F1jolV5/EVbpjG/EQTLhsV7jxlTt9E4FvLi3olz6Ns+oxoEuc4NJHkmV8ncT6yK3tr0q6saFa4o2N3Sq3D6bC4MYHgkkjsJ3XcmjbnrgJHDj2TAcSduiRPXEryncMgn+/ZAuI3iEDtHcoOOY/RQCmRKbI/MfslzCDMj6Icrvy/0VQNOCScGJ7IziNsqAkzPUding5kIgVevOPTZUsgHb7K214ye56qnbPN0k+F0RCQTyie8//2Q==",
      "attachmentContentDisposition": "attachment; filename=\"Receipt.jpg\"",
      "attachmentContentType": "application"
    }
  ]
}