Get Purchase Invoice Knock Off Details
Request
GET:/{accountBookId}/purchaseInvoice/knockOffDetails
Request Parameters
Parameter | Description | Type | |
---|---|---|---|
docNo | Document number of record. | string | required |
Example Request URL:
Parameters:accountBookId
= 1 docNo
= PI-000001 URL:
GET: https://accounting-api.autocountcloud.com/1/purchaseinvoice/knockoffdetails?docNo=PI-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."
}