World of Warcraft Forever API · C_CatalogShop.md, for your AI
C_CatalogShop
38 functions, 18 events, 13 tables, as Blizzard documents them for Forever 1.60.1 (70959).
Making an addon with an AI? Tell it: Read https://wowaddons.gg/agents.md, then make me a World of Warcraft Forever addon that …, try it with me in the game, and publish it. It checks every call against this API before you try it in the game, then publishes it here. How it works.
Functions
canPurchaseProducts = C_CatalogShop.BulkPurchaseProducts(productIDs)
Arguments
Returns
C_CatalogShop.BulkRefundDecors(decorGUIDs)
Arguments
C_CatalogShop.CloseCatalogShopInteraction()
C_CatalogShop.ConfirmHousingPurchase(productIDs)
Arguments
vcProductID = C_CatalogShop.FindBestCurrencyProductForNeededAmount(vcCurrencyCode, amountNeeded)
Arguments
vcCurrencyCode | string | |
|---|
amountNeeded | number | |
|---|
Returns
vcProductID | number may be nil | |
|---|
categoryIDs = C_CatalogShop.GetAvailableCategoryIDs()
Returns
raceIDs = C_CatalogShop.GetAvailableTransmogRaceInfos()
Returns
item = C_CatalogShop.GetCatalogShopProductDisplayInfo(catalogShopProductID)
Arguments
catalogShopProductID | number | |
|---|
Returns
categoryInfo = C_CatalogShop.GetCategoryInfo(categoryID)
Arguments
Returns
sectionInfo = C_CatalogShop.GetCategorySectionInfo(categoryID, sectionID)
Arguments
categoryID | number | |
|---|
sectionID | number | |
|---|
Returns
errorResultEnum, errorResultRaw = C_CatalogShop.GetFailureInfo()
Returns
errorResultEnum | StoreError may be nil | |
|---|
errorResultRaw | number may be nil | |
|---|
categoryInfo = C_CatalogShop.GetFirstCategoryByProductID(productID)
Arguments
Returns
newProducts = C_CatalogShop.GetNewProducts()
Returns
timeRemainingSecs = C_CatalogShop.GetProductAvailabilityTimeRemainingSecs(catalogShopProductID)
Arguments
catalogShopProductID | number | |
|---|
Returns
timeRemainingSecs | number may be nil | |
|---|
childIDs = C_CatalogShop.GetProductIDsForBundle(bundleProductID)
Arguments
Returns
productIDs = C_CatalogShop.GetProductIDsForCategory(categoryID)
Arguments
Returns
productIDs = C_CatalogShop.GetProductIDsForCategorySection(categoryID, sectionID)
Arguments
categoryID | number | |
|---|
sectionID | number | |
|---|
Returns
productInfo = C_CatalogShop.GetProductInfo(productID)
Arguments
Returns
sortOrder = C_CatalogShop.GetProductSortOrder(categoryID, sectionID, productID)
Arguments
categoryID | number | |
|---|
sectionID | number | |
|---|
productID | number | |
|---|
Returns
sortOrder | number may be nil | |
|---|
refundableDecorInfos, minTimeRemainingSeconds = C_CatalogShop.GetRefundableDecors([productIdFilterOpt])
Arguments
productIdFilterOpt | number may be nil | |
|---|
Returns
sectionIDs = C_CatalogShop.GetSectionIDsForCategory(categoryID)
Arguments
Returns
vcProductInfos = C_CatalogShop.GetVCProductInfos()
Returns
balance = C_CatalogShop.GetVirtualCurrencyBalance(currencyCode)
Arguments
Returns
hasNewProducts = C_CatalogShop.HasNewProducts()
Returns
isIncludedInAnyBundle = C_CatalogShop.IsProductIncludedInAnyBundle(productID)
Arguments
Returns
isIncludedInAnyBundle | bool | |
|---|
value = C_CatalogShop.IsShop2Enabled()
Returns
C_CatalogShop.OnLegalDisclaimerClicked(catalogShopProductID)
Arguments
catalogShopProductID | number | |
|---|
C_CatalogShop.OnLegalPersonalizedOptOutClicked()
shoppingSessionUUIDStr = C_CatalogShop.OpenCatalogShopInteractionFromHouse()
Returns
shoppingSessionUUIDStr | string | |
|---|
shoppingSessionUUIDStr = C_CatalogShop.OpenCatalogShopInteractionFromShop()
Returns
shoppingSessionUUIDStr | string | |
|---|
C_CatalogShop.ProductDisplayedTelemetry(categoryId, sectionId, catalogShopProductID)
Arguments
categoryId | number | |
|---|
sectionId | number | |
|---|
catalogShopProductID | number | |
|---|
C_CatalogShop.ProductSelectedTelemetry(categoryId, sectionId, catalogShopProductID, wasCodeSelection)
Arguments
categoryId | number | |
|---|
sectionId | number | |
|---|
catalogShopProductID | number | |
|---|
wasCodeSelection | bool | |
|---|
canPurchase = C_CatalogShop.PurchaseProduct(productID)
Arguments
Returns
C_CatalogShop.RefreshRefundableDecors()
C_CatalogShop.RefreshVirtualCurrencyBalance(currencyCode)
Arguments
shouldShowHousingWarning = C_CatalogShop.ShouldShowHousingWarning()
Returns
shouldShowHousingWarning | bool | |
|---|
C_CatalogShop.StartHousingVCPurchaseConfirmation(productID)
Arguments
Events
shoppingSessionUUIDStr | string may be nil | |
|---|
shoppingSessionUUIDStr | string may be nil | |
|---|
shoppingSessionUUIDStr | string may be nil | |
|---|
currencyCode | string | |
|---|
balance | string | |
|---|
Tables
raceID | number | |
|---|
displayName | string | |
|---|
recordId | number | |
|---|
parentProductId | number may be nil | |
|---|
entitlementId | string | |
|---|
externalTransactionId | string | |
|---|
status | SimpleOrderStatus | |
|---|
childProductID | number | |
|---|
displayOrder | number | |
|---|
quantityInBundle | number | |
|---|
ID | number | |
|---|
displayName | string | |
|---|
iconTexture | string | |
|---|
linkTag | string | |
|---|
isDisabled | bool | |
|---|
showPersistentRefundButton | bool | |
|---|
defaultPreviewModelSceneID | number | |
|---|
defaultCardModelSceneID | number | |
|---|
defaultWideCardModelSceneID | number | |
|---|
itemID | number | |
|---|
overridePreviewModelSceneID | number may be nil | |
|---|
overrideCardModelSceneID | number may be nil | |
|---|
overrideWideCardModelSceneID | number may be nil | |
|---|
creatureDisplayInfoIDs | number[] | |
|---|
spellVisualIDs | number[] | |
|---|
mainHandItemModifiedAppearanceID | number may be nil | |
|---|
offHandItemModifiedAppearanceID | number may be nil | |
|---|
itemModifiedAppearanceIDs | number[] | |
|---|
iconFileDataID | number may be nil | |
|---|
iconTextureKit | textureKit may be nil | |
|---|
productType | string may be nil | |
|---|
itemDescription | string may be nil | |
|---|
hasUnknownLicense | bool | |
|---|
productPMTURL | string may be nil | |
|---|
additionalProductPMTURLs | string[] | |
|---|
otherProductImageAtlasName | string may be nil | |
|---|
otherProductGameTitleBaseTag | string may be nil | |
|---|
otherProductGameType | string may be nil | |
|---|
customLoopingSoundStart | number may be nil | |
|---|
customLoopingSoundMiddle | number may be nil | |
|---|
customLoopingSoundEnd | number may be nil | |
|---|
specialActorID_1 | string may be nil | |
|---|
specialActorID_2 | string may be nil | |
|---|
specialActorID_3 | string may be nil | |
|---|
specialActorID_4 | string may be nil | |
|---|
specialActorID_5 | string may be nil | |
|---|
gameFlavorID | number may be nil | |
|---|
decorFileDataID | number may be nil | |
|---|
quantity | number may be nil | |
|---|
houseTextureAtlas | textureAtlas may be nil | |
|---|
catalogShopProductID | number | |
|---|
name | string | |
|---|
type | string may be nil | |
|---|
description | string | |
|---|
iconTexture | string | |
|---|
isFullyOwned | bool | |
|---|
isPurchasePending | bool | |
|---|
refundable | bool | |
|---|
price | string | |
|---|
originalPrice | string | |
|---|
discountPercentage | number | |
|---|
itemID | number | |
|---|
mountID | number | |
|---|
mountTypeName | string | |
|---|
speciesID | number | |
|---|
transmogSetID | number | |
|---|
itemModifiedAppearanceID | number | |
|---|
subItems | CatalogShopSubItemInfo[] | |
|---|
subItemsLoaded | bool | |
|---|
backgroundTexture | string | |
|---|
foregroundTexture | string may be nil | |
|---|
smallCardBGTexture | string may be nil | |
|---|
smallCardFGTexture | string may be nil | |
|---|
wideCardBGTexture | string may be nil | |
|---|
wideCardFGTexture | string may be nil | |
|---|
previewIconTexture | string may be nil | |
|---|
optionalWideCardBackgroundTexture | string may be nil | |
|---|
isBundle | bool | |
|---|
bundleChildrenSize | number | |
|---|
licenseTermType | number | |
|---|
licenseTermDuration | number | |
|---|
virtualCurrencies | CatalogShopVirtualCurrency[] | |
|---|
isHidden | bool | |
|---|
isMystery | bool | |
|---|
hasPendingOrders | bool | |
|---|
numBundleDetailCards | number | |
|---|
isDynamicallyDiscounted | bool | |
|---|
shouldShowOriginalPrice | bool | |
|---|
wideCardBGOverrideProductURL | string may be nil | |
|---|
previewBGOverrideProductURL | string may be nil | |
|---|
previewSmallBGOverrideProductURL | string may be nil | |
|---|
decorQuantity | DecorQuantity may be nil | |
|---|
isVCProduct | bool | |
|---|
containsHousingItem | bool | |
|---|
deferredGameTimeDays | number | |
|---|
ID | number | |
|---|
displayName | string | |
|---|
parentCatalogShopCategoryInfoID | number may be nil | |
|---|
cardType | string may be nil | |
|---|
scrollGridSize | number may be nil | |
|---|
shouldShowRecommendationOptOutDisclaimer | bool | |
|---|
animID | number may be nil | |
|---|
spellVisualKitID | number may be nil | |
|---|
name | string | |
|---|
itemID | number | |
|---|
itemAppearanceID | number | |
|---|
invType | string | |
|---|
quality | ItemQuality | |
|---|
amount | number | |
|---|
currencyCode | string | |
|---|
placedQuantity | number | |
|---|
storedQuantity | number | |
|---|
decorGUID | WOWGUID | |
|---|
timeRemainingSeconds | time_t | |
|---|
name | string | |
|---|
price | string | |
|---|