Registrations - Mileage, PUT
API Url
Mileage (XM) variant of generic registration
Ignore the URI, for the correct URI see
http://localhost:16010/ProMarkREST/{DummyRegistration?type=XM}
Parameter
| Field | Type | Description |
|---|---|---|
| empId | string | Internal employee ID |
locationoptional | object | Geo location of registration |
| latitude | number | Latitude, negative value is west -180 to 180 |
| longitude | number | Longitude, negative value is south -180 to 180 |
| mileage | object | Mileage |
| account | object | Account used on mileage |
| id | string | Account ID |
| car | object | Car used on mileage |
| licensePlate | string | License plate |
| type | number |
01 |
commentoptional | string | Optional comment |
| distance | number | Distance as decimal |
| from | string | Mileage starting point |
| roundtrip | boolean | TRUE if it's a roundtrip |
| to | string | Mileage ending point |
viaoptional | string | Via point |
| regTime | datetime | The time of registration |
| terminalId | string | Numeric ID of registration terminal, or if not numeric, then it's the ID of the user that changed or added the registration |
| transSeq | number | Unique reference of registration |
| type | string | Default value: XM |
Success 200
| Field | Type | Description |
|---|---|---|
departmentoptional | object | |
| description | string | |
| id | string | |
questionsoptional | object | Questions to answer related to mileage |
answeroptional | string | The answer itself |
answerDescriptionoptional | string | Answer description. |
| dataType | number |
0-10 |
| id | string | Question ID |
| inputType | number |
0-10 |
| label | string | Label on the question |
| order | string | Question order |
| relatedTo | object | Fill if expense is related to a dimension. It can be related to: Nothing, Project/Activity or Department. |
| activity | object | Activity |
| description | string | Description of activity |
| id | string | ID of activity |
extraInfooptional | object[] | Collection of extra info objects |
| description | string | Description of extra info |
| id | string | ID of extra info |
| value | object | Extra info value |
| description | string | Description of extra info value |
| id | string | ID of extra info value |
pieceworkoptional | object | Piecework |
| description | string | Description of piecework |
| id | string | ID of piecework |
| project | object | Project |
| description | string | Description of project |
| id | string | ID of project |
timeTypeoptional | object | Time Type |
| description | string | Description of timeType |
| id | string | ID of timeType |