Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

URL

LIVE: https://api.relateddigital.com/resta/api/post/PostHtml

ECOMM: http:s//api.relateddigital.com/reste/api/post/PostHtml

LIVEB: https://api.relateddigital.com/rest_liveb/api/post/PostHtml

LIVEM : https://api.relateddigital.com/restm/api/post/PostHtml

Http verb

POST

Parameters


Header

Content-Type: application/json

Authorization: The ticket given by the system after successfull login

Body

FromName (string): From Name of the e-mail

FromAddress (string): From address of the e-mail

ReplyAddress (string): Reply address of the e-mail

Subject (string): Subject of the e-mail

HtmlBody (string): Content of the e-mail as html.

Charset (string): Char set of the e-mail

ToName (string): Name of the receiver

ToEmailAddress (string): Email address of the receiver

PostType(string): Optional parameter.Type of email (account activation, survey, etc.)

KeyId(string): Optional parameter. Unique member id  in your system

CustomParams(string): Optional parameter. Custom parameters.

Attachments (List<Attachment>):

Attachment:

Name(string): Name of attachment

Type(string): Type like pdf,doc.

Content(base64Binary): Contents of file

Sample Body

{
"FromName": "",
"FromAddress": "",
"ReplyAddress": "",
"Subject": "",
"HtmlBody": "<html><head></head><body>Hello World!!</body></html>",
"Charset": "iso-8859-9",
"ToName": "",
"ToEmailAddress": "",
"Attachments": [
{
"Name": "",
"Type": "PDF or DOC",
"Content": ""
}
],
"PostType": "",
"KeyId": "",
"CustomParams": ""
}


Sample Response

{

"PostId":”F50656781FFA45338C1F28499555A0BC”

"Success": false,

  "Errors": [

    {

      "Code": "",

      "Message": ""

    }

  ],

"DetailedMessage": ""

"TransactionId": ""

}

Successs Response

Status Code: 200

Http Error Response

Status Code: 400 Bad Request

Status Code: 401 Unauthorized

Error Code

00, 01,08,26,40,75,87,88,96,99,103,105,133,134, 550

...