Create a recurring credit
Sets up a credit that repeats on the lease. Set createPastCredits to true to issue the credits that would already have fallen due between start and today.
Authorization
AuthorizationstringrequiredPath parameters
leaseIdstringrequiredThe lease to add the recurring credit to. A Snowflake id, sent as a decimal string.
Body
application/json
amountnumberrequiredCredit to issue each period, as a decimal of at least 1.
creditFrequencyenum<string>requiredHow often to issue it.
createPastCreditsbooleanrequiredWhether to issue the credits that fell due between start and today.
startstring · dateFirst date to issue a credit.
endstring · dateLast date to issue a credit. Must be later than start.
descriptionstringWhat the credit is for. 1 to 1000 characters.
Response
200 · The recurring credit that was created.
idstringId of the recurring credit. A Snowflake id, sent as a decimal string.
amountnumberCredit issued each period, as a decimal.
creditFrequencyenum<string>How often it is issued.
descriptionstringWhat the credit is for.
lastCreditstring · dateWhen it last issued a credit.
nextCreditstring · dateWhen it next issues one.
startstring · dateFirst date it issues a credit.
endstring · dateLast date it issues a credit. Absent when it runs indefinitely.
statusenum<string>Whether it is still running, has finished, or is about to issue a credit.