Creates a new expense request for the employee.
POST http:///api/v2/ess/{employeeId}/expense
| Parameter name | Value | Description | Additional |
|---|---|---|---|
| employeeId | string | Required |
The request body takes a complete ExpenseRequestEditModel resource, containing the following writable properties:
{
"attachments": [
{
"dateCreated": "date-time",
"dateScanned": "date-time",
"friendlyName": "string",
"id": "int32",
"isInfected": "boolean",
"url": "string"
}
],
"description": "string",
"employeeId": "int32",
"id": "int32",
"lineItems": [
{
"amount": "double",
"dateIncurred": "date-time",
"expenseCategoryId": "int32",
"id": "int32",
"locationId": "int32",
"notes": "string",
"taxCode": "string",
"taxCodeDisplayName": "string",
"taxRate": "double"
}
]
}
| Name | Type | Description |
|---|---|---|
| attachments[] | array | |
| attachments[].dateCreated | date-time |
Nullable |
| attachments[].dateScanned | date-time |
Nullable |
| attachments[].friendlyName | string | String |
| attachments[].id | int32 |
Nullable |
| attachments[].isInfected | boolean |
Nullable |
| attachments[].url | string | String |
| description | string | String |
| employeeId | int32 |
Required |
| id | int32 | Int32 |
| lineItems[] | array | |
| lineItems[].amount | double | Decimal |
| lineItems[].dateIncurred | date-time | DateTime |
| lineItems[].expenseCategoryId | int32 | Int32 |
| lineItems[].id | int32 |
Nullable |
| lineItems[].locationId | int32 |
Nullable |
| lineItems[].notes | string | String |
| lineItems[].taxCode | string | String |
| lineItems[].taxCodeDisplayName | string | String |
| lineItems[].taxRate | double |
Nullable |
The following HTTP status codes may be returned, optionally with a response resource.
| Status code | Description | Resource |
|---|---|---|
| 200 | OK OK |
Powered by DapperDox