update_payment
Update an existing payment while preserving unspecified fields by merging your changes with the current payment data.
Instructions
Update an existing payment. IMPORTANT: Holded's PUT /payments/{id} REPLACES the record rather than merging, so any field omitted from the body is blanked. To prevent that, this tool first re-reads the current payment and merges your changes over it, preserving fields you did not pass (contactId, bankId, date, ...).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | Payment date as a Unix timestamp (seconds) | |
| days | No | Days until due | |
| name | No | Payment method name | |
| amount | No | Payment amount | |
| bankId | No | Bank account id to link the payment to | |
| contactId | No | Contact id associated with the payment | |
| paymentId | Yes | Payment ID to update |