Transaction receipts

Send a transaction receipt

Emails the receipt for one of the lease's transactions to the tenants and records the send. The returned lastSent tells you when it went out.

POST
https://api.portal.magicdoor.com/company-app/leases/{leaseId}/transactions/{transactionId}/receipt/send

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

leaseIdstringrequired

The lease the transaction is on. A Snowflake id, sent as a decimal string.

example: 1830472847398404096
transactionIdstringrequired

The transaction whose receipt to send. A Snowflake id, sent as a decimal string.

example: 1835029384756201984

Response

200 · The receipt, with `lastSent` updated.

idstring

Id of the receipt. A Snowflake id, sent as a decimal string.

transactionIdstring

The transaction the receipt is for. A Snowflake id, sent as a decimal string.

receiptNumberstring

Human-readable receipt number.

issueDatestring · date-time

When the receipt was issued, in the company's timezone.

totalAmountnumber

The amount receipted, as a decimal. Taken from the transaction as it stood when the receipt was made.

paymentMethodenum<string>

How the money moved, as recorded on the transaction.

achdebitCardwalletcreditCardcheckcashiersCheckmoneyOrdercashzelleothercredittransfer
referencestring

Cheque number or other reference from the transaction.

transactionDatestring · date-time

The date the transaction counted for.

transactionUpdatedstring · date-time

When the transaction was last changed.

lastSentstring · date-time

When the receipt was last emailed out. Absent until it has been sent.

fileobject

The stored receipt PDF.

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

404 · No receipt for that transaction on this lease matched the id, or it belongs to another company.