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
| Field | Type | Description |
|---|---|---|
| response | Object | Main object containing the response data. |
| data | Object | Object containing the requested data. |
| accounts | Object[] | Collection of supplements. |
| description | String | Description of supplement |
| favorite | Boolean | If the account is favorite. |
| id | String | Unique identifier for the Supplement object. |
messageoptional | Object | Object containing response messages. |
| code | Number | Message code. |
| text | String | Message text. |
| type | String | Type of message. "warning""info" |
Success example:
HTTP/1.1 200 OK{"response": {"data": {"accounts": [{"id": "Account1","description": "Traveling abroad","favorite": true}]},"errorCode": 0,"errorMessage": ""}}
Error 4xx
| Field | Type | Description |
|---|---|---|
| response | Object | Main object containing the response data. |
| data | Object | Object containing the requested data (empty). |
| errorCode | Number | Error code. |
| errorMessage | String | Error description. |