Registrations - Daily Allowance, PUT
API Url
Daily Allowance (XT) variant of generic registration
Ignore the URI, for the correct URI see
http://localhost:16010/ProMarkREST/{DummyRegistration?type=XT}
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 |
| 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 |
| travel | object | Travel |
| days | object[] | Travel days |
| endTime | datetime | End date and time of day. |
| entryNo | number | Entry number (day no). |
| meals | object | Meals take on the day. |
| breakfast | boolean | True = you had breakfast. |
| dinner | boolean | True = you had dinner. |
| lunch | boolean | True = you had lunch. |
| startTime | datetime | Start date and time of day. |
| supplementId | string | Supplement ID (on accomodation). |
departmentoptional | object | |
| id | string | |
| endTime | datetime | Last day and time of travel |
questionsoptional | object | Questions to answer related to mileage |
| relatedTo | object | Fill if expense is related to a dimension. It can be related to: Nothing, Project/Activity or Department. |
| startTime | datetime | First day and time of travel |
| type | string | Default value: XT |
Success 200
| Field | Type | Description |
|---|---|---|
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 |
| 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 |