Edits the Expense Request with the specified ID.

Request

PUT https://api.yourpayroll.com.au/api/v2/business/{businessId}/manager/{employeeId}/expense/{expenseRequestId}

Path parameters

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

Request body

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"
        }
    ]
}

Properties

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

Response

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

Status code Description Resource
200 OK

OK

ManagerExpenseRequestModel