write_subscription
write_subscription
Create and manage subscriptions and ramps, including init, cancel and void
Live server: test server (test.mcp.solvimon.com) only.
Creates and manages BILLING subscriptions and their schedules. Use init to subscribe a known customer from your backend. Use create_checkout_link for self-serve. Quotes go through create_quote and write_quote.
Actions: create, update, delete, init, activate, cancel, void, archive, copy
Resource types: pricing_plan_subscriptions, pricing_plan_subscription_groups, pricing_plan_schedules
initactivates at once. For a ramp (several schedules on one subscription),createa DRAFT subscription with its schedules, review it, thenactivate.- Every schedule is checked: an ACTIVE plan version, a
billing_periodthe version declares (required when it declares several), no overlap with the next schedule. Gaps and a start in the past are warned about. - A config with a yearly price and no
pricing_periodis refused, because it would be charged every period. cancelends the subscription at period end.voidterminates it immediately.copyduplicates it inDRAFTwith all schedules, discounts and commitments.
Subscribe an existing customer