Subscription

Atrybuty

pathstring
createTimestring
Tylko dane wyjściowe
updateTimestring
Tylko dane wyjściowe
activeboolean
Tylko dane wyjściowe
willRenewboolean
Tylko dane wyjściowe
lastBillingTimestring
Tylko dane wyjściowe
nextRenewTimestring
Tylko dane wyjściowe
expireTimestring
Tylko dane wyjściowe
stateEnum<string>
Tylko dane wyjściowe
expirationDetailsobject
purchasePlatformEnum<string>
Tylko dane wyjściowe
paymentProviderEnum<string>
Tylko dane wyjściowe
userstring
Nieodwołalny
Podstawowy adres URL

https://apis.roblox.com
Zasób 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
Beta

GET /cloud/v2/universes/{universe_id}/subscription-products/{subscription_product_id}/subscriptions/{subscription_id}
Zakresy
universe:writeuniverse.subscription-product.subscription:read
ŻądanieParametry ścieżki
universe_idstring
Wymagane
subscription_product_idstring
Wymagane
subscription_idstring
Wymagane
Parametry zapytania
viewEnum<string>
Odpowiedź:Subscription
GET /cloud/v2/universes/{universe_id}/subscription-products/{subscription_product_id}/subscriptions/{subscription_id}

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}'
Odpowiedź:

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