Get Invoice Knock Off Details
Request
GET:/{accountBookId}/invoice/knockOffDetails
Request Parameters
Parameter | Description | Type | |
---|---|---|---|
docNo | Document number of record. | string | required |
Example Request URL:
Parameters:accountBookId
= 1 docNo
= I-000001 URL:
GET: https://accounting-api.autocountcloud.com/1/invoice/knockoffdetails?docNo=I-000001
Response
Success Response
Status Code: 200
Response Body
object: array[Document Knock Off View Model]
Example Success Response Body
[
{
"knockOffKey": 101,
"knockOffDocNo": "KO-000003",
"knockOffDate": "2023-03-14T00:00:00",
"knockOffAmount": 472.50,
"localKnockOffAmount": 472.50,
"debitDetails": [
{
"knockOffKey": 101,
"knockOffAmount": 472.50,
"localKnockOffAmount": 472.50,
"sourceDocNo": "I-000001",
"sourceDocKey": 121,
"sourceDtlKey": null,
"sourceDocType": "IV"
}
],
"creditDetails": [
{
"knockOffKey": 101,
"knockOffAmount": -472.50,
"localKnockOffAmount": -472.50,
"sourceDocNo": "JV-000002",
"sourceDocKey": 293,
"sourceDtlKey": 627,
"sourceDocType": "JE"
}
]
}
]
Error Response
Response Body
object: Error Response Model
Example Error Response Body
{
"statusCode": 401,
"message": "401 Unauthorized."
}