Subscriptions
Update Subscription
Update subscription details. Use when changing subscription status, cancellation date, or parent relationship. Supports partial updates.
PUT
Update Subscription
Documentation Index
Fetch the complete documentation index at: https://mintlify.com/flexprice/flexprice/llms.txt
Use this file to discover all available pages before exploring further.
Path Parameters
Unique identifier of the subscription to update.Example:
"sub_x1y2z3a4b5c6d7e8f9g0"Request Body
Updated subscription status.Options:
"ACTIVE", "CANCELLED", "INCOMPLETE", "EXPIRED", "PAUSED", "DRAFT"ISO 8601 timestamp for when the subscription should be cancelled.Example:
"2024-12-31T23:59:59Z"Whether the subscription should cancel at the end of the current period.Example:
trueParent subscription ID for hierarchy. Set to empty string
"" to remove parent relationship. Omit to leave unchanged.Example: "sub_parent123"Response
Unique identifier for the subscription.
FlexPrice customer ID.
Plan ID.
Updated subscription status.
Updated cancellation date (if set).
Updated cancel at period end flag.
Updated parent subscription ID (if set).
Currency code.
Billing frequency.
Billing period unit.
ISO 8601 timestamp when subscription starts.
ISO 8601 timestamp of current billing period start.
ISO 8601 timestamp of current billing period end.
Custom metadata.
ISO 8601 timestamp when the subscription was created.
ISO 8601 timestamp when the subscription was last updated.
Example Request
cURL
Example Response
Update Subscription