Roblox API Reference

MarketplaceService On DevHub

Summary

This class is not creatable. An object of this class cannot be created with Instance.new.
This class is a service. It is a singleton that may be acquired with GetService.

Tags: [NotCreatable, Service]

Inherits (1)

Member index (61)

Type Member History
Instance GetDeveloperProductsAsync () 155
Dictionary GetProductInfo (int64 assetId, InfoType infoType = Asset) 101 131 320
int GetRobuxBalance () 250
Dictionary GetSubscriptionProductInfoAsync (string subscriptionId) 593
Dictionary GetSubscriptionPurchaseInfoAsync (string subscriptionId) 589
Array GetUserSubscriptionPaymentHistoryAsync (Player user, string subscriptionId) 593
Dictionary GetUserSubscriptionStatusAsync (Player user, string subscriptionId) 593
Dictionary PerformPurchase (InfoType infoType, int64 productId, int expectedPrice, string requestId, bool isRobloxPurchase, string collectibleItemId = , string collectibleProductId = , string idempotencyKey = , string purchaseAuthToken = ) 250 320 424 570 580
Dictionary PerformPurchaseV2 (InfoType infoType, int64 productId, int expectedPrice, string requestId, bool isRobloxPurchase, Dictionary collectiblesProductDetails) 587
string PerformSubscriptionPurchase (string subscriptionId) 597
bool PlayerCanMakePurchases (Instance player) 250
bool PlayerOwnsAsset (Instance player, int64 assetId) 320
bool PlayerOwnsBundle (Player player, int64 bundleId) 529
null PrepareCollectiblesPurchase (Instance player, int64 assetId, string collectibleItemId, string collectibleItemInstanceId, string collectibleProductId, int expectedPrice) 587 588
null PromptBundlePurchase (Instance player, int64 bundleId) 384 455 573
null PromptCollectiblesPurchase (Instance player, int64 assetId, string collectibleItemId, string collectibleItemInstanceId, string collectibleProductId, int expectedPrice) 587 588
null PromptGamePassPurchase (Instance player, int64 gamePassId) 302 301 302 320 573
null PromptNativePurchase (Instance player, string productId) 156 573
null PromptNativePurchaseWithLocalPlayer (string productId) 546 573
null PromptPremiumPurchase (Instance player) 416 573
null PromptProductPurchase (Instance player, int64 productId, bool equipIfPurchased = true, CurrencyType currencyType = Default) 125 320 573
null PromptPurchase (Instance player, int64 assetId, bool equipIfPurchased = true, CurrencyType currencyType = Default) 320 573
null PromptRobloxPurchase (int64 assetId, bool equipIfPurchased) 424 573
null PromptSubscriptionPurchase (Player user, string subscriptionId) 393 573 587 589 590
null PromptThirdPartyPurchase (Instance player, string productId) 150 311 573
null ReportAssetSale (string assetId, int robuxAmount) 238 573
null ReportRobuxUpsellStarted () 237 573
null SignalAssetTypePurchased (Instance player, AssetType assetType) 384 573
null SignalClientPurchaseSuccess (string ticket, int64 playerId, int64 productId) 125 320 573
null SignalMockPurchasePremium () 416 573
null SignalPromptBundlePurchaseFinished (Instance player, int64 bundleId, bool success) 394 573
null SignalPromptGamePassPurchaseFinished (Instance player, int64 gamePassId, bool success) 302 301 302 320 573
null SignalPromptPremiumPurchaseFinished (bool didTryPurchasing) 416 573
null SignalPromptProductPurchaseFinished (int64 userId, int64 productId, bool success) 125 320 573
null SignalPromptPurchaseFinished (Instance player, int64 assetId, bool success) 320 573
null SignalPromptSubscriptionPurchaseFinished (string subscriptionId, bool didTryPurchasing) 393 573 589 590 592
null SignalServerLuaDialogClosed (bool value) 138 573
bool UserOwnsGamePassAsync (int64 userId, int64 gamePassId) 329
ClientLuaDialogRequested (Tuple arguments) 138
ClientPurchaseSuccess (string ticket, int64 playerId, int64 productId) 125 320
NativePurchaseFinished (Instance player, string productId, bool wasPurchased) 156
NativePurchaseFinishedWithLocalPlayer (string productId, bool wasPurchased) 546
PrepareCollectiblesPurchaseRequested (Instance player, int64 assetId, string collectibleItemId, string collectibleItemInstanceId, string collectibleProductId, int expectedPrice) 587 588
PromptBundlePurchaseFinished (Instance player, int64 bundleId, bool wasPurchased) 394 455
PromptBundlePurchaseRequested (Instance player, int64 bundleId) 384
PromptCollectiblesPurchaseRequested (Instance player, int64 assetId, string collectibleItemId, string collectibleItemInstanceId, string collectibleProductId, int expectedPrice, string idempotencyKey, string purchaseAuthToken) 587 588
PromptGamePassPurchaseFinished (Instance player, int64 gamePassId, bool wasPurchased) 302 301 302 320
PromptGamePassPurchaseRequested (Instance player, int64 gamePassId) 302 301 302 320
PromptPremiumPurchaseFinished () 416
PromptPremiumPurchaseRequested (Instance player) 416
PromptProductPurchaseFinished (int64 userId, int64 productId, bool isPurchased) 125 139 320 557
PromptProductPurchaseRequested (Instance player, int64 productId, bool equipIfPurchased, CurrencyType currencyType) 125 320
PromptPurchaseFinished (Instance player, int64 assetId, bool isPurchased) 320
PromptPurchaseRequested (Instance player, int64 assetId, bool equipIfPurchased, CurrencyType currencyType) 320
PromptPurchaseRequestedV2 (Instance player, int64 assetId, bool equipIfPurchased, CurrencyType currencyType, string idempotencyKey, string purchaseAuthToken) 580
PromptRobloxPurchaseRequested (int64 assetId, bool equipIfPurchased) 424
PromptSubscriptionPurchaseFinished (Player user, string subscriptionId, bool didTryPurchasing) 393 587 589 589 590 590 592
PromptSubscriptionPurchaseRequested (string subscriptionId) 393 589 590
ServerPurchaseVerification (Dictionary serverResponseTable) 125
ThirdPartyPurchaseFinished (Instance player, string productId, string receipt, bool wasPurchased) 150 311
ProductPurchaseDecision ProcessReceipt (Dictionary receiptInfo) 138 139
57 members inherited from Instance

Removed member index (9)

Type Member History
Dictionary GetSubscriptionStatus (Instance player, int64 subscriptionId) 393 396
bool IsPlayerSubscribed (Instance player, int64 subscriptionId) 396 587 589
null PromptSubscriptionCancellation (Instance player, int64 subscriptionId) 393 573 587 589
void SetDevProductInfoUrl (string url) 131 158
void SetPlayerOwnsAssetUrl (string url) 86 158
void SetProductInfoUrl (string url) 86 158
null SignalPromptSubscriptionCancellationFinished (Instance player, int64 subscriptionId, bool wasCanceled) 393 573 589
PromptSubscriptionCancellationFinished (Instance player, int64 subscriptionId, bool wasCanceled) 393 587 589
PromptSubscriptionCancellationRequested (Instance player, int64 subscriptionId) 393 589

History

Members

ClientLuaDialogRequested On DevHub

Name Type Default
arguments Tuple none

History

ClientPurchaseSuccess On DevHub

Name Type Default
ticket string none
playerId int64 none
productId int64 none

History

GetDeveloperProductsAsync On DevHub

This function yields. It will block the calling thread until completion.
Name Type Default
No parameters.

History

Tags: [Yields]

GetProductInfo On DevHub

This function yields. It will block the calling thread until completion.
Name Type Default
assetId int64 none
infoType InfoType Asset

History

Tags: [Yields]

GetRobuxBalance On DevHub

This function yields. It will block the calling thread until completion.
Name Type Default
No parameters.

History

Tags: [Yields]

GetSubscriptionProductInfoAsync On DevHub

This function yields. It will block the calling thread until completion.
Name Type Default
subscriptionId string none

History

Tags: [Yields]

GetSubscriptionPurchaseInfoAsync On DevHub

This function yields. It will block the calling thread until completion.
Name Type Default
subscriptionId string none

History

Tags: [Yields]

GetUserSubscriptionPaymentHistoryAsync On DevHub

This function yields. It will block the calling thread until completion.
Name Type Default
user Player none
subscriptionId string none

History

Tags: [Yields]

GetUserSubscriptionStatusAsync On DevHub

This function yields. It will block the calling thread until completion.
Name Type Default
user Player none
subscriptionId string none

History

Tags: [Yields]

NativePurchaseFinished On DevHub

Name Type Default
player Instance none
productId string none
wasPurchased bool none

History

NativePurchaseFinishedWithLocalPlayer On DevHub

Name Type Default
productId string none
wasPurchased bool none

History

PerformPurchase On DevHub

This function yields. It will block the calling thread until completion.
Name Type Default
infoType InfoType none
productId int64 none
expectedPrice int none
requestId string none
isRobloxPurchase bool none
collectibleItemId string
collectibleProductId string
idempotencyKey string
purchaseAuthToken string

History

Tags: [Yields]

PerformPurchaseV2 On DevHub

This function yields. It will block the calling thread until completion.
Name Type Default
infoType InfoType none
productId int64 none
expectedPrice int none
requestId string none
isRobloxPurchase bool none
collectiblesProductDetails Dictionary none

History

Tags: [Yields]

PerformSubscriptionPurchase On DevHub

This function yields. It will block the calling thread until completion.
Name Type Default
subscriptionId string none

History

Tags: [Yields]

PlayerCanMakePurchases On DevHub

Name Type Default
player Instance none

History

PlayerOwnsAsset On DevHub

This function yields. It will block the calling thread until completion.
Name Type Default
player Instance none
assetId int64 none

History

Tags: [Yields]

PlayerOwnsBundle On DevHub

This function yields. It will block the calling thread until completion.
Name Type Default
player Player none
bundleId int64 none

History

Tags: [Yields]

PrepareCollectiblesPurchase On DevHub

Name Type Default
player Instance none
assetId int64 none
collectibleItemId string none
collectibleItemInstanceId string none
collectibleProductId string none
expectedPrice int none

History

PrepareCollectiblesPurchaseRequested On DevHub

Name Type Default
player Instance none
assetId int64 none
collectibleItemId string none
collectibleItemInstanceId string none
collectibleProductId string none
expectedPrice int none

History

ProcessReceipt On DevHub

Name Type Default
receiptInfo Dictionary none

History

PromptBundlePurchase On DevHub

Name Type Default
player Instance none
bundleId int64 none

History

PromptBundlePurchaseFinished On DevHub

Name Type Default
player Instance none
bundleId int64 none
wasPurchased bool none

History

PromptBundlePurchaseRequested On DevHub

Name Type Default
player Instance none
bundleId int64 none

History

PromptCollectiblesPurchase On DevHub

Name Type Default
player Instance none
assetId int64 none
collectibleItemId string none
collectibleItemInstanceId string none
collectibleProductId string none
expectedPrice int none

History

PromptCollectiblesPurchaseRequested On DevHub

Name Type Default
player Instance none
assetId int64 none
collectibleItemId string none
collectibleItemInstanceId string none
collectibleProductId string none
expectedPrice int none
idempotencyKey string none
purchaseAuthToken string none

History

PromptGamePassPurchase On DevHub

Name Type Default
player Instance none
gamePassId int64 none

History

PromptGamePassPurchaseFinished On DevHub

Name Type Default
player Instance none
gamePassId int64 none
wasPurchased bool none

History

PromptGamePassPurchaseRequested On DevHub

Name Type Default
player Instance none
gamePassId int64 none

History

PromptNativePurchase On DevHub

Name Type Default
player Instance none
productId string none

History

PromptNativePurchaseWithLocalPlayer On DevHub

Name Type Default
productId string none

History

PromptPremiumPurchase On DevHub

Name Type Default
player Instance none

History

PromptPremiumPurchaseFinished On DevHub

Name Type Default
No parameters.

History

PromptPremiumPurchaseRequested On DevHub

Name Type Default
player Instance none

History

PromptProductPurchase On DevHub

Name Type Default
player Instance none
productId int64 none
equipIfPurchased bool true
currencyType CurrencyType Default

History

PromptProductPurchaseFinished On DevHub

Name Type Default
userId int64 none
productId int64 none
isPurchased bool none

History

PromptProductPurchaseRequested On DevHub

Name Type Default
player Instance none
productId int64 none
equipIfPurchased bool none
currencyType CurrencyType none

History

PromptPurchase On DevHub

Name Type Default
player Instance none
assetId int64 none
equipIfPurchased bool true
currencyType CurrencyType Default

History

PromptPurchaseFinished On DevHub

Name Type Default
player Instance none
assetId int64 none
isPurchased bool none

History

PromptPurchaseRequested On DevHub

Name Type Default
player Instance none
assetId int64 none
equipIfPurchased bool none
currencyType CurrencyType none

History

PromptPurchaseRequestedV2 On DevHub

Name Type Default
player Instance none
assetId int64 none
equipIfPurchased bool none
currencyType CurrencyType none
idempotencyKey string none
purchaseAuthToken string none

History

PromptRobloxPurchase On DevHub

Name Type Default
assetId int64 none
equipIfPurchased bool none

History

PromptRobloxPurchaseRequested On DevHub

Name Type Default
assetId int64 none
equipIfPurchased bool none

History

PromptSubscriptionPurchase On DevHub

Name Type Default
user Player none
subscriptionId string none

History

PromptSubscriptionPurchaseFinished On DevHub

Name Type Default
user Player none
subscriptionId string none
didTryPurchasing bool none

History

PromptSubscriptionPurchaseRequested On DevHub

Name Type Default
subscriptionId string none

History

PromptThirdPartyPurchase On DevHub

Name Type Default
player Instance none
productId string none

History

ReportAssetSale On DevHub

Name Type Default
assetId string none
robuxAmount int none

History

ReportRobuxUpsellStarted On DevHub

Name Type Default
No parameters.

History

ServerPurchaseVerification On DevHub

Name Type Default
serverResponseTable Dictionary none

History

SignalAssetTypePurchased On DevHub

Name Type Default
player Instance none
assetType AssetType none

History

SignalClientPurchaseSuccess On DevHub

Name Type Default
ticket string none
playerId int64 none
productId int64 none

History

SignalMockPurchasePremium On DevHub

Name Type Default
No parameters.

History

SignalPromptBundlePurchaseFinished On DevHub

Name Type Default
player Instance none
bundleId int64 none
success bool none

History

SignalPromptGamePassPurchaseFinished On DevHub

Name Type Default
player Instance none
gamePassId int64 none
success bool none

History

SignalPromptPremiumPurchaseFinished On DevHub

Name Type Default
didTryPurchasing bool none

History

SignalPromptProductPurchaseFinished On DevHub

Name Type Default
userId int64 none
productId int64 none
success bool none

History

SignalPromptPurchaseFinished On DevHub

Name Type Default
player Instance none
assetId int64 none
success bool none

History

SignalPromptSubscriptionPurchaseFinished On DevHub

Name Type Default
subscriptionId string none
didTryPurchasing bool none

History

SignalServerLuaDialogClosed On DevHub

Name Type Default
value bool none

History

ThirdPartyPurchaseFinished On DevHub

Name Type Default
player Instance none
productId string none
receipt string none
wasPurchased bool none

History

UserOwnsGamePassAsync On DevHub

This function yields. It will block the calling thread until completion.
Name Type Default
userId int64 none
gamePassId int64 none

History

Tags: [Yields]

Removed members

GetSubscriptionStatus

This function yields. It will block the calling thread until completion.
Name Type Default
player Instance none
subscriptionId int64 none

History

Tags: [Yields]

IsPlayerSubscribed

This function yields. It will block the calling thread until completion.
This item is deprecated. It exists for backwards-compatibility only, and should not be used for new work.
Name Type Default
player Instance none
subscriptionId int64 none

History

Tags: [Yields, Deprecated]

PromptSubscriptionCancellation

This item is deprecated. It exists for backwards-compatibility only, and should not be used for new work.
Name Type Default
player Instance none
subscriptionId int64 none

History

Tags: [Deprecated]

PromptSubscriptionCancellationFinished

This item is deprecated. It exists for backwards-compatibility only, and should not be used for new work.
Name Type Default
player Instance none
subscriptionId int64 none
wasCanceled bool none

History

Tags: [Deprecated]

PromptSubscriptionCancellationRequested

Name Type Default
player Instance none
subscriptionId int64 none

History

SetDevProductInfoUrl

Name Type Default
url string none

History

SetPlayerOwnsAssetUrl

Name Type Default
url string none

History

SetProductInfoUrl

Name Type Default
url string none

History

SignalPromptSubscriptionCancellationFinished

Name Type Default
player Instance none
subscriptionId int64 none
wasCanceled bool none

History

Relevant classes (2)

Relevant enums (4)