For more information on using API

POST http://webapi.mymarketing.co.il/api/OperationalMessage/Email

Create and send a new message to Email addresses

Request Information

URI Parameters

Body Parameters

ApiOperationalMessageEmails

Name

Description

Type

Additional information

email_package

Email address with collection of pairs of keys and values you provide to replace your placeholders in the operational email per recipient

Collection of ApiEmailPackage
details

See ApiMessageDetails

Required

design

See ApiMessageDesign

Required

bcc

See ApiMessageBCC

Request Formats

application/json, text/json

Sample:
{
  "email_package": [
    {
      "email": "sample string 1",
      "pairs": [
        {
          "key": "sample string 1",
          "value": "sample string 2"
        },
        {
          "key": "sample string 1",
          "value": "sample string 2"
        }
      ]
    },
    {
      "email": "sample string 1",
      "pairs": [
        {
          "key": "sample string 1",
          "value": "sample string 2"
        },
        {
          "key": "sample string 1",
          "value": "sample string 2"
        }
      ]
    }
  ],
  "details": {
    "name": "sample string 1",
    "subject": "sample string 2",
    "user_profile_id": 1,
    "classification": "sample string 3"
  },
  "design": {
    "content": "sample string 1",
    "language_type": "IBM_EBCDIC_US_Canada",
    "body_part_format": 1,
    "add_print_button": true,
    "template_id": 3,
    "add_Statistics": true
  },
  "bcc": {
    "bcc_emails": [
      "sample string 1",
      "sample string 2"
    ]
  }
}

application/xml, text/xml

Sample:
<ApiOperationalMessageEmails xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ActiveTrail.RESTfulApi.Models">
  <bcc>
    <bcc_emails xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:string>sample string 1</d3p1:string>
      <d3p1:string>sample string 2</d3p1:string>
    </bcc_emails>
  </bcc>
  <design>
    <add_Statistics>true</add_Statistics>
    <add_print_button>true</add_print_button>
    <body_part_format>HTML</body_part_format>
    <content>sample string 1</content>
    <language_type>IBM_EBCDIC_US_Canada</language_type>
    <template_id>3</template_id>
  </design>
  <details>
    <classification>sample string 3</classification>
    <name>sample string 1</name>
    <reply_to_email i:nil="true" />
    <subject>sample string 2</subject>
    <user_profile_id>1</user_profile_id>
  </details>
  <email_package>
    <ApiEmailPackage>
      <email>sample string 1</email>
      <pairs>
        <ApiPair>
          <key>sample string 1</key>
          <value>sample string 2</value>
        </ApiPair>
        <ApiPair>
          <key>sample string 1</key>
          <value>sample string 2</value>
        </ApiPair>
      </pairs>
    </ApiEmailPackage>
    <ApiEmailPackage>
      <email>sample string 1</email>
      <pairs>
        <ApiPair>
          <key>sample string 1</key>
          <value>sample string 2</value>
        </ApiPair>
        <ApiPair>
          <key>sample string 1</key>
          <value>sample string 2</value>
        </ApiPair>
      </pairs>
    </ApiEmailPackage>
  </email_package>
</ApiOperationalMessageEmails>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ApiOperationalMessageInfo

Name

Description

Type

Additional information

message_id

Id of sent operational message

integer

Response Formats

application/json, text/json

Sample:
{
  "message_id": 1
}

application/xml, text/xml

Sample:
<ApiOperationalMessageInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ActiveTrail.RESTfulApi.Models">
  <message_id>1</message_id>
</ApiOperationalMessageInfo>