Skip to main content
Answer

Deleting Details from Expense Claims and Journal Transactions

  • June 26, 2024
  • 4 replies
  • 72 views

Forum|alt.badge.img

Hi all,

Via the Rest API, is there a standard way to delete just the line items on Journal Transactions or Expense Claims? If you pass in an item in the Details param, it will add to the Details which makes sense. I’d like to avoid completely deleting the old transaction / claim then making a new one.

 

Thanks for your help!

Best answer by Dmitrii Naumov

@ryanmiter  there is “delete” field on each detail object. If you pass it as true, it’ll delete the detail. 

4 replies

Dmitrii Naumov
Acumatica Moderator
Forum|alt.badge.img+7
  • Acumatica Moderator
  • Answer
  • June 26, 2024

@ryanmiter  there is “delete” field on each detail object. If you pass it as true, it’ll delete the detail. 


Forum|alt.badge.img
  • Author
  • Freshman I
  • June 26, 2024

Got it - thank you!


Forum|alt.badge.img
  • Author
  • Freshman I
  • June 27, 2024

Hey Dmitrii - is that field only on a certain API version? I’m looking at the Web Services Endpoints screen and don’t see “Delete” in there on API version 22.200.001


Forum|alt.badge.img
  • Author
  • Freshman I
  • June 28, 2024

Actually I think I’ve figured this out - this isn’t a typical object field, we have to pass it in like this:

{
"id": "862bb93c-d734-ef11-8435-0eb71309dd15",
"delete": true
}