Hi everyone, hope you doing well.
I’m a Wix Studio coder, and wanted to know if someone found a workaround for this:
I saw that the wix-billing-backend api does not include an event for when an invoices gets void/canceled. We got onInvoicePaid() and also onInvoiceOverdue() but not sign for the one I’m telling you.
Since we do not longer have access to the old Billing/Invoices collection managed by Wix, currently I’m storing the data I need from the onInvoicePaid() event on a collection to feed an admin dashboard.
However sometimes, there are cases where an invoice gets canceled and I have not quick way to listen for such event and flag that record on my collection. Resulting in a manual fix.
I thought I would then schedule a task that runs at everynight to check into all my invoices (from that day) and compare them to details from getInvoice(). But even though I have the Invoice ID, it tells me that my “member is not associated with such Invoice” ??
I do not know if that’s because I can only call getInvoice() for the invoices that I created through createInvoice(). If that’s so, it’s very disappointing for my case.
That being said, have you overcome this scenario already ? Is there a way to actually automate this process and catch when an Invoice gets voided ?
Thx in advance,
Juan H.