Skip to main content
Solved

How to fetch the invoices related to a specified sales order via REST API

  • February 27, 2025
  • 1 reply
  • 47 views

I’m trying to create credit memos via REST API and to do that I need the invoice related to a certain refunded sales order so that I can apply the credit memo on it, I looked the docs but I can only see how to retrieve all invoices, I also looked up the interface and apparently there’s no mention on the sales order anyway on the invoice page, if anyone has had a similar issue please advise !!

Best answer by Dmitrii Naumov

@HAN  when getting a sales order form API you can add $expand=Shipments.

It’ll give you list of shipments and invoices for the specific SO. 

Then you can retrieve the invoices.

View original
Did this topic help you find an answer to your question?

Dmitrii Naumov
Acumatica Moderator
Forum|alt.badge.img+7

@HAN  when getting a sales order form API you can add $expand=Shipments.

It’ll give you list of shipments and invoices for the specific SO. 

Then you can retrieve the invoices.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings