Attachment Upload

attachmentupload

Parameter

Type

I/O

Description

<General>

IN

Parameters described in Overview

Company

String

IN

The users default company number for the companies list

Action

String

IN

Identifier for the list requested

Input

String

IN

Data array

expenselines_expenselineinternal

String

IN

Data array parameter representing the expense line number

variable_AttachmentFileName

String

IN

Data array parameter representing the attachment filename

variable_AttachmentBase64

String

IN

Data array parameter – the base64 encoded file

Response

XML / JSON

OUT

An 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
    }
  ]
}