CreatorStoreProduct

Atributos

pathstring
basePriceobject
purchasePriceobject
publishedboolean
restrictionsarray<enum>
Apenas saída
purchasableboolean
Apenas saída

Um dos seguintes para seller:

userSellerstring
Apenas saída
groupSellerstring
Apenas saída

Um dos seguintes para productType:

modelAssetIdstring
Imutável
pluginAssetIdstring
Imutável
audioAssetIdstring
Imutável
decalAssetIdstring
Imutável
meshPartAssetIdstring
Imutável
videoAssetIdstring
Imutável
fontFamilyAssetIdstring
Imutável
URL base

https://apis.roblox.com/cloud
O recurso CreatorStoreProduct

{
"path": "creator-store-products/ProductNamespace-ProductType-123",
"basePrice": {
"currencyCode": "string",
"quantity": {
"significand": "integer",
"exponent": "integer"
}
},
"purchasePrice": {
"currencyCode": "string",
"quantity": {
"significand": "integer",
"exponent": "integer"
}
},
"published": true,
"restrictions": [
"RESTRICTION_UNSPECIFIED"
],
"purchasable": true,
"userSeller": "string",
"modelAssetId": "string"
}

CreatorStoreProduct

Create Creator Store Product
Beta

POST /cloud/v2/creator-store-products
Escopos
creator-store-product:write
SolicitaçãoRequisitar corpoCreatorStoreProduct
POST /cloud/v2/creator-store-products

curl -L -X POST 'https://apis.roblox.com/cloud/v2/creator-store-products' \
-H 'x-api-key: {your-api-key}' \
--data '{ \
"basePrice": { \
"currencyCode": "string", \
"quantity": { \
"significand": "integer", \
"exponent": "integer" \
} \
}, \
"purchasePrice": { \
"currencyCode": "string", \
"quantity": { \
"significand": "integer", \
"exponent": "integer" \
} \
}, \
"published": true, \
"modelAssetId": "string" \
}'
Resposta

{
"path": "creator-store-products/ProductNamespace-ProductType-123",
"basePrice": {
"currencyCode": "string",
"quantity": {
"significand": "integer",
"exponent": "integer"
}
},
"purchasePrice": {
"currencyCode": "string",
"quantity": {
"significand": "integer",
"exponent": "integer"
}
},
"published": true,
"restrictions": [
"RESTRICTION_UNSPECIFIED"
],
"purchasable": true,
"userSeller": "string",
"modelAssetId": "string"
}

CreatorStoreProduct

Get Creator Store Product
Beta

GET /cloud/v2/creator-store-products/{creator-store-product}
Escopos
creator-store-product:read
SolicitaçãoParâmetros de endereço
creator-store-productstring
Obrigatório
GET /cloud/v2/creator-store-products/{creator-store-product}

curl -L -X GET 'https://apis.roblox.com/cloud/v2/creator-store-products/{creator-store-product}' \
-H 'x-api-key: {your-api-key}'
Resposta

{
"path": "creator-store-products/ProductNamespace-ProductType-123",
"basePrice": {
"currencyCode": "string",
"quantity": {
"significand": "integer",
"exponent": "integer"
}
},
"purchasePrice": {
"currencyCode": "string",
"quantity": {
"significand": "integer",
"exponent": "integer"
}
},
"published": true,
"restrictions": [
"RESTRICTION_UNSPECIFIED"
],
"purchasable": true,
"userSeller": "string",
"modelAssetId": "string"
}

CreatorStoreProduct

Update Creator Store Product
Beta

PATCH /cloud/v2/creator-store-products/{creator-store-product}
Escopos
creator-store-product:write
SolicitaçãoParâmetros de endereço
creator-store-productstring
Obrigatório
Parâmetros da consulta
updateMaskstring
allowMissingboolean
Requisitar corpoCreatorStoreProduct
PATCH /cloud/v2/creator-store-products/{creator-store-product}

curl -L -X PATCH 'https://apis.roblox.com/cloud/v2/creator-store-products/{creator-store-product}?updateMask={string}&allowMissing={boolean}' \
-H 'x-api-key: {your-api-key}' \
--data '{ \
"basePrice": { \
"currencyCode": "string", \
"quantity": { \
"significand": "integer", \
"exponent": "integer" \
} \
}, \
"purchasePrice": { \
"currencyCode": "string", \
"quantity": { \
"significand": "integer", \
"exponent": "integer" \
} \
}, \
"published": true, \
"modelAssetId": "string" \
}'
Resposta

{
"path": "creator-store-products/ProductNamespace-ProductType-123",
"basePrice": {
"currencyCode": "string",
"quantity": {
"significand": "integer",
"exponent": "integer"
}
},
"purchasePrice": {
"currencyCode": "string",
"quantity": {
"significand": "integer",
"exponent": "integer"
}
},
"published": true,
"restrictions": [
"RESTRICTION_UNSPECIFIED"
],
"purchasable": true,
"userSeller": "string",
"modelAssetId": "string"
}