POST api/Client/SMS/SendSMS

Request Information

URI Parameters

None.

Body Parameters

SmsRequestModel
NameDescriptionTypeAdditional information
AccountId

integer

None.

CustomerId

integer

None.

EntegratorId

integer

None.

MobilePhone

string

None.

SmsType

integer

None.

RegardingObjectId

integer

None.

SmsBody

string

None.

SmsReturnMessage

string

None.

TransactionID

string

None.

ErrorCode

string

None.

MessageCount

integer

None.

CompanyId

integer

None.

Id

integer

None.

CreatedOn

date

None.

ModifiedOn

date

None.

Status

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "AccountId": 1,
  "CustomerId": 2,
  "EntegratorId": 3,
  "MobilePhone": "sample string 4",
  "SmsType": 5,
  "RegardingObjectId": 6,
  "SmsBody": "sample string 7",
  "SmsReturnMessage": "sample string 8",
  "TransactionID": "sample string 9",
  "ErrorCode": "sample string 10",
  "MessageCount": 11,
  "CompanyId": 12,
  "Id": 13,
  "CreatedOn": "2025-10-25T21:07:31.0030447+03:00",
  "ModifiedOn": "2025-10-25T21:07:31.0030447+03:00",
  "Status": 14
}

application/xml, text/xml

Sample:
<SmsRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Entities.Models.Client.Definition">
  <CreatedOn xmlns="http://schemas.datacontract.org/2004/07/Entities.Models">2025-10-25T21:07:31.0030447+03:00</CreatedOn>
  <Id xmlns="http://schemas.datacontract.org/2004/07/Entities.Models">13</Id>
  <ModifiedOn xmlns="http://schemas.datacontract.org/2004/07/Entities.Models">2025-10-25T21:07:31.0030447+03:00</ModifiedOn>
  <Status xmlns="http://schemas.datacontract.org/2004/07/Entities.Models">14</Status>
  <AccountId>1</AccountId>
  <CompanyId>12</CompanyId>
  <CustomerId>2</CustomerId>
  <EntegratorId>3</EntegratorId>
  <ErrorCode>sample string 10</ErrorCode>
  <MessageCount>11</MessageCount>
  <MobilePhone>sample string 4</MobilePhone>
  <RegardingObjectId>6</RegardingObjectId>
  <SmsBody>sample string 7</SmsBody>
  <SmsReturnMessage>sample string 8</SmsReturnMessage>
  <SmsType>5</SmsType>
  <TransactionID>sample string 9</TransactionID>
</SmsRequestModel>

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

Response Information

Resource Description

ResultModelOfSmsResponseModel
NameDescriptionTypeAdditional information
Response

boolean

None.

Message

string

None.

Exception

string

None.

Data

SmsResponseModel

None.

Response Formats

application/json, text/json

Sample:
{
  "Response": true,
  "Message": "sample string 2",
  "Exception": "sample string 3",
  "Data": {
    "AccountId": 1,
    "CustomerId": 2,
    "CustomerFullName": "sample string 3",
    "EntegratorId": 4,
    "MobilePhone": "sample string 5",
    "SmsType": 6,
    "RegardingObjectId": 7,
    "SmsBody": "sample string 8",
    "SmsReturnMessage": "sample string 9",
    "TransactionID": "sample string 10",
    "ErrorCode": "sample string 11",
    "MessageCount": 12,
    "Id": 13,
    "CreatedOn": "2025-10-25T21:07:31.0030447+03:00",
    "ModifiedOn": "2025-10-25T21:07:31.0030447+03:00",
    "Status": 14
  }
}

application/xml, text/xml

Sample:
<ResultModelOfSmsResponseModelIjrq4xa9 xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Entities.Models">
  <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/Entities.Models.Client.Definition">
    <CreatedOn>2025-10-25T21:07:31.0030447+03:00</CreatedOn>
    <Id>13</Id>
    <ModifiedOn>2025-10-25T21:07:31.0030447+03:00</ModifiedOn>
    <Status>14</Status>
    <d2p1:AccountId>1</d2p1:AccountId>
    <d2p1:CustomerFullName>sample string 3</d2p1:CustomerFullName>
    <d2p1:CustomerId>2</d2p1:CustomerId>
    <d2p1:EntegratorId>4</d2p1:EntegratorId>
    <d2p1:ErrorCode>sample string 11</d2p1:ErrorCode>
    <d2p1:MessageCount>12</d2p1:MessageCount>
    <d2p1:MobilePhone>sample string 5</d2p1:MobilePhone>
    <d2p1:RegardingObjectId>7</d2p1:RegardingObjectId>
    <d2p1:SmsBody>sample string 8</d2p1:SmsBody>
    <d2p1:SmsReturnMessage>sample string 9</d2p1:SmsReturnMessage>
    <d2p1:SmsType>6</d2p1:SmsType>
    <d2p1:TransactionID>sample string 10</d2p1:TransactionID>
  </Data>
  <Exception>sample string 3</Exception>
  <Message>sample string 2</Message>
  <Response>true</Response>
</ResultModelOfSmsResponseModelIjrq4xa9>