Skip to main content

Create Stock Transfer

Request

POST:/{accountBookId}/stockTransfer

Request Body

object: Stock Transfer Input Model

Example Request Body
{
"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": "",
"remark1": "",
"remark2": "",
"remark3": "",
"remark4": ""
},
"details": [
{
"stockCode": "P-00001",
"description": "Shirt",
"furtherDescription": "",
"qty": 500,
"unitCost": 200,
"deptNo": ""
}
],
"autoFillOption": {
"unitCost": false
},
"saveApprove": null
}

Example Request URL:

Parameters:
accountBookId = 1

URL:
POST: https://accounting-api.autocountcloud.com/1/stocktransfer

Response

Success Response

Code: 201

Response Headers

location: The link to the created record, similar to request url in Get Stock Transfer API method.

Example Success Response Headers
content-length: 0 
date: Tue,14 Mar 2023 06:38:42 GMT
location: https://accounting-api.autocountcloud.com/1/stocktransfer?docNo=XFER-000001
server: Microsoft-IIS/10.0
x-powered-by: ASP.NET
x-rate-limit-limit: 1m
x-rate-limit-remaining: 99
x-rate-limit-reset: 2023-03-14T06:39:38.9252786Z

Error Response

Response Body

object: Error Response Model

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