- CSSS APIs
- Overview
- Internationalization
- Status code
- Sign code Example
- SIM
- Usage
- Plan
- SMS
- Customized
- Notification
- Mall APIs
- eSIM QR Mall APIs
Order OTA Plan
Testing
Demo UAT
http://127.0.0.1
Demo UAT
http://127.0.0.1
POST
/package/createOtaOrder
Request
Header Params
Accept-Language
string
optional
Default:
zh-CN
Content-Type
string
optional
Default:
application/json
Body Params application/json
access_code
string
required
device_id
string
required
global_order
string
required
is_open
string
required
order_period
string
required
package_code
string
required
package_name
string
required
package_type
string
required
pay_amount
string
required
pay_rst
string
required
pay_type
string
required
test_flow
string
required
test_flow_flag
string
required
mcc
string
optional
days
integer
required
timing_type
string
required
timestamp
string
required
version
string
required
sign
string
required
Example
{
"access_code":"QY-000001",
"device_id":"89852202101130001670",
"global_order":"0",
"is_open":"0",
"order_period":"1",
"package_code":"DP20201218003915",
"package_name":"T_T_T_0_P_S_\u4e2d\u56fd100G/365\u5929\u5957\u9910",
"package_type":"1",
"pay_amount":"0",
"pay_rst":"1",
"pay_type":"2",
"test_flow":"0",
"test_flow_flag":"0",
"mcc":"",
"days":364,
"timing_type":"1",
"timestamp":"1662628450",
"version":"2.0",
"sign":"xoiCacRJ6XYAsv2lCpAw7NEhmQM="
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://127.0.0.1/package/createOtaOrder' \
--header 'Accept-Language: zh-CN' \
--header 'Content-Type: application/json' \
--data-raw '{
"access_code":"QY-000001",
"device_id":"89852202101130001670",
"global_order":"0",
"is_open":"0",
"order_period":"1",
"package_code":"DP20201218003915",
"package_name":"T_T_T_0_P_S_\u4e2d\u56fd100G/365\u5929\u5957\u9910",
"package_type":"1",
"pay_amount":"0",
"pay_rst":"1",
"pay_type":"2",
"test_flow":"0",
"test_flow_flag":"0",
"mcc":"",
"days":364,
"timing_type":"1",
"timestamp":"1662628450",
"version":"2.0",
"sign":"xoiCacRJ6XYAsv2lCpAw7NEhmQM="
}'
Responses
🟢200Success
application/json
Body
code
string
required
data
object
required
sim_id
string
required
order_id
string
required
order_time
string
required
message
string
required
success
boolean
required
Example
{
"code": "string",
"data": {
"sim_id": "string",
"order_id": "string",
"order_time": "string"
},
"message": "string",
"success": true
}
Modified at 2022-10-05 07:04:26