Post Counter Journal Lines

Allows the user to post a new Counter Journal Line. To use default API journal template and batch - open at least once Counter Journal Page - it will create default API journal template and batch automatically. To ensure that it is created search for 'Counter Journal Templates' and visit the proper page. API template should have the proper value in the 'API Template' checkbox.

Uri

POST /api/dynaway/eam/beta/companies({{CompanyID}})/counterJnlLines

Parameters

CompanyID
- ID of the Company.
Journal_Template_Name
- Length: <=10 characters. Used Journal Template must exist in the database.
Journal_Batch_Name
- Length: <=10 characters. Used Journal Batch must exist in the database.
Line_Number
- Multiple of 10000.
Counter_No.
- Length: <=20 characters. Used Counter must exist in the database.
Posting_Date
- Format: "YYYY-MM-DD".
Reading_Value

Form Data

{
            "journalTemplateName": "Journal_Template_Name",
            "journalBatchName": "Journal_Batch_Name",
            "lineNumber": Line_Number,
            "counterNo": "Counter_No.",
            "postingDate": "Posting_Date",
            "readingValue": Reading_Value
}
or with default API measurement journal batch and template
{
            "counterNo": "Counter_No.",
            "postingDate": "Posting_Date",
            "readingValue": Reading_Value
}

JSON Response

{
    "journalTemplateName": "DEFAULT",
    "journalBatchName": "DEFAULT",
    "lineNumber": 10000,
    "id": "08ab7775-824e-eb11-89f8-0022481ff96a",
    "counterNo": "COUNTER 2",
    "counterCategoryCode": "RH",
    "postingDate": "2020-12-25",
    "readingValue": 10,
    "description": "Second counter on hall",
    "externalDocumentNumber": ""
}
Copyright Dynaway A/S