Subscription

특성

pathstring
createTimestring
출력 전용
updateTimestring
출력 전용
activeboolean
출력 전용
willRenewboolean
출력 전용
lastBillingTimestring
출력 전용
nextRenewTimestring
출력 전용
expireTimestring
출력 전용
stateEnum<string>
출력 전용
expirationDetailsobject
purchasePlatformEnum<string>
출력 전용
paymentProviderEnum<string>
출력 전용
userstring
불변
기본 URL

https://apis.roblox.com/cloud
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
베타

GET /cloud/v2/universes/{universe}/subscription-products/{subscription-product}/subscriptions/{subscription}
범위
universe:writeuniverse.subscription-product.subscription:read
요청경로 매개 변수
universestring
필수
subscription-productstring
필수
subscriptionstring
필수
쿼리 매개 변수
viewEnum<string>
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}'
응답

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