- C5GAME开放平台接入指南
- 账户相关
- 出 售相关
- 订单
- 交易报价
- 商品
- 求购
- 回调通知说明
- 库存
在售饰品改价
POST
/merchant/sale/v1/modify
POST
请求参数
Authorization
在 query 添加参数
app-key
示例:
app-key: ********************
Query 参数
app-key
string
可选
默认值:
{{app-key}}
Header 参数
app-key
string
可选
默认值:
d6717ac8122b4e2dae6c6f25e95ede2f
Body 参数application/json
appId
integer
游戏id
dataList
array[object (ModifyItem) {3}] | null
欲改价的饰品列表
productId
integer
在售的商品id
price
number
新的价格
description
string | null
上架饰品描述
示例
{
"appId": 0,
"dataList": [
{
"productId": 0,
"price": 0,
"description": "string"
}
]
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://openapi.c5game.com//merchant/sale/v1/modify?app-key' \
--header 'app-key: d6717ac8122b4e2dae6c6f25e95ede2f' \
--header 'Content-Type: application/json' \
--data-raw '{
"appId": 0,
"dataList": [
{
"productId": 0,
"price": 0,
"description": "string"
}
]
}'
返回响应
🟢200成功
application/json
Body
改价结果
success
boolean | null
可选
data
object (ModifySellPriceResponseDTO)
可选
successNum
integer | null
成功数量
failNum
integer | null
失败数量
biddingCount
boolean | null
可选
failedList
array[object (OnSaleFailedItem) {2}] | null
上架失败的列表
errorCode
integer | null
可选
errorMsg
string | null
可选
errorData
object (Object)
可选
errorCodeStr
string | null
可选
示例
{
"success": false,
"data": {
"successNum": 0,
"failNum": 0,
"biddingCount": false,
"failedList": [
{
"disableSaleReason": "",
"dataList": [
{
"productId": 0,
"inventoryId": 0,
"steamPrice": 0.0,
"itemId": 0,
"tradableTime": 0,
"price": 0.0,
"fee": 0.0,
"appId": 0,
"imageUrl": "",
"name": "",
"marketHashName": "",
"shortName": "",
"classInfoId": 0,
"assetId": 0,
"classId": 0,
"instanceId": 0,
"token": "",
"itemInfo": {
"quality": "",
"qualityName": "",
"qualityColor": "",
"rarity": "",
"rarityName": "",
"rarityColor": "",
"type": "",
"typeName": "",
"slot": "",
"slotName": "",
"hero": "",
"heroName": "",
"heroAvatar": "",
"exterior": "",
"exteriorName": "",
"exteriorColor": "",
"weapon": "",
"weaponName": "",
"itemSet": "",
"itemSetName": "",
"stickerCapsule": "",
"stickerCapsuleName": "",
"patchCapsule": "",
"patchCapsuleName": "",
"customPlayer": "",
"customPlayerName": "",
"category": "",
"categoryName": "",
"item": "",
"itemName": ""
},
"assetInfo": {
"classInfoId": 0,
"classId": 0,
"instanceId": 0,
"assetId": 0,
"styleId": 0,
"lastStyle": "",
"styleProgress": "",
"wear": 0.0,
"paintIndex": 0,
"paintSeed": 0,
"levelName": "",
"levelColor": "",
"gradient": 0.0,
"fadeColor": "",
"fraudwarning": "",
"inspectImageUrl": "",
"gems": [
{
"id": 0,
"itemId": 0,
"type": "",
"gemType": "",
"gemEnType": "",
"name": "",
"enName": "",
"border": "",
"image": "",
"value": 0.0
}
],
"stickers": [
{
"id": 0,
"type": 0,
"stickerId": 0,
"itemId": 0,
"name": "",
"enName": "",
"image": "",
"slot": 0,
"wear": 0.0,
"price": 0.0
}
],
"styles": [
{
"styleId": 0,
"styleName": "",
"styleEnName": "",
"color": "",
"locked": false
}
],
"itemSets": [
{
"name": "",
"hashName": "",
"itemId": 0,
"price": 0.0,
"isItemSet": 0,
"imageUrl": ""
}
],
"ext": ""
}
}
]
}
]
},
"errorCode": 0,
"errorMsg": "",
"errorData": {},
"errorCodeStr": ""
}