闲管家虚拟货源标准接口
  1. 商品接口
闲管家虚拟货源标准接口
  • 接入说明
  • 基础接口
    • 查询平台信息
      POST
    • 查询商户信息
      POST
  • 商品接口
    • 查询商品列表
      POST
    • 查询商品详情
      POST
    • 查询商品订阅列表
      POST
    • 订阅商品变更通知
      POST
    • 取消商品变更通知
      POST
  • 订单接口
    • 创建直充订单
      POST
    • 创建卡密订单
      POST
    • 查询订单详情
      POST
  • 回调接口
    • 商品回调通知
      POST
    • 订单回调通知
      POST
  1. 商品接口

查询商品详情

云端 Mock
https://m1.apifoxmock.com/m1/5001206-0-default
云端 Mock
https://m1.apifoxmock.com/m1/5001206-0-default
POST
/goofish/goods/detail

请求参数

Query 参数
mch_id
string 
必需
货源平台商户ID(AppKey)
默认值:
{{mch_id}}
timestamp
integer 
必需
当前时间戳(单位秒,5分钟内有效)
默认值:
{{timestamp}}
sign
string 
必需
签名MD5值(参考签名说明)
默认值:
{{sign}}
Body 参数application/json
goods_type
enum<integer> <int32>
商品类型
必需
1:直充商品
2:卡密商品
枚举值:
12
示例值:
1
goods_no
string 
商品编码
必需
示例值:
12344532
示例
{
  "goods_type": 1,
  "goods_no": "12344532"
}

返回响应

🟢200成功
application/json
Body
code
enum<integer> <int32>
必需
>= 0<= 0
默认值:
0
示例值:
0
固定值:
0
msg
string 
必需
默认值:
OK
data
object (商品详情) 
必需
goods_no
string 
商品编码
必需
示例值:
12344532
goods_type
enum<integer> <int32>
商品类型
必需
1:直充商品
2:卡密商品
枚举值:
12
示例值:
1
goods_name
string 
商品名称
必需
示例值:
【自动充值】哔哩哔哩大会员『7天』
price
integer <int64>
商品价格(分)
必需
示例值:
1000
stock
integer <int32>
商品库存
必需
示例值:
99999
status
enum<integer> <int32>
商品状态
必需
1:在架
2:下架
枚举值:
12
示例值:
1
update_time
integer <int32>
更新时间
必需
商品最后更新时间
示例值:
1723870189
template
array [object {4}] 
直充模板
可选
示例
{
  "code": 0,
  "msg": "OK",
  "data": {
    "goods_no": "12344532",
    "goods_type": 1,
    "goods_name": "【自动充值】哔哩哔哩大会员『7天』",
    "price": 1000,
    "stock": 99999,
    "status": 1,
    "update_time": 1723870189,
    "template": [
      {
        "code": "account",
        "name": "充值账号",
        "desc": "仅支持手机号",
        "check": 0
      }
    ]
  }
}
🟢200失败
上一页
查询商品列表
下一页
查询商品订阅列表
Built with