Finding Credit Notes based on invoice number in the API

Finding Credit Notes based on invoice number in the API

In the api, Is there a way to find all the Creditnotes associated with an invoice?

I cant find anything in the documentation. I can use the "search_text" parameter, but it's not quite ideal.

If I look up invoice 34, it will show me the credit notes for "34", "340", "1340", etc...

I am hoping there is a better way