Send SMS API

Property Description
Title Send a SIM SMS
Description Send an SMS to a sim. The sim must be "Productive" and the sms message cannot be empty.
URL https://ws.borderlessm2m.com/UpdateSim/SendSms/{iccid}
Method POST
Authentication Basic Auth
Body The following fields are accepted by the API:
Category Fields Description
Mandatory msg SMS message to send
Optional sender Specify who send the sms. If not provided, the default is "447937405250"
Optional validity_day A value between 0 and 30
Optional validity_hour A value between 0 and 23. If not provided, the default is 4
Optional validity_min A value between 0 and 59

Example:
{
	"msg":"This is my sms message",
	"sender":"6591231234",
	"validity_day":3,
	"validity_hour":4,
	"validity_min":0
}
							
Return Message Example:
{
    "message": "PENDING",
    "errors": [
        ""
    ]
}
							
Errors
Error Description Example
Wrong username or password
{
    "code": 500,
    "message": "There was an error processing your request. It has been logged (ID xxxxxxxxxxxxxxxx)."
}
										
Wrong iccid
{
    "message": "Bad Request",
    "errors": [
        "Could not find : {iccid}"
    ]
}
										
No sms message
{
    "message": "Validation Failed",
    "errors": [
        "msg:length must be between 1 and 140",
        "msg:may not be empty"
    ]
}
										
sender validation
{
    "message": "Validation Failed",
    "errors": [
        "sender:sender must be less than 12 characters"
    ]
}
										
validity_day validation
{
    "message": "Validation Failed",
    "errors": [
        "validity_day:day range between 0 and 30"
    ]
}
										
validity_hour validation
{
    "message": "Validation Failed",
    "errors": [
        "validity_hour:hour range between 0 and 23"
    ]
}
										
validity_min validation
{
    "message": "Validation Failed",
    "errors": [
        "validity_min:min range between 0 and 59"
    ]
}