Skip to main content

Get Stock Adjustment

Request

GET:/{accountBookId}/stockAdjustment

Request Parameters

ParameterDescriptionType
docNoDocument number of record.stringrequired

Example Request URL:

Parameters:
accountBookId = 1
docNo = ADJ-000001

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

Response

Success Response

Status Code: 200

Response Body

object: Stock Adjustment View Model

Example Success Response Body
{
"master": {
"docKey": 22,
"docNo": "ADJ-000001",
"docDate": "2023-03-14T00:00:00",
"ref": null,
"description": "Tally up Shirt stock in HQ",
"note": null,
"remark1": null,
"remark2": null,
"remark3": null,
"remark4": null,
"cancelled": false,
"total": 40000.00,
"createdTimeStamp": "2023-03-14T15:49:44.2445234",
"createdUserID": "ADMIN",
"lastModified": "2023-03-14T16:03:55.9983846",
"lastModifiedUserID": "ADMIN",
"status": "Approved",
"approverID": "ADMIN",
"approvedTimeStamp": "2023-03-06T16:42:26.9875477",
"rejectReason": null
},
"details": [
{
"docKey": 22,
"dtlKey": 49,
"seq": 0,
"stockCode": "P-00001",
"description": "Shirt",
"furtherDescription": null,
"qty": 200.00000000,
"unitCost": 200.00000000,
"location": null,
"subTotal": 40000.00,
"deptNo": null
}
]
}

Error Response

Response Body

object: Error Response Model

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