Update maximum billing cycles for subscription contract
Sets the maximum number of billing cycles (payments) after which the subscription will automatically expire and cancel. This is useful for creating fixed-term memberships or limited-duration subscriptions.
Full behavior, validation rules, and side effects
Key Features:
- Auto-Expiration: Subscription automatically cancels after max cycles reached
- Fixed-Term Plans: Create memberships with defined end dates
- No Manual Intervention: System handles cancellation automatically
- Flexible Duration: Set any number or null for unlimited
Common Use Cases:
- 6-Month Program: Set maxCycles=6 for half-year membership
- Annual Subscription: Set maxCycles=12 for one-year auto-expiring plan
- Trial Extensions: Set maxCycles=3 for limited trial periods
- Unlimited Subscription: Set maxCycles=null or 0 for no maximum
Behavior:
- Subscription cancels automatically after final billing cycle
- Customer receives notification before expiration
- No refunds issued on auto-cancellation
- Contract status changes to EXPIRED after last cycle
Parameters:
- contractId (required): The subscription contract ID
- maxCycles (optional): Maximum number of billing cycles (null or 0 = unlimited)
Note: Setting maxCycles lower than current cycle count will cause immediate expiration.
Authentication: Requires API key authentication via X-API-Key header or api_key parameter
Documentation Index
Fetch the complete documentation index at: https://developers.appstle.com/llms.txt
Use this file to discover all available pages before exploring further.
Headers
Query Parameters
Subscription contract ID
API Key (Deprecated - Use Header X-API-Key instead)
Maximum number of billing cycles (null or 0 = unlimited)
Response
Max cycles updated successfully, returns updated subscription contract
ACTIVE, PAUSED, CANCELLED, EXPIRED, FAILED, $UNKNOWN SUCCEEDED, FAILED, $UNKNOWN