Lease charges

Delete a recurring charge

Stops a recurring charge. By default the charges it has already raised stay on the ledger; set deletePostedCharges to true to remove those as well.

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

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

example: 1830472847398404096
recurringChargeIdstringrequired

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

example: 1840193847562019840

Body

application/json

deletePostedChargesboolean

Whether to also remove the charges this has already raised.

default: false

Response

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

400 · The request failed validation. `errors` maps each field name to what was wrong with it.

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

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