GET api/customeremail/{id}

Get email by email sent id.

Requires Authorisation

The api request must supply authenticated token in a custom variable in the request header. The custom variable name is configured in web.config. The default name of the custom variable is “X-Fern-Token”.

Requires Api License and User Access

The api requires license and user permission for API ID, GETapi/customeremail/{id}. The user permission can be defined on User Settings screen in Abacus. For license, please contact Fern manager.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

Email sent identifier.

integer

Required

Body Parameters

None.

Response Information

Response Codes

Success Status:

  • OK (200), please see resource description below.

Failed Status(es):

Resource Description

Returns the email of the selected email id.

EmailDto
NameDescriptionTypeAdditional information
ToAddress

Email ToAddress.

string
EmailSubject

Subject of the EMail.

string
Body

Body of the Email.

string
BodyHTML

Indicates whether body of the email is in HTML format.

boolean
AttachmentFile

Attachment file of the Email.

Stream
AttachmentFileName

Name of the file attached with the email.

string
CustomerID

Customer Id .

integer
PersonID

Customer's Person Id.

integer
LogEmail

Indicates whether email is logged successfully or not.

boolean
Password

Password to provide password protect for the attached file.

string This value is optional.
Type

Attached file's type.

string
FilePath

Path in which document should be saved.

string
IsZip

Indicates whether the attcahed file should be zipped or not.

boolean

Response Formats

application/json, text/json

Sample:
{
  "toAddress": "sample string 1",
  "emailSubject": "sample string 2",
  "body": "sample string 3",
  "bodyHTML": true,
  "attachmentFile": null,
  "attachmentFileName": "sample string 4",
  "customerID": 1,
  "personID": 1,
  "logEmail": true,
  "password": "sample string 5",
  "type": "sample string 6",
  "filePath": "sample string 7",
  "isZip": true
}

application/xml, text/xml

Sample:
<EmailDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Fern.Abacus.ObjectModel.Dto.CU">
  <AttachmentFile xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.IO" i:nil="true" />
  <AttachmentFileName>sample string 4</AttachmentFileName>
  <Body>sample string 3</Body>
  <BodyHTML>true</BodyHTML>
  <CustomerID>1</CustomerID>
  <EmailSubject>sample string 2</EmailSubject>
  <FilePath>sample string 7</FilePath>
  <IsZip>true</IsZip>
  <LogEmail>true</LogEmail>
  <Password>sample string 5</Password>
  <PersonID>1</PersonID>
  <ToAddress>sample string 1</ToAddress>
  <Type>sample string 6</Type>
</EmailDto>