Get Knock Off Entry Listing (Simple)
Get knock off entry listing using simple date filter.
Request
GET:/{accountBookId}/knockOffEntry/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/knockOffEntry/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[Knock Off Entry View Model] |
totalCount | Number of records retrieved. | number |
Example Success Response Body
{
"data": [
{
"master": {
"knockOffKey": 120,
"accNo": "300-D002",
"companyName": "Customer B",
"currencyCode": "MYR",
"deptNo": null,
"docNo": "KO-000001",
"docDate": "2023-03-15T00:00:00",
"totalDR": 472.50,
"totalCR": 472.50,
"localTotalDR": 472.50,
"localTotalCR": 472.50,
"gainLoss": 0.00,
"createdTimeStamp": "2023-03-17T10:52:37.9344045",
"createdUserID": "ADMIN",
"lastModified": "2023-03-17T10:52:37.934556",
"lastModifiedUserID": "ADMIN"
},
"details": [
{
"knockOffKey": 120,
"koTransKey": 204,
"knockOffAmount": -472.50,
"localKnockOffAmount": -472.50,
"sourceType": "CN",
"sourceKey": 56,
"sourceDtlKey": null,
"docNo": "CN-000001",
"docDate": "2023-03-06T00:00:00",
"currencyCode": "MYR",
"currencyRate": 1.000000000000,
"amount": -472.50,
"localAmount": -472.50
},
{
"knockOffKey": 120,
"koTransKey": 240,
"knockOffAmount": 472.50,
"localKnockOffAmount": 472.50,
"sourceType": "JE",
"sourceKey": 294,
"sourceDtlKey": 631,
"docNo": "JV-000003",
"docDate": "2023-03-15T00:00:00",
"currencyCode": "MYR",
"currencyRate": 1.000000000000,
"amount": 472.50,
"localAmount": 472.50
}
]
}
],
"totalCount": 1
}
Error Response
Response Body
object: Error Response Model
Example Error Response Body
{
"statusCode": 401,
"message": "401 Unauthorized."
}