Premium

Renews a 13 or 52 week subscription for another term instead of continuing every 4 weeks. Stripe extends immediately, PayPal returns an approval url the buyer has to be redirected to.

Changed on
post/api/premium/subscription/{externalId}/extend

Request

  • Base URL
    https://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

externalId, string required

External id of the subscription as listed by the subscription endpoint

Request body

SubscriptionDeclarationArgs required

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.

immediatePerformanceRequested, boolean nullable

Whether the user expressly requested early performance for this order.

withdrawalConsequenceAcknowledged, boolean nullable

Whether the user acknowledged the consequence of complete performance.

declarationVersion, string nullable

Hash-verified declaration version shown to the user.

legalLocale, string nullable

Locale in which the declaration was shown.

declarationRequestId, string nullable

Idempotency identifier (a GUID) for this declaration and order.

Response

OK

SubscriptionExtensionResponse required

Result of renewing a subscription for another term.

extended, boolean required

True when the term was extended immediately (Stripe).

approvalUrl, string nullable

Url to redirect the buyer to for approval (PayPal), null when already extended.

termEndsAt, string date-time required

When the current term ends.

extendedUntil, string date-time required

Until when the subscription is paid after the extension.

Changes