POST api/funds/journalentryinfoforchargecodes

Get journal entry fund information for the given transaction date, super entities, and charge codes

Request Information

URI Parameters

None.

Body Parameters

JeInformationForChargeCodesViewModel
NameDescriptionTypeAdditional information
TransactionDate

Transaction (GL) Date

date

Required

ChargeCodeIds

List of ChargeCodeIds

Collection of integer

Required

SuperEntityIds

List of SuperEntityIds

Collection of integer

Required

Request Formats

application/json, text/json

Sample:
{
  "transactionDate": "2024-10-14T08:18:22.7144968-04:00",
  "chargeCodeIds": [
    1,
    2
  ],
  "superEntityIds": [
    1,
    2
  ]
}

application/xml, text/xml

Sample:
<JeInformationForChargeCodesViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CamAcctApi.ViewModels.FundAccounting">
  <ChargeCodeIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </ChargeCodeIds>
  <SuperEntityIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </SuperEntityIds>
  <TransactionDate>2024-10-14T08:18:22.7144968-04:00</TransactionDate>
</JeInformationForChargeCodesViewModel>

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 'JeInformationForChargeCodesViewModel'.

Response Information

Resource Description

Model containing fund information and charge code to fund id linkings by super entity id

Dictionary of integer [key] and CreditChargeFundInformation [value]

Response Formats

application/json, text/json

Sample:
{
  "1": {
    "fundInfos": [
      {
        "fundId": 1,
        "interFundChartOfAccountId": 2
      },
      {
        "fundId": 1,
        "interFundChartOfAccountId": 2
      }
    ],
    "defaultFundId": 1,
    "chargeCodeFundLinks": {
      "1": 2,
      "3": 4
    },
    "fundAccontingActiveOnTransactionDate": true
  },
  "2": {
    "fundInfos": [
      {
        "fundId": 1,
        "interFundChartOfAccountId": 2
      },
      {
        "fundId": 1,
        "interFundChartOfAccountId": 2
      }
    ],
    "defaultFundId": 1,
    "chargeCodeFundLinks": {
      "1": 2,
      "3": 4
    },
    "fundAccontingActiveOnTransactionDate": true
  }
}

application/xml, text/xml

Sample:
<ArrayOfKeyValueOfintCreditChargeFundInformationhuIi0n_SY xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
  <KeyValueOfintCreditChargeFundInformationhuIi0n_SY>
    <Key>1</Key>
    <Value xmlns:d3p1="http://schemas.datacontract.org/2004/07/CamAcctApi.Core.Models">
      <d3p1:ChargeCodeFundLinks>
        <KeyValueOfintint>
          <Key>1</Key>
          <Value>2</Value>
        </KeyValueOfintint>
        <KeyValueOfintint>
          <Key>3</Key>
          <Value>4</Value>
        </KeyValueOfintint>
      </d3p1:ChargeCodeFundLinks>
      <d3p1:DefaultFundId>1</d3p1:DefaultFundId>
      <d3p1:FundAccontingActiveOnTransactionDate>true</d3p1:FundAccontingActiveOnTransactionDate>
      <d3p1:FundInfos xmlns:d4p1="http://schemas.datacontract.org/2004/07/CamAcctApi.Core.Models.FundAccounting.Fund">
        <d4p1:JeFundInfo>
          <d4p1:FundId>1</d4p1:FundId>
          <d4p1:InterFundChartOfAccountId>2</d4p1:InterFundChartOfAccountId>
        </d4p1:JeFundInfo>
        <d4p1:JeFundInfo>
          <d4p1:FundId>1</d4p1:FundId>
          <d4p1:InterFundChartOfAccountId>2</d4p1:InterFundChartOfAccountId>
        </d4p1:JeFundInfo>
      </d3p1:FundInfos>
    </Value>
  </KeyValueOfintCreditChargeFundInformationhuIi0n_SY>
  <KeyValueOfintCreditChargeFundInformationhuIi0n_SY>
    <Key>2</Key>
    <Value xmlns:d3p1="http://schemas.datacontract.org/2004/07/CamAcctApi.Core.Models">
      <d3p1:ChargeCodeFundLinks>
        <KeyValueOfintint>
          <Key>1</Key>
          <Value>2</Value>
        </KeyValueOfintint>
        <KeyValueOfintint>
          <Key>3</Key>
          <Value>4</Value>
        </KeyValueOfintint>
      </d3p1:ChargeCodeFundLinks>
      <d3p1:DefaultFundId>1</d3p1:DefaultFundId>
      <d3p1:FundAccontingActiveOnTransactionDate>true</d3p1:FundAccontingActiveOnTransactionDate>
      <d3p1:FundInfos xmlns:d4p1="http://schemas.datacontract.org/2004/07/CamAcctApi.Core.Models.FundAccounting.Fund">
        <d4p1:JeFundInfo>
          <d4p1:FundId>1</d4p1:FundId>
          <d4p1:InterFundChartOfAccountId>2</d4p1:InterFundChartOfAccountId>
        </d4p1:JeFundInfo>
        <d4p1:JeFundInfo>
          <d4p1:FundId>1</d4p1:FundId>
          <d4p1:InterFundChartOfAccountId>2</d4p1:InterFundChartOfAccountId>
        </d4p1:JeFundInfo>
      </d3p1:FundInfos>
    </Value>
  </KeyValueOfintCreditChargeFundInformationhuIi0n_SY>
</ArrayOfKeyValueOfintCreditChargeFundInformationhuIi0n_SY>