Expense - Get mileage accounts

API Url

Used to get all mileage accounts. These are used as Mileage types.

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

Permissions: user

Success 200

FieldTypeDescription
responseObject

Main object containing the response data.

  dataObject

Object containing the requested data.

    accountsObject[]

Collection of supplements.

      descriptionString

Description of supplement

      favoriteBoolean

If the account is favorite.

      idString

Unique identifier for the Supplement object.

  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": {
"accounts": [
{
"id": "Account1",
"description": "Traveling abroad",
"favorite": true
}
]
},
"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.