Skip to main content

Notifications

Microsoft Dynamics NAV (Archived)

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

*This post is locked for comments

  • 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 59,137 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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans