attachmentupload
Parameter | Type |
---|---|
Company | String |
Action | String |
Input | String |
expenselines_expenselineinternal | String |
variable_AttachmentFileName | String |
variable_AttachmentBase64 | String |
Response | XML / JSON |
/jsonapi/expenses.json?company=1&supplier=1/U&action=attachmentupload&input={%22data%22:[{%22variable_AttachmentBase64%22:%22/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAUDBAQEAwUEBAQFBQUGBwwIBwcHBw8LCwkMEQ8SEhEPERETFhwXExQaFRERGCEYGh0dHx8fExciJCIeJBweHx7/2wBDAQUFBQcGBw4ICA4eFBEUHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh7/wAARCAAIAAgDASIAAhEBAxEB/8QAFQABAQAAAAAAAAAAAAAAAAAAAAb/xAAUEAEAAAAAAAAAAAAAAAAAAAAA/8QAFQEBAQAAAAAAAAAAAAAAAAAABgj/xAAUEQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIRAxEAPwCEADVTP//Z%22,%22variable_AttachmentFileName%22:%22Receipt.jpg%22,%22expenselines_expenselineinternal%22:%223398%22}]}&version=3&password=user&user=user
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
}
]
}