Expense - Delete travel details

API Url

Delete 1 or more travel details. The API will verify if it's allowed to delete travel details for other employees.

DELETE
http://localhost:16010/ProMarkREST/rest/Mileage/travel-details/{transSeq}

Permissions: user

Path parameters

FieldTypeDescription
transSeqNumber

Unique id.

Query parameters

FieldTypeDescription
includeRelatedoptionalBoolean

Include related registrations.

Success 200

FieldTypeDescription
responseObject

Main object containing the response data.

  messageoptionalObject

Object containing response messages.

    codeNumber

Message code.

    textString

Message text.

    typeString

Type of message.

Allowed values:"warning""info"

Success example:

HTTP/1.1 200 OK
{
"response": {
"errorCode": 0,
"errorMessage": ""
}
}

Error 4xx

FieldTypeDescription
responseObject

Main object containing the response data.

  errorCodeNumber

Error code.

  errorMessageString

Error description.

Error example:

{
"response": {
"errorCode": 5,
"errorMessage": "Travel details do not exist"
}
}