Accounting REST API Developer Reference

Journals

enables you to create a journal and its related line items.

The following keys are available to use to create a journal and its related line items.

  1. Company - The company to which the journal belongs.
  2. Currency - The currency of the journal.
  3. Date - The date of the journal.
  4. LineItems - The details of each journal line item.
  5. GeneralLedgerAccount - The general ledger account related to the journal line item.
  6. Value - The value of the journal line item in document currency.
  7. LineDescription - The description of the journal line item.
  8. Dimension1 - The dimension 1 record by which you want to analyze the journal line item.
  9. Dimension2 - The dimension 2 record by which you want to analyze the journal line item.
  10. Dimension3 - The dimension 3 record by which you want to analyze the journal line item.
  11. Dimension4 - The dimension 4 record by which you want to analyze the journal line item.
  12. CustomField1 - Additional information.
  13. CustomField2 - Additional information.
  14. CustomField3 - Additional information.
  15. CustomField4 - Additional information.
  16. CustomField5 - Additional information.
You must use the date format YYYY-MM-DD, such as 2016-12-20.

POST

URI /services/apexrest/c2g/v1.0/journals/*
Description Creates a journal and its related line items. Use the JournalSave (Save Journals) custom permission to grant permissions on this service.

Sample Code


// POST Request
[{
    "Company": "Merlin Auto AUS",
    "Date": "2017-09-05",
    "Currency": "AUD",
    "LineItems": [{
            "GeneralLedgerAccount": "Salaries",
            "Value": 2000,
            "LineDescription": "Payroll",
            "Dimension1": "Dimension1",
            "Dimension2": "Dimension2",
            "Dimension3": "Dimension3",
            "Dimension4": "Dimension4",
            "CustomField1": "Consulting",
            "CustomField2": "Account - Customer",
            "CustomField3": "1000",
            "CustomField4": "90",
            "CustomField5": "1000"
        },
        {
            "GeneralLedgerAccount": "Salaries",
            "Value": -2000,
            "LineDescription": "Payroll",
            "Dimension1": "Dimension1",
            "Dimension2": "Dimension2",
            "Dimension3": "Dimension3",
            "Dimension4": "Dimension4",
            "CustomField1": "Consulting",
            "CustomField2": "Account - Vendor",
            "CustomField3": "1000",
            "CustomField4": "90",
            "CustomField5": "1000"
        }
    ]
}]

//POST Response
HTTP/1.1 200 OK
© Copyright 2009–2022 FinancialForce.com, inc. All rights reserved. Various trademarks held by their respective owners.