PUT api/chargeCodes/{chargeCodeId}

Update Charge Code

Request Information

URI Parameters

NameDescriptionTypeAdditional information
chargeCodeId

integer

Required

Body Parameters

UpdateChargeCodeViewModel
NameDescriptionTypeAdditional information
ChargeCodeTypeId

integer

None.

CorporateBillingId

integer

None.

ClonedDisplayCode

string

None.

ChargeCodeAdjustedCodes

Collection of ChargeCodeAdjustedCodeViewModel

None.

Id

integer

None.

DisplayCode

string

None.

ChargeCodeDescription

string

None.

VacancyLoss

integer

None.

FirstMonth

integer

None.

PrepaymentApplicable

integer

None.

ApplyinMonthlyCharges

integer

None.

FeeScheduleId

integer

None.

IsAutoAssigned

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "chargeCodeTypeId": 1,
  "corporateBillingId": 2,
  "clonedDisplayCode": "sample string 3",
  "chargeCodeAdjustedCodes": [
    {
      "chargeCodeId": 1,
      "description": "sample string 2",
      "adjustedCode": "sample string 3",
      "adjustedCodeTypeId": 1,
      "glAccountId": 4,
      "glSubAccountId": 5,
      "chargeCodeAdjustedCodeId": 6
    },
    {
      "chargeCodeId": 1,
      "description": "sample string 2",
      "adjustedCode": "sample string 3",
      "adjustedCodeTypeId": 1,
      "glAccountId": 4,
      "glSubAccountId": 5,
      "chargeCodeAdjustedCodeId": 6
    }
  ],
  "id": 4,
  "displayCode": "sample string 5",
  "chargeCodeDescription": "sample string 6",
  "vacancyLoss": 7,
  "firstMonth": 1,
  "prepaymentApplicable": 8,
  "applyinMonthlyCharges": 9,
  "feeScheduleId": 1,
  "isAutoAssigned": true
}

application/xml, text/xml

Sample:
<UpdateChargeCodeViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CamAcctApi.ViewModels.ChargeCode">
  <ApplyinMonthlyCharges xmlns="http://schemas.datacontract.org/2004/07/CamAcctApi.ViewModels">9</ApplyinMonthlyCharges>
  <ChargeCodeDescription xmlns="http://schemas.datacontract.org/2004/07/CamAcctApi.ViewModels">sample string 6</ChargeCodeDescription>
  <DisplayCode xmlns="http://schemas.datacontract.org/2004/07/CamAcctApi.ViewModels">sample string 5</DisplayCode>
  <FeeScheduleId xmlns="http://schemas.datacontract.org/2004/07/CamAcctApi.ViewModels">1</FeeScheduleId>
  <FirstMonth xmlns="http://schemas.datacontract.org/2004/07/CamAcctApi.ViewModels">1</FirstMonth>
  <Id xmlns="http://schemas.datacontract.org/2004/07/CamAcctApi.ViewModels">4</Id>
  <IsAutoAssigned xmlns="http://schemas.datacontract.org/2004/07/CamAcctApi.ViewModels">true</IsAutoAssigned>
  <PrepaymentApplicable xmlns="http://schemas.datacontract.org/2004/07/CamAcctApi.ViewModels">8</PrepaymentApplicable>
  <VacancyLoss xmlns="http://schemas.datacontract.org/2004/07/CamAcctApi.ViewModels">7</VacancyLoss>
  <ChargeCodeAdjustedCodes>
    <ChargeCodeAdjustedCodeViewModel>
      <AdjustedCode>sample string 3</AdjustedCode>
      <AdjustedCodeTypeId>Delinquency</AdjustedCodeTypeId>
      <ChargeCodeAdjustedCodeId>6</ChargeCodeAdjustedCodeId>
      <ChargeCodeId>1</ChargeCodeId>
      <Description>sample string 2</Description>
      <GlAccountId>4</GlAccountId>
      <GlSubAccountId>5</GlSubAccountId>
    </ChargeCodeAdjustedCodeViewModel>
    <ChargeCodeAdjustedCodeViewModel>
      <AdjustedCode>sample string 3</AdjustedCode>
      <AdjustedCodeTypeId>Delinquency</AdjustedCodeTypeId>
      <ChargeCodeAdjustedCodeId>6</ChargeCodeAdjustedCodeId>
      <ChargeCodeId>1</ChargeCodeId>
      <Description>sample string 2</Description>
      <GlAccountId>4</GlAccountId>
      <GlSubAccountId>5</GlSubAccountId>
    </ChargeCodeAdjustedCodeViewModel>
  </ChargeCodeAdjustedCodes>
  <ChargeCodeTypeId>1</ChargeCodeTypeId>
  <ClonedDisplayCode>sample string 3</ClonedDisplayCode>
  <CorporateBillingId>2</CorporateBillingId>
</UpdateChargeCodeViewModel>

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

Response Information

Resource Description

Collection of UpdateChargeCodeViewModel
NameDescriptionTypeAdditional information
ChargeCodeTypeId

integer

None.

CorporateBillingId

integer

None.

ClonedDisplayCode

string

None.

ChargeCodeAdjustedCodes

Collection of ChargeCodeAdjustedCodeViewModel

None.

Id

integer

None.

DisplayCode

string

None.

ChargeCodeDescription

string

None.

VacancyLoss

integer

None.

FirstMonth

integer

None.

PrepaymentApplicable

integer

None.

ApplyinMonthlyCharges

integer

None.

FeeScheduleId

integer

None.

IsAutoAssigned

boolean

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "chargeCodeTypeId": 1,
    "corporateBillingId": 2,
    "clonedDisplayCode": "sample string 3",
    "chargeCodeAdjustedCodes": [
      {
        "chargeCodeId": 1,
        "description": "sample string 2",
        "adjustedCode": "sample string 3",
        "adjustedCodeTypeId": 1,
        "glAccountId": 4,
        "glSubAccountId": 5,
        "chargeCodeAdjustedCodeId": 6
      },
      {
        "chargeCodeId": 1,
        "description": "sample string 2",
        "adjustedCode": "sample string 3",
        "adjustedCodeTypeId": 1,
        "glAccountId": 4,
        "glSubAccountId": 5,
        "chargeCodeAdjustedCodeId": 6
      }
    ],
    "id": 4,
    "displayCode": "sample string 5",
    "chargeCodeDescription": "sample string 6",
    "vacancyLoss": 7,
    "firstMonth": 1,
    "prepaymentApplicable": 8,
    "applyinMonthlyCharges": 9,
    "feeScheduleId": 1,
    "isAutoAssigned": true
  },
  {
    "chargeCodeTypeId": 1,
    "corporateBillingId": 2,
    "clonedDisplayCode": "sample string 3",
    "chargeCodeAdjustedCodes": [
      {
        "chargeCodeId": 1,
        "description": "sample string 2",
        "adjustedCode": "sample string 3",
        "adjustedCodeTypeId": 1,
        "glAccountId": 4,
        "glSubAccountId": 5,
        "chargeCodeAdjustedCodeId": 6
      },
      {
        "chargeCodeId": 1,
        "description": "sample string 2",
        "adjustedCode": "sample string 3",
        "adjustedCodeTypeId": 1,
        "glAccountId": 4,
        "glSubAccountId": 5,
        "chargeCodeAdjustedCodeId": 6
      }
    ],
    "id": 4,
    "displayCode": "sample string 5",
    "chargeCodeDescription": "sample string 6",
    "vacancyLoss": 7,
    "firstMonth": 1,
    "prepaymentApplicable": 8,
    "applyinMonthlyCharges": 9,
    "feeScheduleId": 1,
    "isAutoAssigned": true
  }
]

application/xml, text/xml

Sample:
<ArrayOfUpdateChargeCodeViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CamAcctApi.ViewModels.ChargeCode">
  <UpdateChargeCodeViewModel>
    <ApplyinMonthlyCharges xmlns="http://schemas.datacontract.org/2004/07/CamAcctApi.ViewModels">9</ApplyinMonthlyCharges>
    <ChargeCodeDescription xmlns="http://schemas.datacontract.org/2004/07/CamAcctApi.ViewModels">sample string 6</ChargeCodeDescription>
    <DisplayCode xmlns="http://schemas.datacontract.org/2004/07/CamAcctApi.ViewModels">sample string 5</DisplayCode>
    <FeeScheduleId xmlns="http://schemas.datacontract.org/2004/07/CamAcctApi.ViewModels">1</FeeScheduleId>
    <FirstMonth xmlns="http://schemas.datacontract.org/2004/07/CamAcctApi.ViewModels">1</FirstMonth>
    <Id xmlns="http://schemas.datacontract.org/2004/07/CamAcctApi.ViewModels">4</Id>
    <IsAutoAssigned xmlns="http://schemas.datacontract.org/2004/07/CamAcctApi.ViewModels">true</IsAutoAssigned>
    <PrepaymentApplicable xmlns="http://schemas.datacontract.org/2004/07/CamAcctApi.ViewModels">8</PrepaymentApplicable>
    <VacancyLoss xmlns="http://schemas.datacontract.org/2004/07/CamAcctApi.ViewModels">7</VacancyLoss>
    <ChargeCodeAdjustedCodes>
      <ChargeCodeAdjustedCodeViewModel>
        <AdjustedCode>sample string 3</AdjustedCode>
        <AdjustedCodeTypeId>Delinquency</AdjustedCodeTypeId>
        <ChargeCodeAdjustedCodeId>6</ChargeCodeAdjustedCodeId>
        <ChargeCodeId>1</ChargeCodeId>
        <Description>sample string 2</Description>
        <GlAccountId>4</GlAccountId>
        <GlSubAccountId>5</GlSubAccountId>
      </ChargeCodeAdjustedCodeViewModel>
      <ChargeCodeAdjustedCodeViewModel>
        <AdjustedCode>sample string 3</AdjustedCode>
        <AdjustedCodeTypeId>Delinquency</AdjustedCodeTypeId>
        <ChargeCodeAdjustedCodeId>6</ChargeCodeAdjustedCodeId>
        <ChargeCodeId>1</ChargeCodeId>
        <Description>sample string 2</Description>
        <GlAccountId>4</GlAccountId>
        <GlSubAccountId>5</GlSubAccountId>
      </ChargeCodeAdjustedCodeViewModel>
    </ChargeCodeAdjustedCodes>
    <ChargeCodeTypeId>1</ChargeCodeTypeId>
    <ClonedDisplayCode>sample string 3</ClonedDisplayCode>
    <CorporateBillingId>2</CorporateBillingId>
  </UpdateChargeCodeViewModel>
  <UpdateChargeCodeViewModel>
    <ApplyinMonthlyCharges xmlns="http://schemas.datacontract.org/2004/07/CamAcctApi.ViewModels">9</ApplyinMonthlyCharges>
    <ChargeCodeDescription xmlns="http://schemas.datacontract.org/2004/07/CamAcctApi.ViewModels">sample string 6</ChargeCodeDescription>
    <DisplayCode xmlns="http://schemas.datacontract.org/2004/07/CamAcctApi.ViewModels">sample string 5</DisplayCode>
    <FeeScheduleId xmlns="http://schemas.datacontract.org/2004/07/CamAcctApi.ViewModels">1</FeeScheduleId>
    <FirstMonth xmlns="http://schemas.datacontract.org/2004/07/CamAcctApi.ViewModels">1</FirstMonth>
    <Id xmlns="http://schemas.datacontract.org/2004/07/CamAcctApi.ViewModels">4</Id>
    <IsAutoAssigned xmlns="http://schemas.datacontract.org/2004/07/CamAcctApi.ViewModels">true</IsAutoAssigned>
    <PrepaymentApplicable xmlns="http://schemas.datacontract.org/2004/07/CamAcctApi.ViewModels">8</PrepaymentApplicable>
    <VacancyLoss xmlns="http://schemas.datacontract.org/2004/07/CamAcctApi.ViewModels">7</VacancyLoss>
    <ChargeCodeAdjustedCodes>
      <ChargeCodeAdjustedCodeViewModel>
        <AdjustedCode>sample string 3</AdjustedCode>
        <AdjustedCodeTypeId>Delinquency</AdjustedCodeTypeId>
        <ChargeCodeAdjustedCodeId>6</ChargeCodeAdjustedCodeId>
        <ChargeCodeId>1</ChargeCodeId>
        <Description>sample string 2</Description>
        <GlAccountId>4</GlAccountId>
        <GlSubAccountId>5</GlSubAccountId>
      </ChargeCodeAdjustedCodeViewModel>
      <ChargeCodeAdjustedCodeViewModel>
        <AdjustedCode>sample string 3</AdjustedCode>
        <AdjustedCodeTypeId>Delinquency</AdjustedCodeTypeId>
        <ChargeCodeAdjustedCodeId>6</ChargeCodeAdjustedCodeId>
        <ChargeCodeId>1</ChargeCodeId>
        <Description>sample string 2</Description>
        <GlAccountId>4</GlAccountId>
        <GlSubAccountId>5</GlSubAccountId>
      </ChargeCodeAdjustedCodeViewModel>
    </ChargeCodeAdjustedCodes>
    <ChargeCodeTypeId>1</ChargeCodeTypeId>
    <ClonedDisplayCode>sample string 3</ClonedDisplayCode>
    <CorporateBillingId>2</CorporateBillingId>
  </UpdateChargeCodeViewModel>
</ArrayOfUpdateChargeCodeViewModel>