Create Journal Entry API
This function creates a new Journal Entry in Hyper's journal table.Use HTTP post to pass the fields into the function. The response will return as json string.
In order to use this API call, invoke the DOMAIN/Create_Journal_Entry_json URL.
Function Input
The following fields are mandatory:
Field Name | Description |
---|---|
DebitAccount | Integer - The existing Debit Account number within one of the following Hyper tables: Suppliers / Clients / Accounts. |
CreditAccount | Integer - The existing Credit Account number within one of the following Hyper tables: Suppliers / Clients / Accounts. |
Description | String (up to 120 Chars Unicode) - Description of the Entry. |
Amount | Real/Float - The Amount of the Entry. Should be a positive number (more than 0). |
Field Name | Description |
---|---|
Currency | Currency of the bookkeeping Entry in Uppercase Acronym (ILS / USD / EUR ...). If this field will be sent empty, the Entry will get the system's default Bookkeeping Currency (Defined in Hyper). |
Functions Error Messages
Response Code | Message in English |
---|---|
3 | API function does not exists. |
4 | Database Error on server side. |
5 | Technical Error on server side. |
7 | Required Fields error |
70 | The Amount is incorrect |
71 | Credit and Debit accounts cannot be identical |
72 | Debit / Credit Account is wrong |
Report Function Output
{
"ResponseCode": "071",
"ResponseMsgEng": "Credit and Debit accounts cannot be identical"
}
{
"Create_Journal_Entry_json": "OK",
"EntryID": "5"
}