GEThttps://seller-api.playerauctions.com/api/v1/offers/powerleveling/{id}
通过商品ID查询单个代练商品。。
i. 请求参数
路径参数
| 参数 | 类型 | 必填 | 描述 |
|---|---|---|---|
| id | int | 是 | 商品ID。 |
ii. 响应示例
成功响应
{
"code": 10000,
"message": "",
"requestId": "550e8400-e29b-41d4-a716-446655440000",
"data": {
"totalUnit": 100,
"itemId": 516,
"itemPath": "516",
"parentItemId": 516,
"rootItem": 516,
"gameId": 3637,
"price": 69.990000,
"offerDuration": 30,
"title": "Simple Title",
"offerDesc": "<p>Simple Title Update</p>",
"offerId": 71394385,
"memberId": 60000,
"state": 1,
"productType": "powerleveling"
}
}
响应参数
| 参数 | 类型 | 描述 |
|---|---|---|
| code | int | 响应状态码。 10000表示成功,其他值表示发生错误。 |
| message | string | 响应消息。 该字段包含具体的错误详情。 |
| requestId | string | 请求标识号,用以追溯。 |
| data | object | 代练商品详情。 |
| totalUnit | int | 总份数。 |
| itemId | int | 服务名称。 |
| itemPath | string | 服务的层级路径。 |
| parentItemId | int | 服务分类。 |
| rootItem | int | 服务根类目。 |
| gameId | int | 游戏ID。 |
| price | float | 每份单价。 |
| offerDuration | int | 商品有效期天数。可选值: 3, 7, 14, 或30. |
| title | string | 商品标题。 |
| offerDesc | string | 商品描述(html格式)。 |
| offerId | int | 商品ID. |
| memberId | int | 该商品的卖家/会员 ID。 |
| state | int | 商品当前状态 (0 已关闭, 1 发售中, 3 已隐藏)。 |
| productType | string | 商品类型。此端点商品类型为 "powerleveling" 。 |
iii. 报错示例
响应报错
{
"code": 10002,
"message": "Offer not found.",
"requestId": "550e8400-e29b-41d4-a716-446655440000"
}常见报错代码
| 参数 | 类型 | 描述 |
|---|---|---|
| code | int | 报错代码。 常见值: 10002 (无效参数), 50001 (服务器内部错误)。 |
| message | string | 报错详情。 |
| requestId | string | 请求标识号,用以追溯。 |