Get Stock Adjustment Listing (Specific)
Get stock adjustment listing using specific listing filters.
Request
POST:/{accountBookId}/stockAdjustment/listing
Request Body
object: Stock Adjustment Listing Input Model
Example Request Body
Get stock adjustment listing using a date filter
Available date filters for stock adjustment records are date
, createdDate
and lastModifiedDate
.
Add date filters in stock adjustment listing filter input model according to your needs.
Example: Get stock adjustment records with document date falling between a specific date range.
Date formats for from
and to
fields can be found here.
{
"page": 1,
"filter": {
"date": {
"from": "2022-05-02",
"to": "2023-05-02"
}
}
}
Get stock adjustment listing using a string filter
Available string filter for stock adjustment records is docNo
.
Example: Get stock adjustment records with specific document numbers.
For filtering specific string values, use the multiSelect
field in the filter.
{
"page": 1,
"filter": {
"docNo": {
"multiSelect": ["ADJ-000001", "ADJ-000002"]
}
}
}
Example: Get stock adjustment records with document number falling between a range of string values.
For filtering a range of string values, use the from
and to
fields in the filter.
{
"page": 1,
"filter": {
"docNo": {
"from": "ADJ-000001",
"to": "ADJ-000005"
}
}
}
Composite example:
{
"page": 1,
"filter": {
"date": {
"from": "2023-01-06",
"to": "2023-05-06"
},
"docNo": {
"multiSelect": ["ADJ-000001","ADJ-000003","ADJ-000005"]
}
}
}
Example Request URL:
Parameters:accountBookId
= 1 URL:
POST: https://accounting-api.autocountcloud.com/1/stockadjustment/listing
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"
},
"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."
}