Replaces the date, amount, method and notes of a payment recorded on an invoice. Send every field again. The payment must belong to the invoice in the path, otherwise the response is 404.Side effects. HQ recalculates the invoice: it becomes paid when the payments cover the total, partial when they cover part of it, and sent when nothing is paid (a voided invoice keeps its status, and a draft with no payments stays a draft). When the status changes, the account's invoice_paid, invoice_partially_paid or invoice_sent webhook fires. When the invoice is paid or partial afterwards, every call queues a payment email to the invoice contact if the account has set up the email for that status. A payment on an invoice raised for a reservation is also recorded on the reservation, and can confirm a quote or pending reservation, which can send its confirmation email and fire its confirmed webhook.
The payment under the invoices_payment key. A successful body has no success field. HTTP 200 is also used for failures: such a body has success: false and is an ErrorUnauthorized (status_code 401 or 403).