Skip to main content

Update Stock Transfer

Request

PUT:/{accountBookId}/stockTransfer

Request Parameters

ParameterDescriptionType
docNoDocument number of record.stringrequired

Request Body

object: Stock Transfer Input Model

Example Request Body

Example: Update authorisedBy value in stock transfer detail for record created in Create Stock Transfer.

{
"master": {
"docNo": "XFER-000001",
"docNoFormatName": null,
"docDate": "2023-03-14",
"fromLocation": "HQ",
"toLocation": "Warehouse",
"ref": "",
"description": "Transfer Shirts from HQ to Warehouse",
"note": "",
"reason": "Insufficient storage space",
"authorisedBy": "Mr Kam",
"remark1": "",
"remark2": "",
"remark3": "",
"remark4": ""
},
"details": [
{
"stockCode": "P-00001",
"description": "Shirt",
"furtherDescription": "",
"qty": 500,
"unitCost": 200,
"deptNo": ""
}
],
"autoFillOption": {
"unitCost": false
}
}

Example Request URL:

Parameters:
accountBookId = 1
docNo = XFER-000001

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

Response

Success Response

Code: 204

Error Response

Response Body

object: Error Response Model

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