By using this Isah Finance API, you can create a new general day book page with one or more lines. If the call is successful, the day book processing will be started.
Call
finance-api/GeneralDayBooks/
Content
A JSON object containing a daybook page and one or more lines as nested JSON objects:
{
"Company": {string},
"FiscalYear": {string},
"DayBook": {string},
"Period": {integer},
"PageDescription": {string},
"Lines": [
{
"Account": {string},
"Debtor": {string},
"Creditor": {string},
"Description": {string},
"InvoiceReference": {string},
"CostCenterCode": {string},
"CostCategoryCode": {string},
"VATFinCode": {string}
"CurrencyCode": {string},
"CurrencyVATAmount": {floating point},
"CurrencyAmount": {floating point},
"TransactionDate": {string that represents a date}
}
]
Some of the members are mandatory and others are optional, as indicated in the tables below:
Page
Field |
Description |
Mandatory |
Validations |
Company |
Company code |
Y |
Company code exists |
FiscalYear |
Fiscal year |
Y |
|
DayBook |
Day book code |
Y |
|
Period |
Period |
Y |
|
PageDescription |
Page description |
Y |
|
Lines
Field |
Description |
Mandatory |
Validations |
Account |
Ledger account |
Y |
|
Debtor |
Debtor code |
|
Debtor is present in the company/fiscal year |
Creditor |
Creditor code |
|
Creditor is present in the company/fiscal year |
Description |
Description |
Y |
|
InvoiceReference |
Invoice reference |
|
Invoice reference does not exist |
CostCenterCode |
Cost center code |
Y, when set to mandatory |
|
CostCategoryCode |
Cost category code |
|
Line cost category code exists |
VATFinCode |
VAT code |
Y, when set to mandatory |
|
CurrencyCode |
Currency code |
|
Currency code exists |
CurrencyVATAmount |
Line VAT amount |
|
|
CurrencyAmount |
Line amount incl. VAT |
Y |
|
Http Method
POST
Return value
The return value of the call depends on the outcome:
The day book processing will be started by Isah Finance (asynchronous).