Friday 23 March 2018

API for Item Adjustments in Zoho Inventory


API for Item Adjustments in Zoho Inventory :

1. Inventory Adjustment Creation
	Method: POST
	Link : https://inventory.zoho.com/api/v1/inventoryadjustments
	Parameters required: authtoken, organization_id
	JSONString:
		{
			"line_items": [
				{
					"item_id": "{item_id}",
					"name": "Black",
					"description": "",
					"quantity_adjusted": "6",
					"unit": "pcs",
					"adjustment_account_id": "{adjustment_account_id}",
					"warehouse_id": "{warehouse_id}"
				}
			],
			"date": "2017-01-09",
			"reason": "Inventory    Revaluation",
			"reference_number": "",
			"adjustment_type": "quantity"
		}
	{adjustment_account_id} is taken from the purchase_account_id node of item details.
	item_id is the unique identifier of the item to be adjusted.

2. Fetching list of Inventory Adjustments
	Method: GET
	Link : https://inventory.zoho.com/api/v1/inventoryadjustments
	Parameters required: authtoken, organization_id
3. Fetching details of an Inventory Adjustment 
	Method: GET
	Link : https://inventory.zoho.com/api/v1/inventoryadjustments/{inventory_adjustment_id}
	Parameters required: authtoken, organization_id
4. Inventory Adjustment Deletion
	Method: DELETE
	Link : https://inventory.zoho.com/api/v1/inventoryadjustments/{inventory_adjustment_id}
	Parameters required: authtoken, organization_id
	Replace {inventory_adjustment_id} with the ID created for inventory adjustment

Masters API GET method :

https://inventory.zoho.com/api/v1/inventoryadjustments/editpage?organization_id={organization_id}&authtoken={authtoken}