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

商品下架

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

请求参数

Query 参数
access_token
string 
可选
示例值:
{{access_token}}
Body 参数application/json
appId
integer  | null 
游戏id
可选
productIds
array[integer] | null 
商品id
可选
示例
{
    "appId": 730,
    "productIds": ["1269037863487832065"]
}

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location -g --request DELETE 'https://partner.c5game.com/api/product/v1?access_token={{access_token}}' \
--header 'Content-Type: application/json' \
--data-raw '{
    "appId": 730,
    "productIds": ["1269037863487832065"]
}'

返回响应

🟢200成功
application/json
Body
success
boolean  | null 
可选
Is request successful
data
object (OffSaleResponseDTO) 
可选
Business data
successNum
integer  | null 
成功数量
可选
failedNum
integer  | 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": {
        "successNum": 1,
        "failedNum": null
    },
    "errorCode": 0,
    "errorMsg": null,
    "errorData": null,
    "errorCodeStr": null
}
修改于 2024-06-04 06:33:38
上一页
在售改价
下一页
接口说明
Built with