Company invoices

Get a MagicDoor credit

Fetches one credit with the bank account and chart of account it is booked against, and the invoices it has been used on.

GET
https://api.portal.magicdoor.com/company-app/invoices/credits/{magicDoorBillCreditId}

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

magicDoorBillCreditIdstringrequired

The credit to fetch. A Snowflake id sent as a decimal string.

example: 1834110447398404096

Response

200 · The credit.

idstring

The credit. A Snowflake id sent as a decimal string.

amountnumber

What the credit is worth, in dollars and cents. Positive — money MagicDoor owes the management company against future invoices.

appliedAmountnumber

How much of the credit has already been used against invoices.

availableAmountnumber

What is left to use: amount less appliedAmount.

creditDatestring · date

The day the credit was granted.

memostring

Why the credit was granted. Absent when none was recorded.

bankAccountIdstring

The bank account the credit is booked against.

chartOfAccountIdstring

The chart of account the credit is booked to.

appliedMagicDoorBillsobject[]

Which invoices the credit has been used against.

metadataobject

Free-form key-value pairs kept on the credit.

createdstring · date-time

When the credit was created, in the company's timezone.

updatedstring · date-time

When it last changed, in the company's timezone.

creatorobject

Who created the record.

bankAccountobject

The bank account the credit is booked against. Account and routing numbers are masked to their last four digits.

chartOfAccountobject

The chart of account the credit is booked to.

magicDoorBillsobject[]

The invoices named in appliedMagicDoorBills, resolved.

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

404 · No credit with that id exists for the caller's company.