Gettin sales invoices for a customer with the API

Hi everyone!

I’m testing the API for a clud NAV BC installation, because probably we are going to integrate with a online Shop. I am testing with postman .

I can get the list of sales invoices like this:

{{BaseURL}}/companies/{{CRONUS}}/salesInvoices

How can I filter the invoices for a certain customer? I’m trying different ways, but I only find sintax errors…

Any tip?

Thank you

If I add this:

{{BaseURL}}/companies/{{CRONUS}}/salesInvoices?customerId=8603775b-d795-44fe-b370-9ee597a20bd0

I get the invoices of that customer, but after the rest of invoices…

Solution:

{{BaseURL}}/companies/{{CRONUS}}/salesInvoices?$filter=customerId eq 8603775b-d795-44fe-b370-9ee597a20bd0