Adjust a charge
Changes an existing charge. Send only the fields you want to change; anything you leave out stays as it is. Sending dueDate without billDate moves the bill date to match.
Authorization
AuthorizationstringrequiredPath parameters
leaseIdstringrequiredThe lease the charge is on. A Snowflake id, sent as a decimal string.
chargeIdstringrequiredThe charge to adjust. A Snowflake id, sent as a decimal string.
Body
application/json
billDatestring · dateNew bill date.
dueDatestring · dateNew due date. May not be earlier than the bill date.
amountnumberNew amount, as a decimal of at least 1.
chartOfAccountIdstringNew account to book the charge to. A Snowflake id, sent as a decimal string.
companyChargebooleanWhether the company keeps this charge.
descriptionstringNew description. Up to 1000 characters.
Response
200 · The adjusted charge.
idstringId of the charge. A Snowflake id, sent as a decimal string.
createdstring · date-timeWhen the charge was created, in the company's timezone.
updatedstring · date-timeWhen the charge last changed.
companyChargebooleanWhether the company keeps this charge rather than passing it through to the owner.
billDatestring · dateThe date the charge is booked into the ledger.
dueDatestring · dateThe date the tenant has to pay by.
totalAmountnumberWhat the charge is for in total, as a decimal amount.
allocatedAmountnumberHow much of it has been covered by payments or credits.
dueAmountnumberWhat is still owing on it.
memostringFree-text note on the charge.
referencestringExternal reference carried on the charge.
portfolioIdstringPortfolio the charge rolls up to. A Snowflake id, sent as a decimal string.
propertyIdstringProperty the charge is on. A Snowflake id, sent as a decimal string.
unitIdstringUnit the charge is on. A Snowflake id, sent as a decimal string.
leaseIdstringLease the charge is on. A Snowflake id, sent as a decimal string.
recurringChargeIdstringThe recurring charge that raised this one. Absent on a one-off charge. A Snowflake id, sent as a decimal string.
leaseSubsidyIdstringThe lease subsidy that raised this one. A Snowflake id, sent as a decimal string.
lineItemsLeaseChargeLineItem[]What the charge is made up of.
filesLeaseChargeFile[]Files attached to the charge, by id.
metadataobjectFree-form key/value data carried on the charge.
creatorobjectWho created the record.
portfolioobjectThe portfolio the lease rolls up to.
propertyobjectThe property the lease's unit sits in.
unitobjectThe unit the lease is for.
leaseobjectThe lease the charge is on.
transactionsTransaction[]The transactions referenced by the allocations above.
bankAccountsBankAccount[]Bank accounts referenced above.
chartOfAccountsChartOfAccount[]Chart-of-account records referenced above.
hydratedFilesFile[]The files listed in files, resolved to full file records.
creatorInfoobjectThe full record of whoever created this, under whichever one key matches the creator's type.
400 · The body failed validation — for example the due date is earlier than the bill date.
401 · The access token is missing, expired, or not for this company.
404 · No charge matched the id, or it belongs to another company.
billDate is the date the charge is booked into the ledger; dueDate is the date the tenant has to pay by. They are usually the same day, and MagicDoor copies the due date into the bill date when you leave billDate out. A due date earlier than the bill date is rejected.