查询物联网卡历史流量

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

请求参数

名称 类型 是否必选 示例值 描述
Action String QueryCardHistoryFlowInfo

系统规定参数。取值:QueryCardHistoryFlowInfo。

Iccid String 8986040210198021XXXX

物联卡对应的Iccid编码。

StartTime String 202001

查询开始时间。

EndTime String 202006

查询结束时间。

返回数据

名称 类型 示例值 描述
Code String isv.IOT_RES_NOT_EXIST

查询出现错误时,会返回对应的错误码。

接口查询成功与否根据Success判断。

Data Array

返回物联网卡流量信息。

CurValue Long 104950784

在查询时间范围内每月使用总量(kb)

DayUsageList Array

在查询时间范围内每月某一天物联网卡流量信息。

Day Integer 1

当月具体某一天。

Value Long 1024

当日使用流量(kb)。

Month Long 1

在查询时间范围内某月。

Message String success

状态码的描述。

RequestId String 48108127-0EFD-4E97-8995-0308F27818C3

请求ID。

Success Boolean true

是否成功。

示例

请求示例

http(s)://[Endpoint]/?Action=QueryCardHistoryFlowInfo
&Iccid=8986040210198021XXXX
&StartTime=202001
&EndTime=202006
&<公共请求参数>

正常返回示例

XML 格式

<RequestId>0216F5C4-0307-499A-A5FD-CEA6A651B221</RequestId>
<Message>success</Message>
<Data>
    <month>202005</month>
    <dayUsageList>
        <day>1</day>
        <value>0</value>
    </dayUsageList>
    <dayUsageList>
        <day>2</day>
        <value>0</value>
    </dayUsageList>
    <dayUsageList>
        <day>3</day>
        <value>0</value>
    </dayUsageList>
    <dayUsageList>
        <day>4</day>
        <value>0</value>
    </dayUsageList>
    <dayUsageList>
        <day>5</day>
        <value>0</value>
    </dayUsageList>
    <dayUsageList>
        <day>6</day>
        <value>0</value>
    </dayUsageList>
    <dayUsageList>
        <day>7</day>
        <value>0</value>
    </dayUsageList>
    <dayUsageList>
        <day>8</day>
        <value>0</value>
    </dayUsageList>
    <dayUsageList>
        <day>9</day>
        <value>0</value>
    </dayUsageList>
    <dayUsageList>
        <day>10</day>
        <value>0</value>
    </dayUsageList>
    <dayUsageList>
        <day>11</day>
        <value>0</value>
    </dayUsageList>
    <dayUsageList>
        <day>12</day>
        <value>0</value>
    </dayUsageList>
    <dayUsageList>
        <day>13</day>
        <value>0</value>
    </dayUsageList>
    <dayUsageList>
        <day>14</day>
        <value>0</value>
    </dayUsageList>
    <dayUsageList>
        <day>15</day>
        <value>0</value>
    </dayUsageList>
    <dayUsageList>
        <day>16</day>
        <value>0</value>
    </dayUsageList>
    <dayUsageList>
        <day>17</day>
        <value>0</value>
    </dayUsageList>
    <dayUsageList>
        <day>18</day>
        <value>0</value>
    </dayUsageList>
    <dayUsageList>
        <day>19</day>
        <value>0</value>
    </dayUsageList>
    <dayUsageList>
        <day>20</day>
        <value>0</value>
    </dayUsageList>
    <dayUsageList>
        <day>21</day>
        <value>0</value>
    </dayUsageList>
    <dayUsageList>
        <day>22</day>
        <value>0</value>
    </dayUsageList>
    <dayUsageList>
        <day>23</day>
        <value>0</value>
    </dayUsageList>
    <dayUsageList>
        <day>24</day>
        <value>0</value>
    </dayUsageList>
    <dayUsageList>
        <day>25</day>
        <value>1024</value>
    </dayUsageList>
    <dayUsageList>
        <day>26</day>
        <value>104857600</value>
    </dayUsageList>
    <dayUsageList>
        <day>27</day>
        <value>92160</value>
    </dayUsageList>
    <dayUsageList>
        <day>28</day>
        <value>0</value>
    </dayUsageList>
    <dayUsageList>
        <day>29</day>
        <value>0</value>
    </dayUsageList>
    <dayUsageList>
        <day>30</day>
        <value>0</value>
    </dayUsageList>
    <dayUsageList>
        <day>31</day>
        <value>0</value>
    </dayUsageList>
    <curValue>104950784</curValue>
</Data>
<Data>
    <month>202006</month>
    <dayUsageList>
        <day>1</day>
        <value>5120</value>
    </dayUsageList>
    <dayUsageList>
        <day>2</day>
        <value>0</value>
    </dayUsageList>
    <dayUsageList>
        <day>3</day>
        <value>0</value>
    </dayUsageList>
    <dayUsageList>
        <day>4</day>
        <value>0</value>
    </dayUsageList>
    <dayUsageList>
        <day>5</day>
        <value>0</value>
    </dayUsageList>
    <dayUsageList>
        <day>6</day>
        <value>0</value>
    </dayUsageList>
    <dayUsageList>
        <day>7</day>
        <value>0</value>
    </dayUsageList>
    <dayUsageList>
        <day>8</day>
        <value>0</value>
    </dayUsageList>
    <dayUsageList>
        <day>9</day>
        <value>0</value>
    </dayUsageList>
    <dayUsageList>
        <day>10</day>
        <value>0</value>
    </dayUsageList>
    <dayUsageList>
        <day>11</day>
        <value>0</value>
    </dayUsageList>
    <dayUsageList>
        <day>12</day>
        <value>0</value>
    </dayUsageList>
    <dayUsageList>
        <day>13</day>
        <value>0</value>
    </dayUsageList>
    <dayUsageList>
        <day>14</day>
        <value>0</value>
    </dayUsageList>
    <dayUsageList>
        <day>15</day>
        <value>0</value>
    </dayUsageList>
    <dayUsageList>
        <day>16</day>
        <value>0</value>
    </dayUsageList>
    <dayUsageList>
        <day>17</day>
        <value>0</value>
    </dayUsageList>
    <dayUsageList>
        <day>18</day>
        <value>0</value>
    </dayUsageList>
    <dayUsageList>
        <day>19</day>
        <value>0</value>
    </dayUsageList>
    <dayUsageList>
        <day>20</day>
        <value>0</value>
    </dayUsageList>
    <dayUsageList>
        <day>21</day>
        <value>0</value>
    </dayUsageList>
    <dayUsageList>
        <day>22</day>
        <value>0</value>
    </dayUsageList>
    <dayUsageList>
        <day>23</day>
        <value>0</value>
    </dayUsageList>
    <dayUsageList>
        <day>24</day>
        <value>0</value>
    </dayUsageList>
    <dayUsageList>
        <day>25</day>
        <value>0</value>
    </dayUsageList>
    <dayUsageList>
        <day>26</day>
        <value>0</value>
    </dayUsageList>
    <dayUsageList>
        <day>27</day>
        <value>0</value>
    </dayUsageList>
    <dayUsageList>
        <day>28</day>
        <value>0</value>
    </dayUsageList>
    <dayUsageList>
        <day>29</day>
        <value>0</value>
    </dayUsageList>
    <dayUsageList>
        <day>30</day>
        <value>0</value>
    </dayUsageList>
    <dayUsageList>
        <day>31</day>
        <value>0</value>
    </dayUsageList>
    <curValue>5120</curValue>
</Data>
<Success>true</Success>

JSON 格式

{
    "RequestId":"0216F5C4-0307-499A-A5FD-CEA6A651B221",
    "Message":"success",
    "Data":[
        {
            "month":202005,
            "dayUsageList":[
                {
                    "day":1,
                    "value":0
                },
                {
                    "day":2,
                    "value":0
                },
                {
                    "day":3,
                    "value":0
                },
                {
                    "day":4,
                    "value":0
                },
                {
                    "day":5,
                    "value":0
                },
                {
                    "day":6,
                    "value":0
                },
                {
                    "day":7,
                    "value":0
                },
                {
                    "day":8,
                    "value":0
                },
                {
                    "day":9,
                    "value":0
                },
                {
                    "day":10,
                    "value":0
                },
                {
                    "day":11,
                    "value":0
                },
                {
                    "day":12,
                    "value":0
                },
                {
                    "day":13,
                    "value":0
                },
                {
                    "day":14,
                    "value":0
                },
                {
                    "day":15,
                    "value":0
                },
                {
                    "day":16,
                    "value":0
                },
                {
                    "day":17,
                    "value":0
                },
                {
                    "day":18,
                    "value":0
                },
                {
                    "day":19,
                    "value":0
                },
                {
                    "day":20,
                    "value":0
                },
                {
                    "day":21,
                    "value":0
                },
                {
                    "day":22,
                    "value":0
                },
                {
                    "day":23,
                    "value":0
                },
                {
                    "day":24,
                    "value":0
                },
                {
                    "day":25,
                    "value":1024
                },
                {
                    "day":26,
                    "value":104857600
                },
                {
                    "day":27,
                    "value":92160
                },
                {
                    "day":28,
                    "value":0
                },
                {
                    "day":29,
                    "value":0
                },
                {
                    "day":30,
                    "value":0
                },
                {
                    "day":31,
                    "value":0
                }
            ],
            "curValue":104950784
        },
        {
            "month":202006,
            "dayUsageList":[
                {
                    "day":1,
                    "value":5120
                },
                {
                    "day":2,
                    "value":0
                },
                {
                    "day":3,
                    "value":0
                },
                {
                    "day":4,
                    "value":0
                },
                {
                    "day":5,
                    "value":0
                },
                {
                    "day":6,
                    "value":0
                },
                {
                    "day":7,
                    "value":0
                },
                {
                    "day":8,
                    "value":0
                },
                {
                    "day":9,
                    "value":0
                },
                {
                    "day":10,
                    "value":0
                },
                {
                    "day":11,
                    "value":0
                },
                {
                    "day":12,
                    "value":0
                },
                {
                    "day":13,
                    "value":0
                },
                {
                    "day":14,
                    "value":0
                },
                {
                    "day":15,
                    "value":0
                },
                {
                    "day":16,
                    "value":0
                },
                {
                    "day":17,
                    "value":0
                },
                {
                    "day":18,
                    "value":0
                },
                {
                    "day":19,
                    "value":0
                },
                {
                    "day":20,
                    "value":0
                },
                {
                    "day":21,
                    "value":0
                },
                {
                    "day":22,
                    "value":0
                },
                {
                    "day":23,
                    "value":0
                },
                {
                    "day":24,
                    "value":0
                },
                {
                    "day":25,
                    "value":0
                },
                {
                    "day":26,
                    "value":0
                },
                {
                    "day":27,
                    "value":0
                },
                {
                    "day":28,
                    "value":0
                },
                {
                    "day":29,
                    "value":0
                },
                {
                    "day":30,
                    "value":0
                },
                {
                    "day":31,
                    "value":0
                }
            ],
            "curValue":5120
        }
    ],
    "Success":true
}

错误码

访问错误中心查看更多错误码。