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

FieldTypeDescription
emp_idString

Employee ID.

Parameter

FieldTypeDescription
requestObject

Main object containing the request data.

  dataObject

Object containg data to be uploaded.

    outlaysObject[]

Outlay registration to be created.

      dateDate

Registration date.

      descriptionoptionalString

Description.

      questionsoptionalObject[]

Collection of questions.

        answerString

The answer to the question.

        answerDescriptionoptionalString

The answer description for those questions that are supplied also with a list of values.

        idString

Unique identifier for the question.

      receiptsObject[]

Collection of receipts.

        accountIdString

Account ID.

        commentoptionalString

Remarks in connection with the receipt.

        dateDate

Receipt date.

        entryNumber

Entry number.

        idString

Receipt identifier/number.

        valueNumber

Value on the receipt.

      transSeqNumber

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

FieldTypeDescription
responseObject

Main object containing the response data.

  dataObject

Object containing the requested data.

  messageoptionalObject

Object containing response messages.

    codeNumber

Message code.

    textString

Message text.

    typeString

Type of message.

Allowed values:"warning""info"