Lease charges

List recurring credits

Returns the credits that repeat on the lease, such as a standing allowance. Credits that have already finished are left out unless you ask for them.

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

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 whose recurring credits you want. A Snowflake id, sent as a decimal string.

example: 1830472847398404096

Query parameters

includeEndedboolean

Set to true to include recurring credits that have already finished.

default: false

Response

200 · The recurring credits on the lease.

recurringCreditsRecurringLeaseCredit[]

The recurring credits.

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 lease matched the id, or it belongs to another company.