POST api/CommunicationRequest?VendorID={VendorID}&VendorPassword={VendorPassword}&APIGUID={APIGUID}&Mode={Mode}

Sends communications

Request Information

URI Parameters

NameDescriptionTypeAdditional information
VendorID

string

Required

VendorPassword

string

Required

APIGUID

string

Required

Mode

0: Simple, 1: Batch

CommunicationMode

Required

Body Parameters

Communication Request structure

SendRequest
NameDescriptionTypeAdditional information
EmployeeKey

integer

None.

DeliverFrom

string

None.

Subject

string

None.

Body

string

None.

TextMessage

string

None.

HTMLTemplate

string

None.

DeliveryTime

date

None.

DeliverCC

string

None.

DeliverTo

Collection of Delivery

None.

Attachments

Collection of Attachment

None.

Request Formats

application/json, text/json

Sample:
{
  "EmployeeKey": 1,
  "DeliverFrom": "sample string 2",
  "Subject": "sample string 3",
  "Body": "sample string 4",
  "TextMessage": "sample string 5",
  "HTMLTemplate": "sample string 6",
  "DeliveryTime": "2024-12-18T11:58:24.3026689-05:00",
  "DeliverCC": "sample string 8",
  "DeliverTo": [
    {
      "ResidentKey": 1,
      "ResidentNoteKey": 2,
      "ToAddress": "sample string 3"
    },
    {
      "ResidentKey": 1,
      "ResidentNoteKey": 2,
      "ToAddress": "sample string 3"
    }
  ],
  "Attachments": [
    {
      "FileName": "sample string 1",
      "ImageBase64": "sample string 2"
    },
    {
      "FileName": "sample string 1",
      "ImageBase64": "sample string 2"
    }
  ]
}

application/xml, text/xml

Sample:
<SendRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/VMSRXChange.DataClassesCommunicationRequest">
  <Attachments>
    <Attachment>
      <FileName>sample string 1</FileName>
      <ImageBase64>sample string 2</ImageBase64>
    </Attachment>
    <Attachment>
      <FileName>sample string 1</FileName>
      <ImageBase64>sample string 2</ImageBase64>
    </Attachment>
  </Attachments>
  <Body>sample string 4</Body>
  <DeliverCC>sample string 8</DeliverCC>
  <DeliverFrom>sample string 2</DeliverFrom>
  <DeliverTo>
    <Delivery>
      <ResidentKey>1</ResidentKey>
      <ResidentNoteKey>2</ResidentNoteKey>
      <ToAddress>sample string 3</ToAddress>
    </Delivery>
    <Delivery>
      <ResidentKey>1</ResidentKey>
      <ResidentNoteKey>2</ResidentNoteKey>
      <ToAddress>sample string 3</ToAddress>
    </Delivery>
  </DeliverTo>
  <DeliveryTime>2024-12-18T11:58:24.3026689-05:00</DeliveryTime>
  <EmployeeKey>1</EmployeeKey>
  <HTMLTemplate>sample string 6</HTMLTemplate>
  <Subject>sample string 3</Subject>
  <TextMessage>sample string 5</TextMessage>
</SendRequest>

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

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.