Skip to main content
Solved

Deleting Details from Expense Claims and Journal Transactions

  • Jun 26, 2024 8:57 PM UTC
  • 4 replies
  • 127 views
  • Translate All

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. 

View original

4 replies

Dmitrii Naumov
Community Manager
Forum|alt.badge.img+7
  • Community Manager
  • Answer
  • Jun 26, 2024 9:10 PM UTC

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

Translate

Forum|alt.badge.img
  • Author
  • Freshman I
  • Jun 26, 2024 10:38 PM UTC

Got it - thank you!

Translate

Forum|alt.badge.img
  • Author
  • Freshman I
  • Jun 27, 2024 11:43 PM UTC

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

Translate

Forum|alt.badge.img
  • Author
  • Freshman I
  • Jun 28, 2024 12:18 PM UTC

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
}

 

Translate