Expense - Update outlay
API Url
Used for updating a single outlay registration.
PUT
http://localhost:16010/ProMarkREST/rest/Mileage/employees/{emp_id}/outlays
Permissions: user
Path parameters
| Field | Type | Description |
|---|---|---|
| emp_id | String | Employee ID. |
Parameter
| Field | Type | Description |
|---|---|---|
| request | Object | Main object containing the request data. |
| data | Object | Object containg data to be uploaded. |
| outlays | Object[] | Outlay registration to be created. |
| date | Date | Registration date. |
descriptionoptional | String | Description. |
questionsoptional | Object[] | Collection of questions. |
| answer | String | The answer to the question. |
answerDescriptionoptional | String | The answer description for those questions that are supplied also with a list of values. |
| id | String | Unique identifier for the question. |
| receipts | Object[] | Collection of receipts. |
| accountId | String | Account ID. |
commentoptional | String | Remarks in connection with the receipt. |
| date | Date | Receipt date. |
| entry | Number | Entry number. |
| id | String | Receipt identifier/number. |
| value | Number | Value on the receipt. |
| transSeq | Number | Unique registration identifier. |
Request example:
{"request": {"data": {"outlays": [{"transSeq": 12345678,"date": "2017-11-09","receipts": [{"entry": 1,"id": "12345","date": "2017-11-08","value": 1000,"comment": "External meal in connection to sales","accountId": "S100"},{"entry": 2,"id": "56789","date": "2017-11-09","value": 2000,"comment": "Fun with team","accountId": "B010"}]}]}}}
Success 200
| Field | Type | Description |
|---|---|---|
| response | Object | Main object containing the response data. |
| data | Object | Object containing the requested data. |
messageoptional | Object | Object containing response messages. |
| code | Number | Message code. |
| text | String | Message text. |
| type | String | Type of message. "warning""info" |