API Documentation

/travelExpenses

Travel expenses are the elements of a travel expense report. A travel expense has a type like taxi, hotel and so on. They are not accessible themselves, only through their report.

Endpoints

MethodPath
GET/types
POST/
PUT/{id}
DELETE/{id}

Structure

FieldnameFieldtypeValidations
idLong
versionInteger
typetravel expense typenot null
costNumbernot null
vatNumbernot null
fromDateDatenot null
toDateDatenot null
commentString
submissionDateDatenot null
LinksSecurity
reportNo update or delete.

GET /types

Get all available travel expense types.

Returns

A list of all travel expense types.


POST /

Create a new travel expense. Returns the created object.

Security

Only the owner of the report and if the report is PENDING or REJECTED.

Returns

A single travel expense.


PUT /{id}

Update the travel expense identified by id. Returns the updated object.

Security

Only the owner of the report and if the report is PENDING or REJECTED.

Returns

A single travel expense.


DELETE /{id}

Delete a travel expense identified by id.

Security

Only the owner of the report and if the report is PENDING or REJECTED.

Returns

Nothing