yes, I added a field to the invoice thing in bubble to communicate and hold the error message. I only map to the field if the call errors, and I write “Success” if it is successful (gives the user assurance).
Since it is an internal business app I was working on I gave the user functionality to debug the invoice - error message to tell them what was wrong (client id invalid etc) and a way to retrigger the call. Also a way to see the errored invoices that needed to be manually reviewed by admin.
I also integrated it via make.com for better clarity on the api calls and logging. It’s well worth the small cost. I always start API integrations this way and leave them there during testing and MVP, then move them to bubble API connector once stable and debugged.