Skip to main content
Solved

rest API

  • February 19, 2023
  • 6 replies
  • 461 views

Dears, Kindly need your help
Could I remove (id, rownumber and note  ) from response? How?
Could I return InventoryId:Ac316 direct not like object? How?
 

Best answer by andriikravetskyi35

if you want to remove item, you can send DELETE request to StockItem endpoint, Acumatica REST API support all types of requests. Also you can extend Default endpoint and add needed actions to endpoint like on screen shot:

 

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

6 replies

Kulvir Kaila
Jr Varsity I
Forum|alt.badge.img+1
  • Jr Varsity I
  • 61 replies
  • February 19, 2023

You can append $select=InventoryID at the end of your GET/POST URL to filter out specific fields that you want returned from the API call.

Example:
https://{{baseUrl}}/entity/Default/20.200.001/StockItem/100-000001?$select=InventoryID

Now, this will still return JSON with a value field within the Inventory object.  One suggestion is to create a generic type that can help you deserialize the object.


  • Author
  • Freshman I
  • 2 replies
  • February 20, 2023

Thanks for your help, But we are already using $select . You can check attached file. 
I need to remove (id, rownumber and note  ) from response


andriikravetskyi35
Jr Varsity I
Forum|alt.badge.img+1

if you want to remove item, you can send DELETE request to StockItem endpoint, Acumatica REST API support all types of requests. Also you can extend Default endpoint and add needed actions to endpoint like on screen shot:

 


darylbowman
Captain II
Forum|alt.badge.img+13

I don't believe I can help you do what you're asking, but maybe you could explain why you can only have a single value and we could try to figure out a way to get around that.


  • Author
  • Freshman I
  • 2 replies
  • February 21, 2023

@darylbowman Thanks for your support , I need your help to retrieve a response from rest API ,
That can represent every InventoryCD with array of SitedCD  

 

Thanks


darylbowman
Captain II
Forum|alt.badge.img+13

I’m not sure I can help much more than to point you to the Acumatica documentation for Rest API. There may be some limitations to what you can return. If you would post the code where you are making the API requests, perhaps someone could help you parse out the values you need. 


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