Skip to main content

Update Journal Entry

Request

PUT:/{accountBookId}/journalEntry

Request Parameters

ParameterDescriptionType
docNoDocument number of record.stringrequired

Request Body

object: Journal Entry Input Model

Example Request Body

Example: Update tariffCode value in journal entry detail for record created in Create Journal Entry.

{
"master": {
"docNo": "JV-000001",
"docNo2": "",
"docNoFormatName": null,
"docDate": "2023-03-14",
"taxDate": "2023-03-14",
"currencyCode": "MYR",
"currencyRate": 1,
"journalType": "GENERAL",
"description": "Payment for I-000003",
"note": ""
},
"details": [
{
"accNo": "300-D003",
"toAccountRate": 1,
"ref": "",
"description": "Payment for I-000003",
"furtherDescription": "",
"dr": 0,
"cr": 825,
"taxCode": "",
"taxAdjustment": 0,
"localTaxAdjustment": 0,
"tariffCode": "94036090",
"taxExportCountry": "",
"taxPermitNo": "",
"taxBRNo": "",
"taxRefNo": "",
"taxRegisterNo": "",
"taxBillDate": null,
"salesAgent": "",
"name": "",
"inclusiveTax": true,
"deptNo": ""
},
{
"accNo": "310-1000",
"toAccountRate": 1,
"ref": "",
"description": "Payment for I-000003",
"furtherDescription": "",
"dr": 825,
"cr": 0,
"taxCode": "",
"taxAdjustment": 0,
"localTaxAdjustment": 0,
"tariffCode": "",
"taxExportCountry": "",
"taxPermitNo": "",
"taxBRNo": "",
"taxRefNo": "",
"taxRegisterNo": "",
"taxBillDate": null,
"salesAgent": "",
"name": "",
"inclusiveTax": false,
"deptNo": ""
}
],
"autoFillOption": {
"taxCode": false,
"tariffCode": false
}
}

Example Request URL:

Parameters:
accountBookId = 1
docNo = JV-000001

URL:
PUT: https://accounting-api.autocountcloud.com/1/journalentry?docNo=JV-000001

Response

Success Response

Code: 204

Error Response

Response Body

object: Error Response Model

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