汇卡SUP开放接口
  1. 产品接口
汇卡SUP开放接口
  • 产品介绍
  • 加密算法
  • 接口列表
    • 运维接口
      • 健康检查
    • 分类接口
      • 查询分类列表
    • 产品接口
      • 查询产品列表
        POST
      • 查询产品详情
        POST
    • 订单接口
      • 订单新增
      • 订单查询
      • 回调通知
  1. 产品接口

查询产品详情

POST
/v1/product/detail
最后修改时间:2025-03-29 06:11:42

请求参数

Body 参数application/json
id
integer 
ID 编号
必需
示例
{
  "id": 0
}

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/v1/product/detail' \
--header 'Content-Type: application/json' \
--data-raw '{
    "id": 0
}'

返回响应

🟢200成功
application/json
Body
code
integer 
状态码
必需
msg
string 
信息
必需
data
object 
数据
必需
id
integer 
ID 编号
必需
name
string 
名称
必需
icon
string 
封面
必需
type
integer 
必需
类型(1-直充,2-卡密,3-短链接,4-兑换码,5-手动发货)
maxBuyNum
integer 
单次最大下单数量
必需
faceValue
null 
面值(单位:分)
必需
enableSalesChannels
array[string]
销售渠道
必需
disableSalesChannels
array[string]
禁售渠道
必需
limitPrice
null 
限价(单位:分)
必需
limitBalance
null 
必需
限制余额(单位:分)
limitGuarantee
null 
必需
限保证金(单位:分)
description
string 
详情描述
必需
categoryId
integer 
分类ID
必需
categoryName
string 
分类名称
必需
salesPrice
string 
售价(单位:分)
必需
status
integer 
必需
状态(1-销售,2-暂停,3-禁售)
stockNum
integer 
必需
库存数量(-1不限制)
template
array [object {7}] 
下单模板
必需
示例
{
  "code": 200,
  "msg": "操作成功",
  "data": {
    "id": 110056,
    "name": "【官方直充】腾讯视频会员7天",
    "icon": "https://cdn.gamesup.cn/dev/20250223/18b0c189112a878fc2c79c2a3f365672.png",
    "type": 1,
    "maxBuyNum": 1,
    "faceValue": null,
    "enableSalesChannels": [
      "私域",
      "拼多多",
      "闲鱼",
      "淘宝",
      "京东",
      "小红书"
    ],
    "disableSalesChannels": [
      "抖音",
      "快手"
    ],
    "limitPrice": null,
    "limitBalance": null,
    "limitGuarantee": null,
    "description": "<p><img src=\"https://cdn.gamesup.cn/dev/20250223/43c17396fd2ac2053ca9398a458fbcb4.png\" alt=\"\"/><img src=\"https://cdn.gamesup.cn/dev/20250223/12f31b20c42f410405acb94e7f5db3ed.png\" alt=\"\"/><img src=\"https://cdn.gamesup.cn/dev/20250223/4db36f18912d9666149d91e9643ce554.png\" alt=\"\"/><br/></p>",
    "categoryId": 100025,
    "categoryName": "腾讯视频",
    "salesPrice": "7.95",
    "status": 1,
    "stockNum": 99999,
    "template": [
      {
        "key": "account",
        "name": "手机号",
        "pattern": [
          "phone"
        ],
        "type": "text",
        "maxlength": 11,
        "placeholder": "请输入手机号",
        "required": null
      }
    ]
  }
}
上一页
查询产品列表
下一页
订单新增
Built with