POST api/InstantSMS

Send an SMS with a custom text.

URL request: http://login.sendservice.eu/MultiChannelAPI/Api/instantSMS/


1 SMS - 1 Request

Parameters

ParameterDescriptionObject / Right formatRequired

user

It represents required object for the authorization  

"User": {

"username": "your username",
"password": "your password"
}
Yes
DateStartToSend

It represents date when you want to schedule your SMS

aaaa-MM-ggThh:mm:ss.SSS+UTCYes
Number

Number of the SMS reciever

String (you must add prefix f.e. 0039..)Yes

Text

Text of your SMSStringYes

SmsProviderCode

Type of the SMS provider Insert "high" as provider codeYes
SmsSenderIt represents the sender of your SMSString (Max 11 characters)yes
FirstnameContact FirstnameString max 128 charactersno
LastNameContact LastnameString max 128 charactersno
CodeRequest

Unique Identification code for your request

better to send a GUIDno

Example Application/Json, Text/json

Example Application/json, Text/json
{ 
  "ListSms": [
  	{
  "SMSText": "Hello, this is your SMS text!",
  "Number": "0039.......",
  "SmsProviderCode": "high",
  "SMSSender": "Sendername",
  "DateStartToSend": "2018-03-22T15:39:06.0554209+01:00",
  "CodeRequest": ""
  	}
  	],
    
  "User": {
    "username": "your username",
    "password": "your password"
  }
}

Example Application/xml

Example Application/xml
<GlobalSettings xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <CodeRequest>sample string 9</CodeRequest>
  <ContactId>1</ContactId>
  <DateCreated>2018-04-11T11:40:55.437308+01:00</DateCreated>
  <DateModify>2018-04-11T11:40:55.437308+01:00</DateModify>
  <DateSent>2018-04-11T11:40:55.437308+01:00</DateSent>
  <DateStartToSend>2018-04-11T11:40:55.437308+01:00</DateStartToSend>
  <FirstName>sample string 3</FirstName>
  <Id>1</Id>
  <LastName>sample string 4</LastName>
  <ListSms>
    <SMS>
      <CodeRequest>sample string 13</CodeRequest>
      <ContactId>1</ContactId>
      <DateCreated>2018-04-11T11:40:55.437308+02:00</DateCreated>
      <DateModify>2018-04-11T11:40:55.437308+02:00</DateModify>
      <DateSent>2018-04-11T11:40:55.437308+02:00</DateSent>
      <DateStartToSend>2018-04-11T11:40:55.437308+02:00</DateStartToSend>
      <FirstName>sample string 3</FirstName>
      <Id>1</Id>
      <LastName>sample string 4</LastName>
      <Number>sample string 7</Number>
      <Price>1</Price>
      <SMSSender>sample string 12</SMSSender>
      <SMSText>sample string 5</SMSText>
      <SmsProviderCode>sample string 11</SmsProviderCode>
      <Status>Unsent</Status>
    </SMS>
  </ListSms>
  <Number>sample string 6</Number>
  <Price>1</Price>
  <SMSSender>sample string 8</SMSSender>
  <SMSText>sample string 5</SMSText>
  <SmsProviderCode>sample string 7</SmsProviderCode>
  <User>
    <password>sample string 2</password>
    <username>sample string 1</username>
  </User>
</GlobalSettings>


More SMS - 1 Request

Parameters

ParameterDescriptionObject / Right formatRequired

user

It represents required object for the authorization  

"User": {

"username": "your username",
"password": "your password"
}
Yes
DateStartToSend

It represents date when you want to schedule your SMS

aaaa-MM-ggThh:mm:ss.SSS+UTCreplaced if exist in ListSMS
Number

Number of the SMS reciever

String (you must add prefix f.e. 0039..)replaced if exist in ListSMS

Text

Text of your SMSStringreplaced if exist in ListSMS

SmsProviderCode

Type of the SMS provider Insert "high" as provider codereplaced if exist in ListSMS
SmsSenderIt represents the sender of your SMSString (Max 11 characters)replaced if exist in ListSMS
FirstnameContact FirstnameString max 128 charactersreplaced if exist in ListSMS
LastNameContact LastnameString max 128 charactersreplaced if exist in ListSMS
CodeRequest

Unique Identification code for your request

better to send a GUIDreplaced if exist in ListSMS
ListSMSAn array with SMS which have same parameters of one Sms

"ListSms":
[ { "SMSText": "Hello, this is your SMS text!",
"Number": "0039.......",
"SmsProviderCode": "high",
"SMSSender": "Sendername",
"DateStartToSend": "2018-03-22T15:39:06.0554209+01:00",
"CodeRequest": ""
}

yes

Example Application/Json, Text/json

Example Application/json, Text/json
{ 
	"SMSText": "Hello, this is your SMS text!",
	"SmsProviderCode": "high",
	"SMSSender": "SmsSender",
	"DateStartToSend": "2018-03-22T15:39:06.0554209+01:00",
    "ListSms": [
  		{
		"Number": "first number",
		"CodeRequest": ""
  		},
  		{
		"Number": "second number",
		"CodeRequest": ""
  		}
  	],
  	"User": {
    "username": "username",
    "password": "password"
	}
}