Company

Check whether MagicDoor can charge the company

Says whether the company is in a state where MagicDoor can collect its own subscription and usage invoices, and if not, why.

GET
https://api.portal.magicdoor.com/company-app/companies/invoices/check

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 · Whether the company can be charged.

eligibleboolean

True when MagicDoor can charge the company.

reasonstring

Why it cannot. Absent when eligible is true.

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