400-960-8550

api文档获取

时间:2023-08-31 17:07 浏览:342
内容

API对接文档下载:api.docx

点击进入开启接口:用户管理面板 - 卡速腾虚拟交易担保商城 (kasuteng.com)

API接口状态开启。

生成密钥

接口开发说明

 

1 获取商品列表

通过客户编号返回该客户可购买的商品基本信息

1.1 接口调用请求说明

http请求方式:getpost

http://网站域名/api/userprolist.php

1.2 接口参数说明

参数

类型

是否必须

说明

userNo

int

客户编号

timestamp

string

13位时间戳

page

int

当前页,不传默认显示第1

type

int

搜索类型:1、根据目录ID2、根据商品名称;不传显示全部商品

word

string

搜索关键字:1、传目录ID2、传商品名称;不传显示全部商品

sign

string

接口密钥+ userNo+type

 

1.3 返回码说明

返回格式示例如下:

{

"code": 200,

"msg": "获取成功",

"page_count": 1,

"count": "2",

"data": [{

"id": "81",

"bh": "1687704117-19",

"mybh": "1687704117-19",

"templatetype": "1",

"sj": "2023-06-25 22:41:57",

"ty1id": "1",

"ty2id": "7",

"ty3id": "0",

"zt": "1",

"tit": "前台商家测试1",

"txt": "<p>前台测试商品内容<\/p>",

"kcnum": "12",

"money1": "15",

"money2": 30,

"ifxj": "0",

"fhxs": "6",

"ordermin": null,

"ordermax": null,

"img": []

}, {

"id": "75",

"bh": "6208",

"mybh": "6208",

"templatetype": "0",

"sj": "2023-06-24 23:03:20",

"ty1id": "1",

"ty2id": "7",

"ty3id": "0",

"zt": "0",

"tit": "【活动抽奖】DNFQQ黑钻丨1-27天丨一号一次丨自动秒单",

"txt": "<p>兑换地址:http:\/\/vip.talaixin.com\/<\/p><p>进度查询页http:\/\/vip.talaixin.com\/index\/index\/blackQuery <\/p>",

"kcnum": "6380",

"money1": "88",

"money2": 0.42,

"ifxj": "0",

"fhxs": "4",

"ordermin": "1",

"ordermax": "10000",

"img": [{

"id": "68",

"tp": "upload\/19\/6208\/8_0_good_20230410134148294921900.jpg",

"xh": "1",

"upty": "0"

}]

}]

}

 

返回参数说明:

编号

参数

描述

1

code

返回码

2

msg

返回信息描述

3

page_count

总页数

4

count

总条数

5

data

商品列表

5-1

id

商品ID

5-2

txt

商品详情

5-3

money1

商品面值

5-4

tit

商品名称

5-5

money2

购买价格

5-6

bh

商品编号

5-7

kcnum

库存

5-8

fhxs

商品类型:4、卡密;6、人工代充

5-9

ifxj

销售状态:0、上架;1、下架; 

5-10

ordermax

最大购买量

5-11

img

图片地址

 

2 获取商品详情

通过客户编号返回该客户可购买的商品详细信息

2.1 接口调用请求说明

http请求方式:getpost

http://网站域名/api/userpro.php

2.2 接口参数说明

参数

类型

是否必须

说明

userNo

int

客户编号

id

int

商品ID

keyId

int

一键对接ID(一键对接商品必传,从商品列表中获取)

sign

string

接口密钥+ userNo+id

 

2.3 返回码说明

返回格式示例如下:

{

"code": 200,

"msg": "获取成功",

"data": {

"id": "67",

"bh": "30608",

"mybh": "30608",

"templatetype": "1",

"sj": "2023-06-21 17:24:52",

"ty1id": "1",

"ty2id": "7",

"ty3id": "0",

"zt": "0",

"tit": "QQ币按1元充值",

"txt": null,

"kcnum": "99999",

"money1": "1",

"money2": "0.993",

"ifxj": "0",

"fhxs": "6",

"ordermin": "5",

"ordermax": "2000",

"img": [{

"id": "62",

"tp": "upload\/19\/30608\/a84345afc18842d5846457237d12b47b.jpg",

"xh": "1",

"upty": "0"

}],

"templates": [{

"name": "QQ",

"tit": "QQ",

"type": "0",

"desc": "输入准确QQ",

"content": ""

}]

}

}

 

返回参数说明:

编号

参数

描述

1

code

返回码

2

msg

返回信息描述

3

data

商品列表

3-1

id

商品ID

3-2

txt

商品详情

3-3

money1

商品面值

3-4

tit

商品名称

3-5

money2

  • 全国统一客服热线
  • 400-960-8550
  • 投诉建议
  • kst@kasuteng.com
  • 扫码关注公众号