Lease charges

Delete a charge payment

Removes a payment from the lease's ledger and unwinds what it was applied to. Use this when a payment was recorded in error; use the return endpoint when the money actually came back.

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

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

example: 1830472847398404096
paymentIdstringrequired

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

example: 1835029384756201984

Response

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

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

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