PUThttps://seller-api.playerauctions.com/api/v1/offers/account
更新已有的账号商品。
i. 请求示例
当 isAuto 为 false 时(手动发货)
{
"offerId": 71394136,
"gameId": 3637,
"serverId": 4144,
"categoryId": 4144,
"price": 99.99,
"selleraftersaleprotection": 30,
"offerDuration": 30,
"title": "Simple Title Update",
"offerDesc": "<p>Simple Description Update.</p>",
"screenShot": "https://cdn-image.azureedge.net/title-image/liutest6/202606090157435743.png",
"agreeCheck": true,
"isAgree": false,
"isAuto": false,
"manual": {
"loginName": "loginName",
"retypeLoginName": "loginName",
"choose1": true,
"choose2": true,
"choose3": true,
"choose4": true,
"choose5": true,
"deliveryGuarantee": 1
}
}
当 isAuto 为 true 时(自动发货)
{
"offerId": 71394136,
"gameId": 3637,
"serverId": 4144,
"categoryId": 4144,
"price": 99.99,
"selleraftersaleprotection": 30,
"offerDuration": 30,
"title": "Simple Title Update",
"offerDesc": "<p>Simple Description Update.</p>",
"screenShot": "https://cdn-image.azureedge.net/title-image/liutest6/202606090157435743.png",
"agreeCheck": true,
"isAgree": false,
"isAuto": true,
"autoDelivery": {
"loginName": "loginName",
"retypeLoginName": "",
"password": "123password",
"retypePassword": "123password",
"characterName": "CharacterName",
"firstCDKey": "example-key",
"isInfoSame": true,
"original": {
"firstName": "John",
"lastName": "Doe",
"phone": "0123456789",
"email": "test@example.com",
"city": "Shanghai",
"country": "China"
},
"current": {
"phone": "0123456789",
"email": "test@example.com",
"city": "Shanghai",
"country": "China"
},
"choose5": true,
"instruction": "Extra instruction.",
"securityQuestion": "SecurityQuestion",
"securityAnswer": "Answer",
"retypeSecurityAnswer": "",
"parentalPassword": "password123"
}
}
ii. 请求参数
请求体参数
| 参数 | 类型 | 必填 | 描述 |
|---|---|---|---|
| offerId | int | 是 | 需编辑的商品ID。 |
| gameId | int | 是 | 游戏ID。 |
| categoryId | int | 是 | 阵营ID(子节点 {id})。树状结构可通过(api/v1/games/{id}/{type}/servers)接口获取。 |
| serverId | int | 是 | 服务器ID {id}。树状结构可通过(api/v1/games/{id}/{type}/servers)接口获取。 |
| price | decimal | 是 | 单价。 |
| sellerAfterSaleProtection | int | 是 | 卖家提供售后保障天数。可选值: 0, 7, 14, 或30。 |
| offerDuration | int | 是 | 商品有效期天数。可选值: 3, 7, 14, 或30。 |
| title | string | 是 | 商品标题。 |
| offerDesc | string | 否 | 商品描述。 |
| screenShot | string | 否 | 商品图片链接。 |
| agreeCheck | boolean | 是 | 是否同意 [Secure Seller Delivery Agreement] (用户发货安全协议)。必须为true(真)。 |
| isAgree | boolean | 否 | 无作用。如已有付款验证中的订单,本商品无法编辑。如要继续,请先通过验证或取消原订单。 |
| isAuto | boolean | 是 | 是否自动发货。 |
| manual | object | No* | 当 isAuto 为 false 时必填。手动发货账号信息。 |
| └─ loginName | string | No* | 当 isAuto 为 false 时必填。游戏账号登录名。 |
| └─ retypeLoginName | string | No* | 当 isAuto 为 false 时必填。再次输入游戏账号登录名。 |
| └─ choose1 | boolean | No* | 当 isAuto 为 false 时必填。您知晓家长控制码或未设家长控制码。必须为 'true'。 |
| └─ choose2 | boolean | No* | 当 isAuto 为 false 时必填。您知晓游戏账号注册时所用的电话号码。必须为 'true'。 |
| └─ choose3 | boolean | No* | 当 isAuto 为 false 时必填。您可提供游戏账号的注册邮箱。必须为 'true'。 |
| └─ choose4 | boolean | No* | 当 isAuto 为 false 时必填。您知晓游戏账号注册时所用的用户全名。必须为 'true'。 |
| └─ choose5 | boolean | No* | 当 isAuto 为 false 时必填。您知晓游戏账号的安全问题及其答案。必须为 'true'。如未设安全问题,填'true'。 |
| └─ deliveryGuarantee | int | No* | 当 isAuto 为 false 时必填。发货期限。通过customId设置赋值。选项列表可通过 api/v1/games/{id}/{type}/deliveryTimes 接口获取。 |
| autoDelivery | object | No* | 当 isAuto 为 true 时必填。自动发货账号信息。 |
| └─ loginName | string | No* | 当 isAuto 为 true 时必填。游戏账号登录名。 |
| └─ retypeLoginName | string | No* | 当 isAuto 为 true 时必填。再次输入游戏账号登录名。 |
| └─ password | string | No* | 当 isAuto 为 true 时必填。游戏账号密码。 |
| └─ retypePassword | string | No* | 当 isAuto 为 true 时必填。再次输入游戏账号密码。 |
| └─ characterName | string | 否 | 游戏内角色名称。 |
| └─ firstCDKey | string | No* | 当 isAuto 为 true 时必填。注册 CD Key(激活码)。请参考游戏列表(Game List)接口。isCDKeyRequired 字段用以指示是否需要填写此项。 |
| └─ isInfoSame | boolean | No* | 当 isAuto 为 true 时必填。游戏账号注册时所用信息与当前账号持有人信息一致。 |
| └─ original.firstName | string | No* | 当 isAuto 为 true 时必填。注册时填写的名。 |
| └─ original.lastName | string | No* | 当 isAuto 为 true 时必填。注册时填写的姓。 |
| └─ original.phone | string | No* | 当 isAuto 为 true 时必填。注册时填写的手机号码。 |
| └─ original.email | string | No* | 当 isAuto 为 true 时必填。注册时填写的电子邮箱。 |
| └─ original.city | string | No* | 当 isAuto 为 true 时必填。注册时填写的城市。 |
| └─ original.country | string | No* | 当 isAuto 为 true 时必填。注册时填写的国家。 |
| └─ current.phone | string | No* | 当 isAuto 为 true 时必填。当前手机号。 |
| └─ current.email | string | No* | 当 isAuto 为 true 时必填。当前邮箱。 |
| └─ current.city | string | No* | 当 isAuto 为 true 时必填。当前城市。 |
| └─ current.country | string | No* | 当 isAuto 为 true 时必填。当前国家。 |
| └─ choose5 | boolean | No* | 当 isAuto 为 true 时必填。您知晓游戏账号的安全问题及其答案。必须为 'true'。如未设安全问题,填'true'。 |
| └─ instruction | string | 否 | 其它补充信息。 |
| └─ securityQuestion | string | No* | 当 isAuto 为 true 时必填。账号保全信息:安保问题。 |
| └─ securityAnswer | string | No* | 当 isAuto 为 true 时必填。账号保全信息:安保问题答案。 |
| └─ retypeSecurityAnswer | string | No* | 当 isAuto 为 true 时必填。再次输入安全问题答案。 |
| └─ parentalPassword | string | No* | 当 isAuto 为 true 时必填。家长控制码。 |
iii. 响应示例
成功响应
{
"code": 10000,
"message": "",
"requestId": "550e8400-e29b-41d4-a716-446655440000",
"data":{
"offerId": 71394137,
"navigateURL": "https://www.playerauctions.com/lol-account/71394137a!simple-title-update/",
"title": "Simple Title Update",
"productType": "account",
"gameName": "League of Legends",
"productName": "Accounts",
"screenShot": "",
"imageBlacklist": ""
}
}响应报错
{
"code": 10002,
"message": "Invalid parameter.",
"requestId": "550e8400-e29b-41d4-a716-446655440000"
}iv. 响应参数
| 参数 | 类型 | 描述 |
|---|---|---|
| code | int | 响应状态码。 10000表示成功,其他值表示发生错误。 |
| message | string | 响应消息。 当请求失败时,该字段会包含具体的错误详情。 |
| requestId | string | 请求标识号,用以追溯。 |
| data.offerId | int | 更新后的商品 ID。 |
| data.navigateURL | string | 更新后的商品链接。 |
| data.title | string | 商品标题。 |
| data.productType | string | 商品类型。 |
| data.gameName | string | 游戏名称。 |
| data.productName | string | 商品名称。 |
| data.screenShot | string | 商品图片链接。 |
| data.imageBlacklist | string | 商品图片黑名单标识。该字段为空表示未加入黑名单。 |