Quantity Adjustment
Use this API to adjust stock for the variant.
OAuthScope
ZohoCommerce.inventoryadjustments.CREATE
HTTP Request
POSThttps://commerce.zoho.com/store/api/v1/inventoryadjustments
Body Parameters
| Parameters | Description |
adjustment_type | string: Type of adjustment. Possible value: quantity. |
reason | string: Reason for the adjustment |
line_items | array: Give set of variant_id and quantity adjustment value |
item_id | long: Give unique variant ID that denotes the item |
quantity_adjusted | double: Give adjustment value for the variant. To increase, give the value in positive and to decrease give the value in negative. |
Request Example
Copiedcurl -i -X POST \
-H "X-com-zoho-store-organizationid:726904085" \
-H "Authorization:Zoho-oauthtoken ***" \
-d \
'{"line_items":[{"item_id":"2383680000000160001","quantity_adjusted":"3.000000"}],"reason":"Inventory Revaluation","adjustment_type":"quantity"}' \
'https://commerce.zoho.com/store/api/v1/inventoryadjustments'
Success Response
Copied{
"code": 0,
"message": "Inventory Adjustment has been added",
"inventory_adjustment": {
"inventory_adjustment_id": "2383680000000234002",
"date": "2020-12-03",
"reason": "Inventory Revaluation",
"reason_id": "2383680000000071185",
"description": "",
"status": "adjusted",
"reference_number": "",
"adjustment_type": "quantity",
"line_items":[
{
"line_item_id": "2383680000000234004",
"item_id": "2383680000000160001",
"name": "test_item",
…
}
],
"total": 4500.00,
"created_time": "2020-12-03T10:41:39+0530",
"last_modified_time": "2020-12-03T10:41:39+0530",
"created_by_id": "2383680000000071009",
"last_modified_by_id": "2383680000000071009",
"created_by_name": "...",
"custom_fields": [],
"custom_field_hash": {}
}
}