kit.invoices.sync()saveInvoice().retrieve()'s response, with userId set to whatever you passed in.invoice.created, invoice.updated, invoice.paid, invoice.payment_failed, and invoice.voided when autoSync is not disabled. See Webhooks.