Service bills

List service bills

Returns a page of the service bills the management company has charged its properties for work outside the management agreement, with the units, leases and chart of accounts they refer to.

GET
https://api.portal.magicdoor.com/company-app/service-bills

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.

Query parameters

pageinteger

Which page to return. The first page is 1.

default: 1
pageSizeinteger

How many bills to return per page. Between 1 and 100.

default: 50
propertyIdsstring[]

Return only bills charged to these properties. Repeat the parameter for each id.

portfolioIdsstring[]

Return only bills for properties in these portfolios. Repeat the parameter for each id.

unitIdsstring[]

Return only bills for these units. Repeat the parameter for each id.

leaseIdsstring[]

Return only bills for these leases. Repeat the parameter for each id.

propertyChartOfAccountIdsstring[]

Return only bills booked to these chart of accounts on the property side. Repeat the parameter for each id.

companyChartOfAccountIdsstring[]

Return only bills booked to these chart of accounts on the company side. Repeat the parameter for each id.

chargeDate.startstring · date-time

Return only bills charged at or after this moment, read in the company's timezone. Give at least one of chargeDate.start and chargeDate.end.

chargeDate.endstring · date-time

Return only bills charged at or before this moment, read in the company's timezone.

totalAmount.fromnumber

Lower bound of the bill amount. Give at least one of totalAmount.from and totalAmount.to.

totalAmount.tonumber

Upper bound of the bill amount.

totalAmount.includeFromboolean

Whether a bill equal to totalAmount.from is included.

default: true
totalAmount.includeToboolean

Whether a bill equal to totalAmount.to is included.

default: true

Response

200 · A page of service bills plus the records they point at.

itemsServiceBill[]

The bills on this page.

currentPageinteger

The page this response is.

totalPagesinteger

How many pages the filter produces.

pageSizeinteger

How many bills a page holds.

totalCountinteger

How many bills match the filter across all pages.

unitsobject[]

Every unit referenced by the bills' lines, resolved.

leasesobject[]

Every lease referenced by the bills' lines, resolved.

chartOfAccountsobject[]

Every chart of account referenced by the bills' lines, resolved.

401 · The access token is missing, expired, or does not belong to a property manager.