Adjust a credit
Changes an existing credit's amount, date or description. Send only what you want to change.
Authorization
AuthorizationstringrequiredPath parameters
leaseIdstringrequiredThe lease the credit is on. A Snowflake id, sent as a decimal string.
creditIdstringrequiredThe credit to adjust. A Snowflake id, sent as a decimal string.
Body
application/json
amountnumberNew amount, as a decimal of at least 1.
issueDatestring · date-timeNew date the credit counts from.
descriptionstringNew description. Up to 1000 characters.
Response
200 · The adjusted credit.
idstringId of the credit. A Snowflake id, sent as a decimal string.
createdstring · date-timeWhen the credit was issued, in the company's timezone.
updatedstring · date-timeWhen it last changed.
bankAccountIdstringBank account the credit is booked against. A Snowflake id, sent as a decimal string.
chartOfAccountIdstringAccount the credit is booked to. A Snowflake id, sent as a decimal string.
portfolioIdstringPortfolio the credit rolls up to. A Snowflake id, sent as a decimal string.
propertyIdstringProperty the credit is on. A Snowflake id, sent as a decimal string.
unitIdstringUnit the credit is on. A Snowflake id, sent as a decimal string.
leaseIdstringLease the credit is on. A Snowflake id, sent as a decimal string.
amountnumberHow much credit was issued, as a decimal amount.
appliedAmountnumberHow much of it has been used against charges.
availableAmountnumberHow much of it is still unused.
creditDatestring · dateThe date the credit counts from.
appliedLeaseChargesAppliedLeaseCharge[]Which charges the credit has been used against.
metadataobjectFree-form key/value data carried on the credit.
creatorobjectWho created the record.
bankAccountobjectThe bank account the credit is booked against.
chartOfAccountobjectThe account the credit is booked to.
portfolioobjectThe portfolio the lease rolls up to.
propertyobjectThe property the lease's unit sits in.
unitobjectThe unit the lease is for.
leaseobjectThe lease the credit is on.
leaseChargesLeaseCharge[]The charges named in appliedLeaseCharges.