Subscription

Atributos

pathstring
createTimestring
Apenas saída
updateTimestring
Apenas saída
activeboolean
Apenas saída
willRenewboolean
Apenas saída
lastBillingTimestring
Apenas saída
nextRenewTimestring
Apenas saída
expireTimestring
Apenas saída
stateEnum<string>
Apenas saída
expirationDetailsobject
purchasePlatformEnum<string>
Apenas saída
paymentProviderEnum<string>
Apenas saída
userstring
Imutável
URL base

https://apis.roblox.com/cloud
O recurso 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}/subscription-products/{subscription-product}/subscriptions/{subscription}
Escopos
universe:writeuniverse.subscription-product.subscription:read
SolicitaçãoParâmetros de endereço
universestring
Obrigatório
subscription-productstring
Obrigatório
subscriptionstring
Obrigatório
Parâmetros da consulta
viewEnum<string>
RespostaSubscription
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}'
Resposta

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