Registrations - Expense, PUT
API Url
Expense (XE) variant of generic registration
Ignore the URI, for the correct URI see
http://localhost:16010/ProMarkREST/{DummyRegistration?type=XE}
Parameter
| Field | Type | Description |
|---|---|---|
| empId | string | Internal employee ID |
| expense | object | Expense |
departmentoptional | object | |
| id | string | |
questionsoptional | object | Questions to answer related to mileage |
| receipts | object[] | Receipts on the expense registration |
| account | object | Account used on receipt. |
| id | string | Account ID. |
commentoptional | string | Optional comment in relation to the receipt. |
| date | date | Receipt date |
| entryNo | number | Entry number. |
| id | string | Receipt id(number on receipt). |
| value | number | Value on receipt (amount spent). |
| relatedTo | object | Fill if expense is related to a dimension. It can be related to: Nothing, Project/Activity or Department. |
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 |
| type | string | Default value: XE |
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 |