Classic APIs
ClassicSubscriptionsApi
createSubscription

createSubscription

Creates a subscription for a specified universe.

Parameters

NameTypeDescription
universeIdUniverseIdThe id of the universe to create a subscription for.
nameNameThe subscription name.
descriptionDescriptionThe subscription description.
typeTypeThe subscription type.
priceSubsriptionPriceThe subscription price.

Example

const { data } = await ClassicSubscriptionsApi.createSubscription({
  universeId: 5795192361,
  name: "Cool Subscription",
  description: "Lorem ipsum dolor sit amet.",
  type: "Durable",
  price: "$7.99",
}); 

Example Data

{
  id: "8517167288618319987",
  universeId: 5795192361,
  shopId: 5795481121,
  name: "Cool Subscription",
  description: "Lorem ipsum dolor sit amet.",
  imageAssetId: 0,
  periodType: "Monthly",
  developerSubscriptionProductType: "Durable",
  productStatusType: 1,
  initialActivationTimestampMs: null,
  createdTimestampMs: 1713322834753,
  updatedTimestampMs: 1713322834753,
} 

Endpoint

POST /v1/experiences/{universeId}/experience-subscriptions