Skip to main content
Solved

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

  • February 27, 2025
  • 1 reply
  • 103 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.

1 reply

Dmitrii Naumov
Acumatica Moderator
Forum|alt.badge.img+7
  • Acumatica Moderator
  • Answer
  • February 27, 2025

@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.