Skip to main content

Notifications

Microsoft Dynamics NAV forum
Answered

Getting sales invoices for a customer with the API

Posted on by 215

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

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

Any tip?

Thank you

Categories:
  • jgaztanaga Profile Picture
    jgaztanaga 215 on at
    RE: Getting sales invoices for a customer with the API

    Hi mohana,

    Following your link, I write:

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


    And the result is correct, thank you!!!

  • Verified answer
    Mohana Yadav Profile Picture
    Mohana Yadav 58,874 Super User 2024 Season 2 on at
    RE: Getting sales invoices for a customer with the API

    Please check this link

    docs.microsoft.com/.../devenv-connect-apps-filtering

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,524 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,469 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans