Plivo’s platform now has the capability to identify invalid and non-SMS-enabled destination numbers. We’re able to fix an incorrectly formatted destination numbers to improve delivery rates and provide a better end-user experience. This update will bring multiple benefits to our customers as outlined below.
Since we don’t accept messages sent to invalid destination numbers for delivery, we will not charge for them – translating into immediate cost-savings.
Synchronous handling for invalid numbers
Customers will now be able to propagate the invalidation error upstream easily, since SMS API requests to invalid and non-SMS-enabled numbers will be rejected with a 400 Bad Request API response. Here’s an example of how this works in an OTP use case:
Step 1: The end-user request an OTP on an invalid destination number.
Step 2: The customer initiates a Send SMS API request.
Step 3: Plivo returns 400 Bad Request response synchronously.
Step 4: The customer displays ‘invalid number’ error to end-user.
Format correction for phone numbers
The platform now has the capability to intelligently reformat incorrectly formatted phone numbers. Here are two scenarios to illustrate how this works.
Scenario 1: The user enters the Lithuanian number 370860112345. Plivo automatically reformats the number to the E164 international format +37060112345 before forwarding to downstream carriers. Notice the 8 has been removed in the formatted number. This is because Plivo recognizes that 8 is only required when dialing a Lithuanian number from inside Lithuania.
Scenario 2: The user enters the Mexico number 520455512345678 and it is reformatted to the E164 international format +5215512345678. Notice that 045 has been replaced with 1. This is because 045 is only to be used when dialing a domestic cell phone from a landline, whereas 521 is the prefix for mobile phone numbers in E164 format.
Enabling Enhanced Destination Number Validation
- All new Plivo customers will have Enhanced Destination Number Validation for SMS enabled by default.
- Existing customers can enable Enhanced Destination Number Validation for SMS from the SMS Settings page in the Plivo Console. We recommend all our customers to enable this feature.
Note: Landlines in the US, Canada, and the UK can be enabled for SMS. Therefore, Plivo will not reject SMS messages to landline numbers in these countries.