Lease charges

Get a late fee

Fetches one late fee with the overdue charges it was raised against and anything paid towards it.

GET
https://api.portal.magicdoor.com/company-app/leases/{leaseId}/charges/late-fees/{lateFeeId}

Authorization

Authorizationstringrequired
Bearer token — Send your API token in the Authorization header as Bearer <token>. Requests without a valid token are rejected with 401 Unauthorized.

Path parameters

leaseIdstringrequired

The lease the fee is on. A Snowflake id, sent as a decimal string.

example: 1830472847398404096
lateFeeIdstringrequired

The late fee to fetch. A Snowflake id, sent as a decimal string.

example: 1836229384756201984

Response

200 · The late fee.

idstring

Id of the late fee. A Snowflake id, sent as a decimal string.

createdstring · date-time

When the late fee was raised, in the company's timezone.

updatedstring · date-time

When it last changed.

companyChargeboolean

Whether the company keeps the fee rather than passing it to the owner.

billDatestring · date-time

When the fee was booked into the ledger.

dueDatestring · date-time

When the fee has to be paid by.

totalAmountnumber

The fee in total, as a decimal amount.

allocatedAmountnumber

How much of it has been covered.

dueAmountnumber

What is still owing on it.

memostring

Free-text note.

referencestring

External reference.

portfolioIdstring

Portfolio the fee rolls up to. A Snowflake id, sent as a decimal string.

propertyIdstring

Property the fee is on. A Snowflake id, sent as a decimal string.

unitIdstring

Unit the fee is on. A Snowflake id, sent as a decimal string.

leaseIdstring

Lease the fee is on. A Snowflake id, sent as a decimal string.

lineItemsLeaseLateFeeLineItem[]

What the fee is made up of, one line per charge it was raised for.

filesLeaseLateFeeFile[]

Files attached to the fee, by id.

metadataobject

Free-form key/value data carried on the fee.

creatorobject

Who created the record.

portfolioobject

The portfolio the lease rolls up to.

propertyobject

The property the lease's unit sits in.

unitobject

The unit the lease is for.

leaseobject

The lease the fee is on.

chartOfAccountsChartOfAccount[]

Chart-of-account records referenced above.

transactionsTransaction[]

The transactions referenced by the allocations.

bankAccountsBankAccount[]

Bank accounts referenced above.

leaseChargesLeaseCharge[]

The overdue charges the fee was raised against.

hydratedFilesFile[]

The files listed in files, resolved.

creatorInfoobject

The full record of whoever created this, under whichever one key matches the creator's type.

401 · The access token is missing, expired, or not for this company.

404 · No late fee matched the id, or it belongs to another company.