Subscription

Thuộc Tính

pathstring
createTimestring
Chỉ Xuất
updateTimestring
Chỉ Xuất
activeboolean
Chỉ Xuất
willRenewboolean
Chỉ Xuất
lastBillingTimestring
Chỉ Xuất
nextRenewTimestring
Chỉ Xuất
expireTimestring
Chỉ Xuất
stateEnum<string>
Chỉ Xuất
expirationDetailsobject
purchasePlatformEnum<string>
Chỉ Xuất
paymentProviderEnum<string>
Chỉ Xuất
userstring
Bất Biến
URL Cơ Sở

https://apis.roblox.com/cloud
Tài nguyên Subscription

{
"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"
}

Subscription

Get Subscription
Bản Beta

GET /cloud/v2/universes/{universe}/subscription-products/{subscription-product}/subscriptions/{subscription}
Phạm Vi
universe:writeuniverse.subscription-product.subscription:read
Yêu CầuTham Số Đường Dẫn
universestring
Bắt Buộc
subscription-productstring
Bắt Buộc
subscriptionstring
Bắt Buộc
Tham Số Truy Vấn
viewEnum<string>
Phản HồiSubscription
GET /cloud/v2/universes/{universe}/subscription-products/{subscription-product}/subscriptions/{subscription}

curl -L -X GET 'https://apis.roblox.com/cloud/v2/universes/{universe}/subscription-products/{subscription-product}/subscriptions/{subscription}?view={string}' \
-H 'x-api-key: {your-api-key}'
Phản Hồi

{
"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"
}