On response of attempting to create a top up, if top up failed.On response of creation of SIMCheck, if HTTP Status is `402 Insufficient Credit`.On response of creation of SIMCheck, if `balance_snapshot` is below a certain predefined number.There are multiple parts of this example that you can use to make a POST request to the Webhook URL for notification purposes. Update auto payments code to make the POST request to the Webhook URL This is so your web application knows what the Slack Webhook URL is to submit to. If you want a working demo example, first follow the short tutorial, or check out the `main` repository of the code example on GitHub. If the balance is 0 when one of these requests is made, a `402` HTTP status will be returned, which is `Insufficient Credit`. This tutorial builds a minimal web server with Express JS, with one route `/sim-check` which is received as a `POST` request. Recently we released a tutorial on how to Automatically top up your tru.ID balance. You can programmatically top up your balance based on your needs and usage with the tru.ID Payments API. Here at tru.ID we’ve introduced an API that lets you take control of your own tru.ID balance. The risk of missing out on a payment when the balance is empty can disrupt critical parts of your service, especially if it involves the authentication flow. Being a developer or being in charge of a mobile or web application usually means you’re also responsible for the third party APIs that you’re using for your service - and this can often be quite an effort to keep in check.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |