Lease charges

Delete a credit

Removes a credit from the lease and unwinds anything it had been applied to.

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

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

example: 1830472847398404096
creditIdstringrequired

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

example: 1836114029384756224

Response

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

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

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