POST api/journalentries/import

Create journal entries and move file to download folder.

Request Information

URI Parameters

None.

Body Parameters

JournalEntryImportCreateViewModel
NameDescriptionTypeAdditional information
FileName

string

Required

JournalEntries

Collection of CreateJournalEntryViewModel

Required

Request Formats

application/json, text/json

Sample:
{
  "fileName": "sample string 1",
  "journalEntries": [
    {
      "dummyId": 1,
      "lineItems": [
        {
          "glEntityId": 1,
          "lineDescription": "sample string 1",
          "chartOfAccountId": 1,
          "glSubAccountId": 1,
          "fundId": 1,
          "debit": 2.0,
          "credit": 3.0
        },
        {
          "glEntityId": 1,
          "lineDescription": "sample string 1",
          "chartOfAccountId": 1,
          "glSubAccountId": 1,
          "fundId": 1,
          "debit": 2.0,
          "credit": 3.0
        }
      ],
      "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
      },
      "superEntityId": 1,
      "glDate": "2024-10-14T04:25:21.5103238-04:00",
      "description": "sample string 2",
      "isPosted": true,
      "journalEntryTypeId": 1,
      "subLedgerId": 1,
      "reversingDate": "2024-10-14T04:25:21.5103238-04:00",
      "notes": "sample string 4"
    },
    {
      "dummyId": 1,
      "lineItems": [
        {
          "glEntityId": 1,
          "lineDescription": "sample string 1",
          "chartOfAccountId": 1,
          "glSubAccountId": 1,
          "fundId": 1,
          "debit": 2.0,
          "credit": 3.0
        },
        {
          "glEntityId": 1,
          "lineDescription": "sample string 1",
          "chartOfAccountId": 1,
          "glSubAccountId": 1,
          "fundId": 1,
          "debit": 2.0,
          "credit": 3.0
        }
      ],
      "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
      },
      "superEntityId": 1,
      "glDate": "2024-10-14T04:25:21.5103238-04:00",
      "description": "sample string 2",
      "isPosted": true,
      "journalEntryTypeId": 1,
      "subLedgerId": 1,
      "reversingDate": "2024-10-14T04:25:21.5103238-04:00",
      "notes": "sample string 4"
    }
  ]
}

application/xml, text/xml

Sample:
<JournalEntryImportCreateViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CamAcctApi.ViewModels.JournalEntry">
  <FileName>sample string 1</FileName>
  <JournalEntries>
    <CreateJournalEntryViewModel>
      <Description>sample string 2</Description>
      <GLDate>2024-10-14T04:25:21.5103238-04:00</GLDate>
      <IsPosted>true</IsPosted>
      <JournalEntryTypeId>AVC</JournalEntryTypeId>
      <Notes>sample string 4</Notes>
      <ReversingDate>2024-10-14T04:25:21.5103238-04:00</ReversingDate>
      <SubLedgerId>AR</SubLedgerId>
      <SuperEntityId>1</SuperEntityId>
      <Attachment>
        <Errors xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:string>sample string 1</d5p1:string>
          <d5p1:string>sample string 2</d5p1: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>
      <DummyId>1</DummyId>
      <LineItems>
        <CreateJournalEntryLineItemViewModel>
          <ChartOfAccountId>1</ChartOfAccountId>
          <Credit>3</Credit>
          <Debit>2</Debit>
          <FundId>1</FundId>
          <GLEntityId>1</GLEntityId>
          <GlSubAccountId>1</GlSubAccountId>
          <LineDescription>sample string 1</LineDescription>
        </CreateJournalEntryLineItemViewModel>
        <CreateJournalEntryLineItemViewModel>
          <ChartOfAccountId>1</ChartOfAccountId>
          <Credit>3</Credit>
          <Debit>2</Debit>
          <FundId>1</FundId>
          <GLEntityId>1</GLEntityId>
          <GlSubAccountId>1</GlSubAccountId>
          <LineDescription>sample string 1</LineDescription>
        </CreateJournalEntryLineItemViewModel>
      </LineItems>
    </CreateJournalEntryViewModel>
    <CreateJournalEntryViewModel>
      <Description>sample string 2</Description>
      <GLDate>2024-10-14T04:25:21.5103238-04:00</GLDate>
      <IsPosted>true</IsPosted>
      <JournalEntryTypeId>AVC</JournalEntryTypeId>
      <Notes>sample string 4</Notes>
      <ReversingDate>2024-10-14T04:25:21.5103238-04:00</ReversingDate>
      <SubLedgerId>AR</SubLedgerId>
      <SuperEntityId>1</SuperEntityId>
      <Attachment>
        <Errors xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:string>sample string 1</d5p1:string>
          <d5p1:string>sample string 2</d5p1: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>
      <DummyId>1</DummyId>
      <LineItems>
        <CreateJournalEntryLineItemViewModel>
          <ChartOfAccountId>1</ChartOfAccountId>
          <Credit>3</Credit>
          <Debit>2</Debit>
          <FundId>1</FundId>
          <GLEntityId>1</GLEntityId>
          <GlSubAccountId>1</GlSubAccountId>
          <LineDescription>sample string 1</LineDescription>
        </CreateJournalEntryLineItemViewModel>
        <CreateJournalEntryLineItemViewModel>
          <ChartOfAccountId>1</ChartOfAccountId>
          <Credit>3</Credit>
          <Debit>2</Debit>
          <FundId>1</FundId>
          <GLEntityId>1</GLEntityId>
          <GlSubAccountId>1</GlSubAccountId>
          <LineDescription>sample string 1</LineDescription>
        </CreateJournalEntryLineItemViewModel>
      </LineItems>
    </CreateJournalEntryViewModel>
  </JournalEntries>
</JournalEntryImportCreateViewModel>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'JournalEntryImportCreateViewModel'.

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:25:21.5259467-04:00",
    "createdDate": "2024-10-14T04:25:21.5259467-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:25:21.5259467-04:00",
    "createdDate": "2024-10-14T04:25:21.5259467-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:25:21.5259467-04:00</CreatedDate>
    <Description>sample string 5</Description>
    <EntityName>sample string 3</EntityName>
    <GlDate>2024-10-14T04:25:21.5259467-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:25:21.5259467-04:00</CreatedDate>
    <Description>sample string 5</Description>
    <EntityName>sample string 3</EntityName>
    <GlDate>2024-10-14T04:25:21.5259467-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>