- CSSS APIs
- Overview
- Internationalization
- Status code
- Sign code Example
- SIM
- Usage
- Plan
- SMS
- Customized
- Notification
- Mall APIs
- eSIM QR Mall APIs
Order data plan
Demo UAT
http://127.0.0.1
Demo UAT
http://127.0.0.1
POST
/package/orderPackage
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
optional
test_flow
string
required
test_flow_flag
string
required
timestamp
string
required
version
string
required
sign
string
required
Example
{
"access_code": "P000270",
"device_id": "89852022018041800192",
"global_order": "0",
"is_open": "0",
"order_period": "1",
"package_code": "DP20190726001274",
"package_name": "C_M_0_P_中国20M不限速月套餐",
"package_type": "2",
"pay_amount": "0",
"pay_rst": "1",
"pay_type": "2",
"test_flow": "0",
"test_flow_flag": "0",
"timestamp": "1643253530",
"version": "2.0",
"sign":"zOoyHBVtE/pOeA7nOuzCLvAg8d8="
}
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/orderPackage' \
--header 'Accept-Language: zh-CN' \
--header 'Content-Type: application/json' \
--data-raw '{
"access_code": "P000270",
"device_id": "89852022018041800192",
"global_order": "0",
"is_open": "0",
"order_period": "1",
"package_code": "DP20190726001274",
"package_name": "C_M_0_P_中国20M不限速月套餐",
"package_type": "2",
"pay_amount": "0",
"pay_rst": "1",
"pay_type": "2",
"test_flow": "0",
"test_flow_flag": "0",
"timestamp": "1643253530",
"version": "2.0",
"sign":"zOoyHBVtE/pOeA7nOuzCLvAg8d8="
}'
Responses
🟢200Success
application/json
Body
code
string
required
data
object
required
sign
null
required
order_id
string
required
order_start_date
null
required
order_expire_date
null
required
message
string
required
success
boolean
required
Example
{
"code": "0000",
"data": {
"sign": null,
"order_id": "ORDER_47452122261749760",
"order_start_date": null,
"order_expire_date": null
},
"message": "成功",
"success": true
}
Modified at 2022-10-05 06:21:24