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,
"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,
"isAuto": true,
"autoDelivery": {
"loginName": "loginName",
"retypeLoginName": "",
"password": "123password",
"retypePassword": "123password",
"characterName": "CharacterName",
"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。 |
| serverId | int | 是 | 一级服务器ID。 |
| 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(真)。 |
| isAuto | boolean | 是 | 是否自动发货。 |
| manual | object | 否 | 手动发货账号信息 (当 isAuto 为 false 时必填). |
| manual.loginName | string | 是 (当 isAuto 为 false) | 游戏账号登录名 |
| manual.retypeLoginName | string | 是 (当 isAuto 为 false) | 再次输入游戏账号登录名 |
| manual.choose1 | boolean | 是 (当 isAuto 为 false) | 您知晓家长控制码或未设家长控制码。必须为 'true'。 |
| manual.choose2 | boolean | 是 (当 isAuto 为 false) | 您知晓游戏账号注册时所用的电话号码。必须为 'true'。 |
| manual.choose3 | boolean | 是 (当 isAuto 为 false) | 您可提供游戏账号的注册邮箱。必须为 'true'。 |
| manual.choose4 | boolean | 是 (当 isAuto 为 false) | 您知晓游戏账号注册时所用的用户全名。必须为 'true'。 |
| manual.choose5 | boolean | 是 (当 isAuto 为 false) | 您知晓游戏账号的安全问题及其答案。必须为 'true'。如未设安全问题,填'true'。 |
| manual.deliveryGuarantee | int | 是 (当 isAuto 为 false) | 发货期限。通过customId设置赋值。选项列表可通过 api/v1/games/{id}/{type}/deliveryTimes 接口获取。 |
| autoDelivery | object | 否 | 自动发货账号信息 (当 isAuto 为 true 时必填). |
| autoDelivery.loginName | string | 是 (当 isAuto 为 true) | 游戏账号登录名。 |
| autoDelivery.retypeLoginName | string | 是 (当 isAuto 为 true) | 再次输入游戏账号登录名。 |
| autoDelivery.password | string | 是 (当 isAuto 为 true) | 游戏账号密码。 |
| autoDelivery.retypePassword | string | 是 (当 isAuto 为 true) | 再次输入游戏账号密码。 |
| autoDelivery.characterName | string | 否 | 游戏内角色名称。 |
| autoDelivery.isInfoSame | boolean | 是 (当 isAuto 为 true) | 游戏账号注册时所用信息与当前账号持有人信息一致。 |
| autoDelivery.original.firstName | string | 是 (当 isAuto 为 true) | 注册时填写的名 |
| autoDelivery.original.lastName | string | 是 (当 isAuto 为 true) | 注册时填写的姓。 |
| autoDelivery.original.phone | string | 是 (当 isAuto 为 true)<> | 注册时填写的手机号码。 |
| autoDelivery.original.email | string | 是 (当 isAuto 为 true) | 注册时填写的电子邮箱。 |
| autoDelivery.original.city | string | 是 (当 isAuto 为 true) | 注册时填写的城市 |
| autoDelivery.original.country | string | 是 (当 isAuto 为 true) | 注册时填写的国家。 |
| autoDelivery.current.phone | string | 是 (当 isAuto 为 true) | 当前手机号。 |
| autoDelivery.current.email | string | 是 (当 isAuto 为 true) | 当前邮箱。 |
| autoDelivery.current.city | string | 是 (当 isAuto 为 true) | 当前城市。 |
| autoDelivery.current.country | string | 是 (当 isAuto 为 true) | 当前国家。 |
| autoDelivery.choose5 | boolean | 是 (当 isAuto 为 true) | 您知晓游戏账号的安全问题及其答案。必须为 'true'。如未设安全问题,填'true'。 |
| autoDelivery.instruction | string | 否 | 其它补充信息。 |
| autoDelivery.securityQuestion | string | 是 (当 isAuto 为 true) | 账号保全信息:安保问题 |
| autoDelivery.securityAnswer | string | 是 (当 isAuto 为 true) | 账号保全信息:安保问题答案 |
| autoDelivery.retypeSecurityAnswer | string | 是 (当 isAuto 为 true) | 再次输入安全问题答案 |
| autoDelivery.parentalPassword | string | 是 (当 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 | 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 | 商品图片黑名单标识。该字段为空表示未加入黑名单。 |
iv. 报错示例
响应报错
{
"code": 10002,
"message": "Invalid parameter.",
"requestId": "550e8400-e29b-41d4-a716-446655440000"
}常见报错代码
| 参数 | 类型 | 描述 |
|---|---|---|
| code | int | 报错代码。 常见值: 10002 (无效参数), 50001 (服务器内部错误)。 |
| message | string | 报错详情。 |
| requestId | string | 请求标识号,用以追溯。 |