Skip to main content

Hello there,

I im building up the APIs for My company We just recently faced a problem that seems to need your help.

We are working to build a feature that uses Java API to send the High Volume SMS. We planed to using 2 bellow numbers:

(657)XXX6195 and (408) XXX-4000

We did submitted the form and contacted support team, they approved us but we still not able to send the HV SMS due exception bellow

{"errorCode":"CMN-101","message":"Parameter [from] value is invalid.","errors":[{"errorCode":"CMN-101","message":"Parameter [from] value is invalid."}]}

I query the features list and these 2 number don't have the feature A2PSmsSender as this docs required https://developers.ringcentral.com/guide/messaging/sms/high-volume/toll-free-sms-vs-local-numbers#java

Im login to your Campaign app https://www.sms-campaigns.com/login then it show up my number still "Enhanced Business SMS" instead of High Volume SMS number


Can you guys know how to add this feature "A2PSmsSender" to my extensions to avoid Error "Parameter [from] value is invalid.","errors""


I submitted ticket key for a white but no-one answer me yet. My case number is: 17419555

As you wrote that you have submitted the form and it got approved, I assume that it is the TCR registration form. That process does not include high volume SMS provision. Please use this form to submit your request HV SMS provisioning for those numbers.


Thanks for your response. We did submited 2 time for 2 number as bellow:

+16573346195 & +14088774000

1676430695094.png

The problem is that we are using JAVA JDK to send out the text but alway got the error

"errorCode":"CMN-101","message":"Parameter [from] value is invalid.


Im checked out and 2 above number don't have the feature "A2PSmsSender" we contact dev team but there are no update from the team.


Can you please help me to check it out?


Hello there,

My TCR form has been approved but im still not able to call the API to send HV SMS

status code: 400

Date: Tue, 04 Apr 2023 05:11:24 GMT
Content-Type: application/json
Transfer-Encoding: chunked
Connection: keep-alive
RCRequestId: 24c7ac6c-d2a7-11ed-bfa4-005056bb7e80
X-Rate-Limit-Group: light
X-Rate-Limit-Limit: 50
X-Rate-Limit-Remaining: 48
X-Rate-Limit-Window: 60
RoutingKey: SJC01P17
CF-Cache-Status: DYNAMIC
Set-Cookie: __cf_bm=NGbEtXI879r_n_50NDodIB9SuyXx72sE2wMnLWBNcE0-1680585084-0-AeGHfrO/k/Zxp0KdZZ0kxdZv1Neg9JhfoEYrPCAx/wrneYEb3WiuaFYWgtzFNgBwMoigoMQVqa7sxLID7DdvXn0=; path=/; expires=Tue, 04-Apr-23 05:41:24 GMT; domain=.platform.ringcentral.com; HttpOnly; Secure; SameSite=None
Server: cloudflare
CF-RAY: 7b270ce4efe33e44-SIN

{"errorCode":"CMN-101","message":"Parameter [from] value is invalid.","errors":[{"errorCode":"CMN-101","message":"Parameter [from] value is invalid."}]}

HTTP Request
============
HTTP POST https://platform.ringcentral.com/restapi/v1.0/account/~/a2p-sms/batches

Authorization: Bearer U0pDMDFQMTdQQVMwMHxBQUEyYmQ0a3dMU2UtZkZmLVRudTFnakNnTmxCdG1JTHNILUJKNHZhRVZKMGRrcWl2c2NVek4ydDZHOVRGallnTDNvNE5yYVdIajVvWkR6MGlmMkVaWHVZSzkwTDY1Z1FSejRTTm1xd2wwMHh6dXo4d0FidmxXZ3pWSEVpNU1xdzRnZ3R1NEIwMWZLT0gxM01mZzFya3VfZ2M4dVl1Q1M2MHVyOW00R2VVakNCWmFlY091UFJQSHVDWkRSYXhiVFN5UnVJWTNXNk9oRXxEWV9uQWd8Vmtzd2NpMXQ0cGppTHpIWnNkaHM3Z3xBUXxBQXxBQUFBQUxzbnd3OA
X-User-Agent: RC-JAVA-SDK Java 1.8.0_221 Mac OS X


This happened on both of numbers: (657)XXX6195 and (408) XXX-4000


This is my code
CreateSMSMessageBatchRequest parameters = new CreateSMSMessageBatchRequest();
parameters.from = RC_USERNAME;
parameters.text = "Hello Team, This is HV SMS";
String[] numbers = new String[] {RECIPIENT_NUMBER, "+14243325470"};
parameters.messages = new MessageCreateRequest[numbers.length];
for (int i=0; i<numbers.length; i++) {
MessageCreateRequest m = new MessageCreateRequest();
m.to = new String[] {numbers[i]};
parameters.messages[i] = m;
}


Im using ringcentra-java v2.4 here https://github.com/ringcentral/ringcentral-java">https://github.com/ringcentral/ringcentral-java

Can you help me to check it out? I did find aground but could not find any solution for this.


I check your numbers and found that they are not provisioned for HV SMS. You can double check using the API to read the number features.

public void read_extension_phone_number() throws RestException, IOException{
var resp = restClient.restapi().account().extension().phonenumber().get();
for (var record : resp.records) {
for(var feature : record.features)
{
if (feature.equalsIgnoreCase("A2PSmsSender"))
{
// this number is a HV SMS number.
}
}
}
}

Then you have to send a request for HV SMS provisioning. Make sure that your TCR registration is for HV SMS as I wrote earlier.


Reply