Records a payment received for an invoice, for example a bank transfer. This does not charge the customer: to take a card payment, use the Payment Gateways endpoints.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. Unless payment emails are disabled in the car rental settings, the renter is also emailed a payment receipt.
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).