SIM Management
API Reference
Bundle Monitor

Bundle Monitor

Bundle Monitor is Cellhire's usage alerting solution, custom definitions can be setup to alert yourself or customers of usage over a certain threshold.

Network Support

  • SIM status must be "on-hire"
  • All SIMs must be:
    • On the same network
    • On the same account
NetworkNetworkIdConfigure Bundle MonitorAdmin BarringGPRS (Data) Barring
eSIMsmart218X
eSIMsmart IOT225X
MT-IOT M2MO232
MT-IOT M2MV233
O2 (UK)24
O2 (USA) (UK)29
O2 (World)97
O2 AT (UK)195
Orange (France)192X
Orange (France) LMVNO234X
Vodafone (UK)3
Vodafone PPM (UK)141
Vodafone SB (UK)151
Vodafone M2M (UK)164
Vodafone BA (UK)168
Vodafone AT (UK)200

Configure Bundle Monitor

Request Payload Constraints:

PropertyConstraints
nameOptional, Max length of 200 characters.
serialNumbersMust provide atleast one
startDateMust be greater than 1 month in the past and less than 1 month in the future.
bundlePeriodUnitMust be either "day" or "month".
bundlePeriodValueMust be greater than 0 and less than 32.
bundleSizeMust be greater than 0 and less than 10485761.
unbarMust respect the available barring options based on the SIMs network.
notificationsIf provided, must respect notification constraints (see below).

Notification Constraints:

PropertyConstraints
typeMust be either "warning" or "alert".
deliveryTypeMust be either "sms" or "email".
recipientsIf deliveryType is "sms", must be a valid list of MSISDNs* unless notifySimsOwnTelephoneNumber is True.

If deliveryType is "email", must be a valid list of email addresses**.
volumePercentageMust be greater than 0 and less than 101.
notifySimsOwnTelephoneNumberIf deliveryType is "sms" and no recipients provided, must be True.
barMust respect the available barring options based on the SIMs network. (Admin or GPRS)

*Example sms recipients (semi-colon separated): "07123456789; 07987654321"

**Example email recipients (semi-colon separated): "test1@cellhire.com; test2@cellhire.com; test3@cellhire.com"

Example Request

curl --location 'https://api.cellhire.com/api/simSubmission/ConfigureBundleMonitor' \
--header 'Content-Type: application/json;charset=UTF-8' \
--header 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6IjRBMDlENTFBMDhEOEUxMTU0OTkyODFDN...' \
--data '{
  "name": "test submission",
  "serialNumbers": ["89441000303198729483"],
  "startDate": "2024-06-01T00:00:00.000Z",
  "bundlePeriodUnit": "month",
  "bundlePeriodValue": 1,
  "bundleSize": 250,
  "unbar": { "admin": true, "gprs": true },
  "notifications": [
    {
      "type": "warning",
      "deliveryType": "email",
      "recipients": "test@cellhire.com",
      "volumePercentage": 25,
      "notifySimsOwnTelephoneNumber": false,
      "bar": { "admin": false, "gprs": false }
    },
    {
      "type": "alert",
      "deliveryType": "email",
      "recipients": "test@cellhire.com",
      "volumePercentage": 75,
      "notifySimsOwnTelephoneNumber": false,
      "bar": { "admin": true, "gprs": true }
    }
  ]
}

Remove Bundle Monitor

Request Payload Constraints:

PropertyConstraints
nameMax length of 200 characters.
serialNumbersMust supply atleast one

Example Request

curl --location 'https://api.cellhire.com/api/simSubmission/RemoveBundleMonitor' \
--header 'Content-Type: application/json;charset=UTF-8' \
--header 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6IjRBMDlENTFBMDhEOEUxMTU0OTkyODFDN...' \
--data '{
  "name": "test submission",
  "serialNumbers": ["89441000303198729483"]
}