patch https://onpay.dev/v2/employees//wages
Update employee pay items
{
"type": "object",
"properties": {
"pay_items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"pattern": "^\\d+$"
},
"rate": {
"type": "string",
"pattern": "^\\d{0,6}(\\.\\d{1,3})?$"
},
"override_amount": {
"type": "string",
"pattern": "^\\d{0,6}(\\.\\d{1,3})?$",
"description": "readonly"
},
"hours": {
"type": "string",
"pattern": "^\\d{0,6}(\\.\\d{1,3})?$"
},
"pay_type_id": {
"type": "string",
"pattern": "^\\d+$",
"description": "readonly"
},
"employee_id": {
"type": "string",
"pattern": "^\\d+(\\-|\\d)\\d+$",
"description": "readonly"
},
"effective_date": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "yyyy-mm-dd",
"notes": [
"will take effect immediately if not provided"
]
}
},
"required": [
"id"
]
}
},
"version": {
"type": "string"
}
},
"required": [
"batch",
"version"
]
}