General Journal API Scenarios - kannanmdu/GTK GitHub Wiki
General Journal API Scenarios
-
Get All the Journal Batch Info https://api.businesscentral.dynamics.com/V2.0/4b12c967-0958-4d5f-ae73-460055fbb27d/Sandbox/api/GTKIPL/GTKAPI/v2.0/companies(3eeece6c-12a8-eb11-bb5f-000d3a392f4b)/Journals
-
POST Journal Batch https://api.businesscentral.dynamics.com/V2.0/4b12c967-0958-4d5f-ae73-460055fbb27d/Sandbox/api/v2.0/companies(3eeece6c-12a8-eb11-bb5f-000d3a392f4b)/Journals
-
Get All the Journal Lines from all Journal Batches https://api.businesscentral.dynamics.com/V2.0/4b12c967-0958-4d5f-ae73-460055fbb27d/Sandbox/api/GTKIPL/GTKAPI/v2.0/companies(3eeece6c-12a8-eb11-bb5f-000d3a392f4b)/JournalLines
-
Get Specific Journal Batch Detail (Payroll as example) https://api.businesscentral.dynamics.com/V2.0/4b12c967-0958-4d5f-ae73-460055fbb27d/Sandbox/api/GTKIPL/GTKAPI/v2.0/companies(3eeece6c-12a8-eb11-bb5f-000d3a392f4b)/Journals(f8ca369c-1209-f011-9346-000d3a07f87c)
-
Get All Journal Lines from one Journal Batch (DEFAULT as an example) https://api.businesscentral.dynamics.com/V2.0/4b12c967-0958-4d5f-ae73-460055fbb27d/Sandbox/api/GTKIPL/GTKAPI/v2.0/companies(3eeece6c-12a8-eb11-bb5f-000d3a392f4b)/JournalLines?$filter=journalBatchName%20eq%20%27DEFAULT%27
-
POST the Journal Lines ( The Template and Batch names are part of Payload) https://api.businesscentral.dynamics.com/V2.0/4b12c967-0958-4d5f-ae73-460055fbb27d/Sandbox/api/GTKIPL/GTKAPI/v2.0/companies(3eeece6c-12a8-eb11-bb5f-000d3a392f4b)/JournalLines
The following is an example payload for the Scenario Number 6
{ "journalBatchId": "79540614-4e10-f011-9346-000d3ac78b5e", "journalTemplateName": "GENERAL", "documentType": "Invoice", "accountType": "G/L Account", "accountNo": "6410", "postingDate": "2025-02-26", "documentNo": "AAA", "externalDocumentNo": "BBB", "description": "CCC", "amount": 66.68, "currencyCode": "MYR" }