Create Stock Adjustment
Request
POST:/{accountBookId}/stockAdjustment
Request Body
object: Stock Adjustment Input Model
Example Request Body
{
"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": 200,
"unitCost": 200,
"location": "HQ",
"deptNo": ""
}
],
"autoFillOption": {
"unitCost": false
},
"saveApprove": null
}
Example Request URL:
Parameters:accountBookId
= 1 URL:
POST: https://accounting-api.autocountcloud.com/1/stockadjustment
Response
Success Response
Code: 201
Response Headers
location
: The link to the created record, similar to request url in Get Stock Adjustment API method.
Example Success Response Headers
content-length: 0
date: Tue,14 Mar 2023 08:06:24 GMT
location: https://accounting-api.autocountcloud.com/1/stockadjustment?docNo=ADJ-000001
server: Microsoft-IIS/10.0
x-powered-by: ASP.NET
x-rate-limit-limit: 1m
x-rate-limit-remaining: 98
x-rate-limit-reset: 2023-03-14T08:06:48.5824316Z
Error Response
Response Body
object: Error Response Model
Example Error Response Body
{
"statusCode": 401,
"message": "401 Unauthorized."
}