rejecting /1.0/kb/accounts/<account_id>/invoices?includeInvoiceComponents=true&unpaidInvoicesOnly=true

4 views
Skip to first unread message

tenchiro

unread,
Apr 23, 2026, 8:26:57 AM (24 hours ago) Apr 23
to Kill Bill users mailing-list
I think this is a bug. The log shows thiceComponents=true&unpaidInvoicesOnly=trueat the invoice components flag is set to true, but it seems the mere presence of the flag causes failure:


If the code is just testing the presence of the flag, sematically it seems backwards.

I am working around it by removing the parameter altogether (this seems fine) but I think it should accept it.

The docs do note this requirement, but do not say the flag must be omitted.

karan bansal

unread,
Apr 23, 2026, 10:41:13 PM (9 hours ago) Apr 23
to Kill Bill users mailing-list
Hi, 

Thank you for pointing that out. I had a look into it. The code already handles passing only unpaidInvoicesOnly as true and takes includeInvoiceComponents as true automatically in this case. So the error message seems to be there to specifically catch and avoid the exact case when both the flags includeInvoiceComponents and unpaidInvoicesOnly are passed as true.

Regards
Karan

Reply all
Reply to author
Forward
0 new messages