Updates the expense request with the specified ID.

Request

PUT https://api.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
attachments[] array
attachments[].dateCreated date-time
attachments[].friendlyName string
attachments[].id int32
attachments[].url string
description string
employeeId int32
id int32
lineItems[] array
lineItems[].amount double
lineItems[].dateIncurred date-time
lineItems[].expenseCategoryId int32
lineItems[].id int32
lineItems[].locationId int32
lineItems[].notes string
lineItems[].taxCode string
lineItems[].taxCodeDisplayName string
lineItems[].taxRate double

Response

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

Status code Description Resource
200 OK

OK