The resource path of the subscription.
Format: universes/{universe_id}/subscription-products/{subscription_product_id}/subscriptions/{subscription_id}.
Represents a user's subscription to a subscription product. The subscription ID is the same as the user ID of the user who subscribed.
The resource path of the subscription.
Format: universes/{universe_id}/subscription-products/{subscription_product_id}/subscriptions/{subscription_id}.
The timestamp when the subscription was created. This string is formatted as a Timestamp.
The timestamp when the subscription was last updated. This string is formatted as a Timestamp.
Whether the subscription is active.
This is equivalent to whether state is equal to SUBSCRIBED_WILL_RENEW, SUBSCRIBED_WILL_NOT_RENEW, or SUBSCRIBED_RENEWAL_PAYMENT_PENDING.
Whether the subscription will renew.
This is equivalent to whether state is equal to SUBSCRIBED_WILL_RENEW or SUBSCRIBED_RENEWAL_PAYMENT_PENDING.
The timestamp when the subscription was last billed. This string is formatted as a Timestamp.
The timestamp when the subscription will next be automatically renewed. This string is formatted as a Timestamp.
The timestamp when the subscription will, or did, expire. This string is formatted as a Timestamp.
The state of the subscription.
Possible values:
Value | Description |
---|---|
STATE_UNSPECIFIED | The subscription state is unspecified. |
SUBSCRIBED_WILL_RENEW | The subscription is active and will be automatically renewed at next_renew_time. |
SUBSCRIBED_WILL_NOT_RENEW | The subscription is active but will not be automatically renewed. |
SUBSCRIBED_RENEWAL_PAYMENT_PENDING | The subscription is active and within the renewal grace period pending payment confirmation. |
EXPIRED | The subscription has expired. See expiration_details for more information. |
Information about the expiration of the subscription.
The platform on which the subscription was purchased.
Possible values:
Value | Description |
---|---|
PURCHASE_PLATFORM_UNSPECIFIED | The purchase platform is unspecified. |
DESKTOP | The subscription was purchased on the Roblox website. |
MOBILE | The subscription was purchased on the Roblox mobile app. |
The payment provider used to purchase the subscription.
Possible values:
Value | Description |
---|---|
PAYMENT_PROVIDER_UNSPECIFIED | The payment provider is unspecified. |
STRIPE | The subscription was purchased using Stripe. |
APPLE | The subscription was purchased using Apple. |
The subscription was purchased using Google. | |
ROBLOX_CREDIT | The subscription was purchased using Roblox Credit. |
The user who subscribed to the subscription.
https://apis.roblox.com
{
"path": "universes/123/subscription-products/some-subscription-product-id/subscriptions/some-subscription-id",
"createTime": "2023-07-05T12:34:56Z",
"updateTime": "2023-07-05T12:34:56Z",
"active": true,
"willRenew": true,
"lastBillingTime": "2023-07-05T12:34:56Z",
"nextRenewTime": "2023-07-05T12:34:56Z",
"expireTime": "2023-07-05T12:34:56Z",
"state": "STATE_UNSPECIFIED",
"expirationDetails": {
"reason": "EXPIRATION_REASON_UNSPECIFIED"
},
"purchasePlatform": "PURCHASE_PLATFORM_UNSPECIFIED",
"paymentProvider": "PAYMENT_PROVIDER_UNSPECIFIED",
"user": "users/123"
}
Get the subscription.
The universe.subscription-product.subscription:read scope only allows you to get your own subscriptions—or rather, the subscription ID must match the user ID that makes the request—so its best use case is with OAuth 2.0 authentication rather than an API key. To read all subscriptions for a universe, use the universe:write scope.
The universe ID.
The subscription-product ID.
The subscription ID.
The view in which to retrieve the subscription.
Supports BASIC and FULL.
Defaults to BASIC.
Possible values:
Value | Description |
---|---|
VIEW_UNSPECIFIED | The subscription view is not specified; the default will be used. |
BASIC | Includes only the active and renewing fields. |
FULL | Includes all fields. |
curl -L -X GET 'https://apis.roblox.com/cloud/v2/universes/{universe_id}/subscription-products/{subscription_product_id}/subscriptions/{subscription_id}?view={string}' \
-H 'x-api-key: {your-api-key}'
{
"path": "universes/123/subscription-products/some-subscription-product-id/subscriptions/some-subscription-id",
"createTime": "2023-07-05T12:34:56Z",
"updateTime": "2023-07-05T12:34:56Z",
"active": true,
"willRenew": true,
"lastBillingTime": "2023-07-05T12:34:56Z",
"nextRenewTime": "2023-07-05T12:34:56Z",
"expireTime": "2023-07-05T12:34:56Z",
"state": "STATE_UNSPECIFIED",
"expirationDetails": {
"reason": "EXPIRATION_REASON_UNSPECIFIED"
},
"purchasePlatform": "PURCHASE_PLATFORM_UNSPECIFIED",
"paymentProvider": "PAYMENT_PROVIDER_UNSPECIFIED",
"user": "users/123"
}