PUT api/recurringTransactions

Updates a Recurring Transaction.

Request Information

URI Parameters

None.

Body Parameters

Model that contains fields that can be updated as well as the id of recurring transaction to update.

RecurringTransactionUpdateViewModel
NameDescriptionTypeAdditional information
Id

[Required] Id of the Recurring Charge/Credit.

integer

Range: inclusive between 1 and 2147483647

OverrideDueDay

Day the charge/credit is going to be posted. Valid values are betwee 1 and 31. At least 1 field is required: OverrideDueDay, StartDate, EndDate, Amount, or AdjustedCodeId

integer

None.

StartDate

Date the Recurring Transaction begins. At least 1 field is required: OverrideDueDay, StartDate, EndDate, Amount, or AdjustedCodeId

date

None.

EndDate

Date the Recurring Transaction ends. At least 1 field is required: OverrideDueDay, StartDate, EndDate, Amount, or AdjustedCodeId

date

None.

Amount

Recurring transaction amount At least 1 field is required: OverrideDueDay, StartDate, EndDate, Amount, or AdjustedCodeId

decimal number

None.

ModifiedBy

[Required] Id of User who is updating recurring transaction.

integer

Range: inclusive between 1 and 2147483647

AdjustedCodeId

Adjusted code Id for recurring credits. At least 1 field is required: OverrideDueDay, StartDate, EndDate, Amount, or AdjustedCodeId

integer

None.

EffectiveDate

Effective date when editing a credit.

date

None.

Request Formats

application/json, text/json

Sample:
{
  "id": 1,
  "overrideDueDay": 1,
  "startDate": "2024-10-14T08:20:51.8464503-04:00",
  "endDate": "2024-10-14T08:20:51.8464503-04:00",
  "amount": 1.0,
  "modifiedBy": 2,
  "adjustedCodeId": 1,
  "effectiveDate": "2024-10-14T08:20:51.8464503-04:00"
}

application/xml, text/xml

Sample:
<RecurringTransactionUpdateViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CamAcctApi.ViewModels.RecurringTransactions">
  <AdjustedCodeId>1</AdjustedCodeId>
  <Amount>1</Amount>
  <EffectiveDate>2024-10-14T08:20:51.8464503-04:00</EffectiveDate>
  <EndDate>2024-10-14T08:20:51.8464503-04:00</EndDate>
  <Id>1</Id>
  <ModifiedBy>2</ModifiedBy>
  <OverrideDueDay>1</OverrideDueDay>
  <StartDate>2024-10-14T08:20:51.8464503-04:00</StartDate>
</RecurringTransactionUpdateViewModel>

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

Response Information

Resource Description

Updated recurring transaction

RecurringTransactionViewModel
NameDescriptionTypeAdditional information
Id

Id of the Recurring Charge/Credit, it will default to 0 for new Transaction.

integer

None.

BuildingId

Building Id

integer

None.

ChargeCodeId

Charge Code Id

integer

None.

UnitId

Unit Id. It will default to 0 for ApplyTo is All\UnitType

integer

None.

UnitType

Unit Type Id. It will default to 0 for ApplyTo is All\Shares\Unit

integer

None.

ChargeCodeAdjustedCodeId

Adjusted Code Id

integer

None.

OverrideDueDay

Override Due Day. Valid values are betwee 1 and 31.

integer

None.

StartDate

Date the Recurring Transaction begins.

date

None.

EndDate

Date the Recurring Transaction ends.

date

None.

Rate

Rate. Use when ApplyTo is Shares. Will be 0.00M when ApplyTo is not Shares

decimal number

None.

Amount

Amount. Use when ApplyTo is not Shares. Will be 0.00M when ApplyTo is Shares.

decimal number

None.

Type

Type of the Recurring Transaction. Possible values are 'Credit' or 'Charge'

RecurringTransactionType

None.

GroupId

Group Id. Used to handle Group Increase action. Will be initially set to the Id of the Recurring Transaction.

integer

None.

Status

Status. Used to handle Group Increase action. Will be initially set to Created.

integer

None.

ApplyToId

Id of Apply To configuration.

integer

None.

CreatedOn

Date the recurring transaction was created. Defaults to system date and time at the time of creation.

date

None.

CreatedBy

Id of User who created the recurring transaction

integer

None.

ModifiedBy

Id of User who last modified the recurring transaction. Initial value is null

integer

None.

ModifiedOn

Date the recurring transaction was last modified. Initial value is null

date

None.

EditDates

Indicates whether dates can be updated for this recurring transaction.

boolean

None.

NumberOfShares

If ApplyTo = Shares this will be populated with the Number Of Shares of the unit.

decimal number

None.

Response Formats

application/json, text/json

Sample:
{
  "id": 1,
  "buildingId": 2,
  "chargeCodeId": 3,
  "unitId": 4,
  "unitType": 5,
  "chargeCodeAdjustedCodeId": 6,
  "overrideDueDay": 7,
  "startDate": "2024-10-14T08:20:51.8620722-04:00",
  "endDate": "2024-10-14T08:20:51.8620722-04:00",
  "rate": 10.0,
  "amount": 11.0,
  "type": 0,
  "groupId": 12,
  "status": 13,
  "applyToId": 14,
  "createdOn": "2024-10-14T08:20:51.8620722-04:00",
  "createdBy": 1,
  "modifiedBy": 1,
  "modifiedOn": "2024-10-14T08:20:51.8620722-04:00",
  "editDates": true,
  "numberOfShares": 1.0
}

application/xml, text/xml

Sample:
<RecurringTransactionViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CamAcctApi.ViewModels.RecurringTransactions">
  <Amount>11</Amount>
  <ApplyToId>14</ApplyToId>
  <BuildingId>2</BuildingId>
  <ChargeCodeAdjustedCodeId>6</ChargeCodeAdjustedCodeId>
  <ChargeCodeId>3</ChargeCodeId>
  <CreatedBy>1</CreatedBy>
  <CreatedOn>2024-10-14T08:20:51.8620722-04:00</CreatedOn>
  <EditDates>true</EditDates>
  <EndDate>2024-10-14T08:20:51.8620722-04:00</EndDate>
  <GroupId>12</GroupId>
  <Id>1</Id>
  <ModifiedBy>1</ModifiedBy>
  <ModifiedOn>2024-10-14T08:20:51.8620722-04:00</ModifiedOn>
  <NumberOfShares>1</NumberOfShares>
  <OverrideDueDay>7</OverrideDueDay>
  <Rate>10</Rate>
  <StartDate>2024-10-14T08:20:51.8620722-04:00</StartDate>
  <Status>13</Status>
  <Type>Charge</Type>
  <UnitId>4</UnitId>
  <UnitType>5</UnitType>
</RecurringTransactionViewModel>