Skip to main content

Create Knock Off Entry

Request

POST:/{accountBookId}/knockOffEntry

Request Body

object: Knock Off Entry Input Model

Example Request Body
  • Each detail row with debtor/creditor account will produce a transaction to be knocked off.
  • Debit & credit amount is specified using number signs before the value. Debit amount to be knocked off should be preceeded by a (+) sign while credit amount to be knocked off should be preceeed by a (-) sign.
  • Knock Off Amount will be applied automatically according to the debit and credit amount specified.
{
"master": {
"accNo": "300-D002",
"docNo": "KO-000001",
"docDate": "2023-03-15",
"docNoFormatName": null,
"deptNo": ""
},
"details": [
{
"docNo": "JV-000003",
"docType": "JE",
"knockOffAmount": 472.50
},
{
"docNo": "CN-000001",
"docType": "CN",
"knockOffAmount": -472.50
}
]
}

Example Request URL:

Parameters:
accountBookId = 1

URL:
POST: https://accounting-api.autocountcloud.com/1/knockOffEntry

Response

Success Response

Code: 201

Response Headers

location: The link to the created record, similar to request url in Get Payment API method.

Example Success Response Headers
content-length: 0 
date: Tue,14 Mar 2023 09:19:52 GMT
location: https://accounting-api.autocountcloud.com/1/knockoffentry?docNo=KO-000001
server: Microsoft-IIS/10.0
x-powered-by: ASP.NET
x-rate-limit-limit: 1m
x-rate-limit-remaining: 99
x-rate-limit-reset: 2023-03-14T09:20:49.9513771Z

Error Response

Response Body

object: Error Response Model

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