Update a recurring charge
Replaces a recurring charge's amount, frequency, account, dates and description. Set updatePastCharges to true to also change the charges it has already raised.
Authorization
AuthorizationstringrequiredPath parameters
leaseIdstringrequiredThe lease the recurring charge is on. A Snowflake id, sent as a decimal string.
recurringChargeIdstringrequiredThe recurring charge to update. A Snowflake id, sent as a decimal string.
Body
application/json
amountnumberrequiredNew amount, as a decimal of at least 1.
chargeFrequencyenum<string>requiredNew frequency.
chartOfAccountIdstringrequiredNew account to book each charge to. A Snowflake id, sent as a decimal string.
updatePastChargesbooleanrequiredWhether to apply the change to charges this has already raised.
startFromstring · dateNew first date.
endstring · dateNew last date. Must be later than startFrom.
descriptionstringNew description. 1 to 1000 characters.
companyChargebooleanWhether the company keeps these charges.
Response
200 · The updated recurring charge.
idstringId of the recurring charge. A Snowflake id, sent as a decimal string.
amountnumberAmount raised each period, as a decimal.
chargeFrequencyenum<string>How often it is raised.
chartOfAccountIdstringAccount each charge is booked to. A Snowflake id, sent as a decimal string.
descriptionstringWhat the charge is for.
companyChargebooleanWhether the company keeps these charges rather than passing them to the owner.
lastChargestring · dateWhen it last raised a charge.
nextChargestring · dateWhen it next raises one.
startFromstring · dateFirst date it raises a charge.
endstring · dateLast date it raises a charge. Absent when it runs indefinitely.
statusenum<string>Whether it is still running, has finished, or is about to raise a charge.
chartOfAccountobjectThe account each charge is booked to.