Skip to main content

Get Payment Knock Off Details

Request

GET:/{accountBookId}/payment/knockOffDetails

Request Parameters

ParameterDescriptionType
docNoDocument number of record.stringrequired

Example Request URL:

Parameters:
accountBookId = 1
docNo = PV-000001

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

Response

Success Response

Status Code: 200

Response Body

object: array[Document Knock Off View Model]

Example Success Response Body
 [
{
"knockOffKey": 90,
"knockOffDocNo": "KO-000001",
"knockOffDate": "2023-03-06T00:00:00",
"knockOffAmount": 472.50,
"localKnockOffAmount": 472.50,
"debitDetails": [
{
"knockOffKey": 90,
"knockOffAmount": 472.50,
"localKnockOffAmount": 472.50,
"sourceDocNo": "PV-000001",
"sourceDocKey": 92,
"sourceDtlKey": 264,
"sourceDocType": "PV"
}
],
"creditDetails": [
{
"knockOffKey": 90,
"knockOffAmount": -472.50,
"localKnockOffAmount": -472.50,
"sourceDocNo": "PI-000001",
"sourceDocKey": 84,
"sourceDtlKey": null,
"sourceDocType": "PI"
}
]
}
]

Error Response

Response Body

object: Error Response Model

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