Lease deposits

Delete a deposit

Removes a deposit from the lease's deposit ledger.

DELETE
https://api.portal.magicdoor.com/company-app/leases/{leaseId}/deposits/{depositId}

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 deposit is on. A Snowflake id, sent as a decimal string.

example: 1830472847398404096
depositIdstringrequired

The deposit to delete. A Snowflake id, sent as a decimal string.

example: 1837401928475620198

Response

200 · The deposit was deleted. No body is returned.

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

404 · No deposit matched the id, or it belongs to another company.