Get Purchase Return Knock Off Details
Request
GET:/{accountBookId}/purchaseReturn/knockOffDetails
Request Parameters
Parameter | Description | Type | |
---|---|---|---|
docNo | Document number of record. | string | required |
Example Request URL:
Parameters:accountBookId
= 1 docNo
= PR-000001 URL:
GET: https://accounting-api.autocountcloud.com/1/purchasereturn/knockoffdetails?docNo=PR-000001
Response
Success Response
Status Code: 200
Response Body
object: array[Document Knock Off View Model]
Example Success Response Body
[
{
"knockOffKey": 92,
"knockOffDocNo": "KO-000004",
"knockOffDate": "2023-03-06T00:00:00",
"knockOffAmount": 472.50,
"localKnockOffAmount": 472.50,
"debitDetails": [
{
"knockOffKey": 92,
"knockOffAmount": 472.50,
"localKnockOffAmount": 472.50,
"sourceDocNo": "PR-000001",
"sourceDocKey": 15,
"sourceDtlKey": null,
"sourceDocType": "PR"
}
],
"creditDetails": [
{
"knockOffKey": 92,
"knockOffAmount": -472.50,
"localKnockOffAmount": -472.50,
"sourceDocNo": "OR-000002",
"sourceDocKey": 94,
"sourceDtlKey": 277,
"sourceDocType": "OR"
}
]
}
]
Error Response
Response Body
object: Error Response Model
Example Error Response Body
{
"statusCode": 401,
"message": "401 Unauthorized."
}