POST api/Notifications/SendSms

Request Information

URI Parameters

None.

Body Parameters

SMSLogs
NameDescriptionTypeAdditional information
ID

integer

None.

SMS_TEMPLATE_CODE

integer

None.

SMS_TEMPLATE

string

None.

TRAN_TYPE

string

None.

MOBILE_NUMBER

string

None.

SMS

string

None.

OTP_CODE

string

None.

EXPIRES_IN

string

None.

STATUS_ID

integer

None.

STATUS

string

None.

CREATED_BY

string

None.

CREATED_ON

string

None.

Request Formats

application/json, text/json

Sample:
{
  "ID": 1,
  "SMS_TEMPLATE_CODE": 2,
  "SMS_TEMPLATE": "sample string 3",
  "TRAN_TYPE": "sample string 4",
  "MOBILE_NUMBER": "sample string 5",
  "SMS": "sample string 6",
  "OTP_CODE": "sample string 7",
  "EXPIRES_IN": "sample string 8",
  "STATUS_ID": 9,
  "STATUS": "sample string 10",
  "CREATED_BY": "sample string 11",
  "CREATED_ON": "sample string 12"
}

application/xml, text/xml

Sample:
<SMSLogs xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EventMubarakAPI.Models">
  <CREATED_BY>sample string 11</CREATED_BY>
  <CREATED_ON>sample string 12</CREATED_ON>
  <EXPIRES_IN>sample string 8</EXPIRES_IN>
  <ID>1</ID>
  <MOBILE_NUMBER>sample string 5</MOBILE_NUMBER>
  <OTP_CODE>sample string 7</OTP_CODE>
  <SMS>sample string 6</SMS>
  <SMS_TEMPLATE>sample string 3</SMS_TEMPLATE>
  <SMS_TEMPLATE_CODE>2</SMS_TEMPLATE_CODE>
  <STATUS>sample string 10</STATUS>
  <STATUS_ID>9</STATUS_ID>
  <TRAN_TYPE>sample string 4</TRAN_TYPE>
</SMSLogs>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'SMSLogs'.

Response Information

Resource Description

ResponseOfSMSLogs
NameDescriptionTypeAdditional information
ResponseCode

integer

None.

ResponseMessage

string

None.

Data

Collection of SMSLogs

None.

Response Formats

application/json, text/json

Sample:
{
  "ResponseCode": 1,
  "ResponseMessage": "sample string 2",
  "Data": [
    {
      "ID": 1,
      "SMS_TEMPLATE_CODE": 2,
      "SMS_TEMPLATE": "sample string 3",
      "TRAN_TYPE": "sample string 4",
      "MOBILE_NUMBER": "sample string 5",
      "SMS": "sample string 6",
      "OTP_CODE": "sample string 7",
      "EXPIRES_IN": "sample string 8",
      "STATUS_ID": 9,
      "STATUS": "sample string 10",
      "CREATED_BY": "sample string 11",
      "CREATED_ON": "sample string 12"
    },
    {
      "ID": 1,
      "SMS_TEMPLATE_CODE": 2,
      "SMS_TEMPLATE": "sample string 3",
      "TRAN_TYPE": "sample string 4",
      "MOBILE_NUMBER": "sample string 5",
      "SMS": "sample string 6",
      "OTP_CODE": "sample string 7",
      "EXPIRES_IN": "sample string 8",
      "STATUS_ID": 9,
      "STATUS": "sample string 10",
      "CREATED_BY": "sample string 11",
      "CREATED_ON": "sample string 12"
    }
  ]
}

application/xml, text/xml

Sample:
<ResponseOfSMSLogs_SzSEHSlJ xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EventMubarakAPI.Models">
  <Data>
    <SMSLogs>
      <CREATED_BY>sample string 11</CREATED_BY>
      <CREATED_ON>sample string 12</CREATED_ON>
      <EXPIRES_IN>sample string 8</EXPIRES_IN>
      <ID>1</ID>
      <MOBILE_NUMBER>sample string 5</MOBILE_NUMBER>
      <OTP_CODE>sample string 7</OTP_CODE>
      <SMS>sample string 6</SMS>
      <SMS_TEMPLATE>sample string 3</SMS_TEMPLATE>
      <SMS_TEMPLATE_CODE>2</SMS_TEMPLATE_CODE>
      <STATUS>sample string 10</STATUS>
      <STATUS_ID>9</STATUS_ID>
      <TRAN_TYPE>sample string 4</TRAN_TYPE>
    </SMSLogs>
    <SMSLogs>
      <CREATED_BY>sample string 11</CREATED_BY>
      <CREATED_ON>sample string 12</CREATED_ON>
      <EXPIRES_IN>sample string 8</EXPIRES_IN>
      <ID>1</ID>
      <MOBILE_NUMBER>sample string 5</MOBILE_NUMBER>
      <OTP_CODE>sample string 7</OTP_CODE>
      <SMS>sample string 6</SMS>
      <SMS_TEMPLATE>sample string 3</SMS_TEMPLATE>
      <SMS_TEMPLATE_CODE>2</SMS_TEMPLATE_CODE>
      <STATUS>sample string 10</STATUS>
      <STATUS_ID>9</STATUS_ID>
      <TRAN_TYPE>sample string 4</TRAN_TYPE>
    </SMSLogs>
  </Data>
  <ResponseCode>1</ResponseCode>
  <ResponseMessage>sample string 2</ResponseMessage>
</ResponseOfSMSLogs_SzSEHSlJ>