Manage Stock
OAuthScope
ZohoCommerce.inventoryadjustments.CREATE
HTTP Request
POST https://commerce.zoho.com/store/api/v1/inventoryadjustments
Body Parameters
Parameter | Description |
reason* | string: Reason for stock adjustment |
adjustment_type* | string: Adjustment type should be "quantity" |
line_items* | array: Give a list of all the items along with adjustment quantity |
item_id* | long: Give variant_id of the product that need to be adjusted |
quantity_adjusted* | string: The adjusted quantity of the line item |
Sample Request
Copiedcurl -i -X POST \
-H "Authorization:Zoho-oauthtoken 1000.a4c396b6dcb3dc4217aa6622dc59e783.93087120c41eece952b8541e559166a0" \
-H "X-com-zoho-store-organizationid:726904085" \
-d \
'{"line_items":[{"item_id":"2383680000000193186","quantity_adjusted":"-2"},{"item_id":"2383680000000193234","quantity_adjusted":"10"},{"item_id":"2383680000000918042","quantity_adjusted":"12"}],"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":"2383680000001124045",
"reason":"Inventory Revaluation",
"reason_id":"2383680000000071185",
"description":"",
"status":"adjusted",
"reference_number":"",
"adjustment_type":"quantity",
"line_items": [ {
"line_item_id":"2383680000001124047",
"item_id":"2383680000000193186",
"name":"Adidas Shoe-Large-Black-Cotton",
"sku":"11201000",
"description":"",
"is_combo_product":false,
"adjustment_account_id":"2383680000000034003",
"adjustment_account_name":"Cost of Goods Sold",
"asset_account_id":"2383680000000034001",
"asset_account_name":"Inventory Asset",
"quantity_adjusted":-2.000000,
"quantity_adjusted_formatted":-2.00,
...
}, {
"line_item_id":"2383680000001124049",
"item_id":"2383680000000193234",
"name":"Reebok Shoe-Brown-Cotton-Large",
"sku":"12233333",
"description":"",
"is_combo_product":false,
"adjustment_account_id":"2383680000000034003",
"adjustment_account_name":"Cost of Goods Sold",
"asset_account_id":"2383680000000034001",
"asset_account_name":"Inventory Asset",
"quantity_adjusted":10.000000,
...
}, {
"line_item_id":"2383680000001124051",
"item_id":"2383680000000918042",
"name":"Test-M",
"sku":"HJK",
"description":"",
"is_combo_product":false,
"adjustment_account_id":"2383680000000034003",
"adjustment_account_name":"Cost of Goods Sold",
"asset_account_id":"2383680000000034001",
"asset_account_name":"Inventory Asset",
"quantity_adjusted":12.000000,
...
} ],
"comments":[ {
"comment_id":"2383680000001124063",
"description":"Inventory Adjustment created.",
...
}],
...
} }
Show full
Show less