C5GAME-伙伴平台
  1. 商品管理
C5GAME-伙伴平台
  • OAuth2 授权流程介绍
  • 用户接口
    • 接口说明
    • 用户信息
      • 用户基础信息
      • 用户手机号
      • 用户资产信息
      • 查询用户steam信息
      • 读取 steam 库存
    • 用户订单
      • 购买订单查询
      • 出售订单查询
      • 订单发货
    • 商品管理
      • 在售列表
        GET
      • 上架
        POST
      • 在售改价
        PUT
      • 商品下架
        DELETE
  • 合作伙伴接口
    • 接口说明
    • 获取商品价格
      POST
  1. 商品管理

上架

POST
https://partner.c5game.com/api/product/v1
该接口需要权限 product_operate

请求参数

Query 参数
access_token
string 
可选
示例值:
{{access_token}}
Body 参数application/json
dataList
array[object (RentSaleAsset) {5}]  | null 
上架列表
可选
price
number  | null 
上架价格
可选
description
string  | null 
上架描述
可选
acceptBargain
integer  | null 
可选
是否允许还价:1:允许还价;0:不允许还价
token
string  | null 
token
可选
styleToken
string  | null 
款式 token
可选
示例
{
    "dataList": [
        {
          "token": "U5Vg7opHog2vFjosBzNw7tiXLgj5n3HQBBLGVrwjhNlN+5b5lthq4yhexAoqpu5pb6jBluai6ITQzuMcRTnV4dTds3MztbB73DDAFfrGPOg=",
          "price": 1.1
        }
    ]
}

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location -g --request POST 'https://partner.c5game.com/api/product/v1?access_token={{access_token}}' \
--header 'Content-Type: application/json' \
--data-raw '{
    "dataList": [
        {
          "token": "U5Vg7opHog2vFjosBzNw7tiXLgj5n3HQBBLGVrwjhNlN+5b5lthq4yhexAoqpu5pb6jBluai6ITQzuMcRTnV4dTds3MztbB73DDAFfrGPOg=",
          "price": 1.1
        }
    ]
}'

返回响应

🟢200成功
application/json
Body
success
boolean  | null 
可选
Is request successful
data
object (RentCreateResultVO) 
可选
Business data
shopOn
boolean  | null 
可选
店铺是否开启,true:开启,false:关闭
succeed
integer  | null 
成功上架数量
可选
failed
integer  | null 
失败数量
可选
failedList
array[object (FailedRentItemVO) {2}]  | null 
失败列表
可选
successList
array[object (SuccessRentAssetVO) {1}]  | null 
成功列表
可选
highPriceItemIdList
array[integer] | null 
定价过高饰品列表
可选
idList
array[integer] | null 
可选
priceCheckResult
array[object (SellPriceCheckVO) {5}]  | null 
价格检查结果列表
可选
errorCode
integer  | null 
可选
Error code
errorMsg
string  | null 
可选
Error message
errorData
object (Object) 
可选
Error data,when errorCode is not equals to 0,maybe this property will have a value
errorCodeStr
string  | null 
可选
like the errorCode,but this property is string
示例
{
    "success": true,
    "data": {
        "shopOn": false,
        "succeed": 1,
        "failed": null,
        "failedList": [],
        "successList": null,
        "highPriceItemIdList": [],
        "idList": [],
        "priceCheckResult": null
    },
    "errorCode": 0,
    "errorMsg": null,
    "errorData": null,
    "errorCodeStr": null
}
修改于 2024-06-04 06:32:58
上一页
在售列表
下一页
在售改价
Built with