POST email/subscribe

GET: /email/subscribe/email/source email - subscribers email address src - site email comes from 0 -ariensco, 1 - ariens, 2 - gravely

Request Information

URI Parameters

None.

Body Parameters

SubscriberEmail
NameDescriptionTypeAdditional information
source

Site that is sending the information - (0 - ariensco, 1 - ariens, 2 - gravely)

integer

None.

Email

Properly formatted email address.

string

None.

FirstName

Subscribers First name.

string

None.

LastName

Suibscribers Last name.

string

None.

Request Formats

application/json, text/json

Sample:
{
  "source": 1,
  "Email": "sample string 2",
  "FirstName": "sample string 3",
  "LastName": "sample string 4"
}

application/xml, text/xml

Sample:
<SubscriberEmail xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/External_Services.Models.DAO">
  <Email>sample string 2</Email>
  <FirstName>sample string 3</FirstName>
  <LastName>sample string 4</LastName>
  <source>1</source>
</SubscriberEmail>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

SubscriberResponse
NameDescriptionTypeAdditional information
ReturnCode

Code return from each web api call

integer

None.

Message

Message sent back for success

string

None.

Success

Call succeeded

boolean

None.

warrantyCode

Returns a warranty type code - 0 if nothing, 1 - extended

integer

None.

partNum

string

None.

Response Formats

application/json, text/json

Sample:
{
  "ReturnCode": 1,
  "Message": "sample string 2",
  "Success": true,
  "warrantyCode": 4,
  "partNum": "sample string 5"
}

application/xml, text/xml

Sample:
<SubscriberResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/External_Services.Models.DAO">
  <Message>sample string 2</Message>
  <ReturnCode>1</ReturnCode>
  <Success>true</Success>
  <partNum>sample string 5</partNum>
  <warrantyCode>4</warrantyCode>
</SubscriberResponse>