Linksfield Developer
OverviewCube APIsOld version
OverviewCube APIsOld version
  1. Notification
  • 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
      • 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
      POST
    • v1.1/payment/webhook
      POST
    • User login
      POST
    • My eSIM Detail
      POST
    • Pre - order v1.2
      POST
  1. Notification

流量使用量API预警

Demo UAT
http://127.0.0.1
Demo UAT
http://127.0.0.1
POST
URL(客户设置的接收事件回调URL)
向预先配置的URL推送流量使用量预警

Request

Header Params
x-lf-md5
string 
required
base64(md5("key1=value1&key2=value2&secret"))
x-lf-delivery
string 
required
unique id (snowflake)
Body Params application/json
lkEnterpriseName
string 
required
企业名称
assetId
string 
required
设备ID,即卡片ICCID,包含18-22字符和数字
orderId
string 
required
订单编码,包含字符、数字和特殊字符,如"_"
lkPackageName
string 
required
套餐名称,包含字符、数字和特殊字符,如"_"
actualStartTime
string 
required
订单启用时间
plannedEndTime
string 
required
订单结束时间
type
string 
required
规则类别,数字;03:流量使用量
defalutValue
string 
required
预警阈值,包含数字,套餐流量的百分比“%”,最大值为120
flowRate
string 
required
流量使用量百分比%,包含数字和特殊字符"%"
packageFlow
string 
required
套餐流量
useFlow
string 
required
流量使用量
createtime
string 
required
触发时间
Example
{
    "lkEnterpriseName": "我的科技",
    "assetId": "89860220190715228122",
    "orderId": "202105271622081243568",
    "lkPackageName": "C_M_R_0_1125_P_S_中国台湾印尼50M不限速月套餐",
    "actualStartTime": "2021-05-27 10:07:23",
    "plannedEndTime": "2023-01-31 23:59:59",
    "type": "03",
    "defalutValue": "1024000",
    "flowRate": "70%",
    "packageFlow": "2000000",
    "useFlow": "1024000",
    "createtime": "2021-07-27 13:00:12"
}

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.1URL(客户设置的接收事件回调URL)' \
--header 'x-lf-md5;' \
--header 'x-lf-delivery;' \
--header 'Content-Type: application/json' \
--data-raw '{
    "lkEnterpriseName": "我的科技",
    "assetId": "89860220190715228122",
    "orderId": "202105271622081243568",
    "lkPackageName": "C_M_R_0_1125_P_S_中国台湾印尼50M不限速月套餐",
    "actualStartTime": "2021-05-27 10:07:23",
    "plannedEndTime": "2023-01-31 23:59:59",
    "type": "03",
    "defalutValue": "1024000",
    "flowRate": "70%",
    "packageFlow": "2000000",
    "useFlow": "1024000",
    "createtime": "2021-07-27 13:00:12"
}'

Responses

🟢200成功
application/json
Body
object {0}
Example
{}
Modified at 2022-10-04 23:23:50
Previous
Notification status code
Next
短信下行回调
Built with