> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Reward (JSON)

> Reward (JSON)

# Reward (JSON)

與成就相關聯的獎勵。

## Reward

Reward 物件具有下列規格。

| 成員 | 類型 | 描述 |
| - | - | - |
| name | string | 顯示給使用者的獎勵名稱。 |
| description | string | 顯示給使用者的獎勵描述。 |
| value | string | 獎勵的值。 |
| type | RewardType 列舉 | 獎勵類型：<ul><li>invalid (0)：設定了未知且不支援的獎勵類型。</li><li>Gamerscore (1)：此獎勵會為玩家的玩家分數增加點數。</li><li>inApp (2)：此獎勵由遊戲定義並提供。</li><li>Art (3)：此獎勵是數位資產。</li></ul> |
| valueType | ProgressValueDataType 列舉 | 值的類型。如需詳細資訊，請參閱 [Requirement (JSON)](https://docs.xbox.com/zh-TW/reference/live/rest/json/json-requirement.md)。 |

## 範例 JSON 語法

```json theme={null}
{
  "name":null,
  "description":null,
  "value":"10",
  "type":"Gamerscore",
  "valueType":"Int"
}

```

## 另請參閱

##### 上層

[JavaScript Object Notation (JSON) 物件參考](https://docs.xbox.com/zh-TW/reference/live/rest/json/atoc-xboxlivews-reference-json.md)


## Related topics

- [JavaScript 物件標記法 (JSON) 物件參考](https://docs.xbox.com/zh-TW/reference/live/rest/json/atoc-xboxlivews-reference-json.md)
- [Reward Ad Activity](https://docs.xbox.com/api-reference/advertising/reward-ad-activity.md)
- [獎勵廣告活動](https://docs.xbox.com/zh-TW/services/playfab/api-references/rest/client/advertising/reward-ad-activity.md)
- [Achievement (JSON)](https://docs.xbox.com/zh-TW/reference/live/rest/json/json-achievementv2.md)
- [XblAchievementReward](https://docs.xbox.com/zh-TW/reference/live/xsapi-c/achievements_c/structs/xblachievementreward.md)
