Update editable fields of a payment
Input variables
- paymentId: id of the payment (path variable)
- json representation of editable fields of a Payment
- publicNotes
- privateNotes
- date
For payment ids check the GetInvoicePayments endpoint.
## Only those three fields are editable
Everything else on the payment is left as it is, including `amount`, `paymentmethod` and `paymentFees`.
In particular **this endpoint cannot change a payment's `status`.** Settlement is the payment provider's word: it moves only when Stripe/PayPal reports an outcome, or when the payment is refunded, because each of those also adjusts the invoice's `paidAmount` to match. Annotating a declined attempt through this endpoint leaves it declined, as it should.
The response returns the full payment, so `status`, `paymentFees` and `stripePaymentIntentId` are shown even though they cannot be set.
Request
This endpoint expects an object.
publicNotesstringRequired
privateNotesstringRequired
Response
OK
stripePaymentIntentIdanyOptional