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

Notifications

Announcements

No record found.

Community site session details

Community site session details

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

PostMan GET PurchaseInvoice header data by Id

(0) ShareShare
ReportReport
Posted on by

Hi,

we are featching All purchase invoice header data 

pastedimage1613736944634v2.png

I am trying to get a record of a particular Purchase Invoice by using the below query on postman  

GET https://{​​​​​businesscentralPrefix}​​​​​/api/v1.0/companies({​​​​​id}​​​​​)/purchaseInvoices({​​​​​id}​​​​​)

Please guide me how to get particular purchase invoice header data using id

I am getting below error

pastedimage1613737145349v3.png

I have the same question (0)
  • Suggested answer
    Marco Mels Profile Picture
    on at

    Hello,

    Found an old discussion topic with the same error:

    community.dynamics.com/.../using-postman-json-rest-i-can-create-a-salesorder-but-can-t-find-out-how-to-add-salesorderlines

    It may help. Otherwise raise a support request to CSS.

    Thanks.

  • Suggested answer
    steveendow Profile Picture
    2,281 on at

    Hi Kajal,

    It looks like you are missing part of the BC API URL, and in your second screen shot, it looks like you're mixing a web service URL, as I see "ODataV4" in the URL.

    You should be able to use the BC Web API to retrieve a purchase invoice, without using an OData URL.

    For example:

    https://api.businesscentral.dynamics.com/v2.0/mycompany/Production/api/v2.0/companies(a19fb153-0632-4e09-bad7-ccb78bd13dac)/purchaseInvoices(12b51fb8-c688-ea11-a813-000d3a10d090)
    Let me know if this helps.
    pastedimage1613767697837v1.png
  • Rishikesh Tiwari Profile Picture
    130 on at

    Can you share Request Body text

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,151

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,443 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,092 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans