POST api/Customers/SmsViaYITFree

Request Information

URI Parameters

None.

Body Parameters

MessageToSms
NameDescriptionTypeAdditional information
SData

SendData

None.

Message

string

None.

Phone

string

None.

MessageType

string

None.

ByCompany

string

None.

VisitCode

integer

None.

AnswerCode

integer

None.

CustNum

integer

None.

IdNum

string

None.

Pasport

string

None.

Request Formats

application/json, text/json

Sample:
{
  "SData": {
    "URL": "sample string 1",
    "ParametersURL": "sample string 2",
    "ReturnPhone": "sample string 3",
    "User": "sample string 4",
    "Password": "sample string 5"
  },
  "Message": "sample string 1",
  "Phone": "sample string 2",
  "MessageType": "sample string 3",
  "ByCompany": "sample string 4",
  "VisitCode": 1,
  "AnswerCode": 1,
  "CustNum": 1,
  "IdNum": "sample string 5",
  "Pasport": "sample string 6"
}

application/xml, text/xml

Sample:
<MessageToSms xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BLMedical.MedInterfaces">
  <AnswerCode>1</AnswerCode>
  <ByCompany>sample string 4</ByCompany>
  <CustNum>1</CustNum>
  <IdNum>sample string 5</IdNum>
  <Message>sample string 1</Message>
  <MessageType>sample string 3</MessageType>
  <Pasport>sample string 6</Pasport>
  <Phone>sample string 2</Phone>
  <SData>
    <ParametersURL>sample string 2</ParametersURL>
    <Password>sample string 5</Password>
    <ReturnPhone>sample string 3</ReturnPhone>
    <URL>sample string 1</URL>
    <User>sample string 4</User>
  </SData>
  <VisitCode>1</VisitCode>
</MessageToSms>

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 'MessageToSms'.

application/bson

Sample:
Binary JSON content. See http://bsonspec.org for details.

Response Information

Resource Description

string

Response Formats

application/json, text/json

Sample:
"sample string 1"

application/xml, text/xml

Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>

application/bson

Sample:
Binary JSON content. See http://bsonspec.org for details.