Linksfield Developer
OverviewCube APIsOld version
OverviewCube APIsOld version
  1. Plan
  • CSSS APIs
    • Overview
    • Internationalization
    • Status code
    • Sign code Example
    • SIM
      • Get all SIM cards info
      • Get real-time info about one SIM card
      • Get the SIM Cards in use
    • Usage
      • Example Query the traffic usage of a single SIM card
      • Batch querying SIM card usage
      • Example Query the daily usage
      • Batch querying the usage in a specified month
    • Plan
      • Get data plan
        POST
      • Order data plan
        POST
      • Bulk order package
        POST
      • Renew your data plan
        POST
      • Query the package order information
        POST
      • To enable the order
        POST
      • Cancel an unenabled package order
        POST
      • End package orders early
        POST
      • [不推荐]停机/暂停流量套餐订单
        POST
      • [不推荐]复机/重新启动流量套餐订单
        POST
      • 【不推荐】分页批量(查询)同步设备可订购套餐
        POST
    • SMS
      • Send SMS
    • Customized
      • Order OTA Plan
      • Query the remaing data by MNO side
  • Notification
    • Notification Overview
    • Notification status code
    • 流量使用量API预警
      POST
    • 短信下行回调
      POST
    • 短信上行回调
      POST
    • 短信上行回调(区分文本二进制)
      POST
    • Plan Order Status Change notification (IMSI)
      POST
  • Mall APIs
    • Mall全局说明
    • Mall业务流程
    • Mall签名代码示例
    • APP调用Stripe的SDK示例说明
    • Vshop
      • 卡片登录验证
      • 获取可购套餐商品列表
      • 创建用户订单
      • 查询自动续费记录
      • 关闭自动续费
      • 查询正在使用、未启用订单
      • 获取生效中的自动续费
      • 关闭自动续费
      • 用户下单(第三方支付)
    • Payment
      • 获取stripe单次支付权限
      • 获取Stripe订阅支付权限
      • 创建Stripe订阅/自动续费
      • 支付结果查询
      • 支付结果确认
    • Notification
      • 消息推送
  • eSIM QR Mall APIs
    • Introduction
    • Pre - order
    • v1.1/payment/webhook
    • User login
    • My eSIM Detail
    • Pre - order v1.2
  1. Plan

Bulk order package

Demo UAT
http://127.0.0.1
Demo UAT
http://127.0.0.1
POST
/package/batchOrderPackages
This policy applies to ordering the same data plan for a batch of devices in the same enterprise.
This interface is a synchronization interface. If a device does not meet the ordering requirements, the ordering cannot be executed.

Request

Header Params
Accept-Language
string 
optional
By default, if there is no language requirement in header, simplified Chinese is returned by default. Currently, zh-CN (simplified Chinese) and EN-US (English) are supported.
Default:
zh-CN
Content-Type
string 
optional
Default:
application/json
Body Params application/json
access_code
string 
required
deviceList
array[string]
required
global_order
string 
required
Is it a host number package,1- yes;0-no. Usually 0
is_open
string 
required
Whether to Enable immediately ; 1- enable ;0- no. OTA support SIM should be 0.
order_period
string 
required
Order period
package_code
string 
required
package_name
string 
required
package_type
string 
required
Plan type: 0-Unlimited daily plan ; 1- daily plan ; 2- monthly plan; 3- 3 months plan ; 4- 6 months plan; 5 - yearly plan
pay_amount
string 
optional
Amount, two decimal places.
pay_rst
string 
required
Payment result : 1- unpaid ; 2- paid.
pay_type
string 
optional
Modl of payment : 0- ipay88 ; 1-wechat pay ; 2- alipay.
test_flow
string 
optional
Test data volume.
test_flow_flag
string 
required
Test data : 1- yes; 0-no. usually 0
timestamp
string 
required
version
string 
required
sign
string 
required
Example
{
    "access_code": "P000270",
    "deviceList": [
        "89852022018041800192",
        "89852022018041800193"
    ],
    "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": "2",
    "pay_type": "1",
    "test_flow": "0",
    "test_flow_flag": "0",
    "timestamp": "1643253530",
    "version": "2.0",
    "sign":"5+o5RzScCv2TuJ1Yb/aehTH0GLU="
}

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/batchOrderPackages' \
--header 'Accept-Language: zh-CN' \
--header 'Content-Type: application/json' \
--data-raw '{
    "access_code": "P000270",
    "deviceList": [
        "89852022018041800192",
        "89852022018041800193"
    ],
    "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": "2",
    "pay_type": "1",
    "test_flow": "0",
    "test_flow_flag": "0",
    "timestamp": "1643253530",
    "version": "2.0",
    "sign":"5+o5RzScCv2TuJ1Yb/aehTH0GLU="
}'

Responses

🟢200Success
application/json
Body
code
string 
required
data
object 
required
device_order
array [object {6}] 
required
message
string 
required
success
boolean 
required
Example
{
    "code": "0000",
    "data": {
        "device_order": [
            {
                "error": "0000",
                "errorMsg": "success",
                "order_id": "ORDER_47454030993031168",
                "device_id": "89852022018041800192",
                "order_start_date": null,
                "order_expire_date": null
            },
            {
                "error": "0000",
                "errorMsg": "success",
                "order_id": "ORDER_47453927590854656",
                "device_id": "89852022018041800193",
                "order_start_date": null,
                "order_expire_date": null
            }
        ]
    },
    "message": "成功",
    "success": true
}
Modified at 2022-10-05 06:24:44
Previous
Order data plan
Next
Renew your data plan
Built with