# 通过客户端兑换游戏密钥 通过提供的游戏密钥授予权利。 注意:只能兑换DRM free的密钥。 Endpoint: POST /v2/project/{project_id}/entitlement/redeem Version: 2.0.0 Security: XsollaLoginUserJWT ## Path parameters: - `project_id` (integer, required) 项目ID。您可以在您的发布商帐户项目名称旁边找到。 Example: 44056 ## Request fields (application/json): - `code` (string, required) 游戏密钥。 Example: "AAAA-BBBB-CCCC-DDDD" - `sandbox` (boolean) 在沙盒模式下兑换游戏密钥。该选项适用于在公司用户列表中指定的那些用户。 ## Response 403 fields (application/json): - `errorCode` (integer) - `errorMessage` (string) Example: "Authorization header not sent." - `statusCode` (integer) Example: 403 - `transactionId` (string) Example: "x-x-x-x-transactionId-mock-x-x-x" ## Response 404 fields (application/json): - `errorCode` (integer) Example: 4603 - `errorMessage` (string) Example: "[0401-4603]: Game code not found." - `statusCode` (integer) Example: 404 - `transactionId` (string) Example: "x-x-x-x-transactionId-mock-x-x-x" ## Response 422 fields (application/json): - `errorCode` (integer) Example: 5103 - `errorMessage` (string) Example: "[0401-5103]: Selected drm is not drmfree." - `statusCode` (integer) Example: 422 - `transactionId` (string) Example: "x-x-x-x-transactionId-mock-x-x-x" ## Response 201 fields