Smarthub Api En
  1. Subscription Notification
  • 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 account information
    • Get servicePackages information
  • SIM Card Statistics
    • Get the country code traffic and number of cards for SIM card statistics
  1. Subscription Notification

Push Prepaid Service Package Expired Event Notification

POST
/Push Prepaid Service Package Expired
Push Prepaid Service Package Expired Rule Trigger Notify to configured URL on SmartHub

Request

Header Params

Body Params application/json

Example
{
    "eventId": "150aa0f9bc6441378938a1e6c6e222f9",
    "datePush": "2019-05-16T10:59:29.789Z",
    "signature": "58210277eeea982589a3f2c5711ce5ac23a866298d77fcb5c30bb1e0aa9c345f",
    "eventType": "RULE_TRIGGERED",
    "data": {
        "ruleName": "string",
        "triggerDate": "2018-10-10 10:32:50",
        "gIccid": "8986011805021000040",
        "triggerType": "SERVICE_PACKAGE_EXPIRED",
        "packageCode": "PRE-IND_60M",
        "packageName": "PRE-IND_60M",
        "activateDate": "2018-10-10T10:32:50+0000",
        "validThru": "2020-10-10T10:32:50+0000"
    }
}

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 POST '/Push Prepaid Service Package Expired' \
--header 'X-API-Key;' \
--header 'Content-Type: application/json' \
--data-raw '{
    "eventId": "150aa0f9bc6441378938a1e6c6e222f9",
    "datePush": "2019-05-16T10:59:29.789Z",
    "signature": "58210277eeea982589a3f2c5711ce5ac23a866298d77fcb5c30bb1e0aa9c345f",
    "eventType": "RULE_TRIGGERED",
    "data": {
        "ruleName": "string",
        "triggerDate": "2018-10-10 10:32:50",
        "gIccid": "8986011805021000040",
        "triggerType": "SERVICE_PACKAGE_EXPIRED",
        "packageCode": "PRE-IND_60M",
        "packageName": "PRE-IND_60M",
        "activateDate": "2018-10-10T10:32:50+0000",
        "validThru": "2020-10-10T10:32:50+0000"
    }
}'

Responses

🟢200OK
application/json
Push Success
Body

Example
{}
🟠401Unauthorized
Modified at 2024-11-06 08:54:48
Previous
Push No Session Connection Event Notification
Next
Push Prepaid Service Package Traffic Tracking Event Notification
Built with