Get Items through API request?

I want to get items through api request , I am getting data but that is not enough, I am able to get just ID of the items not the full data along with description. Is there any way to this?

Hi,

You need to do second API call using the ID to get the details of that Item.

Thanks,

Divyesh Mangroliya

1 Like

Thanks buddy

It can be done with 1 call.

You can specify that you would like additional fields in the url:
/api/resource/Item?filters={“company”:“Time%20Laboratories”}&fields=[“company”,“description”,“disabled”,“item_name”,“name”]

Certain fields are not allowed though… I don’t know of any documentation that specifies which or why.

For example it says “frappe.exceptions.DataError: Field not permitted in query: barcode” when I ask it to give me that list. Perhaps lists aren’t supported? I may create a separate issue because I’d certainly like to know.