Use cases
A Use case is the kind of message: OTP, Notification or Marketing. Each Gateway has one, and the dashboard labels it Message purpose. The Use case sets the price: one Route can have a different price for each Use case.
| Use case | For | Send with |
|---|---|---|
| OTP | One-time codes that Telrioz makes and checks | POST /otp and POST /otp/verify. Over SMPP, an OTP Gateway sends your own text |
| Notification | Messages a person expects, such as an order update | POST /messages, Bulk send or SMPP |
| Marketing | Promotions and offers | POST /messages, Bulk send or SMPP |
Over SMPP, the login's Gateway sets the Use case; on an OTP Gateway, Telrioz makes no code, and the Throttle still applies (ESME_RSUBMITFAIL). Over REST, the Gateway you send through sets it: POST /messages cannot send through an OTP Gateway, and POST /otp sends only through one. With an API key, POST /otp needs gateway.
What an OTP Gateway adds
- The code. Telrioz makes the code from the Gateway's template (its
{code}), sends it and keeps it forPOST /otp/verify. It is 6 digits unless the Gateway sets another length, and it must fit in one SMS. - The Throttle. While it is on, one phone number gets at most 5 OTPs a day (WIB). The next one answers
409otp_limit. You can switch it off in Developers → Settings. - Fallback, if you switch it on. It is a second Route and a wait time. If the first send ends Rejected or Error, or is not Delivered in time, Telrioz sends the same code once more on that Route. Each send is charged at its own Route's price. A slow receipt can start the second send, so one code can be paid for twice. The details are on Send an OTP.