Get Stock Transfer Listing (Simple)
Get stock transfer listing using simple date filter.
Request
GET:/{accountBookId}/stockTransfer/listing
Request Parameters
Parameter | Description | Type | |
---|---|---|---|
page | Page index of returned records. Each page contains at most 100 records. Using a page index beyond the number of available pages will result in empty result. | number | required |
startDate | Starting date range. Returns document records where docDate falls on startDate or later. | date | nullable |
endDate | Ending date range. Returns document records where docDate falls on startDate or earlier. | date | nullable |
Example Request URL:
Parameters:accountBookId
= 1 page
= 1 startDate
= 2023-01-06 endDate
= 2023-05-06 URL:
GET: https://accounting-api.autocountcloud.com/1/stocktransfer/listing?page=1&startDate=2023-01-06&endDate=2023-05-06
Response
Success Response
Status Code: 200
Response Body
Field | Description | Type |
---|---|---|
data | Response data. | array[Stock Transfer View Model] |
totalCount | Number of records retrieved. | number |
Example Success Response Body
{
"data": [
{
"master": {
"docKey": 44,
"docNo": "XFER-000001",
"docDate": "2023-03-14T00:00:00",
"fromLocation": null,
"toLocation": null,
"ref": "",
"description": "Transfer Shirts from HQ to Warehouse",
"note": "",
"reason": "Insufficient storage space",
"authorisedBy": "Mr Kam",
"remark1": "",
"remark2": "",
"remark3": "",
"remark4": "",
"cancelled": false,
"total": 100000.00,
"createdTimeStamp": "2023-03-14T14:15:34.8529222",
"createdUserID": "ADMIN",
"lastModified": "2023-03-14T14:45:26.323535",
"lastModifiedUserID": "ADMIN"
},
"details": [
{
"docKey": 44,
"dtlKey": 157,
"inDtlKey": 158,
"seq": 0,
"stockId": 0,
"stockCode": "P-00001",
"description": "Shirt",
"furtherDescription": "",
"qty": 500.00000000,
"unitCost": 200.00000000,
"subTotal": 100000.00,
"deptNo": null
}
]
}
],
"totalCount": 1
}
Error Response
Response Body
object: Error Response Model
Example Error Response Body
{
"statusCode": 401,
"message": "401 Unauthorized."
}