Skip to main content

Get Credit Note Knock Off Details

Request

GET:/{accountBookId}/creditNote/knockOffDetails

Request Parameters

ParameterDescriptionType
docNoDocument number of record.stringrequired

Example Request URL:

Parameters:
accountBookId = 1
docNo = CN-000001

URL:
GET: https://accounting-api.autocountcloud.com/1/creditnote/knockoffdetails?docNo=CN-000001

Response

Success Response

Status Code: 200

Response Body

object: array[Document Knock Off View Model]

Example Success Response Body
[
{
"knockOffKey": 91,
"knockOffDocNo": "KO-000003",
"knockOffDate": "2023-03-06T00:00:00",
"knockOffAmount": 472.50,
"localKnockOffAmount": 472.50,
"debitDetails": [
{
"knockOffKey": 91,
"knockOffAmount": 472.50,
"localKnockOffAmount": 472.50,
"sourceDocNo": "PV-000002",
"sourceDocKey": 95,
"sourceDtlKey": 280,
"sourceDocType": "PV"
}
],
"creditDetails": [
{
"knockOffKey": 91,
"knockOffAmount": -472.50,
"localKnockOffAmount": -472.50,
"sourceDocNo": "CN-000001",
"sourceDocKey": 56,
"sourceDtlKey": null,
"sourceDocType": "CN"
}
]
}
]

Error Response

Response Body

object: Error Response Model

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