Skip to main content
POST
cURL
Undoes a scheduled downgrade: Ledger releases its Stripe schedule, so the subscription renews on its current plan, and the downgrade is closed. Undoing one that’s already closed returns it again. A downgrade that has already applied returns 409 downgrade_applied; upgrade instead. A schedule released or canceled in Stripe’s Dashboard closes the downgrade the same way.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

downgradeId
integer
required
Required range: x <= 2147483647

Query Parameters

customerId
string
required
Required string length: 1 - 255

Response

The downgrade, now closed; the subscription stays on its current plan

downgradeId
integer
required
status
enum<string>
required
Available options:
pending,
scheduled,
applied,
closed
fromPlanId
string
required
planId
string
required
timing
enum<string>
required
Available options:
period_end,
immediately
refund
enum<string>
required
Available options:
none,
prorated
oldPlanCredits
enum<string>
required
Available options:
keep,
expire
overageOnPlanChange
enum<string>
required
Available options:
carry_to_renewal,
bill_now
effectiveAt
string<date-time> | null
required
refundAmountCents
integer | null
required
creditNoteId
string | null
required