Updates the value date for the specified payroll payment. Returns 200 on success, or 400 if the update is not valid.
Headers
-
API token (can be retrieved from account settings)
-
ID of organization, for which the operation must be performed
PATCH
/api-v1/payroll/{invoiceId}/payment/{paymentId}/value-date
curl \
--request PATCH 'https://wyzio.app/api-v1/payroll/{invoiceId}/payment/{paymentId}/value-date' \
--header "Content-Type: application/json" \
--data '{"valueDate":"2026-01-01T00:00:00.000Z","chartOfAccountsId":42,"purchasePayments":[42],"salesPayments":[42],"payrollPayments":[42],"bankCharges":"100.55","lossOnDebtors":"100.55"}'
Request examples
# Headers
# Payload
{
"valueDate": "2026-01-01T00:00:00.000Z",
"chartOfAccountsId": 42,
"purchasePayments": [
42
],
"salesPayments": [
42
],
"payrollPayments": [
42
],
"bankCharges": "100.55",
"lossOnDebtors": "100.55"
}
Response examples (200)
{
"error": {
"errorCode": "NO_ERROR",
"errorDetailValues": [
{
"errorCode": "string",
"fieldName": "string",
"data": "string",
"isSevere": true
}
]
},
"valid": true
}