PUT api/Email/EmailNotification/{saleID}/{templateID}

Allows a list of lines to be emailed to multiple email addresses based on a dictionary The dictionary is made up of keys, which are the text lines or body of the email, and the lists for each keys are the email address that body should be sent to. [Key = This is the body of the email to be passed to the email, List = test@test.com, A@B.com] The dictionary allows for multiple emails bodies to be sent in a single call.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
saleID

integer

Required

templateID

integer

Required

Body Parameters

The List holding the data for email addresses.

Collection of string

Request Formats

application/json, text/json

Sample:
{"This is the first email body":["Test@test.com","A@B.com"],"This is the second email body":["Test@test.com","A@B.com"]}

application/xml, text/xml

Sample:

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.

Response Formats

application/json, text/json

Sample:
"Email sent to test@test.com"

application/xml, text/xml

Sample:
<?xml version="1.0" encoding="utf-16"?>
<string>Email sent to test@test.com</string>