Company payouts

Calculate what the company is owed

Works out, without moving any money, everything the management company has earned but not yet drawn out — management fees, service bills and other company-owed items — grouped by the account the money would come from. Feed the groups and line items straight back into the create-payout endpoint.

GET
https://api.portal.magicdoor.com/company-app/payouts/calculate

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.

Response

200 · What the company is owed right now. Nothing was created.

asOfstring · date-time

The moment the calculation reflects, in the company's timezone. Absent when no cut-off applied.

groupsobject[]

One group per paying account. A group whose source account could not be worked out leaves propertyBankAccountId and propertyChartOfAccountId out, and you must choose them yourself before creating the payout.

defaultCompanyBankAccountobject

The company account the money would land in unless you name another. Account and routing numbers are masked to their last four digits.

bankAccountsobject[]

Every bank account referenced above, resolved.

chartOfAccountsobject[]

Every chart of account referenced above, resolved.

propertiesobject[]

Every property referenced by the line items, resolved.

unitsobject[]

Every unit referenced by the line items, resolved.

leasesobject[]

Every lease referenced by the line items, resolved.

portfoliosobject[]

Every portfolio referenced by the line items, resolved.

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