Get Stock Transfer
Request
GET:/{accountBookId}/stockTransfer
Request Parameters
Parameter | Description | Type | |
---|---|---|---|
docNo | Document number of record. | string | required |
Example Request URL:
Parameters:accountBookId
= 1 docNo
= XFER-000001 URL:
GET: https://accounting-api.autocountcloud.com/1/stocktransfer?docNo=XFER-000001
Response
Success Response
Status Code: 200
Response Body
object: Stock Transfer View Model
Example Success Response Body
{
"master": {
"docKey": 44,
"docNo": "XFER-000001",
"docDate": "2023-03-14T00:00:00",
"fromLocation": null,
"toLocation": null,
"ref": null,
"description": "Transfer Shirts from HQ to Warehouse",
"note": null,
"reason": "Insufficient storage space",
"authorisedBy": null,
"remark1": null,
"remark2": null,
"remark3": null,
"remark4": null,
"cancelled": false,
"total": 100000.00,
"createdTimeStamp": "2023-03-14T14:15:34.8529222",
"createdUserID": "ADMIN",
"lastModified": "2023-03-14T14:15:34.8530466",
"lastModifiedUserID": "ADMIN",
"status": "Approved",
"approverID": "ADMIN",
"approvedTimeStamp": "2023-03-06T16:42:26.9875477",
"rejectReason": null
},
"details": [
{
"docKey": 44,
"dtlKey": 147,
"inDtlKey": 148,
"seq": 0,
"stockId": 0,
"stockCode": "P-00001",
"description": "Shirt",
"furtherDescription": null,
"qty": 500.00000000,
"unitCost": 200.00000000,
"subTotal": 100000.00,
"deptNo": null
}
]
}
Error Response
Response Body
object: Error Response Model
Example Error Response Body
{
"statusCode": 401,
"message": "401 Unauthorized."
}