POST api/journalentries

Post Create journal entries with or without attachment. Send request as form data with 2 keys: file (file to upload) and viewModelJsonFormControlName (json body of JournalEntryCreateListViewModel).

Request Information

URI Parameters

NameDescriptionTypeAdditional information
CreateJournalEntryList

Collection of CreateJournalEntryViewModel

None.

Body Parameters

None.

Response Information

Resource Description

List of CreateJournalEntryResultViewModel

Collection of CreateJournalEntryResultViewModel
NameDescriptionTypeAdditional information
LineItems

Collection of CreateJournalEntryDetailsResultViewModel

None.

Attachment

JournalEntryAttachmentViewModel

None.

JournalEntryId

integer

None.

SourceId

integer

None.

JournalEntryType

string

None.

NavigationLinkId

integer

None.

EntityName

string

None.

ManagementCompany

string

None.

GlDate

date

None.

CreatedDate

date

None.

Description

string

None.

UserName

string

None.

TotalCredits

decimal number

None.

TotalDebits

decimal number

None.

JournalEntryStatus

string

None.

Notes

string

None.

JournalEntryAttachmentID

integer

None.

IsAllowReverse

boolean

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "lineItems": [
      {
        "lineDescription": "sample string 1",
        "glEntityId": 1,
        "chartOfAccountId": 1,
        "glSubAccountId": 1,
        "fundId": 1,
        "lineItemId": 2,
        "entityNumber": "sample string 3",
        "glAccountName": "sample string 4",
        "glSubAccountName": "sample string 5",
        "debit": 6.0,
        "credit": 7.0,
        "fundDisplayName": "sample string 8",
        "description": "sample string 9"
      },
      {
        "lineDescription": "sample string 1",
        "glEntityId": 1,
        "chartOfAccountId": 1,
        "glSubAccountId": 1,
        "fundId": 1,
        "lineItemId": 2,
        "entityNumber": "sample string 3",
        "glAccountName": "sample string 4",
        "glSubAccountName": "sample string 5",
        "debit": 6.0,
        "credit": 7.0,
        "fundDisplayName": "sample string 8",
        "description": "sample string 9"
      }
    ],
    "attachment": {
      "journalEntryAttachmentId": 1,
      "journalEntryId": 2,
      "fileName": "sample string 3",
      "originalFileName": "sample string 4",
      "filePath": "sample string 5",
      "errors": [
        "sample string 1",
        "sample string 2"
      ],
      "isNewOrChange": 6
    },
    "journalEntryId": 1,
    "sourceId": 1,
    "journalEntryType": "sample string 2",
    "navigationLinkId": 1,
    "entityName": "sample string 3",
    "managementCompany": "sample string 4",
    "glDate": "2024-10-14T04:24:44.360528-04:00",
    "createdDate": "2024-10-14T04:24:44.360528-04:00",
    "description": "sample string 5",
    "userName": "sample string 6",
    "totalCredits": 7.0,
    "totalDebits": 8.0,
    "journalEntryStatus": "sample string 9",
    "notes": "sample string 10",
    "journalEntryAttachmentID": 1,
    "isAllowReverse": true
  },
  {
    "lineItems": [
      {
        "lineDescription": "sample string 1",
        "glEntityId": 1,
        "chartOfAccountId": 1,
        "glSubAccountId": 1,
        "fundId": 1,
        "lineItemId": 2,
        "entityNumber": "sample string 3",
        "glAccountName": "sample string 4",
        "glSubAccountName": "sample string 5",
        "debit": 6.0,
        "credit": 7.0,
        "fundDisplayName": "sample string 8",
        "description": "sample string 9"
      },
      {
        "lineDescription": "sample string 1",
        "glEntityId": 1,
        "chartOfAccountId": 1,
        "glSubAccountId": 1,
        "fundId": 1,
        "lineItemId": 2,
        "entityNumber": "sample string 3",
        "glAccountName": "sample string 4",
        "glSubAccountName": "sample string 5",
        "debit": 6.0,
        "credit": 7.0,
        "fundDisplayName": "sample string 8",
        "description": "sample string 9"
      }
    ],
    "attachment": {
      "journalEntryAttachmentId": 1,
      "journalEntryId": 2,
      "fileName": "sample string 3",
      "originalFileName": "sample string 4",
      "filePath": "sample string 5",
      "errors": [
        "sample string 1",
        "sample string 2"
      ],
      "isNewOrChange": 6
    },
    "journalEntryId": 1,
    "sourceId": 1,
    "journalEntryType": "sample string 2",
    "navigationLinkId": 1,
    "entityName": "sample string 3",
    "managementCompany": "sample string 4",
    "glDate": "2024-10-14T04:24:44.360528-04:00",
    "createdDate": "2024-10-14T04:24:44.360528-04:00",
    "description": "sample string 5",
    "userName": "sample string 6",
    "totalCredits": 7.0,
    "totalDebits": 8.0,
    "journalEntryStatus": "sample string 9",
    "notes": "sample string 10",
    "journalEntryAttachmentID": 1,
    "isAllowReverse": true
  }
]

application/xml, text/xml

Sample:
<ArrayOfCreateJournalEntryResultViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CamAcctApi.ViewModels.JournalEntry">
  <CreateJournalEntryResultViewModel>
    <CreatedDate>2024-10-14T04:24:44.360528-04:00</CreatedDate>
    <Description>sample string 5</Description>
    <EntityName>sample string 3</EntityName>
    <GlDate>2024-10-14T04:24:44.360528-04:00</GlDate>
    <IsAllowReverse>true</IsAllowReverse>
    <JournalEntryAttachmentID>1</JournalEntryAttachmentID>
    <JournalEntryId>1</JournalEntryId>
    <JournalEntryStatus>sample string 9</JournalEntryStatus>
    <JournalEntryType>sample string 2</JournalEntryType>
    <ManagementCompany>sample string 4</ManagementCompany>
    <NavigationLinkId>1</NavigationLinkId>
    <Notes>sample string 10</Notes>
    <SourceId>1</SourceId>
    <TotalCredits>7</TotalCredits>
    <TotalDebits>8</TotalDebits>
    <UserName>sample string 6</UserName>
    <Attachment>
      <Errors xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>sample string 1</d4p1:string>
        <d4p1:string>sample string 2</d4p1:string>
      </Errors>
      <FileName>sample string 3</FileName>
      <FilePath>sample string 5</FilePath>
      <IsNewOrChange>6</IsNewOrChange>
      <JournalEntryAttachmentId>1</JournalEntryAttachmentId>
      <JournalEntryId>2</JournalEntryId>
      <OriginalFileName>sample string 4</OriginalFileName>
    </Attachment>
    <LineItems>
      <CreateJournalEntryDetailsResultViewModel>
        <Credit>7</Credit>
        <Debit>6</Debit>
        <Description>sample string 9</Description>
        <EntityNumber>sample string 3</EntityNumber>
        <FundDisplayName>sample string 8</FundDisplayName>
        <GlAccountName>sample string 4</GlAccountName>
        <GlSubAccountName>sample string 5</GlSubAccountName>
        <LineItemId>2</LineItemId>
        <ChartOfAccountId>1</ChartOfAccountId>
        <FundId>1</FundId>
        <GLEntityId>1</GLEntityId>
        <GlSubAccountId>1</GlSubAccountId>
        <LineDescription>sample string 1</LineDescription>
      </CreateJournalEntryDetailsResultViewModel>
      <CreateJournalEntryDetailsResultViewModel>
        <Credit>7</Credit>
        <Debit>6</Debit>
        <Description>sample string 9</Description>
        <EntityNumber>sample string 3</EntityNumber>
        <FundDisplayName>sample string 8</FundDisplayName>
        <GlAccountName>sample string 4</GlAccountName>
        <GlSubAccountName>sample string 5</GlSubAccountName>
        <LineItemId>2</LineItemId>
        <ChartOfAccountId>1</ChartOfAccountId>
        <FundId>1</FundId>
        <GLEntityId>1</GLEntityId>
        <GlSubAccountId>1</GlSubAccountId>
        <LineDescription>sample string 1</LineDescription>
      </CreateJournalEntryDetailsResultViewModel>
    </LineItems>
  </CreateJournalEntryResultViewModel>
  <CreateJournalEntryResultViewModel>
    <CreatedDate>2024-10-14T04:24:44.360528-04:00</CreatedDate>
    <Description>sample string 5</Description>
    <EntityName>sample string 3</EntityName>
    <GlDate>2024-10-14T04:24:44.360528-04:00</GlDate>
    <IsAllowReverse>true</IsAllowReverse>
    <JournalEntryAttachmentID>1</JournalEntryAttachmentID>
    <JournalEntryId>1</JournalEntryId>
    <JournalEntryStatus>sample string 9</JournalEntryStatus>
    <JournalEntryType>sample string 2</JournalEntryType>
    <ManagementCompany>sample string 4</ManagementCompany>
    <NavigationLinkId>1</NavigationLinkId>
    <Notes>sample string 10</Notes>
    <SourceId>1</SourceId>
    <TotalCredits>7</TotalCredits>
    <TotalDebits>8</TotalDebits>
    <UserName>sample string 6</UserName>
    <Attachment>
      <Errors xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>sample string 1</d4p1:string>
        <d4p1:string>sample string 2</d4p1:string>
      </Errors>
      <FileName>sample string 3</FileName>
      <FilePath>sample string 5</FilePath>
      <IsNewOrChange>6</IsNewOrChange>
      <JournalEntryAttachmentId>1</JournalEntryAttachmentId>
      <JournalEntryId>2</JournalEntryId>
      <OriginalFileName>sample string 4</OriginalFileName>
    </Attachment>
    <LineItems>
      <CreateJournalEntryDetailsResultViewModel>
        <Credit>7</Credit>
        <Debit>6</Debit>
        <Description>sample string 9</Description>
        <EntityNumber>sample string 3</EntityNumber>
        <FundDisplayName>sample string 8</FundDisplayName>
        <GlAccountName>sample string 4</GlAccountName>
        <GlSubAccountName>sample string 5</GlSubAccountName>
        <LineItemId>2</LineItemId>
        <ChartOfAccountId>1</ChartOfAccountId>
        <FundId>1</FundId>
        <GLEntityId>1</GLEntityId>
        <GlSubAccountId>1</GlSubAccountId>
        <LineDescription>sample string 1</LineDescription>
      </CreateJournalEntryDetailsResultViewModel>
      <CreateJournalEntryDetailsResultViewModel>
        <Credit>7</Credit>
        <Debit>6</Debit>
        <Description>sample string 9</Description>
        <EntityNumber>sample string 3</EntityNumber>
        <FundDisplayName>sample string 8</FundDisplayName>
        <GlAccountName>sample string 4</GlAccountName>
        <GlSubAccountName>sample string 5</GlSubAccountName>
        <LineItemId>2</LineItemId>
        <ChartOfAccountId>1</ChartOfAccountId>
        <FundId>1</FundId>
        <GLEntityId>1</GLEntityId>
        <GlSubAccountId>1</GlSubAccountId>
        <LineDescription>sample string 1</LineDescription>
      </CreateJournalEntryDetailsResultViewModel>
    </LineItems>
  </CreateJournalEntryResultViewModel>
</ArrayOfCreateJournalEntryResultViewModel>