Switches a running subscription to a longer term, charged now; the paid days left are kept on top. Stripe completes it or returns the page to confirm the payment at, PayPal returns an approval url. Rejections carry a slug such as term_switch_price_changed when the price shown is no longer the price charged.
Changed onRequest
- Base URLhttps://sky.coflnet.com (the document declares no server; this is the origin it was published from)
- Auth
- API key in header Authorization
- or API key in header GoogleToken
Path parameters
External id of the subscription as listed by the subscription endpoint
Request body
Body of a request to switch a subscription to a longer term.
The new term in weeks (13 or 52), one of the offered terms.
The user's early performance declaration for a subscription checkout. Same fields as the declaration of Coflnet.Sky.Api.Models.PurchaseArgs; the legal texts are filled in by the server.
The price shown to the buyer (chargedNow of the chosen term). A switch that would charge another amount is refused.
Response
OK
Outcome of a switch to a longer term.
True once the new term is paid and granted.
completed, payment_required, approval_required or processing.
Where to send the buyer to pay or approve (Stripe or PayPal), null otherwise.
Length of the new term in weeks.
Slug of the new plan.
What is charged now.
Currency of the prices (ISO code).
How tax relates to the prices: included, net or none.
Code of the promotion applied, null without one.
When the access ends once the switch is paid.
When the first 4 week cycle after the new term is charged.
Slug of the 4 week plan the subscription continues as.
What each 4 week cycle after the new term charges.
Length of the continuation cycle in weeks.
Changes
- info
endpoint added
- info