> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.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://devdocs.xbox.com/zh-CN/reference/live/rest/json/json-requirement)。 |

## JSON 语法示例

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

```

## 另请参阅

##### 父主题

[JavaScript 对象表示法 (JSON) 对象参考](https://devdocs.xbox.com/zh-CN/reference/live/rest/json/atoc-xboxlivews-reference-json)


## Related topics

- [Reward Ad Activity](https://devdocs.xbox.com/services/playfab/api-references/rest/client/advertising/reward-ad-activity.md)
- [XblAchievementReward](https://devdocs.xbox.com/reference/live/xsapi-c/achievements_c/structs/xblachievementreward.md)
- [Configure Xbox achievement rewards](https://devdocs.xbox.com/services/xbox-services/player-data/achievements/title-managed/concepts/live-achievement-rewards.md)
- [Recompensar atividade de anúncios](https://devdocs.xbox.com/pt-BR/services/playfab/api-references/rest/client/advertising/reward-ad-activity.md)
- [Recompensar actividad de anuncios](https://devdocs.xbox.com/es/services/playfab/api-references/rest/client/advertising/reward-ad-activity.md)
