Reschedule Billing
Reschedule subscription billing date.
Changes current_period_end and triggers Restate re-evaluation.
Old scheduled billing actions are automatically superseded.
Requirements:
- Subscription must be in ACTIVE state
- No unpaid invoices (open or draft) can exist
- next_billing_date must be in the future
Preview mode:
- Set is_preview=true to calculate changes without applying them
- Useful for showing customers what the new billing date would be
Proration (optional):
- Set create_proration=true to create proration items for the time difference
- This is a future enhancement and currently has no effect
Returns:
- subscription_id: The subscription's ID
- current_period_end: The new billing date
- previous_period_end: The old billing date
- lifecycle_triggered: Whether Restate was notified to re-evaluate
Works for both User and API Key authentication.
Account access is automatically validated via endpoint dependency.
Authentication
AuthorizationBearer
Bearer authentication of the form Bearer <token>, where token is your auth token.
Path parameters
subscription_id
account_id
Request
This endpoint expects an object.
next_billing_date
New billing date (must be in the future)
create_proration
Create proration items for time difference
is_preview
Calculate without applying changes
Response
Successful Response
subscription_id
current_period_end
previous_period_end
proration_credit_amount_atom
proration_charge_amount_atom
lifecycle_triggered
is_preview
Errors
422
Unprocessable Entity Error