Linksfield Developer
OverviewCube APIsOld version
OverviewCube APIsOld version
  1. SIM
  • CSSS APIs
    • Overview
    • Internationalization
    • Status code
    • Sign code Example
    • SIM
      • Get all SIM cards info
        POST
      • Get real-time info about one SIM card
        POST
      • Get the SIM Cards in use
        POST
    • 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
      • Order data plan
      • Bulk order package
      • Renew your data plan
      • Query the package order information
      • To enable the order
      • Cancel an unenabled package order
      • End package orders early
      • [不推荐]停机/暂停流量套餐订单
      • [不推荐]复机/重新启动流量套餐订单
      • 【不推荐】分页批量(查询)同步设备可订购套餐
    • 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. SIM

Get all SIM cards info

Demo UAT
http://127.0.0.1
Demo UAT
http://127.0.0.1
POST
/device/queryBatchDevice
Query all SIM cards information, including the package in use. If the package is not in use,it will not in the response.

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
page_no
integer 
Page number
required
Page of the device information requested. If the value of this node is null, page 1 is the default.
page_size
integer 
Number each page
required
Number of devices contained in each page. If the value of this object is null, the default value is 20.
version
string 
required
access_code
string 
required
timestamp
string 
required
sign
string 
required
Example
{
    "access_code": "P000270",
    "page_no": 1,
    "page_size": 50,
    "timestamp": "1643012271",
    "version": "2.0",
    "sign":"4hxgooU5BKg+6UtJiiYkIzHY55M="
}

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/device/queryBatchDevice' \
--header 'Accept-Language: zh-CN' \
--header 'Content-Type: application/json' \
--data-raw '{
    "access_code": "P000270",
    "page_no": 1,
    "page_size": 50,
    "timestamp": "1643012271",
    "version": "2.0",
    "sign":"4hxgooU5BKg+6UtJiiYkIzHY55M="
}'

Responses

🟢200Success
application/json
Body
code
string 
required
data
object 
required
device
array [object {15}] 
required
page
object 
required
device_num
integer 
required
message
string 
required
success
boolean 
required
Example
{
    "code": "string",
    "data": {
        "device": [
            {
                "partnerName": "string",
                "partnerCode": "string",
                "lifecycle": "string",
                "msisdn": "string",
                "device_id": "string",
                "ota_flag": "string",
                "bip_flag": "string",
                "lifecycle_start_time": "string",
                "lifecycle_end_time": "string",
                "lifecycle_shutdown_period": "string",
                "lifecycle_slient_period": "string",
                "task_no": "string",
                "main_iccid": "string",
                "multiImsi_flag": "string",
                "package_order": {
                    "buyType": "string",
                    "expireDate": "string",
                    "flow": "string",
                    "orderCode": "string",
                    "orderStatus": "string",
                    "orderDate": "string",
                    "orderPeriod": "string",
                    "packageCode": "string",
                    "packageName": "string",
                    "packageType": "string",
                    "usedFlow": "string",
                    "flowUseRate": "string",
                    "orderUsedFlow": "string",
                    "supplierCode": "string",
                    "refuelingPackageList": [
                        "string"
                    ],
                    "hasTestFlow": "string",
                    "profileList": "string",
                    "isFlowPlus": "string",
                    "deviceId": "string",
                    "device_id": "string",
                    "activeDate": "string",
                    "main_iccid": "string"
                }
            }
        ],
        "page": {
            "cur_page_no": 0,
            "page_size": 0,
            "total_count": 0,
            "total_pages": 0
        },
        "device_num": 0
    },
    "message": "string",
    "success": true
}
Modified at 2023-07-14 08:52:24
Previous
Sign code Example
Next
Get real-time info about one SIM card
Built with