Tax document lookups

List tax years with documents

Returns each tax year the company has documents for and how many, for owners or for vendors.

GET
https://api.portal.magicdoor.com/company-app/tax-documents/{accountType}/tax-years

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

accountTypeenum<string>required

Which kind of account to count documents for.

example: vendorownervendor

Response

200 · One entry per tax year, as a bare array.

calendarYearinteger

The tax year.

taxDocumentsCountinteger

How many documents the company has for that year and account type.

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