CreatorStoreProduct

Attributi

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

Uno dei seguenti per seller:

userSellerstring
Solo output
groupSellerstring
Solo output

Uno dei seguenti per productType:

modelAssetIdstring
Immutabile
pluginAssetIdstring
Immutabile
audioAssetIdstring
Immutabile
decalAssetIdstring
Immutabile
meshPartAssetIdstring
Immutabile
videoAssetIdstring
Immutabile
fontFamilyAssetIdstring
Immutabile
URL di base

https://apis.roblox.com
Risorsa 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
Campi
creator-store-product:write
RichiestaCorpo della richiestaCreatorStoreProduct
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}' \
-H 'Content-Type: application/json' \
--data '{
"basePrice": {
"currencyCode": "string",
"quantity": {
"significand": "integer",
"exponent": "integer"
}
},
"purchasePrice": {
"currencyCode": "string",
"quantity": {
"significand": "integer",
"exponent": "integer"
}
},
"published": true,
"modelAssetId": "string"
}'
Risposta

{
"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_id}
Campi
creator-store-product:read
RichiestaParametri percorso
creator_store_product_idstring
Necessario
GET /cloud/v2/creator-store-products/{creator_store_product_id}

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

{
"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_id}
Campi
creator-store-product:write
RichiestaParametri percorso
creator_store_product_idstring
Necessario
Parametri query
updateMaskstring
allowMissingboolean
Corpo della richiestaCreatorStoreProduct
PATCH /cloud/v2/creator-store-products/{creator_store_product_id}

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

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