- 对接前必看
- 号卡/宽带业务
- 靓号业务
- 物联卡业务
获取在售商品列表
POST
/openapi/goods/list
获取指定在售商品信息
获取请求参数
Header 参数
appID
string
必需
默认值:
1
apiVersion
string
必需
默认值:
2.0.0
traceID
string
必需
默认值:
5831f960804c9217ec01e425b8cc76f5
timestamp
string
必需
默认值:
1703592981
sign
string
必需
默认值:
65987d12ae39b2c449b495c77c83c8ef
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://127.0.0.1:2000/openapi/goods/list' \
--header 'appID;' \
--header 'apiVersion;' \
--header 'traceID;' \
--header 'timestamp;' \
--header 'sign;'
返回响应
🟢200成功
application/json
Body
code
integer
必需
message
string
必需
data
array [object {24}]
必需
id
integer
商品ID
operatorType
integer
商品分类类型
name
string
商品名称
code
string
商品编码
des
string
商品描述
star
number | integer
推荐星级
price
integer
售价
smsCode
integer
必需
selectNumber
integer
必需
numberRegion
string
号码归属地市编码
uploadPhoto
string
必需
settleMode
string
必需
orderTemplate
integer
必需
tips
string
商品主图
details
array[string]
商品详情图列表
sales
integer
销量
callDuration
integer
通话时长
commonFlow
integer
通用流量
fixedFlow
integer
定向流量
monthFee
integer
月租
favourMonthFee
integer
优惠月租
favourTerm
integer
优惠期限
tags
array[integer]
商品标签
tagsSelect
array [object {6}]
商品标签字典选项
timestamp
integer
必需
traceID
string
必需
示例
{
"code": 0,
"message": "string",
"data": [
{
"id": 0,
"operatorType": 0,
"name": "string",
"code": "string",
"des": "string",
"star": 0,
"price": 0,
"smsCode": 0,
"selectNumber": 0,
"numberRegion": "string",
"uploadPhoto": "string",
"settleMode": "string",
"orderTemplate": 0,
"tips": "string",
"details": [
"string"
],
"sales": 0,
"callDuration": 0,
"commonFlow": 0,
"fixedFlow": 0,
"monthFee": 0,
"favourMonthFee": 0,
"favourTerm": 0,
"tags": [
0
],
"tagsSelect": [
{
"key": 0,
"label": "string",
"value": 0,
"valueType": "string",
"type": "string",
"listClass": "string"
}
]
}
],
"timestamp": 0,
"traceID": "string"
}
修改于 2024-11-14 15:30:48