简要描述:

商品详情信息接口

请求URL:

http(s)://平台域名/api/v1/goods/info

请求方式:

POST

请求参数:

Header 参数类型是否必填描述示例值
Signstring签名点击查看签名规范
Timestampstring13位时间戳(毫秒)1696644296195
UserIdstring您的用户接口appid2uIkTrXNdAFc7OKhbRenzjDtgPoZ6s5C
Body 参数类型是否必填描述示例值
idint商品ID1

签名示例:

1696654563249{"id":1}e3yw37fe2zhb4wb6p2zzmxerpr835pjy

返回示例:

{
    "code": 200,
    "msg": "成功",
    "data": {
        "id": 1,
        "goods_name": "test自营手工",
        "goods_img": "http://hy.ziyuanting.com/Uploads%2FAttachment%2F2022-10-25%2F63578b642b6c1.jpg",
        "goods_type": 2,
        "face_value": "2.00",
        "goods_price": "2.00",
        "status": 1,
        "stock_num": 9999,
        "goods_info": "测试商品详情内容",
        "goods_notice": "",
        "start_count": 1,
        "end_count": 10,
        "attach": [
            {
                "key": "recharge_account",
                "type": "text",
                "tip": "测试1",
                "name": "测试1"
            },
            {
                "key": "lblName1",
                "type": "text",
                "tip": "测试2",
                "name": "测试2"
            }
        ]
    }
}

返回data说明:

参数名类型描述
idint商品ID
goods_namestring商品名称
goods_imgstring商品图片
goods_typeint商品类型:1=卡密商品,2=虚拟商品
face_valuestring商品面值
goods_pricestring商品价格
statusint商品状态:1=销售,2=暂停,3=禁售
stock_numint商品库存
goods_infostring商品详情
goods_noticestring注意事项
start_countint最小购买数量
end_countint最大购买数量
attacharray虚拟商品下单模板(卡密商品此数组为空)

返回attach说明:

参数名类型描述
keystring下单参数模板变量名
typestring类型:text=文本,password=密码框,checkbox=多选框,select=下拉,radio=单选框,cascader=级联组合
tipstring下单参数提示信息
namestring下单参数名称
optionsstring多选框、单选框、下拉框、 级联组合类型才存在此参数,其他类型无此参数