Premium

Gets the current user's subscriptions.

Changed on
get/api/premium/subscription

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

Response

OK

PremiumSubscription[] required
externalId, string nullable

Gets or sets the external id.

endsAt, string date-time nullable

Gets or sets the ends at.

productName, string nullable

Gets or sets the product name.

slotCount, integer required

Number of assignable slots renewed by this subscription; zero for personal access.

paymentAmount, string nullable

Gets or sets the payment amount.

renewsAt, string date-time required

Gets or sets the renews at.

createdAt, string date-time required

Gets or sets the created at.

providerSlug, string nullable

Payment provider that bills this subscription (lemonsqueezy, stripe, paypal, googleplay).

manageUrl, string nullable

Provider page where the customer can manage this subscription, if available.

canResume, boolean required

Whether a cancelled subscription can be reactivated; false for example for PayPal.

canChangePlan, boolean required

Whether the plan can be switched to another tier.

currency, string nullable

Currency of the prices of this subscription (ISO code).

currentTermEndsAt, string date-time required

When the term that is currently paid for ends.

canExtendLongTerm, boolean required

Whether the subscription can be renewed for another long term (13 or 52 weeks).

extensionPrice, number double required

Price of renewing for another term, in the subscription currency.

extensionTaxTreatment, string nullable

Whether the extension price includes tax: included, net or none.

renewalPrice, number double required

Price of the 4 week continuation, in the subscription currency.

extendedUntil, string date-time nullable

Until when the subscription is already extended, null when it is not.

termWeeks, integer nullable

Length of the current term in weeks (4, 13 or 52), null when unknown.

Changes

    • info

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

    • info

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

    • info

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