Add employee expenses to the specified pay run.

Request

POST https://api.yourpayroll.com.au/api/v2/business/{businessId}/payrun/{payRunId}/EmployeeExpenses

Path parameters

Parameter name Value Description Additional
payRunId int32 Required
businessId string Required

Request body

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

{
    "employeeExpenseCategoryIdType": "string",
    "employeeIdType": "string",
    "expenses": {
        "<key>": "array"
    },
    "locationIdType": "string",
    "payRunId": "int32",
    "replaceExisting": "boolean",
    "suppressCalculations": "boolean"
}

Properties

Name Type
employeeExpenseCategoryIdType string
employeeIdType string
expenses object
expenses.<key> map of array
expenses.<key>.amount double
expenses.<key>.employeeExpenseCategoryId string
expenses.<key>.employeeExpenseCategoryName string
expenses.<key>.employeeId string
expenses.<key>.employeeName string
expenses.<key>.externalId string
expenses.<key>.locationId string
expenses.<key>.locationName string
expenses.<key>.notes string
expenses.<key>.taxCode string
expenses.<key>.taxCodeDisplayName string
expenses.<key>.taxRate double
locationIdType string
payRunId int32
replaceExisting boolean
suppressCalculations boolean

Response

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

Status code Description Resource
200 OK

OK