Currently Truphone Connect supports notifcations via a webhook registration. This process is not global for all SIMs and therefore each SIM object will need to be registered in order to receive its notifications.
Currently Connect provides support for two types of notifications:
This type of notifications are triggered upon 80% of usage is reached.
This type of notifications are triggered upon full depletion of a plan or when it passes its expiration date.
In order to receve notifications the first step is to register a webhook onto a SIM resource passing the intentded notification type. At the moment only one request per type is supported.
Note: Currently notification work per SIM resource so each SIM needs to be registered to have a webhook, the webhook URL can be the same across all the SIMs
When the events happen a payload will be sent to the registered webhook.
At any time it's possible to stop receiving notifications for any specific SIM using the delete SIM preferences API