Skip to main content

Get Knock Off Entry

Request

GET:/{accountBookId}/knockOffEntry

Request Parameters

ParameterDescriptionType
docNoDocument number of record.stringrequired

Example Request URL:

Parameters:
accountBookId = 1
docNo = KO-000001

URL:
GET: https://accounting-api.autocountcloud.com/1/knockOffEntry?docNo=KO-000001

Response

Success Response

Status Code: 200

Response Body

object: Knock Off Entry View Model

Example Success Response Body
{
"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
}
]
}

Error Response

Response Body

object: Error Response Model

Example Error Response Body
{
"statusCode": 401,
"message": "401 Unauthorized."
}