Updates the expense request with the specified ID.

Request

PUT https://keypay.yourpayroll.com.au/api/v2/business/{businessId}/employee/{employeeId}/expenserequest/{expenseRequestId}

Path parameters

Parameter name Value Description Additional
expenseRequestId int32 Required
businessId string Required
employeeId string Required

Request body

The request body takes a complete ExpenseRequestEditModel resource, containing the following writable properties:

{
    "attachments": [
        {
            "dateCreated": "date-time",
            "friendlyName": "string",
            "id": "int32",
            "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"
        }
    ]
}

Properties

Name Type Description
attachments[] array
attachments[].dateCreated date-time Nullable
attachments[].friendlyName string String
attachments[].id int32 Nullable
attachments[].url string String
description string String
employeeId int32 Int32
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

Response

The following HTTP status codes may be returned, optionally with a response resource.

Status code Description Resource
200 OK

OK