Lease charges

Delete a charge

Removes a charge from the lease's ledger. Anything already paid against it has to be dealt with separately.

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

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

example: 1830472847398404096
chargeIdstringrequired

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

example: 1834920184756201984

Response

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

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

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