Hi, I was wondering why the Inventory_Type of WoW retail items do not have any ID.
Take this item (186282) as example:
https://us.api.blizzard.com/data/wow/item/186282?namespace=static-us&locale=en_US&access_token={accessToken}
Item JSON
{
"_links": {
"self": {
"href": "https://us.api.blizzard.com/data/wow/item/186282?namespace=static-9.1.5_40764-us"
}
},
"id": 186282,
"name": "Sacrificer's Sacramental Cassock",
"quality": {
"type": "EPIC",
"name": "Epic"
},
"level": 226,
"required_level": 60,
"media": {
"key": {
"href": "https://us.api.blizzard.com/data/wow/media/item/186282?namespace=static-9.1.5_40764-us"
},
"id": 186282
},
"item_class": {
"key": {
"href": "https://us.api.blizzard.com/data/wow/item-class/4?namespace=static-9.1.5_40764-us"
},
"name": "Armor",
"id": 4
},
"item_subclass": {
"key": {
"href": "https://us.api.blizzard.com/data/wow/item-class/4/item-subclass/1?namespace=static-9.1.5_40764-us"
},
"name": "Cloth",
"id": 1
},
"inventory_type": {
"type": "ROBE",
"name": "Chest"
},
"purchase_price": 4157482,
"sell_price": 831496,
"max_count": 0,
"is_equippable": true,
"is_stackable": false,
"preview_item": {
"item": {
"key": {
"href": "https://us.api.blizzard.com/data/wow/item/186282?namespace=static-9.1.5_40764-us"
},
"id": 186282
},
"sockets": [
{
"socket_type": {
"type": "DOMINATION",
"name": "Domination Socket"
}
}
],
"quality": {
"type": "EPIC",
"name": "Epic"
},
"name": "Sacrificer's Sacramental Cassock",
"media": {
"key": {
"href": "https://us.api.blizzard.com/data/wow/media/item/186282?namespace=static-9.1.5_40764-us"
},
"id": 186282
},
"item_class": {
"key": {
"href": "https://us.api.blizzard.com/data/wow/item-class/4?namespace=static-9.1.5_40764-us"
},
"name": "Armor",
"id": 4
},
"item_subclass": {
"key": {
"href": "https://us.api.blizzard.com/data/wow/item-class/4/item-subclass/1?namespace=static-9.1.5_40764-us"
},
"name": "Cloth",
"id": 1
},
"inventory_type": {
"type": "ROBE",
"name": "Chest"
},
"binding": {
"type": "ON_ACQUIRE",
"name": "Binds when picked up"
},
"armor": {
"value": 58,
"display": {
"display_string": "58 Armor",
"color": {
"r": 255,
"g": 255,
"b": 255,
"a": 1
}
}
},
"stats": [
{
"type": {
"type": "INTELLECT",
"name": "Intellect"
},
"value": 81,
"display": {
"display_string": "+81 Intellect",
"color": {
"r": 255,
"g": 255,
"b": 255,
"a": 1
}
}
},
{
"type": {
"type": "STAMINA",
"name": "Stamina"
},
"value": 149,
"display": {
"display_string": "+149 Stamina",
"color": {
"r": 255,
"g": 255,
"b": 255,
"a": 1
}
}
},
{
"type": {
"type": "HASTE_RATING",
"name": "Haste"
},
"value": 99,
"is_equip_bonus": true,
"display": {
"display_string": "+99 Haste",
"color": {
"r": 0,
"g": 255,
"b": 0,
"a": 1
}
}
},
{
"type": {
"type": "MASTERY_RATING",
"name": "Mastery"
},
"value": 43,
"is_equip_bonus": true,
"display": {
"display_string": "+43 Mastery",
"color": {
"r": 0,
"g": 255,
"b": 0,
"a": 1
}
}
}
],
"spells": [
{
"spell": {
"key": {
"href": "https://us.api.blizzard.com/data/wow/spell/357347?namespace=static-9.1.5_40764-us"
},
"name": "Blood Link",
"id": 357347
},
"description": "Bonus: Socket 3 Blood Shards to gain Blood Link while in the Maw.\r\n\r\nBlood Link drains health from your enemies and redistributes it to you and your allies.",
"display_color": {
"r": 128,
"g": 128,
"b": 128,
"a": 1
}
}
],
"sell_price": {
"value": 831496,
"display_strings": {
"header": "Sell Price:",
"gold": "83",
"silver": "14",
"copper": "96"
}
},
"requirements": {
"level": {
"value": 60,
"display_string": "Requires Level 60"
}
},
"level": {
"value": 226,
"display_string": "Item Level 226"
},
"durability": {
"value": 165,
"display_string": "Durability 165 / 165"
}
},
"purchase_quantity": 1
}
If you look closely you can find that the only parameter that specifies the type of the armor (Chest, Head, etc) is the that one:
"inventory_type": {
"type": "ROBE",
"name": "Chest"
},
But it’s not followed by any ID, just a “name” string? Looks weird for me taking into account the whole document, which includes ID’s for every type.
Also the name will be null if the locale parameter of the URL is diferent to en_US.
I’m missing something? Is this designed on porpouse? Why?
I’ve found in Wowpedia the corresponding ID’s but only for Enhancement(?):
https://wowpedia.fandom.com/wiki/ItemType#8:_Item_Enhancement
Exists a posiblity to add those ID’s to the inventory_type parameter as ID? Thanks!