Expense - Get all outlays

API Url

Used to get all outlays.

GET
http://localhost:16010/ProMarkREST/rest/Mileage/outlays

Permissions: user

Query parameters

FieldTypeDescription
fromoptionalDate

Start date for outlays, Default:Employee start date.

tooptionalDate

End date for outlays, Default : TODAY.

Success 200

FieldTypeDescription
responseObject

Main object containing the response data.

  dataObject

Object containing the requested data.

    outlaysObject[]

Collection of outlays registrations.

      dateDate

Registration date.

      descriptionoptionalString

Description.

      empIdString

Employee ID.

      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.

      readOnlyBoolean

TRUE if the registration is read-only.

      receiptsObject[]

Collection of receipts.

        accountDescString

Account description.

        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.

  messageoptionalObject

Object containing response messages.

    codeNumber

Message code.

    textString

Message text.

    typeString

Type of message.

Allowed values:"warning""info"

Success example:

HTTP/1.1 200 OK
{
"response": {
"data": {
"outlays": [
{
"transSeq": 2349214,
"date": "2017-11-09",
"empId": "414",
"readOnly": false,
"receipts": [
{
"entry": 1,
"id": "12345",
"date": "2017-11-08",
"value": 1000,
"comment": "External meal in connection to sales",
"accountId": "S100",
"accountDesc": "Sale expenses"
},
{
"entry": 2,
"id": "56789",
"date": "2017-11-09",
"value": 2000,
"comment": "Fun with team",
"accountId": "B010",
"accountDesc": "Other expenses"
}
]
}
]
},
"errorCode": 0,
"errorMessage": ""
}
}

Error 4xx

FieldTypeDescription
responseObject

Main object containing the response data.

  dataObject

Object containing the requested data (empty).

  errorCodeNumber

Error code.

  errorMessageString

Error description.