Get Stock Adjustment Listing (Simple)
Get stock adjustment listing using simple date filter.
Request
GET:/{accountBookId}/stockAdjustment/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/stockadjustment/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 Adjustment View Model] |
totalCount | Number of records retrieved. | number |
Example Success Response Body
{
"data": [
{
"master": {
"docKey": 22,
"docNo": "ADJ-000001",
"docDate": "2023-03-14T00:00:00",
"ref": null,
"description": "Tally up Shirt stock in HQ",
"note": null,
"remark1": null,
"remark2": null,
"remark3": null,
"remark4": null,
"cancelled": false,
"total": 40000.00,
"createdTimeStamp": "2023-03-14T15:49:44.2445234",
"createdUserID": "ADMIN",
"lastModified": "2023-03-14T16:03:55.9983846",
"lastModifiedUserID": "ADMIN",
"status": "Approved",
"approverID": "ADMIN",
"approvedTimeStamp": "2023-03-06T16:42:26.9875477",
"rejectReason": null
},
"details": [
{
"docKey": 22,
"dtlKey": 49,
"seq": 0,
"stockCode": "P-00001",
"description": "Shirt",
"furtherDescription": null,
"qty": 200.00000000,
"unitCost": 200.00000000,
"location": null,
"subTotal": 40000.00,
"deptNo": null
}
]
}
],
"totalCount": 1
}
Error Response
Response Body
object: Error Response Model
Example Error Response Body
{
"statusCode": 401,
"message": "401 Unauthorized."
}