RestAPI + Add Item

Good Day

Anyone who could provide source code to Add Item via API python code.

Thank You
Albertus Geyser

You can use the APIs explained here
https://frappe.io/docs/user/en/guides/integration/rest_api
for CRUD purposes, these APIs already existed in the frappe for example if you want to create new item in ERPNext you can use POST method in your client side like sending POST request to
http://yourserver/api/resource/Item
and data in the body will be like:
data={“item_code”: “001”, “item_group”: “xyz”, “default_uom”: “kg”, “is_stock_item”: 1}
if your request source is a different server than the targent you should allow the CORS in the target nigix server as such:

1 Like

Good Day

Thank You for response will try and inform.

Thank You