Create a recurring charge
Sets up a charge that repeats on the lease. Set createPastCharges to true to raise the charges that would already have fallen due between startFrom and today.
Authorization
AuthorizationstringrequiredPath parameters
leaseIdstringrequiredThe lease to add the recurring charge to. A Snowflake id, sent as a decimal string.
Body
application/json
amountnumberrequiredAmount to raise each period, as a decimal of at least 1.
chargeFrequencyenum<string>requiredHow often to raise it.
chartOfAccountIdstringrequiredAccount to book each charge to. A Snowflake id, sent as a decimal string.
createPastChargesbooleanrequiredWhether to raise the charges that fell due between startFrom and today.
startFromstring · dateFirst date to raise a charge.
endstring · dateLast date to raise a charge. Must be later than startFrom.
descriptionstringWhat the charge is for. 1 to 1000 characters.
companyChargebooleanWhether the company keeps these charges.
Response
200 · The recurring charge that was created.
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.