提交订单(卡密兑换)
POST
/api/order/submit/code/{actId}
最后修改时间:2024-11-25 02:41:43
请求参数
Path 参数
actId
string
必需
Body 参数application/json
appid
string
app id
version
string
接口版本号
reqTime
integer
时间戳
sign
string
签名值
sku_id
integer
sku_id
recharge_count
integer
商品数量
biz_order_id
string
商家订单号
account
string
充值账户
callback_url
string
回调URL
示例
{
"bizid": "1",
"appid": "10000",
"version": "1.0",
"reqTime": 1663033930408,
"sku_id": 5096820548201873,
"recharge_count": 1,
"biz_order_id": "{{biz_order_id}}",
"sign": "{{sign}}",
"account": "18507168841"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/api/order/submit/code/' \
--header 'Content-Type: application/json' \
--data-raw '{
"bizid": "1",
"appid": "10000",
"version": "1.0",
"reqTime": 1663033930408,
"sku_id": 5096820548201873,
"recharge_count": 1,
"biz_order_id": "{{biz_order_id}}",
"sign": "{{sign}}",
"account": "18507168841"
}'
返回响应
🟢200成功
application/json
Body
code
integer
响应码
msg
string
提示信息
data
object
数据
order_id
string
平台订单号
cards
string
卡密数据
示例
{
"code": 0,
"msg": "string",
"data": {
"order_id": "string",
"cards": "string"
}
}
修改于 2024-11-25 02:41:43