POST http://sdk.ddyun.com/api/BuyOrder
购买设备
Request Information
URI Parameters
None.
Body Parameters
BuyOrderParamName | Description | Type | Additional information |
---|---|---|---|
openid |
用户OPENID |
string |
None. |
cardtype |
要购买的类型(3:VIP,4:GVIP,7:SVIP,8:QVIP,9:VIP+,10:QVIP+,11:GVIP+,12:MVIP,13:XVIP) |
integer |
None. |
buynum |
购买数量 |
integer |
None. |
buyday |
订单购买天数 |
integer |
None. |
appkey |
商户Key |
string |
None. |
timestamp |
时间戳 |
integer |
None. |
noncestr |
随机字符,使签名不可预测 |
string |
None. |
sign |
签名信息 |
string |
None. |
Request Formats
application/json, text/json
Sample:
{ "OpenID": "sample string 1", "CardType": 2, "BuyNum": 3, "BuyDay": 4, "AppKey": "sample string 5", "Timestamp": 6, "NonceStr": "sample string 7", "Sign": "sample string 8" }
application/x-www-form-urlencoded
Sample:
OpenID=&CardType=0&BuyNum=0&BuyDay=0&AppKey=&Timestamp=0&NonceStr=&Sign=
multipart/form-data
Sample:
Sample not available.
Response Information
Resource Description
购买设备
SDKBaseResultOfListOfDeviceOrderInfoName | Description | Type | Additional information |
---|---|---|---|
data | Collection of DeviceOrderInfo |
None. |
|
code |
错误码 |
SDKResultCode |
None. |
msg |
错误消息 |
string |
None. |
Response Formats
application/json, text/json
Sample:
{ "Data": [ { "OrderId": 1, "ExpireTime": "2025-07-02T14:45:05.6725978+08:00", "SaveDataHour": 3 }, { "OrderId": 1, "ExpireTime": "2025-07-02T14:45:05.6725978+08:00", "SaveDataHour": 3 } ], "Code": 0, "Msg": "sample string 1" }