- 对接前必看
- 号卡/宽带业务
- 靓号业务
- 物联卡业务
获取指定商品详细信息
POST
/openapi/goods/details
请求参数
Header 参数
appID
string
必需
默认值:
1
apiVersion
string
必需
默认值:
2.0.0
traceID
string
必需
默认值:
5831f960804c9217ec01e425b8cc76f5
timestamp
string
必需
默认值:
1703592981
sign
string
必需
默认值:
65987d12ae39b2c449b495c77c83c8ef
Body 参数application/x-www-form-urlencoded
id
string
商品ID
示例值:
1409
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
curl --location --request POST 'http://127.0.0.1:2000/openapi/goods/details' \
--header 'appID;' \
--header 'apiVersion;' \
--header 'traceID;' \
--header 'timestamp;' \
--header 'sign;' \
--data-urlencode 'id=1409'
返回响应
🟢200成功
application/json
Body
code
integer
必需
message
string
必需
data
object
必需
id
integer
对接商品ID
channelId
integer
必需
operatorType
integer
商品分类
name
string
商品名称
code
string
商品编码
des
string
商品描述
tags
array[integer]
商品标签
shareName
string
必需
star
number
推荐星级
price
integer
售价
tips
string
商品主图
details
array[string]
商品详情图列表
posterId
integer
必需
orderTemplate
integer
必需
backgroundColor
string
主题背景色
settleMode
integer
必需
compliance
string
结算要求
commission
integer
达标佣金
monthCommission
array [object {2}]
必需
matter
string
必需
dockGoodId
string
必需
dockCustom1
string
必需
dockCustom2
string
必需
dockCustom3
string
必需
dockCustom4
string
必需
dockCustom5
string
必需
dockCustom6
string
必需
dockCustom7
string
必需
dockCustom8
string
必需
dockCustom9
string
必需
dockCustom10
string
必需
smsCode
integer
必需
selectNumber
integer
必需
numberRegion
string
号码归属地,市编码
numberPoolId
integer
必需
uploadPhoto
integer
必需
provinceCode
string
省市区编码名称
certNoMode
integer
证件验证,1是
isOffline
integer
是否线下自提,1是
orderRemark
integer
是否开启下单备注
limitRule
object
下单限制规则
alarmRules
array[string]
报警规则
noticeRules
null
通知规则
callDuration
integer
通话时长
commonFlow
integer
通用流量
fixedFlow
integer
定向流量
monthFee
integer
月租
favourMonthFee
integer
优惠月租
favourTerm
integer
优惠期限
sort
integer
必需
status
integer
必需
createdBy
integer
必需
updatedBy
integer
必需
offShelfAt
null
下架时间
createdAt
string
必需
updatedAt
string
必需
saleAuthority
boolean
必需
allTags
array [object {6}]
完整标签选项
timestamp
integer
必需
traceID
string
必需
示例
{
"code": 0,
"message": "string",
"data": {
"id": 0,
"channelId": 0,
"operatorType": 0,
"name": "string",
"code": "string",
"des": "string",
"tags": [
0
],
"shareName": "string",
"star": 0,
"price": 0,
"tips": "string",
"details": [
"string"
],
"posterId": 0,
"orderTemplate": 0,
"backgroundColor": "string",
"settleMode": 0,
"compliance": "string",
"commission": 0,
"monthCommission": [
{
"commission": "string",
"month": "string"
}
],
"matter": "string",
"dockGoodId": "string",
"dockCustom1": "string",
"dockCustom2": "string",
"dockCustom3": "string",
"dockCustom4": "string",
"dockCustom5": "string",
"dockCustom6": "string",
"dockCustom7": "string",
"dockCustom8": "string",
"dockCustom9": "string",
"dockCustom10": "string",
"smsCode": 0,
"selectNumber": 0,
"numberRegion": "string",
"numberPoolId": 0,
"uploadPhoto": 0,
"provinceCode": "string",
"certNoMode": 0,
"isOffline": 0,
"orderRemark": 0,
"limitRule": {
"age": [
"string"
],
"fraudFilter": true,
"noShippingKeyword": [
"string"
],
"noShippingRegion": [
"string"
],
"onlyShippingRegion": [
"string"
],
"person": {
"count": 0,
"cycle": 0
}
},
"alarmRules": [
"string"
],
"noticeRules": null,
"callDuration": 0,
"commonFlow": 0,
"fixedFlow": 0,
"monthFee": 0,
"favourMonthFee": 0,
"favourTerm": 0,
"sort": 0,
"status": 0,
"createdBy": 0,
"updatedBy": 0,
"offShelfAt": null,
"createdAt": "string",
"updatedAt": "string",
"saleAuthority": true,
"allTags": [
{
"key": 0,
"label": "string",
"value": 0,
"valueType": "string",
"type": "string",
"listClass": "string"
}
]
},
"timestamp": 0,
"traceID": "string"
}
修改于 5 个月前