web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Answered

How to Get sales Invoices Details

(0) ShareShare
ReportReport
Posted on by 34

Hi All,

I am trying to execute Get Sales Invoice API . below is the URL

api.businesscentral.dynamics.com/.../companies(CRONUS International Ltd.)/salesInvoices(102001)

passing in header Authenticate - Bearer AccessToken

Getting response kindly help why it's giving error

    <code>Unauthorized</code>
    <message>The credentials provided are incorrect</message>
</error>
  • Suggested answer
    Mohana Yadav Profile Picture
    61,252 Super User 2026 Season 2 on at

    Did you setup OAuth and got the AccessToken?

    I hope you are testing in Postman

  • Sliver Profile Picture
    34 on at

    Hi Mohana

    Thanks for reply

    Yes I got the access Token and testing in Postman

  • Suggested answer
    Mohana Yadav Profile Picture
    61,252 Super User 2026 Season 2 on at
  • Sliver Profile Picture
    34 on at

    Hi Mohana

    api.businesscentral.dynamics.com/.../companies

    If i try this with access token . result is same

    <error xmlns="docs.oasis-open.org/.../metadata">

       <code>Unauthorized</code>

       <message>The credentials provided are incorrect</message>

    </error>

  • Suggested answer
    Mohana Yadav Profile Picture
    61,252 Super User 2026 Season 2 on at

    Did you try Authorization - Bearer AccessToken

  • Sliver Profile Picture
    34 on at

    Hi Mohana

    Yes i am trying with Authorization - Bearer AccessToken

    .. No luck same error coming

    I m trying below api

    learn.microsoft.com/.../dynamics_salesinvoice_get

    What could be the problem

    ashish

  • Suggested answer
    Nitin Verma Profile Picture
    21,812 Moderator on at

    Hi,

    Did you setup a Azure Active directory in BC to create a new card with the client Id you made through app registration in Azure?

    pastedimage1676864041891v1.png

    Thanks

  • Verified answer
    Sliver Profile Picture
    34 on at

    Hi Mohana,

    I managed to solve the problem. Everything was proper and an access Token was also generated. the issue was with scope. i was giving wrong scope that was the reason my access token was not working

  • Suggested answer
    Sliver Profile Picture
    34 on at

    Hi Nitin,

    I managed to solve the problem. Everything was proper and an access Token was also generated. the issue was with scope. I was giving the wrong scope that was the reason my access token was not working

  • Nitin Verma Profile Picture
    21,812 Moderator on at

    Great.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 741 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 514 Super User 2026 Season 2

#3
AndrewThomas81 Profile Picture

AndrewThomas81 336 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans