Getting sales invoices for a customer with the API

AitorEGAitorEG Member Posts: 342
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..

f 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....

Any tip?

Thank you

Best Answer

  • AitorEGAitorEG Member Posts: 342
    Answer ✓
    SOLUTION:
    {{BaseURL}}/companies/{{CRONUS}}/salesInvoices?$filter=customerId eq 8603775b-d795-44fe-b370-9ee597a20bd0
    

Answers

  • AitorEGAitorEG Member Posts: 342
    Answer ✓
    SOLUTION:
    {{BaseURL}}/companies/{{CRONUS}}/salesInvoices?$filter=customerId eq 8603775b-d795-44fe-b370-9ee597a20bd0
    
Sign In or Register to comment.