Send an SMS.
You can test the response of this function by passing the SimulatorCode element with the desired status response listed below.
HTTP Request Method = POST.
https://sandbox.minihotel.cloud/agents/ws/sms/SMSInterface.asmx/sendSMS
https://api2.minihotel.cloud/agents/ws/sms/SMSInterface.asmx/sendSMS
Request
| Element | Description | Type |
|---|---|---|
| From | Sender name. e.g. Test Hotel | String |
| ToPhone | The phone number that will receive the message. This parameter receives numbers only. Example: If you have the following number: +54 351 1234567, you will need to remove the spaces and symbols. e.g. 543511234567 | Integer |
| Text | Text message (up to 153 chars) | String |
Request Example
<?xml version="1.0" encoding="UTF-8"?>
<Request>
<SMS name="sendSMS">
<Authentication username="Test" password="3657488"/>
<Hotel id="sandbox" />
<From>Test Hotel</From>
<ToPhone>54935133333333</ToPhone>
<Text>Hello World!</Text>
</SMS>
</Request>
Response
| Parameter | Description | Type |
|---|---|---|
| Message | Main element | XElement |
| #attr Status | Possible values: OK = Message has been sent Error = Message not sent | String |
| #Description | Message description | String |
Response Example
<?xml version="1.0" encoding="UTF-8"?>
<Response>
<ServerInfo>
<Name>SANDBOX1</Name>
<ResponseTime>22 ms</ResponseTime>
<DateTime>8/15/2018 9:08:33 AM</DateTime>
</ServerInfo>
<Message Status=”OK” Description=”Message sent to: 54935133333333 successfully.” />
</Response>
