# Set value date for payment of purchase invoice **PATCH /api-v1/purchase-invoice/{invoiceId}/payment/{paymentId}/value-date** ## Servers - Generated server url: https://wyzio.app (Generated server url) ## Parameters ### Headers - **WEAL-TOKEN** (string) API token (can be retrieved from account settings) - **TARGET-ORGANIZATION-ID** (integer) ID of organization, for which the operation must be performed ### Path parameters - **invoiceId** (integer) - **paymentId** (integer) ### Body: application/json (object) - **valueDate** (string) - **chartOfAccountsId** (integer) - **purchasePayments** (array[integer]) - **salesPayments** (array[integer]) - **payrollPayments** (array[integer]) - **bankCharges** (string) - **lossOnDebtors** (string) ## Responses ### 200 OK #### Body: application/json (object) - **data** (object) - **error** (object) - **valid** (boolean) ### 400 400 Bad Request ### 401 401 Unauthorized ### 403 403 Access Denied ### 404 404 Not Found ### 500 500 Internal Server Error [Powered by Bump.sh](https://bump.sh)