Smarthub Api En
  1. Enterprise Information
  • Overview
    • Global Description
  • SIM Card Management
    • Retrieve SIM detail information
      GET
    • Retrieve list of SIMs detail information
      GET
    • Retrieve state change history of SIMs
      GET
    • Retreive custom field of SIM
      GET
    • Edit custom field of SIM
      PUT
    • Activate SIM
      POST
    • Suspend SIM
      POST
    • Retire SIM
      POST
    • SIM subscribe to supplimentary rate plan
      POST
    • Change SIM basic rate plan
      PUT
    • Change SIM apn status
      PUT
  • SIM Card Batch Operation
    • Batch SIM activate
      POST
    • Batch SIM suspend
      POST
    • Batch SIM retire
      POST
    • Batch change SIM basic rate plan
      POST
    • Retrieve batch job information
      GET
  • Sms Service
    • Send SMS to terminal
      POST
    • Query SMS delivery status
      GET
    • MO SMS Push
      POST
    • Push MT SMS Status Report
      POST
  • Subscription Notification
    • Push Cycle Usage Tracking Event Notification
      POST
    • Push Imei Change Event Notification
      POST
    • Push No Session Connection Event Notification
      POST
    • Push Prepaid Service Package Expired Event Notification
      POST
    • Push Prepaid Service Package Traffic Tracking Event Notification
      POST
    • Push Sim Status Change Event Notification
      POST
    • Push Sim Apn Status Change Event Notification
      POST
  • Share Pool
    • Get share pool information
  • Enterprise Information
    • Get enterprise information
      GET
    • Get account information
      GET
    • Get servicePackages information
      GET
  • SIM Card Statistics
    • Get the country code traffic and number of cards for SIM card statistics
  1. Enterprise Information

Get servicePackages information

GET
/{accountName}/servicePackages
Get the details of the tariff scheme under the account
Enumeration Description:
packageType(type of tariff scheme): MON_FLEXIBLE(monthly payment - flexible sharing),
MON_SINGLE(monthly payment - single connection),
MON_PAYG(monthly payment - payasyougo),
PRE_SINGLE(prepaid - single connection),
PRE_EXPERIENCE(experience package),
EVENT(prepaid event),
MON_ADDITION(monthly payment - additional)
activateType(生效方式): ACTIVATION(激活生效)
expireType(有效期类型): DAYS(天),CYCLES(账户计费周期)

Request

Path Params

Query Params

Header Params

Request Code 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 GET '//servicePackages?accountName' \
--header 'X-API-Key;'

Responses

🟢200OK
application/json
query success
Body

Example
{
    "data": [
        {
            "name": "xxxxxxx资费",
            "packageType": "PRE_SINGLE",
            "activateType": "ACTIVATION",
            "expireType": "CYCLES",
            "expireValue": 1,
            "usageQuotas": {
                "dataPackages": [
                    {
                        "serviceCategoryName": "ALL",
                        "dataSize": "1.000MB"
                    }
                ],
                "smsPackages": [
                    {
                        "serviceCategoryName": "ALL",
                        "smsSize": 10
                    }
                ],
                "voicePackages": [
                    {
                        "serviceCategoryName": "ALL",
                        "voiceSize": 0
                    }
                ]
            }
        }
    ],
    "page": 1,
    "size": 2,
    "total": 5
}
🟠422Parameter Error
Modified at 2024-11-06 08:54:48
Previous
Get account information
Next
Get the country code traffic and number of cards for SIM card statistics
Built with