Premium

Purchase a service

Changed on
post/api/premium/subscription/{subscriptionSlug}

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

subscriptionSlug, string required

Slug of the subscription plan

Query parameters

creatorCode, string

Optional creator code

discountcode, string

Optional discount code

assignSlots, boolean

Return to the slot management page after checkout

provider, string

stripe, paypal or lemonsqueezy; defaults to lemonsqueezy

country, string

Optional ISO country the buyer selected; defaults to the request country

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

TopUpIdResponse required
id, string nullable
dirctLink, string nullable
directLink, string nullable
trialDays, integer nullable

Changes

    • info

      added the optional property trialDays to the response with the status (media type: text/plain)

    • info

      added the optional property trialDays to the response with the status (media type: application/json)

    • info

      added the optional property trialDays to the response with the status (media type: text/json)