Attachment Upload

attachmentupload

ParameterTypeI/ODescription
<General>INParameters described in Overview
CompanyStringINThe users default company number for the companies list
ActionStringINIdentifier for the list requested
InputStringINData array
expenselines_expenselineinternalStringINData array parameter representing the expense line number
variable_AttachmentFileNameStringINData array parameter representing the attachment filename
variable_AttachmentBase64StringINData array parameter – the base64 encoded file
ResponseXML / JSONOUTAn XML tree / JSON string containing the success or error response

NOTE: Version 3.0 only

Description

Calling the expenses API with an action of attachmentupload retrieves a response. Supports multiple file formats (images, PDF, XLS, txt and word doc). File size default maximum of 2.5mb, can be overridden by a system parameter setting.

Return Values

Response – Success or error response.

The structure of the response is:

{
  "responsecode": 1,
  "responsestatus": "OK",
  "errorcode": 0,
  "errormessage": "",
  "responsemessage": "data processed successfully.",
  "warningmessage": "",
  "success": true,
  "data": [
    {
      "expenselines_expenselineinternal": 3398,
      "expenselines_uuid": "6FE77CC7A93FCF4ABF5D8F88A51FDAEB",
      "expenselines_timestampmodified": 1504866434,
      "expenselines_recordversionnumber": 6
    }
  ]
}