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. - Company - The company to which the journal belongs.
- Currency - The currency of the journal.
- Date - The date of the journal.
- LineItems - The details of each journal line item.
- GeneralLedgerAccount - The general ledger account related to the journal line item.
- Value - The value of the journal line item in document currency.
- LineDescription - The description of the journal line item.
- Dimension1 - The dimension 1 record by which you want to analyze the journal line item.
- Dimension2 - The dimension 2 record by which you want to analyze the journal line item.
- Dimension3 - The dimension 3 record by which you want to analyze the journal line item.
- Dimension4 - The dimension 4 record by which you want to analyze the journal line item.
- CustomField1 - Additional information.
- CustomField2 - Additional information.
- CustomField3 - Additional information.
- CustomField4 - Additional information.
- 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
|