Subscriptions
Create and manage subscriptions
A subscription links a customer to a plan with a billing cycle. Subscriptions are the core billing object in Prolifi.
Endpoints
Key concepts
- Billing cycle resolution: The
billing_cyclefield accepts a UUID or a name (e.g.,"monthly","yearly"). It is matched against the plan’s available billing cycles. - Country resolution: If
country_idis not provided when creating a subscription, it is automatically resolved from the customer’s record. - Plan switching: When you update a subscription with a different
plan_id, Prolifi handles the plan switch — including proration, billing adjustments, and entitlement changes. - Cancellation timing: Cancel at
end_of_period(default) lets the subscription run until the billing cycle ends. Cancelimmediatelyto end the subscription right away. - Pause/Resume: These endpoints are planned but not yet available. They return
501with a descriptive message.