Skip to main content

Update Stock Adjustment

Request

PUT:/{accountBookId}/stockAdjustment

Request Parameters

ParameterDescriptionType
docNoDocument number of record.stringrequired

Request Body

object: Stock Adjustment Input Model

Example Request Body

Example: Update qty value in stock adjustment detail for record created in Create Stock Adjustment.

{
"master": {
"docNo": "ADJ-000001",
"docNoFormatName": null,
"docDate": "2023-03-14",
"ref": "",
"description": "Tally up Shirt stock in HQ",
"note": "",
"remark1": "",
"remark2": "",
"remark3": "",
"remark4": ""
},
"details": [
{
"stockCode": "P-00001",
"description": "Shirt",
"furtherDescription": "",
"qty": 300,
"unitCost": 200,
"location": "HQ",
"deptNo": ""
}
],
"autoFillOption": {
"unitCost": false
}
}

Example Request URL:

Parameters:
accountBookId = 1
docNo = ADJ-000001

URL:
PUT: https://accounting-api.autocountcloud.com/1/stockadjustment?docNo=ADJ-000001

Response

Success Response

Code: 204

Error Response

Response Body

object: Error Response Model

Example Error Response Body
{
"statusCode": 401,
"message": "401 Unauthorized."
}