createSubscription
Creates a subscription for a specified universe.
Parameters
Name | Type | Description |
---|---|---|
universeId | UniverseId | The id of the universe to create a subscription for. |
name | Name | The subscription name. |
description | Description | The subscription description. |
type | Type | The subscription type. |
price | SubsriptionPrice | The 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