Create Journal Entry
Request
POST:/{accountBookId}/journalEntry
Request Body
object: Journal Entry Input Model
Example Request Body
{
"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": null,
"localTaxAdjustment": null,
"tariffCode": "",
"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": null,
"localTaxAdjustment": null,
"tariffCode": "",
"taxExportCountry": "",
"taxPermitNo": "",
"taxBRNo": "",
"taxRefNo": "",
"taxRegisterNo": "",
"taxBillDate": null,
"salesAgent": "",
"name": "",
"inclusiveTax": false,
"deptNo": ""
}
],
"autoFillOption": {
"taxCode": false,
"tariffCode": false
},
"saveApprove": null
}
Example Request URL:
Parameters:accountBookId
= 1 URL:
POST: https://accounting-api.autocountcloud.com/1/journalentry
Response
Success Response
Code: 201
Response Headers
location
: The link to the created record, similar to request url in Get Journal Entry API method.
Example Success Response Headers
content-length: 0
date: Tue,14 Mar 2023 03:51:08 GMT
location: https://accounting-api.autocountcloud.com/1/journalentry?docNo=JV-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-14T03:51:57.7828255Z
Error Response
Response Body
object: Error Response Model
Example Error Response Body
{
"statusCode": 401,
"message": "401 Unauthorized."
}