组合订单下单match(不创建订单)
测试环境
http://test1-opapi.nn.com/boheapi/nnorder
测试环境
http://test1-opapi.nn.com/boheapi/nnorder
POST
http://test1-opapi.nn.com/boheapi/nnorder
NN发行下单中心
最后修改时间:2025-06-05 06:33:07
责任人:未设置
请求参数
Header 参数
busiType
string
可选
默认值:
speedPcClient_mzShyYu7
countryCode
integer <int64>
国家区号
默认值:
86
reqChannel
integer <int32>
可选
默认值:
1
sign
string
签名
默认值:
1
telNum
string
手机号
默认值:
13600365350
timeStamp
integer <int64>
时间戳-用于加密
默认值:
20202020
token
string
用户token
默认值:
xxxxxxxxxxxxxxxxxxx
trackId
string
请求链路ID
默认值:
abc123456789
userId
integer <int64>
用户Id
默认值:
102032
appid
string
可选
x-access-token
string
管理后台token
默认值:
{{x-access-token}}
Body 参数application/json
组合下单参数
activityId
integer <int64>
活动id
bannerId
integer <int64>
可选
示例值:
12
baseOrderType
integer <int32>
可选
channelId
integer <int64>
可选
codeGiveRecordId
integer <int64>
可选
combineOrderParams
array[object (CombineOrderParam) {6}]
组合单
gameId
integer <int64>
可选
goodsId
integer <int64>
可选
示例值:
1
isPreSaleGame
integer <int32>
可选
orderType
integer <int32>
可选
示例值:
4
qty
integer <int32>
数量默认为1
示例值:
1
valueAddedGoodType
integer <int32>
可选
combined
integer <int32>
可选
combinedPurchaseNum
integer <int32>
组合单商品数量
consumerType
integer <int32>
可选
discountCode
string
可选
示例值:
SZ78x123a456c789
equityRemark
string
权益备注
gameId
integer <int64>
可选
gameIds
array[integer <int64>]
可选
goodsId
integer <int64>
可选
示例值:
1
guidedPop
string
guidedPop
示例值:
1
hostId
integer <int64>
主持人用户ID
isAccountUpgrade
integer <int32>
可选
isDeductionAmount
integer <int32>
可选
isDeductionCoupon
integer <int32>
可选
isPreSaleGame
integer <int32>
可选
isVipDeductionCoupon
integer <int32>
可选
lastNo
integer <int64>
可选
marketingSource
string
市场推广来源
示例值:
baidu / 360 / sogou / guanwang / 试玩官网
masterOrderType
integer <int32>
可选
nbAmount
number
充值时的金额,必填
orderScene
object (OrderScene)
可选
pageTitle
string
当前页面名称
refererPageTitle
string
来源页面名称
sceneType
integer <int32>
可选
orderType
integer <int32>
可选
示例值:
4
packageName
string
套餐名称
partyPhase
integer <int32>
活动阶段
payType
integer <int32>
可选
phone
string
可选
示例值:
13231118888
qty
integer <int32>
数量默认为1
示例值:
1
receiveCouponId
integer <int32>
可选
repurchaseId
integer <int64>
复购配置ID
serverId
integer <int64>
可选
setType
integer <int32>
可选
示例值:
1
stockGameRandomId
string
可选
targetAccount
string
可选
targetId
integer <int64>
可选
timeQty
integer <int32>
可选
triggerDiscountId
integer <int64>
触发式折扣配置ID
valueAddedGoodType
integer <int32>
可选
vipGoodsId
integer <int64>
薄荷会员商品id
vipGoodsType
integer <int32>
可选
ygToken
string
云游戏token
示例
{
"goodsId": "9111",
"orderType": 7,
"combineOrderParams": [
{
"goodsId": "9111",
"isPreSaleGame": 0,
"orderType": 7
},
{
"goodsId": 31,
"orderType": 20,
"qty": 1
}
],
"consumerType": 1,
"qty": 1,
"marketingSource": "nn_client",
"payType": 99
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
cURL
curl --location --request POST 'http://test1-opapi.nn.com/boheapi/nnorder/nn/release/combine/order/match' \
--header 'busiType;' \
--header 'countryCode;' \
--header 'reqChannel;' \
--header 'reqChannel;' \
--header 'sign;' \
--header 'telNum;' \
--header 'timeStamp;' \
--header 'token;' \
--header 'token;' \
--header 'trackId;' \
--header 'userId;' \
--header 'appid;' \
--header 'x-access-token: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE3NTEwMTA5MzMsInVzZXJuYW1lIjoiYWRtaW4ifQ.3BIsSwbWedvRhd-GZmhWitrIPQwubGOP1BYuTBoZ458' \
--header 'Content-Type: application/json' \
--data-raw '{
"goodsId": "9111",
"orderType": 7,
"combineOrderParams": [
{
"goodsId": "9111",
"isPreSaleGame": 0,
"orderType": 7
},
{
"goodsId": 31,
"orderType": 20,
"qty": 1
}
],
"consumerType": 1,
"qty": 1,
"marketingSource": "nn_client",
"payType": 99
}'
返回响应
🟢200成功
application/json;charset=UTF-8
Body
基础返回对象
retCode
string
响应码
retData
object (统一下单结果)
可选
appId
string
可选
balance
number
余额
boheBalance
number
薄荷余额
boheCurrency
number
使用薄荷余额
boheRedBalance
number
薄荷红包
boheRedpacket
number
使用薄荷红包
busiType
string
业务类型
commission
number
奇妙支付手续费
consumerType
integer <int32>
可选
discountAmount
number
可选
favourablePrice
number
优惠价格
favourablePriceRel
number
优惠价格(真)
firstBuy
boolean
可选
h5PayUrl
string
h5支付链接
needReceive
integer <int32>
可选
nnCurrency
number
使用N币数
nnFavourablePrice
number
n币优惠价格
nnOriginalPrice
number
n币原价格
orderExpiredTime
string <date-time>
可选
orderNo
string
订单号
originalPrice
number
原价格
payChannel
string
可选
payChannel2
string
可选
payRmb
number
应付RMB数
pop
boolean
可选
popPartyAct
boolean
可选
priceName
string
套餐价格名字
reqChannel
integer <int32>
渠道
singleResult
array[object (组合单各子单细节) {4}]
组合单各子单信息
totalAmount
number
订单总金额
totalBoheCurrency
number
总付款薄荷余额
totalBoheRedpacket
number
总付款薄荷红包
totalNnCurrency
number
总付款N币数
totalPayAmount
number
可选
retMsg
string
响应信息
retTime
string
响应时间
success
boolean
可选
示例
{
"retCode": "string",
"retData": {
"appId": "string",
"balance": 0,
"boheBalance": 0,
"boheCurrency": 0,
"boheRedBalance": 0,
"boheRedpacket": 0,
"busiType": "string",
"commission": 0,
"consumerType": 0,
"discountAmount": 0,
"favourablePrice": 0,
"favourablePriceRel": 0,
"firstBuy": true,
"h5PayUrl": "string",
"needReceive": 0,
"nnCurrency": 0,
"nnFavourablePrice": 0,
"nnOriginalPrice": 0,
"orderExpiredTime": "2019-08-24T14:15:22Z",
"orderNo": "string",
"originalPrice": 0,
"payChannel": "string",
"payChannel2": "string",
"payRmb": 0,
"pop": true,
"popPartyAct": true,
"priceName": "string",
"reqChannel": 0,
"singleResult": [
{
"commission": 0,
"orderType": 0,
"totalAmount": 0,
"totalPayAmount": 0
}
],
"totalAmount": 0,
"totalBoheCurrency": 0,
"totalBoheRedpacket": 0,
"totalNnCurrency": 0,
"totalPayAmount": 0
},
"retMsg": "string",
"retTime": "string",
"success": true
}
🟢201成功
🟠401没有权限
🟠403禁止访问
🟠404记录不存在
修改于 2025-06-05 06:33:07