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

Business Central API Call for Second Invoice on a Sales Order

(0) ShareShare
ReportReport
Posted on by

Hello All!

This question is around using the BC API calls to pull back any additional PDF / salesInvoices beyond the first one initiated.

Order of Events:

  • Sales Order is put in
  • Partial order is Shipped & Invoiced - Invoice generates can be pulled from the UI
  • Through the API you are not able to get back the pdfDocument for the invoice while the Sales Order is still outstanding
  • Second portion of the order ships and a second invoice is generated (this is common to have two invoices for separate shipments) and is available in the UI
  • When querying the salesInvoices() resource you can see both Invoices with their respective number but "id": is the same (see below)
  • Now that the complete order has been shipped (in two shipments), when you hit the API for pdfDocument you are only able to get back the original invoice for the first POSTED invoice

I cannot find any documentation around either the pdfDocument or the salesInvoices that would allow for an additional parameter to select between the two posted sales invoices coming from the same order.
pastedimage1590072935240v1.png

pastedimage1590072962649v2.png

Any insight or documentation on how to make a call to pull them back selectively. In practice, I need to be able to call them individually not a combined call.

  • Suggested answer
    Marco Mels Profile Picture
    Microsoft Employee on at

    Hello,

    We currently do not have dedicated Dev support via the Dynamics 365 Business Central forums, but I wanted to provide you some additional resources to assist.  If you need assistance with debugging or coding I would recommend discussing this on one of our communities.

    www.yammer.com/dynamicsnavdev

    dynamicsuser.net/.../developers

    I will open this up to the community in case they have something to add.

    Thanks.

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

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 570 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 390 Super User 2026 Season 2

#3
Teagen Boll Profile Picture

Teagen Boll 220 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans