POST api/superentities/{superEntityId}/funds

Create funds

Request Information

URI Parameters

NameDescriptionTypeAdditional information
superEntityId

integer

Required

Body Parameters

CreateFundViewModel
NameDescriptionTypeAdditional information
Name

string

Required

Code

string

Required

Max length: 3

Min length: 3

EffectiveDate

date

Required

FundTypeId

integer

Required

RetireDate

date

None.

ClosingChartOfAccountId

integer

Required

InterFundChartOfAccountId

integer

Required

BankCodeIds

Collection of integer

None.

ChargeCodeIds

Collection of integer

None.

SecurityDepositTypeIds

Collection of integer

None.

Request Formats

application/json, text/json

Sample:
{
  "name": "sample string 1",
  "code": "sample string 2",
  "effectiveDate": "2024-10-14T08:25:19.2293034-04:00",
  "fundTypeId": 1,
  "retireDate": "2024-10-14T08:25:19.2293034-04:00",
  "closingChartOfAccountId": 1,
  "interFundChartOfAccountId": 1,
  "bankCodeIds": [
    1,
    2
  ],
  "chargeCodeIds": [
    1,
    2
  ],
  "securityDepositTypeIds": [
    1,
    2
  ]
}

application/xml, text/xml

Sample:
<CreateFundViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CamAcctApi.ViewModels">
  <BankCodeIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </BankCodeIds>
  <ChargeCodeIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </ChargeCodeIds>
  <ClosingChartOfAccountId>1</ClosingChartOfAccountId>
  <Code>sample string 2</Code>
  <EffectiveDate>2024-10-14T08:25:19.2293034-04:00</EffectiveDate>
  <FundTypeId>1</FundTypeId>
  <InterFundChartOfAccountId>1</InterFundChartOfAccountId>
  <Name>sample string 1</Name>
  <RetireDate>2024-10-14T08:25:19.2293034-04:00</RetireDate>
  <SecurityDepositTypeIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </SecurityDepositTypeIds>
</CreateFundViewModel>

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

Response Information

Resource Description

FundViewModel

FundViewModel
NameDescriptionTypeAdditional information
Id

Id

integer

None.

Name

Name

string

None.

Code

Code

string

None.

EffectiveDate

EffectiveDate

date

None.

FundTypeId

FundTypeId

integer

None.

SuperEntityId

SuperEntityId

integer

None.

RetireDate

RetireDate

date

None.

ClosingChartOfAccountId

ClosingChartOfAccountId

integer

None.

InterFundChartOfAccountId

InterFundChartOfAccountId

integer

None.

IsDefault

IsDefault

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "id": 1,
  "name": "sample string 2",
  "code": "sample string 3",
  "effectiveDate": "2024-10-14T08:25:19.2448326-04:00",
  "fundTypeId": 5,
  "superEntityId": 6,
  "retireDate": "2024-10-14T08:25:19.2448326-04:00",
  "closingChartOfAccountId": 7,
  "interFundChartOfAccountId": 8,
  "isDefault": true
}

application/xml, text/xml

Sample:
<FundViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CamAcctApi.ViewModels">
  <ClosingChartOfAccountId>7</ClosingChartOfAccountId>
  <Code>sample string 3</Code>
  <EffectiveDate>2024-10-14T08:25:19.2448326-04:00</EffectiveDate>
  <FundTypeId>5</FundTypeId>
  <Id>1</Id>
  <InterFundChartOfAccountId>8</InterFundChartOfAccountId>
  <IsDefault>true</IsDefault>
  <Name>sample string 2</Name>
  <RetireDate>2024-10-14T08:25:19.2448326-04:00</RetireDate>
  <SuperEntityId>6</SuperEntityId>
</FundViewModel>