Invoices endpoint returns credit notes too


I thought that invoices and credit notes were handled separately by the API now, but I am finding that the invoices endpoint returns results which include credit notes. I know some of the results are credit notes because they have a credit note URI/URL, not an invoice one.

Is this expected behaviour?

Many thanks,
Andrew Stewart

Hi Andrew,

Yes, this is expected behaviour. We separated out the creation of credit notes and invoices last year, but haven’t deprecated and changed how the invoices list returns both yet.

We don’t plan to change this at the moment, so it’s probably best to ignore them from the invoices response and use the credit note endpoints if you need them specifically.


Ok, thanks for the explanation!