SIM Management
API Reference
Configure Spendcap

Configure Spendcap

This endpoint allows UK sims on a valid network to have SpendCaps set.

Network Support

NetworkNetworkId
Vodafone3
Vodafone AT-UK200
O2 AT (UK)195
  • SIM status must be "on-hire"
  • All SIMs must be:
    • On the same network
    • On the same account

Request

NameTypeDescription
serialNumbersstring arrayAn array of serial numbers corresponding to the SIMs you wish to update
capnumberSpendcap amount in pounds serling (£) - greater than 0
notifyEmailAddressesstring arrayAn array of email addresses to notify when a SpendCap triggers
smsOptOutbooleanOpt out of the sms notifications that go to a sim
barsToPersistarray stringA list of Bars that should presist when a SpendCap is lifted

Valid barsToPersist options

  • data
  • voice
  • international
  • dataroaming
  • voiceroaming
  • premium
  • chargeablecalls
Example TopUp
curl --location 'https://api.cellhire.com/api/simSubmission/ConfigureSpendCap' \
--header 'Content-Type: application/json;charset=UTF-8' \
--header 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6IjRBMDlENTFBMDhEOEUxMTU0OTkyODFDN...' \
--data '{
    "serialNumbers": [
        "987654321"
    ],
    "cap": 10,
    "notifyEmailAddresses": [
      "example@test.com"
    ],
    "smsOptOut": true,
    "barsToPersist": [
      "data",
      "voice"
    ]
}'