Skip to main content
Solved

Releasing Refund using Rest api - Release Action

  • May 1, 2025
  • 6 replies
  • 109 views

Driss
Jr Varsity III
Forum|alt.badge.img

Hi Team 

 

hope you are doing well,

 

POST /Release

 

i’m trying to release refund type in the payment object using rest api 

 

{    "entity": {        "Type": { "value": "Refund" },        "ReferenceNbr": { "value": "000077" }    }}the response is {  "statusCode": 202}

 

 

but when i check the page in Acumatica the refund the release button is still there 


Thanks

Best answer by Vignesh Ponnusamy

@Driss, When you release the action from UI, does it release without any issue/errors?

6 replies

Dmitrii Naumov
Acumatica Moderator
Forum|alt.badge.img+7
  • Acumatica Moderator
  • May 1, 2025

@Driss for release you need 

POST: /entity/Default/24.200.001/Payment/ReleasePayment

 

Also, the 202 status means the request has been accepted, but it does not mean it has been completed successfully. To check if the action completed you’d need to query the action status. 

See return codes description here: https://help.acumatica.com/Help?ScreenId=ShowWiki&pageid=91bf9106-062a-47a8-be1f-b48517a54324


Driss
Jr Varsity III
Forum|alt.badge.img
  • Author
  • Jr Varsity III
  • May 1, 2025

@Dmitrii Naumov Hi Thanks for your answer, i’ve tried this endpoint but it didn’t release the refund 

also the only version i see in my web services page is 23.200.001

 

POST: /entity/Default/24.200.001/Payment/ReleasePayment


 "entity" :
 {
  "Type" : {"value" : "Refund"}, 
  "ReferenceNbr" : {"value" : "165683"} 
 },
 "parameters" : 
 {}
}


Vignesh Ponnusamy
Acumatica Moderator
Forum|alt.badge.img+5

Hi ​@Driss

I think you need to use the Value of the Type field instead of description, instead of Refund try using REF.

You can inspect the element and check the drop-down values from there,

 


Driss
Jr Varsity III
Forum|alt.badge.img
  • Author
  • Jr Varsity III
  • May 1, 2025

@Vignesh Ponnusamy Thanks, now it changed from 202 to 200 

 

 

POST: /entity/Default/23.200.001/Payment/ReleasePayment


 "entity" :
 {
  "Type" : {"value" : "REF"}, 
  "ReferenceNbr" : {"value" : "165683"} 
 },
 "parameters" : 
 {}
}


  {
    "statusCode": 200,
    "_json": {},
    "_headers": {
      "cache-control": "private",
      "location": "/entity/lysi/23.200.001/Payment/ReleasePayment/status


but still see the release button, that wierd


Vignesh Ponnusamy
Acumatica Moderator
Forum|alt.badge.img+5

@Driss, When you release the action from UI, does it release without any issue/errors?


Driss
Jr Varsity III
Forum|alt.badge.img
  • Author
  • Jr Varsity III
  • May 1, 2025

@Vignesh Ponnusamy you are right i got this 

AR Error: The balance of Credit Memo: 308886 will exceed the document's total amount. The document will not be released.