Updates the value date for the specified sales invoice 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/sales-invoice/{invoiceId}/payment/{paymentId}/value-date
curl \
--request PATCH 'https://wyzio.app/api-v1/sales-invoice/{invoiceId}/payment/{paymentId}/value-date' \
--header "Content-Type: application/json" \
--data '{"valueDate":"01/06/2026","chartOfAccountsId":12345678,"purchasePayments":[12345678],"salesPayments":[12345678],"payrollPayments":[12345678],"bankCharges":10.0,"lossOnDebtors":5.0}'
Request examples
# Headers
# Payload
{
"valueDate": "01/06/2026",
"chartOfAccountsId": 12345678,
"purchasePayments": [
12345678
],
"salesPayments": [
12345678
],
"payrollPayments": [
12345678
],
"bankCharges": 10.0,
"lossOnDebtors": 5.0
}
Response examples (200)
{
"error": {
"errorCode": "NO_ERROR",
"errorDetailValues": [
{
"errorCode": "string",
"fieldName": "string",
"data": "string",
"isSevere": true
}
]
},
"valid": true
}