Get Valid Plans

Last Updated on : 2021-08-27 03:28:06download

Get the list of valid plans of the IoT SIM card, and query the plan number, service ticket generation time, plan name, effective time, and expiration time.

API address

GET: /v1.0/iot-01/sim/{iccid}/package/list

Request parameter

Parameter name Type IN Required Description
iccid String uri true The ID of a specified IoT SIM card.

Return parameter

Parameter name Type Description
result List

Description of result

Parameter name Type Description
package_id String The ID of a specified plan.
order_date Long The time when a service ticket was generated.
package_name String The name of a specific plan.
effect_date Long The time when the plan takes effect.
expire_date Long The time when the plan expires.

Request example

GET: /v1.0/iot-01/sim/898611212100361****/package/list

Return example

{ "result": [ { "effect_date": 1622100029739, "package_id": "orderid-shengji-test***", "order_date": 1622100029739, "expire_date": 1622100029739, "package_name": "4G Telecom 10 MB/Month" } ], "t": 1626400350932, "success": true }

Error code

For more information, see error code.