CreatorStoreProduct

Atributos

pathstring
basePriceobject
purchasePriceobject
publishedboolean
restrictionsarray<enum>
Solo salida
purchasableboolean
Solo salida

Uno de los siguientes para seller:

userSellerstring
Solo salida
groupSellerstring
Solo salida

Uno de los siguientes para productType:

modelAssetIdstring
Inmutable
pluginAssetIdstring
Inmutable
audioAssetIdstring
Inmutable
decalAssetIdstring
Inmutable
meshPartAssetIdstring
Inmutable
videoAssetIdstring
Inmutable
fontFamilyAssetIdstring
Inmutable
URL base

https://apis.roblox.com/cloud
El 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
Ámbitos
creator-store-product:write
SolicitudSolicitar cuerpoCreatorStoreProduct
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" \
}'
Respuesta

{
"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}
Ámbitos
creator-store-product:read
SolicitudParámetros de ruta
creator-store-productstring
Obligatorio
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}'
Respuesta

{
"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}
Ámbitos
creator-store-product:write
SolicitudParámetros de ruta
creator-store-productstring
Obligatorio
Parámetros de consulta
updateMaskstring
allowMissingboolean
Solicitar cuerpoCreatorStoreProduct
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" \
}'
Respuesta

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