全球SIM联接 GSL-自动化规则:API合并推送报文

时间:2024-01-15 08:55:04

API合并推送报文

推送body参数

参数

参数类型

描述

ruleType

int

规则类型:

  • 1:订单管理 。
  • 2:用量监控 。
  • 4:卡状态变更监控。

templateName

string

模板名称:

api_rule_price_plan_expired:SIM卡套餐到期模板。

api_rule_flow_usage_remain:周期累计数据用量模板。

api_rule_sim_status_modify:卡状态变更模板。

templateParamsList

array

包含多个卡信息的模板参数集合,最多包含500张卡的信息。

templateParamsList.templateParams

array

单个卡信息的模板参数集合,建议按照key值进行解析,后续可能会添加其他key值。

SIM卡套餐到期(api_rule_price_plan_expired)报文示例:
{
  "ruleType": 1,
  "templateName": "api_rule_price_plan_expired",
  "templateParamsList": [
    {
      "templateParams": [
        {
          "key": "cid",
          "value": "4441380627973120"
        },
        {
          "key": "pricePlanName",
          "value": "中国移动每月30M联接服务"
        },
        {
          "key": "daysToExpire",
          "value": "9"
        }
      ]
    },
    {
      "templateParams": [...]
    }
    ...
  ]
}

周期 累计数据用量(api_rule_flow_usage_remain)报文示例

{
  "ruleType": 2,
  "templateName": "api_rule_flow_usage",
  "templateParamsList": [
    {
      "templateParams": [
        {
          "key": "cid",
          "value": "4441380627973120"
        },
        {
          "key": "pricePlanName",
          "value": "中国移动每月30M联接服务"
        },
        {
          "key": "usageFlow",
          "value": "100"
        }
      ]
    },
    {
      "templateParams": [...]
    }
    ...
  ]
}

卡状态变更(api_rule_sim_status_modify)报文示例

{
  "ruleType": 4,
  "templateName": "api_rule_sim_status_modify",
  "templateParamsList": [
    {
      "templateParams": [
        {
          "key": "cid",
          "value": "2021080621060000T"
        },
        {
          "key": "modifyTime",
          "value": "2022-05-16 03:24:08"
        },
        {
          "key": "oldStatus",
          "value": "未激活"
        },
        {
          "key": "newStatus",
          "value": "可激活"
        }
      ]
    },
    {
      "templateParams": [...]
    }
    ...
  ]
}
support.huaweicloud.com/usermanual-ocgsl/oceanlink_04_0030.html