{"info":{"_postman_id":"76019b57-5a75-982b-da44-6f66debb842f","name":"Emma API","description":"<html><head></head><body><h2 id=\"a-word-to-the-wise\">A word to the wise...</h2>\n<p>Use the information on this page to set up and troubleshoot your API calls. If you are interested in paid API support, visit our <a href=\"http://myemma.com/services/custom-integrations\">Custom Integrations</a> page and fill out a request. Our system is monitored around the clock – and if there’s ever a dropped connection or outage, we’ll be sure to notify users on our <a href=\"http://myemma.com/status\">status page</a>. </p>\n<p><em><strong>All JSON payloads must not exceed 10MB</strong></em></p>\n<h1 id=\"overview\">Overview</h1>\n<p>Emma’s platform is accessible through our public API, which provides access to the following areas:</p>\n<ul>\n<li>Managing member lists:<ul>\n<li>Importing, editing and deleting</li>\n<li>Organizing members into groups</li>\n<li>Searching for members</li>\n</ul>\n</li>\n<li>Mailings:<ul>\n<li>Viewing past mailings</li>\n<li>Controlling the status of pending mailings</li>\n</ul>\n</li>\n<li>Retrieving response:<ul>\n<li>Accessing mailing response information by mailing or member of time period</li>\n<li>Accessing response at summary and detail levels</li>\n</ul>\n</li>\n</ul>\n<h1 id=\"api-wrappers\">API wrappers</h1>\n<p>Emma’s wrappers make it a breeze to connect to our API no matter which programming language you like to use. Just select your language and you’ll be able to integrate with Emma without the hassle of having to study all the ins and outs of our API first.</p>\n<p>This collection is young (but growing!) and includes wrappers commissioned by Emma as well as some built by members of our community. Unless otherwise noted, all wrappers provide full coverage of our current API. If you see something that needs to be fixed or improved, please don’t hesitate submit a pull request. And if you’ve built a wrapper that you’d like to have listed here, <a href=\"integrations%40myemma.com\">let us know!</a></p>\n<h3 id=\"php\">PHP</h3>\n<ul>\n<li><a href=\"https://github.com/myemma/EmmaPHP\">EmmaPHP</a> : Commissioned by Emma and built by Nashville developer <a href=\"https://github.com/dennismonsewicz\">Dennis Monsewicz</a>.</li>\n<li><a href=\"https://github.com/jwoodcock/OhMyEmma\">OhMyEmma</a>: Built by Nashville developer <a href=\"https://github.com/jwoodcock\">Jacques Woodcock</a>.</li>\n<li><a href=\"https://github.com/markroland/emma\">Emma</a>: Built by Nashville-based <a href=\"http://www.abenity.com/\">Abenity, Inc</a>.</li>\n</ul>\n<h3 id=\"python\">Python</h3>\n<ul>\n<li><a href=\"https://github.com/myemma/EmmaPython\">EmmaPython</a>: Built by Emma’s own <a href=\"https://github.com/dalanhurst\">Doug Hurst</a>.</li>\n</ul>\n<h3 id=\"ruby\">Ruby</h3>\n<ul>\n<li><a href=\"https://github.com/myemma/EmmaRuby\">EmmaRuby</a>: Commissioned by Emma and built by Nashville developer <a href=\"https://github.com/dennismonsewicz\">Dennis Monsewicz</a>.</li>\n</ul>\n<h3 id=\"objective-c\">Objective-C</h3>\n<ul>\n<li><a href=\"https://github.com/myemma/EmmaSDK\">EmmaSDK</a>: Commissioned by Emma and built by Portland developer <a href=\"https://github.com/bvanderveen\">Benjamin Van Der Veen</a>.</li>\n</ul>\n<h3 id=\"nodejs\">Node.js</h3>\n<ul>\n<li><a href=\"https://github.com/nathanpeck/emma-sdk\">emma-sdk</a>: Built by New York City developer <a href=\"https://github.com/nathanpeck\">Nathan Peck</a> for <a href=\"https://storydesk.com/\">StoryDesk</a>.</li>\n</ul>\n<h3 id=\"net\">.NET</h3>\n<ul>\n<li><a href=\"https://github.com/kylegregory/EmmaSharp\">EmmaSharp</a>: Built by developer <a href=\"https://github.com/kylegregory\">Kyle Gregory</a>.</li>\n</ul>\n<h1 id=\"quickstart\">Quickstart</h1>\n<p>Let’s get started by building some PHP code that will add a member to our audience.</p>\n<p>First, you’ll want to figure out how to authenticate (all calls require HTTP Basic Auth authentication). You’ll find your API keys inside your Emma account in the “Account Settings” section. There’s a public key, a private key and an account ID. It should look like this:</p>\n<p><img src=\"http://api.myemma.com/_images/api_key.png\" alt=\"Emma Billing &amp; Settings API Key\"></p>\n<p>Next, let’s add these authentication bits to our code.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-php\">// Authentication Variables\n$account_id = \"xxx\";\n$public_api_key = \"xxx\";\n$private_api_key = \"xxx\";\n</code></pre>\n<p>Then we’ll want to capture the POSTed form variables from the request.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-php\">// Form variable(s)\n$email = $_POST['email'];\n$first_name = $_POST['first_name'];\n$last_name = $_POST['last_name'];\n$groups = array(123456, 654321);\n\n// Member data other than email should be passed in an array called \"fields\"\n$member_data = array(\n  \"email\" =&gt; $email,\n  \"fields\" =&gt; array(\n    \"first_name\" =&gt; $first_name,\n    \"last_name\" =&gt; $last_name\n  ),\n  \"group_ids\" =&gt; $groups\n);\n</code></pre>\n<p>Please note that the group_ids hat you’re adding members to are passed as an array of integers. In addition, you’ll always want to make sure that you sanitize any of these form inputs to protect your application.</p>\n<p>Now we’ll need to set the URL for the API call. The endpoint for all of our API calls is <a href=\"https://api.e2ma.net/\">https://api.e2ma.net/</a>. In this case, we’re using the endpoint that corresponds to adding a single member. There’s a separate call for adding bulk members.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-php\">// Set URL\n$url = \"https://api.e2ma.net/\".$account_id.\"/members/add\";\n</code></pre>\n<p>Next, we’ll do a little dance with cURL that should look familiar to you. We’ll explain some particulars below the code block.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-php\">// setup and execute the cURL command\n$ch = curl_init();\ncurl_setopt($ch, CURLOPT_USERPWD, $public_api_key . \":\" . $private_api_key);\ncurl_setopt($ch, CURLOPT_URL, $url);\ncurl_setopt($ch, CURLOPT_POST, count($member_data));\ncurl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($member_data));\ncurl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-type: application/json'));\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\ncurl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);\n$head = curl_exec($ch);\n$http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);\ncurl_close($ch);\n</code></pre>\n<p>Line 3 is where we use the public/private keys to authenticate our call. On lines 6-7, we force the API call to make its request in JSON and expect JSON in return.</p>\n<p>At this point, the API call has been made. We might also want to inspect the result to see what happened. The API returns true HTTP response codes that you can examine to determine a request’s disposition.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-php\">//execute post\nif($http_code &gt; 200) {\n  $app_message = \"Error sending subscription request\";\n} else {\n  $app_message = \"Success!\";\n}\n\necho $app_message;\n</code></pre>\n<p>You can <a href=\"http://api.myemma.com/php_signup_example.html\">see the complete PHP script here</a>. There’s also a PHP example to <a href=\"http://api.myemma.com/php_get_member_example.html\">get members using their email address</a>.</p>\n<p>To extend this example further, you could make the API call associate the new member with a particular signup form. As written above, the member would be added to the audience but would not appear in the “recent activity” type searches or really any searches related to signups. Don’t worry – we’re currently working on a cleaner way to handle this signup form issue in the future.</p>\n<h2 id=\"api-calls-by-category\">API calls by category</h2>\n<p>In the following sections, we’ve organized API calls by their main entity type. Each call includes sample request and response data.</p>\n<ul>\n<li>Fields</li>\n<li>Groups</li>\n<li>Mailings</li>\n<li>Members</li>\n<li>Response</li>\n<li>Searches</li>\n<li>Signup Forms</li>\n<li>Webhooks</li>\n</ul>\n<h1 id=\"api-rate-limit\">API rate limit</h1>\n<p>To prevent accidental overuse, calls to Emma's API are limited to <strong>180 calls per minute</strong>. If you exceed the limit, you‘ll receive a response of <code>403 Rate Limit Exceeded</code> until enough time has elapsed between calls.</p>\n<h2 id=\"additional-documentation\">Additional documentation</h2>\n<h1 id=\"pagination\">Pagination</h1>\n<p>Responses with a large number of results should be paginated; the query parameters start and end can be used to specify how large a set of items to retrieve in each call, with a maximum page size of 500.</p>\n<p>Additionally, for any call you can retrieve a count of the results (instead of the results themselves) by appending a query parameter of <code>count=true</code>.</p>\n<p>So, to pull a large number of results, you start with a count:</p>\n<p><a href=\"https://api.e2ma.net/123/members?count=true\">https://api.e2ma.net/123/members?count=true</a></p>\n<p>Then, iterate over the list in blocks of 500:</p>\n<p><a href=\"https://api.e2ma.net/123/members?start=0&amp;end=500\">https://api.e2ma.net/123/members?start=0&amp;end=500</a></p>\n<p><a href=\"https://api.e2ma.net/123/members?start=500&amp;end=1000\">https://api.e2ma.net/123/members?start=500&amp;end=1000</a></p>\n<p>Requests for page sizes larger than 500 will limited to <code>start</code> + 500.</p>\n<p>Calls are rate-limited to prevent accidental overuse. If you exceed the limit you will receive a response of <code>403 Rate Limit Exceeded</code> until enough time has elapsed between calls.</p>\n<h1 id=\"placeholder-syntax\">Placeholder Syntax</h1>\n<h3 id=\"syntax-overview\">Syntax Overview</h3>\n<p>The content of messages can be customized using the template tag library. Each template tag should be enclosed in a [% %] pair. Where a tag requires a qualifier value, the value should be attached with a colon.</p>\n<p>For example, the following extract shows a member’s name being inserted into a greeting:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>Hello [% member:first_name %] [% member:last_name %],\n\nWelcome to the \"Exciting Onions\" mailing list, where you can be kept up to\ndate on all the latest onion-related news ...\n</code></pre><p>Some tags also accept additional key/value pairs to control their behavior. For example, adding a default value to a member field:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>Hello [% member:first_name default=\"Friend\" %]\n</code></pre><p>...or specifying the link text for a trackable link:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>Please visit [% link:http://fancyonions.com/home name=\"our website\" %]\n</code></pre><p><em><strong>Todo: fully document the available tags</strong></em></p>\n<h1 id=\"search-syntax\">Search Syntax</h1>\n<h3 id=\"syntax-overview-1\">Syntax Overview</h3>\n<p>Searches are constructed using nested JSON arrays of filters and boolean predicates. Here is an example of a simple filter:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>[\"member_field:foo\", \"eq\", \"bar\"]\n</code></pre><p>A filter is composed of one or more parts. The first part is always a filter term. In general, a filter term maps directly to a field in the results. A filter term can accept an argument (the <code>:foo</code> in the example above) that will have different meanings for different filter terms. If the filter has more than one part, the second part is <em>always</em> an <em>operator</em>. The remaining parts are arguments for the operator. Different operators will have different arguments, but will always have at least one.</p>\n<p>In addition, filters can be nested using boolean predicates. Here’s an example of a nested query:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>[\"and\",\n    [\"member_field:foo\", \"eq\", \"bar\"],\n    [\"member_since\", \"in last\", {\"day\": 5}]]\n</code></pre><p>This example will return all members who joined in the last 5 days and have their member_field <code>foo</code> set to <code>bar</code>. The available boolean predicates and examples of their use are below.</p>\n<h3 id=\"operators\">Operators</h3>\n<p>There are a bunch of operators available:</p>\n<ul>\n<li><code>eq</code> and <code>=</code>: Basic equality. Example: <code>[\"member_field:some_string_field\", \"eq\", \"bar\"]</code></li>\n<li><code>lt</code> and <code>&lt;</code>: Less than. Example: <code>[\"member_field:some_numeric_field\", \"lt\", 5]</code></li>\n<li><code>gt</code> and <code>&gt;</code>: Greater than. Example: <code>[\"member_field:some_numeric_field\", \"gt\", 5]</code></li>\n<li><code>between</code>: Between. Takes two arguments. Example: <code>[\"member_field:some_numeric_field\", \"between\", 5, 10]</code></li>\n<li><code>in last</code> and <code>in next</code>: Relative date. Takes an interval (explained below). Example: <code>[\"member_since\", \"in last\", {\"day\": 4}]</code></li>\n<li>datematch: Match a date argument. All parts of the date must match. Example: <code>[\"member_since\", \"datematch\", {\"year\": 2011}]</code></li>\n<li><code>contains</code>: Match a string against a shell-glob-style expression. Example: <code>[\"member_field:some_string_field\", \"contains\", \"\\*foo\\*\"]</code></li>\n<li><code>in</code>: Match a field against a list of values. Example: <code>[\"member_field:some_number_field\", \"in\", 3, 4, 5, 6]</code></li>\n<li><code>any</code>: Match a given value against an array field. Example: <code>[\"member_field:some_array_field\", \"any\", \"ten\"]</code></li>\n</ul>\n<p>In addition to these basic operators, there is one advanced operator available:</p>\n<ul>\n<li><code>zip-radius:n:</code> where n can be one of <code>5, 10, 15, 20, 25, or 50</code>. Takes a single zip code which will be the center of the search. Example: <code>[\"member_field:some_zipcode_field\", \"zip-radius:10\", \"97202\"]</code> will return all members with a <code>zip_code_field</code> within 10 miles of 97202.</li>\n</ul>\n<h4 id=\"intervals\">Intervals</h4>\n<p>An interval is defined as a hash that contains one or more of the following keys:</p>\n<ul>\n<li><code>year</code></li>\n<li><code>month</code></li>\n<li><code>day</code></li>\n<li><code>hour</code></li>\n<li><code>minute</code></li>\n<li><code>second</code></li>\n<li>For example, <code>{\"year\": 2, \"day\": 4}</code> would specify an interval of two years and four days.</li>\n</ul>\n<h4 id=\"dates\">Dates</h4>\n<p>A date is defined as a hash that contains one or more of the following keys:</p>\n<ul>\n<li><code>year</code></li>\n<li><code>month</code></li>\n<li><code>day</code></li>\n<li><code>hour</code></li>\n<li><code>minute</code></li>\n<li><code>second</code></li>\n<li><code>dow</code> (day of week)</li>\n<li>For example, <code>{\"day\", 31}</code> would match the 31st of every month with a 31st day, while <code>{\"dow\": 2}</code> would match every Tuesday. Sunday is 0.</li>\n</ul>\n<h3 id=\"boolean-predicates\">Boolean Predicates</h3>\n<p>Boolean predicates operate on one or more nested clauses. These predicates are available:</p>\n<ul>\n<li><code>and</code>: All clauses must be true. Example: <code>[\"and\", [\"member_field:foo\", \"eq\", 1], [\"member_field:bar\", \"eq\", 2]]</code></li>\n<li><code>or</code>: At least one clause must be true. Example: <code>[\"or\", [\"member_field:foo\", \"eq\", 1], [\"member_field:bar\", \"eq\", 2]]</code></li>\n<li><code>not</code>: The single nested clause must not be true. Example: <code>[\"not\", [\"member_field:foo\", \"eq\", 1]]</code></li>\n</ul>\n<h3 id=\"filter-terms\">Filter Terms</h3>\n<p>In general, every key in the result records can be used as a filter term. Just use the key as the filter term. For example, to filter on <code>send_start</code>, you’d say <code>[\"send_start\", \"gt\", \"2011-12-15\"]</code>. In addition, there is a large set of advanced filter terms for filtering members:</p>\n<ul>\n<li><code>opened, clicked, shared, forwarded</code>. Will match on the timestamp of the corresponding response if it exists. All of these filter terms also allow a <code>mailing_id</code> as an argument (i.e. <code>opened:12345</code> matches if they opened mailing <code>12345</code>.</li>\n<li><code>member_field:x</code> where <code>x</code> is the short name of a member field. You can also use <code>x</code> by itself without <code>member_field:</code>.</li>\n<li><code>group</code>. Will match the name of a member group. Takes the special operators <code>defined</code> (belongs to any group) and <code>undefined</code> (does not belong to any group).</li>\n<li><code>received</code> Will match if the member received a mailing. Takes an optional <code>mailing_id</code> argument. If not given, will match if the member has received <em>any</em> mailing.</li>\n<li><code>clicked link</code>. Will match if the member has clicked on a link. Takes an optional <code>link_id</code> argument. If not given, will match if the member has clicked on <em>any</em> link.</li>\n<li><code>manage:</code> Will match if the member has manged their preferences. Optionally takes a date filter on the timestamp of the manage action. Optionally takes a <code>signup_form_id</code> argument. Example: <code>[\"manage:1234\", \"in last\", {\"day\", 30}]</code>.</li>\n<li><code>unsubscribed:</code> Will match if the member has unsubscribed. Optionally takes a date filter on the timestamp of the opt-out action. Optionally takes a <code>signup_form_id</code> filter argument.</li>\n<li><code>unsubscribed mailing:</code> Will match if the member has - <code>unsubscribed</code>. Optionally takes a date filter on the timestamp of the opt-out action. Optionally takes a <code>mailing_id</code> filter argument.</li>\n<li><code>bounced:</code> Will match if the member had either a soft or hard bounce. Optionally takes a date filter on the timestamp of the bounce. Optionally takes a <code>mailing_id</code> filter argument.</li>\n<li><code>email_user:</code> Will match on the user portion of the member’s email address</li>\n<li><code>email_domain:</code> Will match on the domain portion of the member’s email address</li>\n<li><code>email:</code> Will match on the member’s entire email address</li>\n<li><code>signup:</code> Will match if the member has signed up. Optionally takes a date filter on the timestamp of the signup action. Optionally takes a <code>signup_form_id</code> filter argument.</li>\n<li><code>signup_mailing:</code> Will match if the member has signed up. Optionally takes a date filter on the timestamp of the signup action. Optionally takes a <code>mailing_id</code> filter argument.</li>\n</ul>\n<h1 id=\"webhook-usage\">Webhook Usage</h1>\n<h3 id=\"webhook-overview\">Webhook Overview</h3>\n<p>Webhooks are an easy way to have Emma’s system notify you when certain events occur. In general, you will use our API to tell us which events you want to be notified about. When those events occur, we will make a POST to the URL you have provided with a particular set of data.</p>\n<p>We have a broad array of triggering events and an easy API interface to create webhooks for each event. We do have [documentation of the webhook API](documentation of the webhook API).</p>\n<p>Below is a list of each triggering event we currently support and the data that will be sent when that event occurs.</p>\n<h3 id=\"webhook-post-data\">Webhook Post Data</h3>\n<h4 id=\"member-signup\">Member Signup</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n        \"event_name\": \"member_signup\",\n        \"data\": {\n            \"account_id\": account_id,\n            \"member_id\": member_id,\n            \"mailing_id\": mailing_id\n            }\n}\n</code></pre><h4 id=\"message-open\">Message Open</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n        \"event_name\": \"message_open\",\n        \"data\": {\n            \"account_id\": account_id,\n            \"member_id\": member_id,\n            \"mailing_id\": mailing_id,\n            \"subject\": mailing_subject,\n            \"timestamp\": timestamp\n            }\n}\n</code></pre><h4 id=\"message-click\">Message Click</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n        \"event_name\": \"message_click\",\n        \"data\": {\n            \"account_id\": account_id,\n            \"member_id\": member_id,\n            \"mailing_id\": mailing_id,\n            \"subject\": mailing_subject,\n            \"timestamp\": timestamp,\n            \"link_id\": link_id\n            }\n}\n</code></pre><h4 id=\"member-optout\">Member Optout</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n        \"event_name\": \"member_optout\",\n        \"data\": {\n            \"account_id\": account_id,\n            \"member_id\": member_id,\n            \"mailing_id\": mailing_id,\n            \"subject\": mailing_subject,\n            \"timestamp\": timestamp\n            }\n}\n</code></pre><h4 id=\"message-share\">Message Share</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n        \"event_name\": \"message_share\",\n        \"data\": {\n            \"account_id\": account_id,\n            \"member_id\": member_id,\n            \"mailing_id\": mailing_id,\n            \"subject\": mailing_subject,\n            \"timestamp\": timestamp,\n            \"network\": network_code\n            }\n}\n</code></pre><h4 id=\"message-share-click\">Message Share Click</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n        \"event_name\": \"message_share_click\",\n        \"data\": {\n            \"account_id\": account_id,\n            \"member_id\": member_id,\n            \"mailing_id\": mailing_id,\n            \"subject\": mailing_subject,\n            \"timestamp\": timestamp,\n            \"network\": network_code\n            }\n}\n</code></pre><h4 id=\"message-forward\">Message Forward</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n        \"event_name\": \"message_forward\",\n        \"data\": {\n            \"account_id\": account_id,\n            \"member_id\": member_id,\n            \"mailing_id\": mailing_id,\n            \"subject\": mailing_subject,\n            \"timestamp\": timestamp\n            }\n}\n</code></pre><h4 id=\"mailing-finish\">Mailing Finish</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n        \"event_name\": \"mailing_finish\",\n        \"data\": {\n            \"mailing_id\": mailing_id,\n            \"account_id\": account_id,\n            \"subject\": mailing_subject,\n            \"timestamp\": timestamp\n            }\n}\n</code></pre><h4 id=\"import-finish\">Import Finish</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n        \"event_name\": \"import_finish\",\n        \"data\": {\n            \"import_id\": import_id,\n            \"account_id\": account_id,\n            \"timestamp\": timestamp,\n            \"resource_url\": resource_url\n            }\n}\n</code></pre><h4 id=\"member-add\">Member Add</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n        \"event_name\": \"member_add\",\n        \"data\": {\n            \"member_id\": member_id,\n            \"account_id\": account_id,\n            \"timestamp\": timestamp,\n            \"signup_form_id\": signup_form_id,\n            \"resource_url\": resource_url\n            }\n}\n</code></pre><h4 id=\"member-update\">Member Update</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n        \"event_name\": \"member_update\",\n        \"data\": {\n            \"member_id\": member_id,\n            \"account_id\": account_id,\n            \"timestamp\": timestamp\n            }\n}\n</code></pre><h4 id=\"member-delete\">Member Delete</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n        \"event_name\": \"member_delete\",\n        \"data\": {\n            \"member_id\": member_id,\n            \"account_id\": account_id,\n            \"timestamp\": timestamp\n            }\n}\n</code></pre><h4 id=\"member-add-to-group\">Member Add To Group</h4>\n<p>It’s possible that instead of an array for <code>member_ids</code> or <code>group_ids</code> you may receive a string with the text all. Because of calls that can add a member to all groups or add <em>all</em> members to a single group, this is easier than returning a giant list of IDs.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n        \"event_name\": \"member_add_to_group\",\n        \"data\": {\n            \"member_ids\": {member_ids},\n            \"account_id\": account_id,\n            \"timestamp\": timestamp.\n            \"group_ids\": {group_ids}\n            }\n}\n</code></pre><h4 id=\"member-remove-from-group\">Member Remove From Group</h4>\n<p>It’s possible that instead of an array for <code>member_ids</code> or <code>group_ids</code> you may receive a string with the text all. Because of calls that can remove a member from all groups or remove <em>all</em> members from a single group, this is easier than returning a giant list of IDs.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n        \"event_name\": \"member_remove_from_group\",\n        \"data\": {\n            \"member_ids\": {member_ids},\n            \"account_id\": account_id,\n            \"timestamp\": timestamp.\n            \"group_ids\": {group_ids}\n            }\n}\n</code></pre><h4 id=\"group-create\">Group Create</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n        \"event_name\": \"group_create\",\n        \"data\": {\n            \"group_id\": group_id,\n            \"group_name\": group_name,\n            \"account_id\": account_id,\n            \"timestamp\": timestamp,\n            \"resource_url\": resource_url\n            }\n}\n</code></pre><h4 id=\"group-delete\">Group Delete</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n        \"event_name\": \"group_delete\",\n        \"data\": {\n            \"group_id\": group_id,\n            \"account_id\": account_id,\n            \"timestamp\": timestamp,\n            \"resource_url\": resource_url\n            }\n}\n</code></pre><h4 id=\"group-update\">Group Update</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n        \"event_name\": \"group_update\",\n        \"data\": {\n            \"group_id\": group_id,\n            \"group_name\": group_name,\n            \"account_id\": account_id,\n            \"timestamp\": timestamp,\n            \"resource_url\": resource_url\n            }\n}\n</code></pre><h4 id=\"field-create\">Field Create</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n        \"event_name\": \"field_create\",\n        \"data\": {\n            \"field_id\": field_id,\n            \"account_id\": account_id,\n            \"timestamp\": timestamp,\n            \"resource_url\": resource_url\n            }\n}\n</code></pre><h4 id=\"field-delete\">Field Delete</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n        \"event_name\": \"field_delete\",\n        \"data\": {\n            \"field_id\": field_id,\n            \"account_id\": account_id,\n            \"timestamp\": timestamp,\n            \"resource_url\": resource_url\n            }\n}\n</code></pre><h4 id=\"field-update\">Field Update</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n        \"event_name\": \"field_update\",\n        \"data\": {\n            \"field_id\": field_id,\n            \"account_id\": account_id,\n            \"timestamp\": timestamp,\n            \"resource_url\": resource_url\n            }\n}\n</code></pre><h4 id=\"member-status-update\">Member Status Update</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n        \"event_name\": \"member_status_update\",\n        \"data\": {\n            \"member_ids\": {member_ids},\n            \"account_id\": account_id,\n            \"new_status\": new_status,\n            \"timestamp\": timestamp\n            }\n}\n</code></pre></body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"Overview","slug":"overview"},{"content":"API wrappers","slug":"api-wrappers"},{"content":"Quickstart","slug":"quickstart"},{"content":"API rate limit","slug":"api-rate-limit"},{"content":"Pagination","slug":"pagination"},{"content":"Placeholder Syntax","slug":"placeholder-syntax"},{"content":"Search Syntax","slug":"search-syntax"},{"content":"Webhook Usage","slug":"webhook-usage"}],"owner":"278059","collectionId":"76019b57-5a75-982b-da44-6f66debb842f","publishedId":"6fTzk3m","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2017-08-25T13:55:46.000Z"},"item":[{"name":"Event API","item":[{"name":"Create Event","id":"f7f8d305-3c31-d152-49ce-4c8b79261cd8","request":{"method":"POST","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"<p>Converts to b64 for Authenticating the Emma Public API</p>\n"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.e2ma.net/{{account_id}}/events","description":"<p><em>This endpoint allows you to post any type of valid JSON to Emma. In order for an event to power an automated workflow, the following conditions must be met:</em></p>\n<ul>\n<li>Must include a valid email address as a value with a key of <code>email</code></li>\n<li>Email address must belong to a contact who is currently in <code>Active</code> status within your audience</li>\n<li>Automated workflow must be configured to match key/value pairs contained within JSON post (<a href=\"https://support.e2ma.net/Resource_Center/Guide_to_Automation/Trigger_events%3A_custom_API_event\">more information here</a>).</li>\n<li>JSON payload must not exceed 256KB (262,035 bytes)</li>\n</ul>\n","urlObject":{"protocol":"https","path":["{{account_id}}","events"],"host":["api","e2ma","net"],"query":[],"variable":[]}},"response":[{"id":"5a1c8b10-86bf-e49b-5c76-c3521168d3ce","name":"Shopify Order Event","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"Converts to b64 for Authenticating the Emma Public API"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  “event_name”: “order-completed”\n    \"id\": 1028374857,\n    \"email\": “cody.devos@myemma.com”,\n    \"closed_at\": null,\n    \"created_at\": \"2016-04-12T11:00:00-09:00\",\n\"total_price\": “145.53”,\n      \"total_discounts\": “14.70\",\n      \"order_number\": 1001,\n    \"discount_codes\": [\n      {\n        \"code\": “TEN16”,\n        \"amount\": “10.00\",\n        \"type\": \"percentage\"\n      }\n    ],\n   \"line_items\": [\n      {\n        \"id\": 998327818,\n        \"variant_id\": 59284621,\n        \"title\": “Slim Short Sleeve Linen Shirt”,\n        \"quantity\": 1,\n        \"price\": “68.00\",\n        \"sku\": “SLSSLNSHRT”,\n        \"variant_title\": “white”,\n        “size”: medium,\n        \"product_id\": 632910392,\n        \"requires_shipping\": true,\n        \"taxable\": true,\n        \"gift_card\": false,\n        \"name\": “Slim Short Sleeve Linen Shirt - White“,\n                ],\n        \"tax_lines\": [\n          {\n            \"title\": \"State Tax\",\n            \"price\": “6.12”,\n            \"rate\": 0.09\n          }\n{\n        \"id\": 789327523,\n        \"variant_id\": 89137513,\n        \"title\": “Slim Mens Chino”,\n        \"quantity\": 1,\n        \"price\": “79.00\",\n        \"sku\": “SLMNCHNO”,\n        \"variant_title\": “green”,\n        “size”: 32W32L,\n        \"product_id\": 948517351,\n        \"requires_shipping\": true,\n        \"taxable\": true,\n        \"gift_card\": false,\n        \"name\": “Slim Short Sleeve Linen Shirt - White“,\n                ],\n        \"tax_lines\": [\n          {\n            \"title\": \"State Tax\",\n            \"price\": “7.11”,\n            \"rate\": 0.09\n          }\n        ]\n      },\n  \"shipping_lines\": [\n      {\n        \"id\": 0928273492,\n        \"title\": \"Free Shipping\",\n        \"price\": \"0.00\",\n        \"code\": \"Free Shipping\",\n        \"source\": \"shopify\",\n        \"phone\": null,\n        \"carrier_identifier\": null,\n        \"tax_lines\": [\n        ]\n      }\n    ],"},"url":"https://api.e2ma.net/{{account_id}}/events"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"{\"success\":true}"},{"id":"bb9b1b8b-2292-6494-deb0-ac1cda8af8cb","name":"Sample Event","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"Converts to b64 for Authenticating the Emma Public API"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.e2ma.net/{{account_id}}/events"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"{\"success\":true}"}],"_postman_id":"f7f8d305-3c31-d152-49ce-4c8b79261cd8"}],"id":"7901b763-27ce-1ea7-6e42-3f77f1cf12ae","description":"<h3 id=\"access-to-the-event-api-is-available-only-to-emma-plus-premium-and-enterprise-customers\">Access to the Event API is available only to Emma Plus, Premium and Enterprise customers.</h3>\n<p>The Emma Event API is used to automate and personalize emails that are triggered by audience activities in other platforms. While it is often used to power automated workflows triggered by activities like purchases and event registration and attendance, the Event API can receive events and data of any type from any service.</p>\n<p>You can post events to Emma using the endpoint below. Workflows that are triggered by events shared to this endpoint can be configured in the Automation <a href=\"https://support.e2ma.net/Resource_Center/Guide_to_Automation/Trigger_events%3A_custom_API_event\">workflow builder</a>. For more information about the event API and its capabilities, visit our <a href=\"https://support.e2ma.net/Resource_Center/Account_how-to/Event_API\">Resource Center</a>.</p>\n","_postman_id":"7901b763-27ce-1ea7-6e42-3f77f1cf12ae"},{"name":"Fields","item":[{"name":"Get All Fields","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":["",""]}}],"id":"fab3eceb-b282-7749-fa77-5ae1b545a549","request":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"<p>Converts to b64 for Authenticating the Emma Public API</p>\n"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.e2ma.net/{{account_id}}/fields","description":"<p><em>Gets a list of this account’s defined fields.</em></p>\n<p><strong>Parameters:</strong>  </p>\n<ul>\n<li><strong>deleted</strong> (<em>boolean</em>) – Accepts True or 1. Optional flag to include deleted fields.</li>\n</ul>\n<p><strong>Returns:</strong> An array of fields.</p>\n","urlObject":{"protocol":"https","path":["{{account_id}}","fields"],"host":["api","e2ma","net"],"query":[],"variable":[]}},"response":[{"id":"12c99436-40ce-ea76-c113-9ca9582a1b8f","name":"Sample Response","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"Converts to b64 for Authenticating the Emma Public API","type":"text"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.e2ma.net/{{account_id}}/fields"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"3625","name":"Content-Length","description":""},{"key":"Content-Type","value":"application/json; charset=utf8","name":"Content-Type","description":""},{"key":"Date","value":"Wed, 28 Jun 2017 02:35:40 GMT","name":"Date","description":""},{"key":"Keep-Alive","value":"timeout=300, max=9997","name":"Keep-Alive","description":""},{"key":"Server","value":"Apache/2.2.22 (Ubuntu)","name":"Server","description":""},{"key":"accept-ranges","value":"bytes","name":"accept-ranges","description":""},{"key":"age","value":"33","name":"age","description":""},{"key":"connection","value":"keep-alive, Keep-Alive","name":"connection","description":""},{"key":"via","value":"1.1 varnish-v4","name":"via","description":""},{"key":"x-varnish","value":"12175473 1765157","name":"x-varnish","description":""}],"cookie":[],"responseTime":"167","body":"[\n  {\n    \"shortcut_name\": \"first_name\",\n    \"display_name\": \"First Name\",\n    \"account_id\": 100,\n    \"field_type\": \"text\",\n    \"required\": false,\n    \"field_id\": 200,\n    \"widget_type\": \"text\",\n    \"short_display_name\": null,\n    \"column_order\": 1,\n    \"deleted_at\": null,\n    \"options\": null\n  },\n  {\n    \"shortcut_name\": \"last_name\",\n    \"display_name\": \"Last Name\",\n    \"account_id\": 100,\n    \"field_type\": \"text\",\n    \"required\": false,\n    \"field_id\": 201,\n    \"widget_type\": \"text\",\n    \"short_display_name\": null,\n    \"column_order\": 2,\n    \"deleted_at\": null,\n    \"options\": null\n  },\n  {\n    \"shortcut_name\": \"favorite_food\",\n    \"display_name\": \"Favorite Food\",\n    \"account_id\": 100,\n    \"field_type\": \"text\",\n    \"required\": false,\n    \"field_id\": 202,\n    \"widget_type\": \"text\",\n    \"short_display_name\": null,\n    \"column_order\": 3,\n    \"deleted_at\": null,\n    \"options\": null\n  },\n  {\n    \"shortcut_name\": \"birthday\",\n    \"display_name\": \"Birthday\",\n    \"account_id\": 100,\n    \"field_type\": \"date\",\n    \"required\": false,\n    \"field_id\": 203,\n    \"widget_type\": \"date\",\n    \"short_display_name\": null,\n    \"column_order\": 4,\n    \"deleted_at\": null,\n    \"options\": null\n  }\n]"},{"id":"5567c977-692a-df2d-dc66-9c6bdf3915b4","name":"Get All Fields","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"Converts to b64 for Authenticating the Emma Public API"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.e2ma.net/{{account_id}}/fields"},"status":"OK","code":200,"_postman_previewlanguage":"","header":[],"cookie":[],"responseTime":"0","body":"[\n  {\n    \"shortcut_name\": \"first_name\",\n    \"display_name\": \"First Name\",\n    \"account_id\": 100,\n    \"field_type\": \"text\",\n    \"required\": false,\n    \"field_id\": 200,\n    \"widget_type\": \"text\",\n    \"short_display_name\": null,\n    \"column_order\": 1,\n    \"deleted_at\": null,\n    \"options\": null\n  },\n  {\n    \"shortcut_name\": \"last_name\",\n    \"display_name\": \"Last Name\",\n    \"account_id\": 100,\n    \"field_type\": \"text\",\n    \"required\": false,\n    \"field_id\": 201,\n    \"widget_type\": \"text\",\n    \"short_display_name\": null,\n    \"column_order\": 2,\n    \"deleted_at\": null,\n    \"options\": null\n  },\n  {\n    \"shortcut_name\": \"favorite_food\",\n    \"display_name\": \"Favorite Food\",\n    \"account_id\": 100,\n    \"field_type\": \"text\",\n    \"required\": false,\n    \"field_id\": 202,\n    \"widget_type\": \"text\",\n    \"short_display_name\": null,\n    \"column_order\": 3,\n    \"deleted_at\": null,\n    \"options\": null\n  },\n  {\n    \"shortcut_name\": \"birthday\",\n    \"display_name\": \"Birthday\",\n    \"account_id\": 100,\n    \"field_type\": \"date\",\n    \"required\": false,\n    \"field_id\": 203,\n    \"widget_type\": \"date\",\n    \"short_display_name\": null,\n    \"column_order\": 4,\n    \"deleted_at\": null,\n    \"options\": null\n  }\n]\n"},{"id":"7ad37127-e846-d1b6-457e-89957d03ae6d","name":"Sample Response","originalRequest":{"method":"GET","header":[{"key":"Authorization","name":"Authorization","value":"Basic ODJjMGZjMDZjZDVkNWY2YTRkYmI6NWRlMjZhZTc3NTZiZmNlZGE1ZWQ="}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.e2ma.net/{{account_id}}/fields"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"3625","name":"Content-Length","description":""},{"key":"Content-Type","value":"application/json; charset=utf8","name":"Content-Type","description":""},{"key":"Date","value":"Wed, 28 Jun 2017 02:35:40 GMT","name":"Date","description":""},{"key":"Keep-Alive","value":"timeout=300, max=9997","name":"Keep-Alive","description":""},{"key":"Server","value":"Apache/2.2.22 (Ubuntu)","name":"Server","description":""},{"key":"accept-ranges","value":"bytes","name":"accept-ranges","description":""},{"key":"age","value":"33","name":"age","description":""},{"key":"connection","value":"keep-alive, Keep-Alive","name":"connection","description":""},{"key":"via","value":"1.1 varnish-v4","name":"via","description":""},{"key":"x-varnish","value":"12175473 1765157","name":"x-varnish","description":""}],"cookie":[],"responseTime":"167","body":"[\n  {\n    \"shortcut_name\": \"first_name\",\n    \"display_name\": \"First Name\",\n    \"account_id\": 100,\n    \"field_type\": \"text\",\n    \"required\": false,\n    \"field_id\": 200,\n    \"widget_type\": \"text\",\n    \"short_display_name\": null,\n    \"column_order\": 1,\n    \"deleted_at\": null,\n    \"options\": null\n  },\n  {\n    \"shortcut_name\": \"last_name\",\n    \"display_name\": \"Last Name\",\n    \"account_id\": 100,\n    \"field_type\": \"text\",\n    \"required\": false,\n    \"field_id\": 201,\n    \"widget_type\": \"text\",\n    \"short_display_name\": null,\n    \"column_order\": 2,\n    \"deleted_at\": null,\n    \"options\": null\n  },\n  {\n    \"shortcut_name\": \"favorite_food\",\n    \"display_name\": \"Favorite Food\",\n    \"account_id\": 100,\n    \"field_type\": \"text\",\n    \"required\": false,\n    \"field_id\": 202,\n    \"widget_type\": \"text\",\n    \"short_display_name\": null,\n    \"column_order\": 3,\n    \"deleted_at\": null,\n    \"options\": null\n  },\n  {\n    \"shortcut_name\": \"birthday\",\n    \"display_name\": \"Birthday\",\n    \"account_id\": 100,\n    \"field_type\": \"date\",\n    \"required\": false,\n    \"field_id\": 203,\n    \"widget_type\": \"date\",\n    \"short_display_name\": null,\n    \"column_order\": 4,\n    \"deleted_at\": null,\n    \"options\": null\n  }\n]"}],"_postman_id":"fab3eceb-b282-7749-fa77-5ae1b545a549"},{"name":"Get Field By Id","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":["",""]}}],"id":"c6bd0a97-0ac6-9eb0-a1b4-3caaf638397b","request":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"<p>Converts to b64 for Authenticating the Emma Public API</p>\n"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.e2ma.net/{{account_id}}/fields/#field_id","description":"<p><em>Gets the detailed information about a particular field.</em></p>\n<p><strong>Parameters:</strong>  </p>\n<ul>\n<li><strong>deleted</strong> (<em>boolean</em>) – Accepts True or 1. Optionally show a field even if it has been deleted.</li>\n</ul>\n<p><strong>Returns:</strong> A field.</p>\n<p><strong>Raises:</strong>  <code>Http404</code> if the field does not exist.</p>\n","urlObject":{"protocol":"https","path":["{{account_id}}","fields",""],"hash":"field_id","host":["api","e2ma","net"],"query":[],"variable":[]}},"response":[{"id":"4ae745a7-bcbf-b8d2-8ed3-b240ee25a513","name":"Get Single Field","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"Converts to b64 for Authenticating the Emma Public API"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.e2ma.net/{{account_id}}/fields/200"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"{\n  \"shortcut_name\": \"first_name\", \n  \"display_name\": \"First Name\", \n  \"account_id\": 100, \n  \"field_type\": \"text\", \n  \"required\": false, \n  \"field_id\": 200, \n  \"widget_type\": \"text\", \n  \"short_display_name\": null, \n  \"column_order\": 1, \n  \"deleted_at\": null, \n  \"options\": null\n}"}],"_postman_id":"c6bd0a97-0ac6-9eb0-a1b4-3caaf638397b"},{"name":"Create Field","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":["",""]}}],"id":"6682bc20-2e9d-cf6a-13d8-092c385690fc","request":{"method":"POST","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"<p>Converts to b64 for Authenticating the Emma Public API</p>\n"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"shortcut_name\": \"new_boolean\", \n  \"column_order\": 3, \n  \"display_name\": \"A New Boolean Field\", \n  \"field_type\": \"boolean\"\n  \"widget_type\": \"boolean\"\n}"},"url":"https://api.e2ma.net/{{account_id}}/fields","description":"<p><em>Create a new field field.</em></p>\n<p>There must not already be a field with this name.</p>\n<p><strong>Parameters:</strong></p>\n<ul>\n<li><strong>shortcut_name</strong> (<em>string</em>) – The internal name for this field.</li>\n<li><strong>display_name</strong> (<em>string</em>) – Display name, used for forms and reports.</li>\n<li><strong>field_type</strong> (<em>string</em>) – The type of value this field will contain. Accepts one of text, text[], numeric, boolean, date, timestamp.</li>\n<li><strong>widget_type</strong> (<em>string</em>) – The type of widget this field will display as. Accepts one of <code>text, long, checkbox, select multiple, check_multiple, radio, date, select one, number</code>.</li>\n<li><strong>column_order</strong> (<em>integer</em>) – Order of this column in lists.</li>\n</ul>\n<p><strong>Returns:</strong> A reference to the new field.</p>\n","urlObject":{"protocol":"https","path":["{{account_id}}","fields"],"host":["api","e2ma","net"],"query":[],"variable":[]}},"response":[{"id":"000a5dcc-dd39-a31c-f71c-773adc76b0c1","name":"Create New Field","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"Converts to b64 for Authenticating the Emma Public API"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"shortcut_name\": \"new_boolean\", \n  \"column_order\": 3, \n  \"display_name\": \"A New Boolean Field\", \n  \"field_type\": \"boolean\"\n}"},"url":"https://api.e2ma.net/{{account_id}}/fields"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"1024"}],"_postman_id":"6682bc20-2e9d-cf6a-13d8-092c385690fc"},{"name":"Delete Field","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":["",""]}}],"id":"effbb485-7049-5d0f-fc9b-1b8c4a7e9b16","request":{"method":"DELETE","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"<p>Converts to b64 for Authenticating the Emma Public API</p>\n"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.e2ma.net/{{account_id}}/fields/#field_id","description":"<p><em>Deletes a field.</em></p>\n<p><strong>Returns:</strong> True if the field is deleted, False otherwise.</p>\n","urlObject":{"protocol":"https","path":["{{account_id}}","fields",""],"hash":"field_id","host":["api","e2ma","net"],"query":[],"variable":[]}},"response":[{"id":"e9121954-6b97-4d0a-90f6-92d043448ae3","name":"Delete A Field","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"Converts to b64 for Authenticating the Emma Public API"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.e2ma.net/{{account_id}}/fields/200"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"true"}],"_postman_id":"effbb485-7049-5d0f-fc9b-1b8c4a7e9b16"},{"name":"Clear Field Member Data","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":["",""]}}],"id":"750269ea-dd74-3d9f-f1e3-3f6793cd6536","request":{"method":"POST","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"<p>Converts to b64 for Authenticating the Emma Public API</p>\n"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.e2ma.net/{{account_id}}/fields/#field_id/clear","description":"<p><em>Clear the member data for the specified field.</em></p>\n<p><strong>Returns:</strong> True if all of the member field data is deleted.</p>\n","urlObject":{"protocol":"https","path":["{{account_id}}","fields",""],"hash":"field_id/clear","host":["api","e2ma","net"],"query":[],"variable":[]}},"response":[{"id":"795b2ef7-b01c-e23e-c6f5-366df1182a32","name":"Clear Member Data For A Field","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"Converts to b64 for Authenticating the Emma Public API"}],"body":{"mode":"raw","raw":"{}"},"url":"https://api.e2ma.net/{{account_id}}/fields/200/clear"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"true"}],"_postman_id":"750269ea-dd74-3d9f-f1e3-3f6793cd6536"},{"name":"Update Field","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":["",""]}}],"id":"14d4e342-5afa-fdf3-abf8-ceb04535b1a5","request":{"method":"PUT","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"<p>Converts to b64 for Authenticating the Emma Public API</p>\n"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"https://api.e2ma.net/{{account_id}}/fields/#field_id","description":"<p><em>Updates an existing field.</em></p>\n<p><strong>Returns:</strong> A reference to the updated field.</p>\n","urlObject":{"protocol":"https","path":["{{account_id}}","fields",""],"hash":"field_id","host":["api","e2ma","net"],"query":[],"variable":[]}},"response":[{"id":"2bab3ff5-515d-2c6f-febc-2cbd83a58bed","name":"Update A Field","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"Converts to b64 for Authenticating the Emma Public API"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"https://api.e2ma.net/{{account_id}}/fields/202"},"status":"Accepted","code":202,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"373","body":"{\n  \"display_name\": \"Your Birthday\"\n}"}],"_postman_id":"14d4e342-5afa-fdf3-abf8-ceb04535b1a5"}],"id":"52b9b74c-830b-d99b-189a-86b9117583c7","description":"<p>These endpoints let you create, edit, update and delete all of the custom fields in your account. Of particular interest is the <code>/#account_id/fields/#field_id/clear</code> endpoint which lets you clear out all the data in a single field for all members in your account. This makes it easy to re-initialize a dataset if you’re looking to correct an import error or syncing issue.</p>\n","_postman_id":"52b9b74c-830b-d99b-189a-86b9117583c7"},{"name":"Groups","item":[{"name":"Get All Groups","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":["",""]}}],"id":"ac276e30-c28c-5638-1866-7a50e1c517fc","request":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"<p>Converts to b64 for Authenticating the Emma Public API</p>\n"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.e2ma.net/{{account_id}}/groups","description":"<p><em>Get a basic listing of all active member groups for a single account.</em></p>\n<p><strong>Returns:</strong> An array of groups.</p>\n<p><strong>Parameters:</strong>  </p>\n<ul>\n<li><strong>group_types</strong> (<em>string</em>) – Accepts a comma-separated string with one or more of the following group_types (defaults to <code>g</code>): <ul>\n<li><code>g</code> (<em>group</em>)</li>\n<li><code>t</code> (<em>test</em>)</li>\n<li><code>h</code> (<em>hidden</em>)</li>\n<li><code>all</code> (<em>all</em>)</li>\n</ul>\n</li>\n</ul>\n","urlObject":{"protocol":"https","path":["{{account_id}}","groups"],"host":["api","e2ma","net"],"query":[],"variable":[]}},"response":[{"id":"1077fe42-3399-5968-7398-969ce8470a6b","name":"All Group Types","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"Converts to b64 for Authenticating the Emma Public API"}],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"https://api.e2ma.net/{{account_id}}/groups?group_types=all","protocol":"https","host":["api","e2ma","net"],"path":["{{account_id}}","groups"],"query":[{"key":"group_types","value":"all"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"[\n  {\n    \"active_count\": 1,\n    \"deleted_at\": null,\n    \"error_count\": 0,\n    \"optout_count\": 1,\n    \"group_type\": \"g\",\n    \"member_group_id\": 150,\n    \"purged_at\": null,\n    \"account_id\": 100,\n    \"group_name\": \"Monthly Newsletter\"\n  },\n  {\n    \"active_count\": 2,\n    \"deleted_at\": null,\n    \"error_count\": 0,\n    \"optout_count\": 0,\n    \"group_type\": \"g\",\n    \"member_group_id\": 151,\n    \"purged_at\": null,\n    \"account_id\": 100,\n    \"group_name\": \"Widget Buyers\"\n  },\n  {\n    \"active_count\": 4,\n    \"deleted_at\": null,\n    \"error_count\": 0,\n    \"optout_count\": 0,\n    \"group_type\": \"g\",\n    \"member_group_id\": 152,\n    \"purged_at\": null,\n    \"account_id\": 100,\n    \"group_name\": \"Special Events\"\n  }\n]"},{"id":"13daeca3-ea37-d137-f31f-ea1b7c77ac24","name":"Standard & Hidden Groups","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"Converts to b64 for Authenticating the Emma Public API"}],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"https://api.e2ma.net/{{account_id}}/groups?group_types=g,t","protocol":"https","host":["api","e2ma","net"],"path":["{{account_id}}","groups"],"query":[{"key":"group_types","value":"g,t"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"[\n  {\n    \"active_count\": 1,\n    \"deleted_at\": null,\n    \"error_count\": 0,\n    \"optout_count\": 1,\n    \"group_type\": \"g\",\n    \"member_group_id\": 150,\n    \"purged_at\": null,\n    \"account_id\": 100,\n    \"group_name\": \"Monthly Newsletter\"\n  },\n  {\n    \"active_count\": 2,\n    \"deleted_at\": null,\n    \"error_count\": 0,\n    \"optout_count\": 0,\n    \"group_type\": \"g\",\n    \"member_group_id\": 151,\n    \"purged_at\": null,\n    \"account_id\": 100,\n    \"group_name\": \"Widget Buyers\"\n  },\n  {\n    \"active_count\": 4,\n    \"deleted_at\": null,\n    \"error_count\": 0,\n    \"optout_count\": 0,\n    \"group_type\": \"g\",\n    \"member_group_id\": 152,\n    \"purged_at\": null,\n    \"account_id\": 100,\n    \"group_name\": \"Special Events\"\n  }\n]"}],"_postman_id":"ac276e30-c28c-5638-1866-7a50e1c517fc"},{"name":"Create Groups","id":"7b517487-39df-6a95-d380-2eca9e4afe99","request":{"method":"POST","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"<p>Converts to b64 for Authenticating the Emma Public API</p>\n"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"groups\": [\n    {\n      \"group_name\": \"My Grp\"\n    }\n  ]\n}"},"url":"https://api.e2ma.net/{{account_id}}/groups","description":"<p><em>Create one or more new member groups.</em></p>\n<p><strong>Returns:</strong> An array of the new group ids and group names.</p>\n<p><strong>Parameters:</strong>  </p>\n<ul>\n<li><strong>groups</strong> (<em>array</em>) – An array of group objects. Each object must contain a <code>group_name</code> parameter.</li>\n</ul>\n","urlObject":{"protocol":"https","path":["{{account_id}}","groups"],"host":["api","e2ma","net"],"query":[],"variable":[]}},"response":[{"id":"371bd935-8f4c-2ce9-fcdb-adadd285e801","name":"Create A Group","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"Converts to b64 for Authenticating the Emma Public API"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"groups\": [\n    {\n      \"group_name\": \"My Grp\"\n    }\n  ]\n}"},"url":"https://api.e2ma.net/{{account_id}}/groups"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"[\n  {\n    \"member_group_id\": 1024, \n    \"group_name\": \"My Grp\"\n  }\n]"}],"_postman_id":"7b517487-39df-6a95-d380-2eca9e4afe99"},{"name":"Get Group By Id","id":"e2b74818-a0ce-7652-d3be-018ee519a3a8","request":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"<p>Converts to b64 for Authenticating the Emma Public API</p>\n"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.e2ma.net/{{account_id}}/groups/#member_group_id","description":"<p><em>Get the detailed information for a single member group.</em></p>\n<p><strong>Returns:</strong> A group.</p>\n<p><strong>Raises:</strong>  <code>Http404</code> if the group does not exist.</p>\n","urlObject":{"protocol":"https","path":["{{account_id}}","groups",""],"hash":"member_group_id","host":["api","e2ma","net"],"query":[],"variable":[]}},"response":[{"id":"20d8ca28-faba-0620-8509-43533a7fe266","name":"Sample Response","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"Converts to b64 for Authenticating the Emma Public API"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.e2ma.net/{{account_id}}/groups/150"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"{\n  \"active_count\": 1, \n  \"deleted_at\": null, \n  \"error_count\": 0, \n  \"optout_count\": 1, \n  \"group_type\": \"g\", \n  \"member_group_id\": 150, \n  \"purged_at\": null, \n  \"account_id\": 100, \n  \"group_name\": \"Monthly Newsletter\"\n}"},{"id":"4a9d50d2-5460-f156-6178-dbe4f00eaff0","name":"Sample Response","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.e2ma.net/{{account_id}}/groups/150"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"{\n  \"active_count\": 1, \n  \"deleted_at\": null, \n  \"error_count\": 0, \n  \"optout_count\": 1, \n  \"group_type\": \"g\", \n  \"member_group_id\": 150, \n  \"purged_at\": null, \n  \"account_id\": 100, \n  \"group_name\": \"Monthly Newsletter\"\n}"},{"id":"58e67b10-50f0-c955-2463-dd8c0cfd71fb","name":"Get A Single Group","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"Converts to b64 for Authenticating the Emma Public API"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.e2ma.net/{{account_id}}/groups/#member_group_id","description":"*Get the detailed information for a single member group.*\n\n**Returns:** A group.\n\n**Raises:**  `Http404` if the group does not exist."},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"{\n  \"active_count\": 1, \n  \"deleted_at\": null, \n  \"error_count\": 0, \n  \"optout_count\": 1, \n  \"group_type\": \"g\", \n  \"member_group_id\": 150, \n  \"purged_at\": null, \n  \"account_id\": 100, \n  \"group_name\": \"Monthly Newsletter\"\n}"}],"_postman_id":"e2b74818-a0ce-7652-d3be-018ee519a3a8"},{"name":"Update Group","id":"adc1d6f9-c6fe-62ab-680e-60195adeab5e","request":{"method":"PUT","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"<p>Converts to b64 for Authenticating the Emma Public API</p>\n"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"group_name\": \"New Group Name\"\n}"},"url":"https://api.e2ma.net/{{account_id}}/groups/#member_group_id","description":"<p><em>Update information for a single member group.</em></p>\n<p><strong>Parameters:</strong></p>\n<ul>\n<li><strong>group_name</strong> (<em>string</em>) – Updated group name.</li>\n</ul>\n<p><strong>Returns:</strong> True if the update was successful</p>\n<p><strong>Raises:</strong> <code>Http404</code> if the group does not exist.</p>\n","urlObject":{"protocol":"https","path":["{{account_id}}","groups",""],"hash":"member_group_id","host":["api","e2ma","net"],"query":[],"variable":[]}},"response":[{"id":"0968533a-07e9-9f0f-7fd6-491c2ccf5f10","name":"Update A Group","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"Converts to b64 for Authenticating the Emma Public API"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"group_name\": \"New Group Name\"\n}"},"url":"https://api.e2ma.net/{{account_id}}/groups/150"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"true"}],"_postman_id":"adc1d6f9-c6fe-62ab-680e-60195adeab5e"},{"name":"Delete Group","id":"cf305f6a-8cb3-532c-7904-f83c035c105d","request":{"method":"DELETE","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"<p>Converts to b64 for Authenticating the Emma Public API</p>\n"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.e2ma.net/{{account_id}}/groups/#member_group_id","description":"<p><em>Delete a single member group.</em></p>\n<p><strong>Returns:</strong> True if the group is deleted.</p>\n<p><strong>Raises:</strong>  <code>Http404</code> if the group does not exist.</p>\n","urlObject":{"protocol":"https","path":["{{account_id}}","groups",""],"hash":"member_group_id","host":["api","e2ma","net"],"query":[],"variable":[]}},"response":[{"id":"dceb1ade-01ca-f1e9-46ab-989a39f6b56a","name":"Delete A Group","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"Converts to b64 for Authenticating the Emma Public API"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.e2ma.net/{{account_id}}/groups/150"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"true"}],"_postman_id":"cf305f6a-8cb3-532c-7904-f83c035c105d"},{"name":"Get Group Members","id":"abd4bd9f-0bad-8eca-84a7-96132bb0b100","request":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"<p>Converts to b64 for Authenticating the Emma Public API</p>\n"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.e2ma.net/{{account_id}}/groups/#member_group_id/members","description":"<p><em>Get the members in a single active member group.</em></p>\n<p><strong>Returns:</strong> An array of members.</p>\n<p><strong>Parameters:</strong></p>\n<ul>\n<li><strong>deleted</strong> (<em>boolean</em>) – include deleted members. Optional, defaults to false.</li>\n</ul>\n<p><strong>Raises:</strong>  <code>Http404</code> if the group does not exist.</p>\n","urlObject":{"protocol":"https","path":["{{account_id}}","groups",""],"hash":"member_group_id/members","host":["api","e2ma","net"],"query":[],"variable":[]}},"response":[{"id":"83b37bb6-b997-60c3-abd4-81ff0a307f4e","name":"Get Members In A Group","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"Converts to b64 for Authenticating the Emma Public API"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.e2ma.net/{{account_id}}/groups/150/members"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"[\n  {\n    \"status\": \"active\",\n    \"confirmed_opt_in\": null,\n    \"account_id\": 100,\n    \"fields\": {\n      \"first_name\": \"Emma\",\n      \"last_name\": \"Smith\",\n      \"favorite_food\": \"tacos\"\n    },\n    \"member_id\": 200,\n    \"last_modified_at\": null,\n    \"member_status_id\": \"a\",\n    \"plaintext_preferred\": false,\n    \"email_error\": null,\n    \"member_since\": \"@D:2010-11-12T11:23:45\",\n    \"bounce_count\": 0,\n    \"deleted_at\": null,\n    \"email\": \"emma@myemma.com\"\n  },\n  {\n    \"status\": \"opt-out\",\n    \"confirmed_opt_in\": null,\n    \"account_id\": 100,\n    \"fields\": {\n      \"first_name\": \"Gladys\",\n      \"last_name\": \"Jones\",\n      \"favorite_food\": \"toast\"\n    },\n    \"member_id\": 201,\n    \"last_modified_at\": null,\n    \"member_status_id\": \"o\",\n    \"plaintext_preferred\": false,\n    \"email_error\": null,\n    \"member_since\": \"@D:2011-01-03T15:54:13\",\n    \"bounce_count\": 0,\n    \"deleted_at\": null,\n    \"email\": \"gladys@myemma.com\"\n  }\n]\n"}],"_postman_id":"abd4bd9f-0bad-8eca-84a7-96132bb0b100"},{"name":"Add Members To Group","id":"1372fec7-bb10-dbbd-08c9-164bbac91c65","request":{"method":"PUT","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"<p>Converts to b64 for Authenticating the Emma Public API</p>\n"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"member_ids\": [\n    202\n  ]\n}"},"url":"https://api.e2ma.net/{{account_id}}/groups/#member_group_id/members","description":"<p><em>Add a list of members to a single active member group.</em></p>\n<p><strong>Parameters:</strong></p>\n<ul>\n<li><strong>member_ids</strong> (<em>array</em>) – An array of member ids.</li>\n</ul>\n<p><strong>Returns:</strong> An array of references to the members added to the group. If a member already exists in the group or is not a valid member, that reference will not be returned.</p>\n<p><strong>Raises:</strong>  <code>Http404</code> if the group does not exist.</p>\n","urlObject":{"protocol":"https","path":["{{account_id}}","groups",""],"hash":"member_group_id/members","host":["api","e2ma","net"],"query":[],"variable":[]}},"response":[{"id":"290efbe6-ac14-4348-f85b-074890003a44","name":"Add Member To Group","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"Converts to b64 for Authenticating the Emma Public API"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"member_ids\": [\n    202\n  ]\n}"},"url":"https://api.e2ma.net/{{account_id}}/groups/150/members"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"[\n  202\n]"}],"_postman_id":"1372fec7-bb10-dbbd-08c9-164bbac91c65"},{"name":"Remove Members From Group","id":"e888cc10-d655-10f8-aa77-0acbe09e44c1","request":{"method":"PUT","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"<p>Converts to b64 for Authenticating the Emma Public API</p>\n"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"member_ids\": [\n    200, \n    201\n  ]\n}"},"url":"https://api.e2ma.net/{{account_id}}/groups/#member_group_id/members/remove","description":"<p><em>Remove members from a single active member group.</em></p>\n<p><strong>Parameters:</strong></p>\n<ul>\n<li><strong>member_ids</strong> (<em>array</em>) – An array of member ids.</li>\n</ul>\n<p><strong>Returns:</strong> An array of references to the removed members.</p>\n<p><strong>Raises:</strong>  <code>Http404</code> if the group does not exist.</p>\n","urlObject":{"protocol":"https","path":["{{account_id}}","groups",""],"hash":"member_group_id/members/remove","host":["api","e2ma","net"],"query":[],"variable":[]}},"response":[{"id":"34ef930e-5266-8c80-eb0f-4fe2a9d8c0b8","name":"Remove Member From Group","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"Converts to b64 for Authenticating the Emma Public API"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"member_ids\": [\n    200, \n    201\n  ]\n}"},"url":"https://api.e2ma.net/{{account_id}}/groups/150/members/remove"},"status":"OK","code":200,"_postman_previewlanguage":"","header":[],"cookie":[],"responseTime":"0","body":"[\n  200, \n  201\n]"}],"_postman_id":"e888cc10-d655-10f8-aa77-0acbe09e44c1"},{"name":"Delete All Members From Group","id":"0798aea2-53ba-fd5a-e3cb-64d1d574e4d6","request":{"method":"DELETE","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"<p>Converts to b64 for Authenticating the Emma Public API</p>\n"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.e2ma.net/{{account_id}}/groups/#member_group_id/members","description":"<p><em>Remove all members from a single active member group.</em></p>\n<p><strong>Parameters:</strong></p>\n<ul>\n<li><strong>member_status_id</strong> (<em>string</em>) – Optional.<ul>\n<li><code>a</code> (<em>active</em>)</li>\n<li><code>o</code> (<em>optout</em>)</li>\n<li><code>e</code> (<em>error</em>)</li>\n</ul>\n</li>\n</ul>\n<p><strong>Returns:</strong> The number of members removed from the group.</p>\n<p><strong>Raises:</strong>  <code>Http404</code> if the group does not exist.</p>\n","urlObject":{"protocol":"https","path":["{{account_id}}","groups",""],"hash":"member_group_id/members","host":["api","e2ma","net"],"query":[],"variable":[]}},"response":[{"id":"138e3c1c-e5b0-0792-761d-b4ecc319851e","name":"Delete All Members","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"Converts to b64 for Authenticating the Emma Public API"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.e2ma.net/{{account_id}}/groups/150/members"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"2"},{"id":"c2cf2662-6ee8-0827-1f6f-ab21aa9e3f9b","name":"Delete Only Active Members","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"Converts to b64 for Authenticating the Emma Public API"}],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"https://api.e2ma.net/{{account_id}}/groups/150/members?member_status_id=a","protocol":"https","host":["api","e2ma","net"],"path":["{{account_id}}","groups","150","members"],"query":[{"key":"member_status_id","value":"a"}]}},"status":"OK","code":200,"_postman_previewlanguage":"","header":[],"cookie":[],"responseTime":"0","body":"2"}],"_postman_id":"0798aea2-53ba-fd5a-e3cb-64d1d574e4d6"},{"name":"Delete All Members From Group With Specific Status","id":"8f6c2c70-801a-4fee-0fd7-3b0562b2e331","request":{"method":"DELETE","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"<p>Converts to b64 for Authenticating the Emma Public API</p>\n"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.e2ma.net/{{account_id}}/groups/#member_group_id/members/remove","description":"<p><em>Delete all members in this group with the specified status. Remove those members from all groups as a background job. The <code>member_status_id</code> parameter must be set.</em></p>\n<p><strong>Parameters:</strong></p>\n<ul>\n<li><strong>member_status_id</strong> (<em>string</em>) – Optional.<ul>\n<li><code>a</code> (<em>active</em>)</li>\n<li><code>o</code> (<em>optout</em>)</li>\n<li><code>e</code> (<em>error</em>)</li>\n</ul>\n</li>\n</ul>\n<p><strong>Returns:</strong> True.</p>\n<p><strong>Raises:</strong>  <code>Http404</code> if the group does not exist.</p>\n","urlObject":{"protocol":"https","path":["{{account_id}}","groups",""],"hash":"member_group_id/members/remove","host":["api","e2ma","net"],"query":[],"variable":[]}},"response":[{"id":"d5b14ffc-31e6-4bf2-cc4d-e098c3af9dbe","name":"Delete Members Who Are Active","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"Converts to b64 for Authenticating the Emma Public API"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.e2ma.net/{{account_id}}/groups/#member_group_id/members/remove?member_status_id=a"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"true"}],"_postman_id":"8f6c2c70-801a-4fee-0fd7-3b0562b2e331"},{"name":"Copy Members to Another Group","id":"c0ddac1d-05d2-bf73-ebc1-27289c8b1d37","request":{"method":"PUT","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"<p>Converts to b64 for Authenticating the Emma Public API</p>\n"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.e2ma.net/{{account_id}}/groups/#from_group_id/#to_group_id/members/copy","description":"<p><em>Copy all the users of one group into another group.</em></p>\n<p><strong>Parameters:</strong></p>\n<ul>\n<li><strong>member_status_id</strong> (<em>string</em>) – Optional.<ul>\n<li><code>a</code> (<em>active</em>)</li>\n<li><code>o</code> (<em>optout</em>)</li>\n<li><code>e</code> (<em>error</em>)</li>\n</ul>\n</li>\n</ul>\n<p><strong>Returns:</strong> True.</p>\n<p><strong>Raises:</strong>  <code>Http404</code> if the group does not exist.</p>\n","urlObject":{"protocol":"https","path":["{{account_id}}","groups",""],"hash":"from_group_id/#to_group_id/members/copy","host":["api","e2ma","net"],"query":[],"variable":[]}},"response":[{"id":"b4fb1c62-2da8-e918-8470-5e799838c5c8","name":"Copy Active Users To Another Group","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"Converts to b64 for Authenticating the Emma Public API"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"member_status_id\": [\n    \"a\"\n  ]\n}"},"url":"https://api.e2ma.net/{{account_id}}/groups/151/152/members/copy"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"true"}],"_postman_id":"c0ddac1d-05d2-bf73-ebc1-27289c8b1d37"}],"id":"8d653510-0d75-9764-d0c6-dc72c6b70f3d","description":"<p>With these endpoints, you can manage all aspects of the groups in your account. In addition to various CRUD methods, you can also use these endpoints to manage the members of your groups. You’ll want to use these methods if you’re managing group membership for more than one member at a time. For dealing with single members, there are better methods in the <code>members</code> endpoints.</p>\n","_postman_id":"8d653510-0d75-9764-d0c6-dc72c6b70f3d"},{"name":"Mailings","item":[{"name":"Get Mailings","id":"c87ed266-0652-ed9c-0ffc-ad2a57f7b573","request":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"<p>Converts to b64 for Authenticating the Emma Public API</p>\n"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.e2ma.net/{{account_id}}/mailings","description":"<p><em>Get information about current mailings.</em></p>\n<p><strong>Parameters:</strong></p>\n<ul>\n<li><strong>include_archived</strong> (<em>boolean</em>) – Optional flag to include archived mailings in the list.</li>\n<li><strong>mailing_types</strong> (<em>string</em>) – Accepts a comma-separated string with one or more of the following mailing types. Defaults to <code>m,t</code>, standard and test mailings, when none are specified.: <ul>\n<li><code>m</code> (<em>standard</em>)</li>\n<li><code>t</code> (<em>test</em>)</li>\n<li><code>r</code> (<em>trigger</em>)</li>\n<li><code>s</code> (<em>split</em>)</li>\n</ul>\n</li>\n<li><strong>mailing_statuses</strong> (<em>string</em>) – Accepts a comma-separated string with one or more of the following mailing statuses. Defaults to <code>p,a,s,x,c,u,f</code>, all statuses, when none are specified:<ul>\n<li><code>p</code> (<em>pending</em>)</li>\n<li><code>a</code> (<em>paused</em>)</li>\n<li><code>s</code> (<em>sending</em>)</li>\n<li><code>x</code> (<em>canceled</em>)</li>\n<li><code>c</code> (<em>complete</em>)</li>\n<li><code>u</code> (<em>unapproved</em>)</li>\n<li><code>f</code> (<em>failed</em>)</li>\n</ul>\n</li>\n<li><strong>is_scheduled</strong> (<em>boolean</em>) – Mailings that have a scheduled timestamp.</li>\n<li><strong>with_html_body</strong> (<em>boolean</em>) – Include the html_body content.</li>\n<li><strong>with_plaintext</strong> (<em>boolean</em>) – Include the plaintext content.</li>\n</ul>\n<p><strong>Raises:</strong>  <code>Http400</code> if invalid mailing types or statuses are specified.</p>\n<p><strong>Returns:</strong> An array of mailings.</p>\n","urlObject":{"protocol":"https","path":["{{account_id}}","mailings"],"host":["api","e2ma","net"],"query":[],"variable":[]}},"response":[{"id":"636aa751-d9b0-792a-b90a-0fd73fe47576","name":"Get All Mailings","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"Converts to b64 for Authenticating the Emma Public API"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.e2ma.net/{{account_id}}/mailings"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"\n[\n  {\n    \"mailing_type\": \"m\",\n    \"send_started\": null,\n    \"cancel_by_user_id\": null,\n    \"mailing_id\": 201,\n    \"recipient_count\": 0,\n    \"cancel_ts\": null,\n    \"mailing_status\": \"p\",\n    \"month\": null,\n    \"failure_ts\": null,\n    \"reply_to\": null,\n    \"year\": null,\n    \"datacenter\": null,\n    \"started_or_finished\": null,\n    \"account_id\": 100,\n    \"disabled\": false,\n    \"created_ts\": \"@D:2013-08-22T09:41:45\",\n    \"sender\": \"Kevin McConnell\",\n    \"plaintext_only\": false,\n    \"name\": \"Cancellable mailing\",\n    \"parent_mailing_id\": null,\n    \"failure_message\": null,\n    \"send_finished\": null,\n    \"send_at\": null,\n    \"signup_form_id\": null,\n    \"subject\": \"Cancellable mailing\",\n    \"purged_at\": null,\n    \"archived_ts\": null\n  },\n  {\n    \"mailing_type\": \"m\",\n    \"send_started\": null,\n    \"cancel_by_user_id\": null,\n    \"mailing_id\": 200,\n    \"recipient_count\": 0,\n    \"cancel_ts\": null,\n    \"mailing_status\": \"c\",\n    \"month\": null,\n    \"failure_ts\": null,\n    \"reply_to\": null,\n    \"year\": null,\n    \"datacenter\": null,\n    \"started_or_finished\": null,\n    \"account_id\": 100,\n    \"disabled\": false,\n    \"created_ts\": \"@D:2013-08-22T09:41:45\",\n    \"sender\": \"Kevin McConnell\",\n    \"plaintext_only\": false,\n    \"name\": \"Sample Mailing\",\n    \"parent_mailing_id\": null,\n    \"failure_message\": null,\n    \"send_finished\": null,\n    \"send_at\": null,\n    \"signup_form_id\": null,\n    \"subject\": \"Sample Mailing for [% member:first_name %] [% member:last_name %]\",\n    \"purged_at\": null,\n    \"archived_ts\": null\n  }\n]"},{"id":"bf404b9e-5c07-501a-f6a1-1c131c841350","name":"status = pending, complete AND  type = standard, test","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"Converts to b64 for Authenticating the Emma Public API"}],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"https://api.e2ma.net/{{account_id}}/mailings?mailing_statuses=p,c&mailing_types=m,t","protocol":"https","host":["api","e2ma","net"],"path":["{{account_id}}","mailings"],"query":[{"key":"mailing_statuses","value":"p,c"},{"key":"mailing_types","value":"m,t"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"[\n  {\n    \"mailing_type\": \"m\",\n    \"send_started\": null,\n    \"cancel_by_user_id\": null,\n    \"mailing_id\": 201,\n    \"recipient_count\": 0,\n    \"cancel_ts\": null,\n    \"mailing_status\": \"p\",\n    \"month\": null,\n    \"failure_ts\": null,\n    \"reply_to\": null,\n    \"year\": null,\n    \"datacenter\": null,\n    \"started_or_finished\": null,\n    \"account_id\": 100,\n    \"disabled\": false,\n    \"created_ts\": \"@D:2013-08-22T09:41:45\",\n    \"sender\": \"Kevin McConnell\",\n    \"plaintext_only\": false,\n    \"name\": \"Cancellable mailing\",\n    \"parent_mailing_id\": null,\n    \"failure_message\": null,\n    \"send_finished\": null,\n    \"send_at\": null,\n    \"signup_form_id\": null,\n    \"subject\": \"Cancellable mailing\",\n    \"purged_at\": null,\n    \"archived_ts\": null\n  },\n  {\n    \"mailing_type\": \"m\",\n    \"send_started\": null,\n    \"cancel_by_user_id\": null,\n    \"mailing_id\": 200,\n    \"recipient_count\": 0,\n    \"cancel_ts\": null,\n    \"mailing_status\": \"c\",\n    \"month\": null,\n    \"failure_ts\": null,\n    \"reply_to\": null,\n    \"year\": null,\n    \"datacenter\": null,\n    \"started_or_finished\": null,\n    \"account_id\": 100,\n    \"disabled\": false,\n    \"created_ts\": \"@D:2013-08-22T09:41:45\",\n    \"sender\": \"Kevin McConnell\",\n    \"plaintext_only\": false,\n    \"name\": \"Sample Mailing\",\n    \"parent_mailing_id\": null,\n    \"failure_message\": null,\n    \"send_finished\": null,\n    \"send_at\": null,\n    \"signup_form_id\": null,\n    \"subject\": \"Sample Mailing for [% member:first_name %] [% member:last_name %]\",\n    \"purged_at\": null,\n    \"archived_ts\": null\n  }\n]"}],"_postman_id":"c87ed266-0652-ed9c-0ffc-ad2a57f7b573"},{"name":"Get Mailing by Id","id":"f8df98d8-85d1-6364-bfae-bca0b2fd1745","request":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"<p>Converts to b64 for Authenticating the Emma Public API</p>\n"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.e2ma.net/{{account_id}}/mailings/#mailing_id","description":"<p><em>Get detailed information for one mailing.</em></p>\n<p><strong>Returns:</strong> A mailing.</p>\n<p><strong>Raises:</strong>  <code>Http404</code> if no mailing is found.</p>\n","urlObject":{"protocol":"https","path":["{{account_id}}","mailings",""],"hash":"mailing_id","host":["api","e2ma","net"],"query":[],"variable":[]}},"response":[{"id":"840c5ae7-8db6-e700-78d4-b4a5c7fb0e12","name":"Get A Single Mailing","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"Converts to b64 for Authenticating the Emma Public API"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.e2ma.net/{{account_id}}/mailings/200"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"{\n  \"recipient_groups\": [\n    {\n      \"member_group_id\": 151, \n      \"name\": \"Widget Buyers\"\n    }\n  ], \n  \"heads_up_emails\": [], \n  \"send_started\": null, \n  \"signup_form_id\": null, \n  \"links\": [\n    {\n      \"mailing_id\": 200, \n      \"plaintext\": false, \n      \"link_id\": 200, \n      \"link_name\": \"Emma\", \n      \"link_target\": \"http://www.myemma.com\", \n      \"link_order\": 1\n    }\n  ], \n  \"mailing_id\": 200, \n  \"plaintext\": \"Hello [% member:first_name %]!\", \n  \"recipient_count\": 0, \n  \"public_webview_url\": \"http://localhost/webview/uf/6db0cc7e6fdb2da589b65f29d90c96b6\", \n  \"mailing_type\": \"m\", \n  \"parent_mailing_id\": null, \n  \"recipient_searches\": [], \n  \"account_id\": 100, \n  \"recipient_members\": [\n    {\n      \"email\": \"emma@myemma.com\", \n      \"member_id\": 200\n    }\n  ], \n  \"mailing_status\": \"c\", \n  \"sender\": \"Kevin McConnell\", \n  \"name\": \"Sample Mailing\", \n  \"send_finished\": null, \n  \"send_at\": null, \n  \"subject\": \"Sample Mailing for [% member:first_name %] [% member:last_name %]\", \n  \"archived_ts\": null, \n  \"html_body\": \"<p>Hello [% member:first_name %]!</p>\"\n}"}],"_postman_id":"f8df98d8-85d1-6364-bfae-bca0b2fd1745"},{"name":"Get Mailing Members","id":"675a4a48-2c66-fb16-b804-d3f49bcc52be","request":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"<p>Converts to b64 for Authenticating the Emma Public API</p>\n"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.e2ma.net/{{account_id}}/mailings/#mailing_id/members","description":"<p><em>Get the list of members to whom the given mailing was sent. This does not include groups or searches.</em></p>\n<p><strong>Returns:</strong> An array of members including status and member fields.</p>\n<p><strong>Raises:</strong>  <code>Http404</code> if no mailing is found.</p>\n","urlObject":{"protocol":"https","path":["{{account_id}}","mailings",""],"hash":"mailing_id/members","host":["api","e2ma","net"],"query":[],"variable":[]}},"response":[{"id":"ad1d9a9d-976d-f705-777e-26b4c6382d4c","name":"Sample Response","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"Converts to b64 for Authenticating the Emma Public API","type":"text"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.e2ma.net/{{account_id}}/mailings/#mailing_id/members"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"[\n  {\n    \"status\": \"active\",\n    \"confirmed_opt_in\": null,\n    \"account_id\": 100,\n    \"fields\": {\n      \"first_name\": \"Emma\",\n      \"last_name\": \"Smith\",\n      \"favorite_food\": \"tacos\"\n    },\n    \"member_id\": 200,\n    \"last_modified_at\": null,\n    \"member_status_id\": \"a\",\n    \"plaintext_preferred\": false,\n    \"email_error\": null,\n    \"member_since\": \"@D:2010-11-12T11:23:45\",\n    \"bounce_count\": 0,\n    \"deleted_at\": null,\n    \"email\": \"emma@myemma.com\"\n  }\n]"},{"id":"cd8ac01e-9e1b-64ae-00f1-c6926e0bba17","name":"Sample Response","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"Converts to b64 for Authenticating the Emma Public API"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.e2ma.net/{{account_id}}/mailings/200/members"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"[\n  {\n    \"status\": \"active\",\n    \"confirmed_opt_in\": null,\n    \"account_id\": 100,\n    \"fields\": {\n      \"first_name\": \"Emma\",\n      \"last_name\": \"Smith\",\n      \"favorite_food\": \"tacos\"\n    },\n    \"member_id\": 200,\n    \"last_modified_at\": null,\n    \"member_status_id\": \"a\",\n    \"plaintext_preferred\": false,\n    \"email_error\": null,\n    \"member_since\": \"@D:2010-11-12T11:23:45\",\n    \"bounce_count\": 0,\n    \"deleted_at\": null,\n    \"email\": \"emma@myemma.com\"\n  }\n]"},{"id":"f338283d-7887-4dd3-584b-287f11f0dc26","name":"Get Members In A Mailing","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"Converts to b64 for Authenticating the Emma Public API"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.e2ma.net/{{account_id}}/mailings/#mailing_id/members","description":"*Get the list of members to whom the given mailing was sent. This does not include groups or searches.*\n\n**Returns:** An array of members including status and member fields.\n\n**Raises:**  `Http404` if no mailing is found."},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"[\n  {\n    \"status\": \"active\",\n    \"confirmed_opt_in\": null,\n    \"account_id\": 100,\n    \"fields\": {\n      \"first_name\": \"Emma\",\n      \"last_name\": \"Smith\",\n      \"favorite_food\": \"tacos\"\n    },\n    \"member_id\": 200,\n    \"last_modified_at\": null,\n    \"member_status_id\": \"a\",\n    \"plaintext_preferred\": false,\n    \"email_error\": null,\n    \"member_since\": \"@D:2010-11-12T11:23:45\",\n    \"bounce_count\": 0,\n    \"deleted_at\": null,\n    \"email\": \"emma@myemma.com\"\n  }\n]"}],"_postman_id":"675a4a48-2c66-fb16-b804-d3f49bcc52be"},{"name":"Get Personalized Mailing","id":"865c8a0a-c55b-d129-0ea0-3d28086ee57e","request":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"<p>Converts to b64 for Authenticating the Emma Public API</p>\n"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.e2ma.net/{{account_id}}/mailings/#mailing_id/messages/#member_id","description":"<p><em>Gets the personalized message content as sent to a specific member as part of the specified mailing.</em></p>\n<p><strong>Parameters:</strong></p>\n<ul>\n<li><strong>type</strong> (<em>string</em>) – Accepts: <code>all, html, plaintext, subject</code>. Defaults to <code>all</code>, if not provided.</li>\n</ul>\n<p><strong>Returns:</strong> Message content from a mailing, personalized for a member. The response will contain all parts of the mailing content by default, or just the type of content specified by <code>type</code>.</p>\n<p><strong>Raises:</strong>  <code>Http404</code> if no message is found.</p>\n","urlObject":{"protocol":"https","path":["{{account_id}}","mailings",""],"hash":"mailing_id/messages/#member_id","host":["api","e2ma","net"],"query":[],"variable":[]}},"response":[{"id":"33ac2b82-8ad0-1192-3874-f8581f0cca96","name":"Personalized HTML","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"Converts to b64 for Authenticating the Emma Public API"}],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"https://api.e2ma.net/{{account_id}}/mailings/200/messages/200?type=html","protocol":"https","host":["api","e2ma","net"],"path":["{{account_id}}","mailings","200","messages","200"],"query":[{"key":"type","value":"html"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"{\n  \"html_body\": \"<p>Hello !</p>\"\n}"},{"id":"95d5d03f-7d4d-c861-9ba4-fb36fc071850","name":"Get Personalized Mailing Details","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"Converts to b64 for Authenticating the Emma Public API"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.e2ma.net/{{account_id}}/mailings/200/messages/200"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"{\n  \"plaintext\": \"Hello !\", \n  \"subject\": \"Sample Mailing for  \", \n  \"html_body\": \"<p>Hello !</p>\"\n}"}],"_postman_id":"865c8a0a-c55b-d129-0ea0-3d28086ee57e"},{"name":"Get Mailing Groups","id":"b02ae677-4e7c-2642-c13d-6b92487b957b","request":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"<p>Converts to b64 for Authenticating the Emma Public API</p>\n"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.e2ma.net/{{account_id}}/mailings/#mailing_id/groups","description":"<p><em>Get the groups to which a particular mailing was sent.</em></p>\n<p><strong>Returns:</strong> An array of groups.</p>\n<p><strong>Raises:</strong>  <code>Http404</code> if no mailing is found.</p>\n","urlObject":{"protocol":"https","path":["{{account_id}}","mailings",""],"hash":"mailing_id/groups","host":["api","e2ma","net"],"query":[],"variable":[]}},"response":[{"id":"9b42680e-b759-6328-a688-e95d75ef66a3","name":"Get Mailing Groups","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"Converts to b64 for Authenticating the Emma Public API"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.e2ma.net/{{account_id}}/mailings/200/groups"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"[\n  {\n    \"active_count\": 2,\n    \"deleted_at\": null,\n    \"error_count\": 0,\n    \"optout_count\": 0,\n    \"group_type\": \"g\",\n    \"member_group_id\": 151,\n    \"purged_at\": null,\n    \"account_id\": 100,\n    \"group_name\": \"Widget Buyers\"\n  }\n]\n"}],"_postman_id":"b02ae677-4e7c-2642-c13d-6b92487b957b"},{"name":"Get Mailing Searches","id":"ef2850d2-0ff7-70e5-ff9c-42b88149d453","request":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"<p>Converts to b64 for Authenticating the Emma Public API</p>\n"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.e2ma.net/{{account_id}}/mailings/#mailing_id/searches","description":"<p><em>Get all searches associated with a sent mailing.</em></p>\n<p><strong>Returns:</strong> An array of searches.</p>\n<p><strong>Raises:</strong>  <code>Http404</code> if no mailing is found.</p>\n","urlObject":{"protocol":"https","path":["{{account_id}}","mailings",""],"hash":"mailing_id/searches","host":["api","e2ma","net"],"query":[],"variable":[]}},"response":[{"id":"524b829a-b76a-2e24-caa7-c70110d92a87","name":"Get Mailing Searches","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"Converts to b64 for Authenticating the Emma Public API"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.e2ma.net/{{account_id}}/mailings/200/searches"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"[\n\n]\n"}],"_postman_id":"ef2850d2-0ff7-70e5-ff9c-42b88149d453"},{"name":"Update Mailing Status","id":"49d2f7ec-c8d3-480d-dcfa-ad7a679d2681","request":{"method":"PUT","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"<p>Converts to b64 for Authenticating the Emma Public API</p>\n"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.e2ma.net/{{account_id}}/mailings/#mailing_id","description":"<p><em>Update status of a current mailing</em></p>\n<p>The status can be one of <code>canceled</code>, <code>paused</code> or <code>ready</code>. This method can be used to control the progress of a mailing by pausing, canceling or resuming it. Once a mailing is canceled it can’t be resumed, and will not show in the normal <code>mailing_list</code> output.</p>\n<p><strong>Returns:</strong> The mailing’s new status</p>\n","urlObject":{"protocol":"https","path":["{{account_id}}","mailings",""],"hash":"mailing_id","host":["api","e2ma","net"],"query":[],"variable":[]}},"response":[],"_postman_id":"49d2f7ec-c8d3-480d-dcfa-ad7a679d2681"},{"name":"Delete Mailing","id":"7c6ebd3e-b2e8-31d4-2af2-5e3266b59b42","request":{"method":"DELETE","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"<p>Converts to b64 for Authenticating the Emma Public API</p>\n"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.e2ma.net/{{account_id}}/mailings/#mailing_id","description":"<p><em>Sets archived timestamp for a mailing so it is no longer included in <code>mailing_list</code>.</em></p>\n<p><strong>Returns:</strong> True if the mailing is successfully archived.</p>\n","urlObject":{"protocol":"https","path":["{{account_id}}","mailings",""],"hash":"mailing_id","host":["api","e2ma","net"],"query":[],"variable":[]}},"response":[{"id":"eec6fcca-ee6b-9c85-c7a2-159ad5dffea2","name":"Delete A Mailing","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"Converts to b64 for Authenticating the Emma Public API"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.e2ma.net/{{account_id}}/mailings/200"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"true"}],"_postman_id":"7c6ebd3e-b2e8-31d4-2af2-5e3266b59b42"},{"name":"Delete Pending or Paused Mailing","id":"12279b03-bc10-7fe5-106d-2d9893433573","request":{"method":"DELETE","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"<p>Converts to b64 for Authenticating the Emma Public API</p>\n"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.e2ma.net/{{account_id}}/mailings/cancel/#mailing_id","description":"<p><em>Cancels a mailing that has a current status of pending or paused</em></p>\n<p><strong>Returns:</strong> True if mailing marked as cancelled.</p>\n<p><strong>Raises:</strong> <code>HTTP404</code> for all other statuses</p>\n","urlObject":{"protocol":"https","path":["{{account_id}}","mailings","cancel",""],"hash":"mailing_id","host":["api","e2ma","net"],"query":[],"variable":[]}},"response":[{"id":"28df526b-2c37-401e-229a-c66b7ac97cab","name":"Delete A Pending Mailing","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"Converts to b64 for Authenticating the Emma Public API"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.e2ma.net/{{account_id}}/mailings/cancel/201"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"true"}],"_postman_id":"12279b03-bc10-7fe5-106d-2d9893433573"},{"name":"Forward Mailing","id":"89429adf-33b1-4d65-ba06-f72d0d03cb24","request":{"method":"POST","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"<p>Converts to b64 for Authenticating the Emma Public API</p>\n"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.e2ma.net/{{account_id}}/forwards/#mailing_id/#member_id","description":"<p><em>Forward a previous message to additional recipients. If these recipients are not already in the audience, they will be added with a status of <code>FORWARDED</code>.</em></p>\n<p><strong>Parameters:</strong></p>\n<ul>\n<li><strong>recipient_emails</strong> (<em>array</em>) – An array of email addresses to which to forward the specified message.</li>\n<li><strong>note</strong> (<em>string</em>) – A note to include in the forward. This note will be HTML encoded and is limited to 500 characters.</li>\n</ul>\n<p><strong>Returns:</strong> A reference to the new mailing.</p>\n<p><strong>Raises:</strong> <code>Http404</code> if no message is found.</p>\n","urlObject":{"protocol":"https","path":["{{account_id}}","forwards",""],"hash":"mailing_id/#member_id","host":["api","e2ma","net"],"query":[],"variable":[]}},"response":[{"id":"a8a874ca-2ea7-d47a-5c9e-1a29f7cb627d","name":"Forward A Mailing","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"Converts to b64 for Authenticating the Emma Public API"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"recipient_emails\": [\n    \"alex@myemma.com\", \n    \"chris@myemma.com\"\n  ]\n}"},"url":"https://api.e2ma.net/{{account_id}}/forwards/200/200"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"{\n  \"mailing_id\": 1024\n}"}],"_postman_id":"89429adf-33b1-4d65-ba06-f72d0d03cb24"},{"name":"Send Prior Mailing To New Members","id":"6185c3fc-62b1-4457-f90f-5be7d9d16621","request":{"method":"POST","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"<p>Converts to b64 for Authenticating the Emma Public API</p>\n"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.e2ma.net/{{account_id}}/mailings/#mailing_id","description":"<p><em>Send a prior mailing to additional recipients. A new mailing will be created that inherits its content from the original.</em></p>\n<p><strong>Parameters:</strong></p>\n<ul>\n<li><strong>sender</strong> (<em>string</em>) – The message sender. If this is not supplied, the sender of the original mailing will be used.</li>\n<li><strong>heads_up_emails</strong> (<em>array</em>) – A list of email addresses that heads up notification emails will be sent to.</li>\n<li><strong>recipient_emails</strong> (<em>array</em>) – An array of email addresses to which the new mailing should be sent.</li>\n<li><strong>recipient_groups</strong> (<em>array</em>) – An array of member groups to which the new mailing should be sent.</li>\n<li><strong>recipient_searches</strong> (<em>array</em>) – A list of searches that this mailing should be sent to.</li>\n</ul>\n<p><strong>Returns:</strong> A reference to the new mailing.</p>\n<p><strong>Raises:</strong> <code>Http404</code> if no mailing is found.</p>\n","urlObject":{"protocol":"https","path":["{{account_id}}","mailings",""],"hash":"mailing_id","host":["api","e2ma","net"],"query":[],"variable":[]}},"response":[{"id":"12260108-91c9-05d3-2fe1-71da5e307c84","name":"Send Prior Mailing To New Members","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"Converts to b64 for Authenticating the Emma Public API"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"recipient_emails\": [\n    \"michelle@myemma.com\"\n  ]\n}"},"url":"https://api.e2ma.net/{{account_id}}/mailings/#mailing_id"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"{\n  \"mailing_id\": 1024\n}"}],"_postman_id":"6185c3fc-62b1-4457-f90f-5be7d9d16621"},{"name":"Get Heads-Up Email Adresses For Mailing","id":"5861c5ba-fdc6-84d3-790b-e02dd4d6513f","request":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"<p>Converts to b64 for Authenticating the Emma Public API</p>\n"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.e2ma.net/{{account_id}}/mailings/#mailing_id/headsup","description":"<p><em>Get heads up email address(es) related to a mailing.</em></p>\n<p><strong>Returns:</strong> An array of heads up email addresses.</p>\n<p><strong>Raises:</strong>  <code>Http404</code> if no mailing is found.</p>\n","urlObject":{"protocol":"https","path":["{{account_id}}","mailings",""],"hash":"mailing_id/headsup","host":["api","e2ma","net"],"query":[],"variable":[]}},"response":[{"id":"d19fd1c3-dad0-13f3-e394-e714e4ba3af7","name":"Get Heads-Up Emails For A Mailing","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"Converts to b64 for Authenticating the Emma Public API"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.e2ma.net/{{account_id}}/mailings/200/headsup"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"[]"}],"_postman_id":"5861c5ba-fdc6-84d3-790b-e02dd4d6513f"},{"name":"Validate Mailing Personalization","id":"51402fdd-64ea-e062-7846-1668c0a3f006","request":{"method":"POST","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"<p>Converts to b64 for Authenticating the Emma Public API</p>\n"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.e2ma.net/{{account_id}}/mailings/validate","description":"<p><em>Validate that a mailing has valid personalization-tag syntax. Checks tag syntax in three params:</em></p>\n<p><strong>Parameters:</strong></p>\n<ul>\n<li><strong>html_body</strong> (<em>string</em>) – The html contents of the mailing</li>\n<li><strong>plaintext</strong> (<em>string</em>) – The plaintext contents of the mailing. Unlike in <code>create_mailing</code>, this param is not required.</li>\n<li><strong>subject</strong> (<em>string</em>) – The subject of the mailing</li>\n</ul>\n<p><strong>Returns:</strong> true</p>\n<p><strong>Raises:</strong> <code>Http400</code> if any tags are invalid. The response body will have information about the invalid tags.</p>\n","urlObject":{"protocol":"https","path":["{{account_id}}","mailings","validate"],"host":["api","e2ma","net"],"query":[],"variable":[]}},"response":[{"id":"7dcd3db9-165a-bd8f-e49d-c0bfc2ee4626","name":"Validate Personalization","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"Converts to b64 for Authenticating the Emma Public API"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"subject\": \"Another Fine Test\"\n}"},"url":"https://api.e2ma.net/{{account_id}}/mailings/validate"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"true"}],"_postman_id":"51402fdd-64ea-e062-7846-1668c0a3f006"},{"name":"Declare Split Test Winner","id":"404c182d-c27c-f87c-8331-bb8114e96069","request":{"method":"POST","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"<p>Converts to b64 for Authenticating the Emma Public API</p>\n"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.e2ma.net/{{account_id}}/mailings/#mailing_id/winner/#winner_id","description":"<p><em>Declare the winner of a split test manually. In the event that the test duration has not elapsed, the current stats for each test will be frozen and the content defined in the user declared winner will sent to the remaining members for the mailing. Please note, any messages that are pending for each of the test variations will receive the content assigned to them when the test was initially constructed.</em></p>\n<p><strong>Returns:</strong> True on sucess.</p>\n<p><strong>Raises:</strong> <code>Http403</code> if the winner cannot be manually declared.</p>\n","urlObject":{"protocol":"https","path":["{{account_id}}","mailings",""],"hash":"mailing_id/winner/#winner_id","host":["api","e2ma","net"],"query":[],"variable":[]}},"response":[{"id":"dbc769b3-14b3-75f0-92a5-8ea813c5b41f","name":"Declare Winner","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"Converts to b64 for Authenticating the Emma Public API"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{}"},"url":"https://api.e2ma.net/{{account_id}}/mailings/202/winner/203"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"true"}],"_postman_id":"404c182d-c27c-f87c-8331-bb8114e96069"}],"id":"f3c5715d-c8f6-40bc-5bad-e0697d22709a","description":"<p>With these endpoints, you can get information about your mailings including their HTML contents. You can retrieve the members to whom the mailing was sent. You can also pause mailings and cancel mailings that are pending or paused.</p>\n","_postman_id":"f3c5715d-c8f6-40bc-5bad-e0697d22709a"},{"name":"Members","item":[{"name":"Get Members","id":"5690f19b-a95f-1c49-8dbf-73ed4e141920","request":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"<p>Converts to b64 for Authenticating the Emma Public API</p>\n"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.e2ma.net/{{account_id}}/members","description":"<p><em>Get a basic listing of all members in an account.</em></p>\n<p><strong>Parameters:</strong></p>\n<ul>\n<li><strong>deleted</strong> (<em>boolean</em>) – Accepts True or 1. Optional flag to include deleted members.</li>\n</ul>\n<p><strong>Returns:</strong> A list of members in the given account.</p>\n","urlObject":{"protocol":"https","path":["{{account_id}}","members"],"host":["api","e2ma","net"],"query":[],"variable":[]}},"response":[{"id":"89e5fcb9-4c31-e29e-816b-b399fa432dc9","name":"Include Deleted Members?start=2&end=4&deleted=true","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"Converts to b64 for Authenticating the Emma Public API"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.e2ma.net/{{account_id}}/members"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"[\n  {\n    \"status\": \"active\",\n    \"confirmed_opt_in\": null,\n    \"account_id\": 100,\n    \"fields\": {\n      \"first_name\": \"Tony\",\n      \"last_name\": \"Brown\",\n      \"favorite_food\": \"pizza\"\n    },\n    \"member_id\": 202,\n    \"last_modified_at\": null,\n    \"member_status_id\": \"a\",\n    \"plaintext_preferred\": false,\n    \"email_error\": null,\n    \"member_since\": \"@D:2010-11-12T09:12:33\",\n    \"bounce_count\": 0,\n    \"deleted_at\": null,\n    \"email\": \"tony@myemma.com\"\n  },\n  {\n    \"status\": \"active\",\n    \"confirmed_opt_in\": null,\n    \"account_id\": 100,\n    \"fields\": {\n\n    },\n    \"member_id\": 203,\n    \"last_modified_at\": null,\n    \"member_status_id\": \"a\",\n    \"plaintext_preferred\": false,\n    \"email_error\": null,\n    \"member_since\": \"@D:2011-01-01T00:00:00\",\n    \"bounce_count\": 0,\n    \"deleted_at\": \"@D:2011-01-02T10:27:43\",\n    \"email\": \"greg@myemma.com\"\n  }\n]\n"},{"id":"bf9f5247-ab2b-98a9-c8d1-3c653e1cd419","name":"Get Members 0-2","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"Converts to b64 for Authenticating the Emma Public API"}],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"https://api.e2ma.net/{{account_id}}/members?start=0&end=2","protocol":"https","host":["api","e2ma","net"],"path":["{{account_id}}","members"],"query":[{"key":"start","value":"0"},{"key":"end","value":"2"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"[\n  {\n    \"status\": \"active\",\n    \"confirmed_opt_in\": null,\n    \"account_id\": 100,\n    \"fields\": {\n      \"first_name\": \"Emma\",\n      \"last_name\": \"Smith\",\n      \"favorite_food\": \"tacos\"\n    },\n    \"member_id\": 200,\n    \"last_modified_at\": null,\n    \"member_status_id\": \"a\",\n    \"plaintext_preferred\": false,\n    \"email_error\": null,\n    \"member_since\": \"@D:2010-11-12T11:23:45\",\n    \"bounce_count\": 0,\n    \"deleted_at\": null,\n    \"email\": \"emma@myemma.com\"\n  },\n  {\n    \"status\": \"opt-out\",\n    \"confirmed_opt_in\": null,\n    \"account_id\": 100,\n    \"fields\": {\n      \"first_name\": \"Gladys\",\n      \"last_name\": \"Jones\",\n      \"favorite_food\": \"toast\"\n    },\n    \"member_id\": 201,\n    \"last_modified_at\": null,\n    \"member_status_id\": \"o\",\n    \"plaintext_preferred\": false,\n    \"email_error\": null,\n    \"member_since\": \"@D:2011-01-03T15:54:13\",\n    \"bounce_count\": 0,\n    \"deleted_at\": null,\n    \"email\": \"gladys@myemma.com\"\n  }\n]\n"}],"_postman_id":"5690f19b-a95f-1c49-8dbf-73ed4e141920"},{"name":"Get Member By Id","id":"06206aea-fd7c-8574-03bd-504ea5047fab","request":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"<p>Converts to b64 for Authenticating the Emma Public API</p>\n"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.e2ma.net/{{account_id}}/members/#member_id","description":"<p><em>Get detailed information on a particular member, including all custom fields.</em></p>\n<p><strong>Parameters:</strong></p>\n<ul>\n<li><strong>deleted</strong> (<em>boolean</em>) – Accepts True or 1. Optional flag to include deleted members.</li>\n</ul>\n<p><strong>Returns:</strong> A single member if one exists.</p>\n<p><strong>Raises:</strong> <code>Http404</code> if no member is found.</p>\n","urlObject":{"protocol":"https","path":["{{account_id}}","members",""],"hash":"member_id","host":["api","e2ma","net"],"query":[],"variable":[]}},"response":[{"id":"14d3ce15-aa20-3547-fbbf-afd7b77ed8c1","name":"Get A Single Member","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"Converts to b64 for Authenticating the Emma Public API"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.e2ma.net/{{account_id}}/members/201"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"{\n  \"status\": \"opt-out\",\n  \"confirmed_opt_in\": null,\n  \"account_id\": 100,\n  \"fields\": {\n    \"first_name\": \"Gladys\",\n    \"last_name\": \"Jones\",\n    \"favorite_food\": \"toast\"\n  },\n  \"member_id\": 201,\n  \"last_modified_at\": null,\n  \"member_status_id\": \"o\",\n  \"plaintext_preferred\": false,\n  \"email_error\": null,\n  \"member_since\": \"@D:2011-01-03T15:54:13\",\n  \"bounce_count\": 0,\n  \"deleted_at\": null,\n  \"email\": \"gladys@myemma.com\"\n}"},{"id":"de56c434-2930-92ad-5b6c-861a23e08370","name":"Sample Repsonse","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"Converts to b64 for Authenticating the Emma Public API"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.e2ma.net/{{account_id}}/members/201"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"{\n  \"status\": \"opt-out\",\n  \"confirmed_opt_in\": null,\n  \"account_id\": 100,\n  \"fields\": {\n    \"first_name\": \"Gladys\",\n    \"last_name\": \"Jones\",\n    \"favorite_food\": \"toast\"\n  },\n  \"member_id\": 201,\n  \"last_modified_at\": null,\n  \"member_status_id\": \"o\",\n  \"plaintext_preferred\": false,\n  \"email_error\": null,\n  \"member_since\": \"@D:2011-01-03T15:54:13\",\n  \"bounce_count\": 0,\n  \"deleted_at\": null,\n  \"email\": \"gladys@myemma.com\"\n}"}],"_postman_id":"06206aea-fd7c-8574-03bd-504ea5047fab"},{"name":"Get Member By Id copy","id":"3a352ebe-e882-eb1c-c76c-9503ff891f70","request":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"<p>Converts to b64 for Authenticating the Emma Public API</p>\n"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.e2ma.net/{{account_id}}/members/email/#email","description":"<p><em>Get detailed information on a particular member, including all custom fields, by email address instead of ID.</em></p>\n<p><strong>Parameters:</strong></p>\n<ul>\n<li><strong>deleted</strong> (<em>boolean</em>) – Accepts True or 1. Optional flag to include deleted members.</li>\n</ul>\n<p><strong>Returns:</strong> A single member if one exists.</p>\n<p><strong>Raises:</strong> <code>Http404</code> if no member is found.</p>\n","urlObject":{"protocol":"https","path":["{{account_id}}","members","email",""],"hash":"email","host":["api","e2ma","net"],"query":[],"variable":[]}},"response":[{"id":"69f2a698-8982-5af8-7760-be8e21ba18f1","name":"Get A Member By Email","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"Converts to b64 for Authenticating the Emma Public API"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.e2ma.net/{{account_id}}/members/email/tony@myemma.com"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"{\n    \"status\": \"active\",\n    \"confirmed_opt_in\": null,\n    \"account_id\": 100,\n    \"fields\": {\n        \"first_name\": \"Tony\",\n        \"last_name\": \"Brown\",\n        \"favorite_food\": \"pizza\"\n    },\n    \"member_id\": 202,\n    \"last_modified_at\": null,\n    \"member_status_id\": \"a\",\n    \"plaintext_preferred\": false,\n    \"email_error\": null,\n    \"member_since\": \"@D:2010-11-12T09:12:33\",\n    \"bounce_count\": 0,\n    \"deleted_at\": null,\n    \"email\": \"tony@myemma.com\"\n}"}],"_postman_id":"3a352ebe-e882-eb1c-c76c-9503ff891f70"},{"name":"Get Member Optout Details","id":"55031c1c-b3ed-ce92-23b2-bbab3abeea9a","request":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"<p>Converts to b64 for Authenticating the Emma Public API</p>\n"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.e2ma.net/{{account_id}}/members/#member_id/optout","description":"<p><em>If a member has been opted out, returns the details of their optout, specifically <code>date</code> and <code>mailing_id</code>.</em></p>\n<p><strong>Returns:</strong> Member opt out date and mailing if member is opted out.</p>\n<p><strong>Raises:</strong> <code>Http4041</code> if no member is found.</p>\n","urlObject":{"protocol":"https","path":["{{account_id}}","members",""],"hash":"member_id/optout","host":["api","e2ma","net"],"query":[],"variable":[]}},"response":[{"id":"2d93612f-5f84-f366-049b-94ccfba51e46","name":"Get A Member's Optout Details","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"Converts to b64 for Authenticating the Emma Public API"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.e2ma.net/{{account_id}}/members/201/optout"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"[\n  {\n    \"timestamp\": \"@D:2014-11-18T22:58:15\",\n    \"mailing_id\": 1234567\n  }\n]\n"}],"_postman_id":"55031c1c-b3ed-ce92-23b2-bbab3abeea9a"},{"name":"Optout Member By Email","id":"bc31734b-f05a-7458-a1a2-b45794626461","request":{"method":"PUT","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"<p>Converts to b64 for Authenticating the Emma Public API</p>\n"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{}"},"url":"https://api.e2ma.net/{{account_id}}/members/email/optout/#email","description":"<p><em>Update a member’s status to optout keyed on email address instead of an ID.</em></p>\n<p><strong>Returns:</strong> True if member status change was successful or member was already opted out.</p>\n<p><strong>Raises:</strong> <code>Http404</code> if no member is found.</p>\n","urlObject":{"protocol":"https","path":["{{account_id}}","members","email","optout",""],"hash":"email","host":["api","e2ma","net"],"query":[],"variable":[]}},"response":[{"id":"13b85148-5072-7ba5-7037-996ee43a0da7","name":"Optout A Member By Email","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"Converts to b64 for Authenticating the Emma Public API"},{"key":"Content-Type","value":"application/javascript"}],"body":{"mode":"raw","raw":"{}"},"url":"https://api.e2ma.net/{{account_id}}/members/email/optout/#email"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"true"}],"_postman_id":"bc31734b-f05a-7458-a1a2-b45794626461"},{"name":"Add/Update Members In Bulk","id":"5278f208-ff2c-bdee-56dd-bdbed44dcdae","request":{"method":"POST","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"<p>Converts to b64 for Authenticating the Emma Public API</p>\n"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"members\": [\n    {\n      \"email\": \"michelle@myemma.com\"\n    },\n    {\n      \"email\": \"nathan@myemma.com\"\n    }\n  ]\n}"},"url":"https://api.e2ma.net/{{account_id}}/members","description":"<p><em>Add new members or update existing members in bulk. If you are doing actions for a single member please see the <code>/members/add</code> call below.</em></p>\n<p><strong>Parameters:</strong></p>\n<ul>\n<li><strong>members</strong> (<em>array</em>) – An array of members to update a member is a dictionary of member emails and field values to import. The only required field is <code>email</code>. All other fields are treated as the name of a member field.</li>\n<li>*<em>automate_field_changes</em> (<em>boolean</em>) – Accepts True or False. Optional. When set to True, updates made by this call will trigger field change workflows when appropriate. For more information on field change automation, visit our <a href=\"http://support.e2ma.net/Resource_Center/Guide_to_Automation/Trigger_events%3A_field_change\">Resource Center</a>.</li>\n<li><strong>source_filename</strong> (<em>string</em>) – An arbitrary string to associate with this import. This should generally be set to the filename that the user uploaded.</li>\n<li><strong>add_only</strong> (<em>boolean</em>) – Optional. Only add new members, ignore existing members.</li>\n<li><strong>group_ids</strong> (<em>array of integers</em>) – Optional. Add imported members to this list of groups.</li>\n</ul>\n<p><strong>Returns:</strong> An import id.</p>\n","urlObject":{"protocol":"https","path":["{{account_id}}","members"],"host":["api","e2ma","net"],"query":[],"variable":[]}},"response":[{"id":"d166cae4-7848-bde4-8a88-c156006d08fa","name":"Add Multiple Members","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"Converts to b64 for Authenticating the Emma Public API"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"members\": [\n    {\n      \"email\": \"michelle@myemma.com\"\n    },\n    {\n      \"email\": \"nathan@myemma.com\"\n    }\n  ]\n}"},"url":"https://api.e2ma.net/{{account_id}}/members"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"{\n  \"import_id\": 1024\n}"}],"_postman_id":"5278f208-ff2c-bdee-56dd-bdbed44dcdae"},{"name":"Add Member","id":"4a1ef7a2-4dbd-989e-f10a-33c4bbd360cb","request":{"method":"POST","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"<p>Converts to b64 for Authenticating the Emma Public API</p>\n"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"fields\": {\n    \"first_name\": \"Benjamin\"\n  },\n  \"email\": \"benjamin@myemma.com\"\n}"},"url":"https://api.e2ma.net/{{account_id}}/members/add","description":"<p><em>Adds or updates a single audience member. If you are performing actions on bulk members please use the <code>/members</code> call above.</em></p>\n<p>Note: Members who are added to your audience using this API call will\nnot appear in <code>recent activity</code> searches within your account.</p>\n<p>Note: If you are using Signup trigger events in Automation, please see this <a href=\"https://support.e2ma.net/Resource_Center/Guide_to_Automation/Trigger_events%3A_signup\">guide</a> for\nmore information on how this API call affects those trigger events.</p>\n<p><strong>Parameters:</strong></p>\n<ul>\n<li><strong>email</strong> (<em>string</em>) – Email address of member to add or update</li>\n<li><strong>fields</strong> (<em>dictionary</em>) – Names and values of user-defined fields to update</li>\n<li><strong>group_ids</strong> (<em>array of integers</em>) – Optional. Add imported members to this list of groups.</li>\n<li><strong>field_triggers</strong> (<em>boolean</em>) – Optional. Fires related field change autoresponders when set to true.</li>\n</ul>\n<p><strong>Returns:</strong> The <code>member_id</code> of the new or updated member, whether the member was added or an existing member was updated, and the status of the member. The status will be reported as <code>a</code> (<em>active</em>), <code>e</code> (<em>error</em>), or <code>o</code> (<em>optout</em>).</p>\n","urlObject":{"protocol":"https","path":["{{account_id}}","members","add"],"host":["api","e2ma","net"],"query":[],"variable":[]}},"response":[{"id":"f703ffaf-c3cf-99d3-0122-4fdcdd79a77c","name":"Add A Single Member","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"Converts to b64 for Authenticating the Emma Public API"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"fields\": {\n    \"first_name\": \"Benjamin\"\n  },\n  \"email\": \"benjamin@myemma.com\"\n}"},"url":"https://api.e2ma.net/{{account_id}}/members/add"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"{\n  \"status\": \"a\",\n  \"added\": true,\n  \"member_id\": 1024\n}"}],"_postman_id":"4a1ef7a2-4dbd-989e-f10a-33c4bbd360cb"},{"name":"Signup Member","id":"5e90fbd6-efe7-5788-de5e-7961f3732a3a","request":{"method":"POST","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"<p>Converts to b64 for Authenticating the Emma Public API</p>\n"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"fields\": {\n    \"first_name\": \"Ryan\"\n  },\n  \"group_ids\": [\n    \"1\",\n    \"2\"\n  ],\n  \"email\": \"example@myemma.com\",\n  \"signup_form_id\": 1,\n  \"opt_in_confirmation\": true\n}"},"url":"https://api.e2ma.net/{{account_id}}/members/signup","description":"<p><em>Takes the necessary actions to signup a member and enlist them in the provided group ids. You can send the same member multiple times and pass in new group ids to signup.</em></p>\n<p>This process triggers the opt-out workflow, and will send a mailing to the member on new group enlistments. If no new group ids are provided for an existing member, the endpoint will respond back with their <code>status</code> and <code>member_id</code>, performing no additional actions.</p>\n<p>Note: Members who are added to your audience using this API call will not appear in <code>recent activity</code> searches within your account.</p>\n<p>Note: If you are using Signup trigger events in Automation, please see this <a href=\"https://support.e2ma.net/Resource_Center/Guide_to_Automation/Trigger_events%3A_signup\">guide</a> for more information on how this API call affects those trigger events.</p>\n<p>Parameters:  </p>\n<ul>\n<li><strong>email</strong> (<em>string</em>) – Email address of the member to sign-up.</li>\n<li><strong>group_ids</strong> (<em>Array of strings (group_ids)</em>) – An array of group ids to associate sign-up with.</li>\n<li><strong>fields</strong> (<em>dictionary</em>) – Optional. Names and values of user-defined fields to update.</li>\n<li><strong>signup_form_id</strong> (<em>integer</em>) – Optional. Indicate that this member used a particular signup form. This is important if you have custom mailings for a particular signup form and so that signup-based triggers will be fired.</li>\n<li><strong>opt_in_subject</strong> (<em>string</em>) – Optional. Override the confirmation message subject with your own copy.</li>\n<li><strong>opt_in_message</strong> (<em>string</em>) – Optional. Override the confirmation message body with your own copy. Must include the following tags: <code>[rsvp_name], [rsvp_email], [opt_in_url], [opt_out_url]</code>.</li>\n<li><strong>field_triggers</strong> (<em>boolean</em>) – Optional. Fires related field change autoresponders when set to <em>true</em>.</li>\n<li><strong>opt_in_confirmation</strong> (<em>boolean</em>) – Optional. Sends the default plaintext confirmation email when set to <em>true</em>. NOTE: Confirmation email will be sent by default if this parameter is left out.</li>\n</ul>\n<p><strong>Returns:</strong> The <code>member_id</code> of the new or updated member, whether the member was added or an existing member was updated, and the status of the member. The status will be reported as <code>a</code> (<em>active</em>), <code>e</code> (<em>error</em>), or <code>o</code> (<em>optout</em>).</p>\n","urlObject":{"protocol":"https","path":["{{account_id}}","members","signup"],"host":["api","e2ma","net"],"query":[],"variable":[]}},"response":[{"id":"5978e664-a2e8-b843-577e-646b23f10ba7","name":"Signup A Member To Multiple Group","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"Converts to b64 for Authenticating the Emma Public API"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"fields\": {\n    \"first_name\": \"Ryan\"\n  },\n  \"group_ids\": [\n    \"1\",\n    \"2\"\n  ],\n  \"email\": \"example@myemma.com\",\n  \"signup_form_id\": 1,\n  \"opt_in_confirmation\": true\n}"},"url":"https://api.e2ma.net/{{account_id}}/members/signup"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"{\n  \"status\": \"a\",\n  \"member_id\": 1024\n}"}],"_postman_id":"5e90fbd6-efe7-5788-de5e-7961f3732a3a"},{"name":"Delete Members","id":"719be006-8ea7-def4-9e7d-c934a62bb8f8","request":{"method":"PUT","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"<p>Converts to b64 for Authenticating the Emma Public API</p>\n"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"member_ids\": [\n    100,\n    101\n  ]\n}"},"url":"https://api.e2ma.net/{{account_id}}/members/delete","description":"<p><em>Delete an array of members.</em></p>\n<p>The members will be marked as deleted and cannot be retrieved.</p>\n<p><strong>Parameters:</strong> </p>\n<ul>\n<li><strong>member_ids</strong> (<em>array</em>) – An array of member ids to delete.</li>\n</ul>\n<p><strong>Returns:</strong> True if all members are successfully deleted, otherwise False.</p>\n","urlObject":{"protocol":"https","path":["{{account_id}}","members","delete"],"host":["api","e2ma","net"],"query":[],"variable":[]}},"response":[{"id":"ce293059-9127-2264-492d-60bc40013140","name":"Delete Multiple Members","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"Converts to b64 for Authenticating the Emma Public API"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"member_ids\": [\n    100,\n    101\n  ]\n}"},"url":"https://api.e2ma.net/{{account_id}}/members/delete"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"true"}],"_postman_id":"719be006-8ea7-def4-9e7d-c934a62bb8f8"},{"name":"Change Member Status","id":"08f890d5-37a6-7f11-15a4-91f5c408f559","request":{"method":"PUT","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"<p>Converts to b64 for Authenticating the Emma Public API</p>\n"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"member_ids\": [\n    200,\n    202\n  ],\n  \"status_to\": \"e\"\n}"},"url":"https://api.e2ma.net/{{account_id}}/members/status","description":"<p><em>Change the status for an array of members.</em></p>\n<p>The members will have their <code>member_status_id</code> updated.</p>\n<p><strong>Parameters:</strong></p>\n<ul>\n<li><strong>member_ids</strong> (<em>array</em>) – The array of member ids to change.</li>\n<li><strong>status_to</strong> (<em>string</em>) – The new status for the given members. Accepts one of:<ul>\n<li><code>a</code> (<em>active</em>)</li>\n<li><code>e</code> (<em>error</em>)</li>\n<li><code>o</code> (<em>optout</em>)</li>\n</ul>\n</li>\n</ul>\n<p><strong>Returns:</strong> True if the members are successfully updated, otherwise False.</p>\n","urlObject":{"protocol":"https","path":["{{account_id}}","members","status"],"host":["api","e2ma","net"],"query":[],"variable":[]}},"response":[{"id":"99aa20e4-534d-860b-e9e1-56da0af3fe0b","name":"Change Multiple Member Statuses","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"Converts to b64 for Authenticating the Emma Public API"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"member_ids\": [\n    200,\n    202\n  ],\n  \"status_to\": \"e\"\n}"},"url":"https://api.e2ma.net/{{account_id}}/members/status"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"true"}],"_postman_id":"08f890d5-37a6-7f11-15a4-91f5c408f559"},{"name":"Update Member","id":"076f6b78-cb38-7e0b-eb84-5f52d9ee54a2","request":{"method":"PUT","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"<p>Converts to b64 for Authenticating the Emma Public API</p>\n"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"fields\": {\n    \"first_name\": \"Ella\",\n    \"last_name\": \"Jones\"\n  },\n  \"email\": \"ella@myemma.com\",\n  \"status_to\": \"a\"\n}"},"url":"https://api.e2ma.net/{{account_id}}/members/#member_id","description":"<p><em>Update a single member’s information.</em></p>\n<p>Update the information for an existing member (even if they are marked as deleted). Note that this method allows the email address to be updated (which cannot be done with a POST, since in that case the email address is used to identify the member).</p>\n<p><strong>Parameters:</strong></p>\n<ul>\n<li><strong>email</strong> (<em>string</em>) – A new email address for the member.</li>\n<li><strong>status_to</strong> (<em>string</em>) – A new status for the member. Accepts one of:<ul>\n<li><code>a</code> (<em>active</em>)</li>\n<li><code>e</code> (<em>error</em>)</li>\n<li><code>o</code> (<em>opt-out</em>).</li>\n</ul>\n</li>\n<li><strong>fields</strong> (<em>array</em>) – An array of fields with associated values for this member.</li>\n<li><strong>field_triggers</strong> (<em>boolean</em>) – Optional. Fires related field change autoresponders when set to <code>true</code>.</li>\n</ul>\n<p><strong>Returns:</strong> True if the member was updated successfully</p>\n<p><strong>Raises:</strong> <code>Http404</code> if no member is found.</p>\n","urlObject":{"protocol":"https","path":["{{account_id}}","members",""],"hash":"member_id","host":["api","e2ma","net"],"query":[],"variable":[]}},"response":[{"id":"d5985bfd-9175-2afa-c640-6cff52ae66ea","name":"Update Member Details","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"Converts to b64 for Authenticating the Emma Public API"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"fields\": {\n    \"first_name\": \"Ella\",\n    \"last_name\": \"Jones\"\n  },\n  \"email\": \"ella@myemma.com\",\n  \"status_to\": \"a\"\n}"},"url":"https://api.e2ma.net/{{account_id}}/members/200"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"true"}],"_postman_id":"076f6b78-cb38-7e0b-eb84-5f52d9ee54a2"},{"name":"Delete Member By Id","id":"cf5d71cf-4b49-c0e9-2104-65969ff33a65","request":{"method":"DELETE","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"<p>Converts to b64 for Authenticating the Emma Public API</p>\n"}],"body":{"mode":"raw","raw":""},"url":"https://api.e2ma.net/{{account_id}}/members/#member_id","description":"<p><em>Delete the specified member.</em></p>\n<p>The member, along with any associated response and history information, will be completely removed from the database.</p>\n<p><strong>Returns:</strong> True if the member is deleted.</p>\n<p><strong>Raises:</strong> <code>Http404</code> if no member is found.</p>\n","urlObject":{"protocol":"https","path":["{{account_id}}","members",""],"hash":"member_id","host":["api","e2ma","net"],"query":[],"variable":[]}},"response":[{"id":"c47a5bd0-5883-ba2e-87e3-8fabdd990a31","name":"Delete A Specific Member","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"Converts to b64 for Authenticating the Emma Public API"}],"body":{"mode":"raw","raw":""},"url":"https://api.e2ma.net/{{account_id}}/members/201"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"true"}],"_postman_id":"cf5d71cf-4b49-c0e9-2104-65969ff33a65"},{"name":"Get Member Groups","id":"ed41c1b1-7745-ee3f-ce46-6907589a6249","request":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"<p>Converts to b64 for Authenticating the Emma Public API</p>\n"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.e2ma.net/{{account_id}}/members/#member_id/groups","description":"<p>*Get the groups to which a member belongs.</p>\n<p><strong>Returns:</strong> An array of groups.</p>\n<p><strong>Raises:</strong> <code>Http404</code> if no member is found.</p>\n","urlObject":{"protocol":"https","path":["{{account_id}}","members",""],"hash":"member_id/groups","host":["api","e2ma","net"],"query":[],"variable":[]}},"response":[{"id":"8a2d3df7-7896-2f9c-515e-9ca7a68f678a","name":"Get A Member's Groups","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"Converts to b64 for Authenticating the Emma Public API"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.e2ma.net/{{account_id}}/members/200/groups"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"[\n  {\n    \"active_count\": 1,\n    \"deleted_at\": null,\n    \"error_count\": 0,\n    \"optout_count\": 1,\n    \"group_type\": \"g\",\n    \"member_group_id\": 150,\n    \"purged_at\": null,\n    \"account_id\": 100,\n    \"group_name\": \"Monthly Newsletter\"\n  },\n  {\n    \"active_count\": 2,\n    \"deleted_at\": null,\n    \"error_count\": 0,\n    \"optout_count\": 0,\n    \"group_type\": \"g\",\n    \"member_group_id\": 151,\n    \"purged_at\": null,\n    \"account_id\": 100,\n    \"group_name\": \"Widget Buyers\"\n  },\n  {\n    \"active_count\": 4,\n    \"deleted_at\": null,\n    \"error_count\": 0,\n    \"optout_count\": 0,\n    \"group_type\": \"g\",\n    \"member_group_id\": 152,\n    \"purged_at\": null,\n    \"account_id\": 100,\n    \"group_name\": \"Special Events\"\n  }\n]"}],"_postman_id":"ed41c1b1-7745-ee3f-ce46-6907589a6249"},{"name":"Add Member To Groups","id":"9bdad471-4dd1-8bc2-9156-e0656774eab9","request":{"method":"PUT","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"<p>Converts to b64 for Authenticating the Emma Public API</p>\n"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"group_ids\": [\n    150,\n    151\n  ]\n}"},"url":"https://api.e2ma.net/{{account_id}}/members/#member_id/groups","description":"<p><em>Add a single member to one or more groups.</em></p>\n<p><strong>Parameters:</strong></p>\n<ul>\n<li><strong>group_ids</strong> (<em>array</em>) – Group ids to which to add this member.</li>\n</ul>\n<p><strong>Returns:</strong> An array of ids of the affected groups.</p>\n<p><strong>Raises:</strong> <code>Http404</code> if no member is found.</p>\n","urlObject":{"protocol":"https","path":["{{account_id}}","members",""],"hash":"member_id/groups","host":["api","e2ma","net"],"query":[],"variable":[]}},"response":[{"id":"90e14486-aa5b-0973-16ee-086c34feef86","name":"Add A Member To Multiple Groups","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"Converts to b64 for Authenticating the Emma Public API"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"group_ids\": [\n    150,\n    151\n  ]\n}"},"url":"https://api.e2ma.net/{{account_id}}/members/200/groups"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"[\n  150,\n  151\n]"}],"_postman_id":"9bdad471-4dd1-8bc2-9156-e0656774eab9"},{"name":"Remove Member From Groups","id":"20067be2-5112-1aea-a5bd-39f62b9138a3","request":{"method":"PUT","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"<p>Converts to b64 for Authenticating the Emma Public API</p>\n"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"group_ids\": [\n    151\n  ]\n}"},"url":"https://api.e2ma.net/{{account_id}}/members/#member_id/groups/remove","description":"<p><em>Remove a single member from one or more groups.</em></p>\n<p><strong>Parameters:</strong></p>\n<ul>\n<li><strong>group_ids</strong> (<em>array</em>) – Group ids to which to add this member.</li>\n</ul>\n<p><strong>Returns:</strong> An array of ids of the affected groups.</p>\n<p><strong>Raises:</strong> <code>Http404</code> if no member is found.</p>\n","urlObject":{"protocol":"https","path":["{{account_id}}","members",""],"hash":"member_id/groups/remove","host":["api","e2ma","net"],"query":[],"variable":[]}},"response":[{"id":"ebb288ec-27e0-b49f-6459-6db584538304","name":"Remove A Member From A Group","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"Converts to b64 for Authenticating the Emma Public API"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"group_ids\": [\n    151\n  ]\n}"},"url":"https://api.e2ma.net/{{account_id}}/members/200/groups/remove"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"[\n  151\n]"}],"_postman_id":"20067be2-5112-1aea-a5bd-39f62b9138a3"},{"name":"Delete  Members","id":"752ff38c-6372-2477-bff4-b686a4ce9a75","request":{"method":"DELETE","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"<p>Converts to b64 for Authenticating the Emma Public API</p>\n"}],"body":{"mode":"raw","raw":""},"url":"https://api.e2ma.net/{{account_id}}/members","description":"<p><em>Delete all members.</em></p>\n<p><strong>Parameters:</strong></p>\n<ul>\n<li><strong>member_status_id</strong> (<em>string</em>) – Valid status ids:<ul>\n<li><code>a</code> (<em>active</em>)</li>\n<li><code>o</code> (<em>optout</em>)</li>\n<li><code>e</code> (<em>error</em>)</li>\n</ul>\n</li>\n</ul>\n<p><strong>Returns:</strong> Returns true.</p>\n","urlObject":{"protocol":"https","path":["{{account_id}}","members"],"host":["api","e2ma","net"],"query":[],"variable":[]}},"response":[{"id":"1bc4d942-67c7-854d-dd90-c7b980cbf0ce","name":"Delete Members With A Status of 'Error'","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"Converts to b64 for Authenticating the Emma Public API"}],"body":{"mode":"raw","raw":""},"url":{"raw":"https://api.e2ma.net/{{account_id}}/members?member_status_id=e","protocol":"https","host":["api","e2ma","net"],"path":["{{account_id}}","members"],"query":[{"key":"member_status_id","value":"e"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"true"}],"_postman_id":"752ff38c-6372-2477-bff4-b686a4ce9a75"},{"name":"Remove Member From All Groups","id":"f1559261-9290-d3e7-75f8-9ee66807c5f1","request":{"method":"DELETE","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"<p>Converts to b64 for Authenticating the Emma Public API</p>\n"}],"body":{"mode":"raw","raw":""},"url":"https://api.e2ma.net/{{account_id}}/members/#member_id/groups","description":"<p><em>Remove the specified member from all groups.</em></p>\n<p><strong>Returns:</strong> True if the member is removed from all groups.</p>\n<p><strong>Raises:</strong> <code>Http404</code> if no member is found.</p>\n","urlObject":{"protocol":"https","path":["{{account_id}}","members",""],"hash":"member_id/groups","host":["api","e2ma","net"],"query":[],"variable":[]}},"response":[{"id":"31cf55ef-48e7-dc3e-71fe-e0a00ea42b58","name":"Remove Member From All Groups","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"Converts to b64 for Authenticating the Emma Public API"}],"body":{"mode":"raw","raw":""},"url":"https://api.e2ma.net/{{account_id}}/members/200/groups"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"true"}],"_postman_id":"f1559261-9290-d3e7-75f8-9ee66807c5f1"},{"name":"Remove Members From Groups","id":"d4680e87-cde8-6035-3dbc-4955cbde3e38","request":{"method":"PUT","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"<p>Converts to b64 for Authenticating the Emma Public API</p>\n"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"group_ids\": [\n    151\n  ],\n  \"member_ids\": [\n    202\n  ]\n}"},"url":"https://api.e2ma.net/{{account_id}}/members/groups/remove","description":"<p><em>Remove multiple members from groups.</em></p>\n<p><strong>Parameters:</strong></p>\n<ul>\n<li><strong>member_ids</strong> (<em>array</em>) – Member ids to remove from the given groups.</li>\n<li><strong>group_ids</strong> (<em>array</em>) – Group ids to which to remove the given members.</li>\n</ul>\n<p><strong>Returns:</strong> True if the members are removed, otherwise False.\n.</p>\n<p><strong>Raises:</strong> <code>Http404</code>  if any of the members or groups do not exist.</p>\n","urlObject":{"protocol":"https","path":["{{account_id}}","members","groups","remove"],"host":["api","e2ma","net"],"query":[],"variable":[]}},"response":[{"id":"f74bbc18-8f69-a9f8-6adc-f268727dba4a","name":"Remove A Member From Multiple Groups","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"Converts to b64 for Authenticating the Emma Public API"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"group_ids\": [\n    151\n  ],\n  \"member_ids\": [\n    202\n  ]\n}"},"url":"https://api.e2ma.net/{{account_id}}/members/groups/remove"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"true"}],"_postman_id":"d4680e87-cde8-6035-3dbc-4955cbde3e38"},{"name":"Get Member Mailing History","id":"cca58d77-30c9-c600-8f27-8b39855b4110","request":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"<p>Converts to b64 for Authenticating the Emma Public API</p>\n"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.e2ma.net/{{account_id}}/members/#member_id","description":"<p><em>Get the entire mailing history for a member.</em></p>\n<p><strong>Returns:</strong> Message history details for the specified member.</p>\n","urlObject":{"protocol":"https","path":["{{account_id}}","members",""],"hash":"member_id","host":["api","e2ma","net"],"query":[],"variable":[]}},"response":[{"id":"d54dc9f7-9a49-36e8-e8ba-13d8e568e18a","name":"Get A Member's Maling History","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"Converts to b64 for Authenticating the Emma Public API"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.e2ma.net/{{account_id}}/members/200/mailings"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"[\n  {\n    \"delivery_type\": \"d\",\n    \"clicked\": \"@D:2011-01-02T11:14:32\",\n    \"opened\": \"@D:2011-01-02T11:13:51\",\n    \"mailing_id\": 200,\n    \"delivery_ts\": \"@D:2011-01-02T10:29:36\",\n    \"name\": \"Sample Mailing\",\n    \"forwarded\": null,\n    \"shared\": null,\n    \"subject\": \"Sample Mailing for [% member:first_name %] [% member:last_name %]\",\n    \"sent\": \"@D:2011-01-02T10:27:43\",\n    \"account_id\": 100\n  }\n]"}],"_postman_id":"cca58d77-30c9-c600-8f27-8b39855b4110"},{"name":"Get Members In Import","id":"334efd73-2913-aee2-1fd8-f1763251805b","request":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"<p>Converts to b64 for Authenticating the Emma Public API</p>\n"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.e2ma.net/{{account_id}}/members/imports/#import_id/members","description":"<p><em>Get a list of members affected by this import.</em></p>\n<p><strong>Returns:</strong> A list of members in the given account and import.</p>\n","urlObject":{"protocol":"https","path":["{{account_id}}","members","imports",""],"hash":"import_id/members","host":["api","e2ma","net"],"query":[],"variable":[]}},"response":[{"id":"1553614b-227a-542c-351f-cad58794056c","name":"Get The Members In An Import","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"Converts to b64 for Authenticating the Emma Public API"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.e2ma.net/{{account_id}}/members/imports/200/members"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"[\n  {\n    \"member_id\": 200,\n    \"change_type\": \"a\",\n    \"member_status_id\": \"a\",\n    \"email\": \"emma@myemma.com\"\n  }\n]\n"}],"_postman_id":"334efd73-2913-aee2-1fd8-f1763251805b"},{"name":"Get Import By Id","id":"dd9fc261-cf90-44d4-5f1b-d4509d2a74c9","request":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"<p>Converts to b64 for Authenticating the Emma Public API</p>\n"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.e2ma.net/{{account_id}}/members/imports/#import_id","description":"<p><em>Get information and statistics about this import.</em></p>\n<p><strong>Returns:</strong> Import details for the given<code>import_id</code>.</p>\n","urlObject":{"protocol":"https","path":["{{account_id}}","members","imports",""],"hash":"import_id","host":["api","e2ma","net"],"query":[],"variable":[]}},"response":[{"id":"4b39beec-488e-0659-cfad-2992aa8f9c48","name":"Get A Single Import","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"Converts to b64 for Authenticating the Emma Public API"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.e2ma.net/{{account_id}}/members/imports/200"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"{\n  \"import_id\": 200,\n  \"status\": \"o\", # for okay (or \"e\" for error)\n  \"style\": null,\n  \"import_started\": \"@D:2010-12-13T23:12:44\",\n  \"account_id\": 100,\n  \"error_message\": null,\n  \"num_members_updated\": 0,\n  \"source_filename\": null,\n  \"fields_updated\": [],\n  \"num_members_added\": 0,\n  \"import_finished\": null,\n  \"groups_updated\": [],\n  \"num_skipped\": 0,\n  \"num_duplicates\": 0\n}\n"}],"_postman_id":"dd9fc261-cf90-44d4-5f1b-d4509d2a74c9"},{"name":"Get Imports","id":"7a7518d9-ce00-821b-820a-e98b92acb7a7","request":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"<p>Converts to b64 for Authenticating the Emma Public API</p>\n"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.e2ma.net/{{account_id}}/members/imports","description":"<p><em>Get information about all imports for this account.</em></p>\n<p><strong>Returns:</strong> An array of import details.</p>\n","urlObject":{"protocol":"https","path":["{{account_id}}","members","imports"],"host":["api","e2ma","net"],"query":[],"variable":[]}},"response":[{"id":"02a411dd-04bf-6fcd-a5a2-7de790da751b","name":"Get All Imports","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"Converts to b64 for Authenticating the Emma Public API"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.e2ma.net/{{account_id}}/members/imports"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"[\n\n]"}],"_postman_id":"7a7518d9-ce00-821b-820a-e98b92acb7a7"},{"name":"Copy Members Into Group By Status","id":"728518bc-e528-81a0-7132-4ef24c64801d","request":{"method":"PUT","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"<p>Converts to b64 for Authenticating the Emma Public API</p>\n"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"member_status_id\": [\n    \"a\",\n    \"e\"\n  ]\n}"},"url":"https://api.e2ma.net/{{account_id}}/members/#group_id/copy","description":"<p><em>Copy all account members of one or more statuses into a group.</em></p>\n<p><strong>Parameters:</strong></p>\n<ul>\n<li>**member_status_id (array of strings) – Valid Status:<ul>\n<li><code>a</code> (<em>active</em>)</li>\n<li><code>o</code> (<em>optout</em>)</li>\n<li><code>e</code> (<em>error</em>)</li>\n</ul>\n</li>\n</ul>\n<p><strong>Returns:</strong> True</p>\n<p><strong>Raises:</strong> <code>Http404</code> if the group does not exist.</p>\n","urlObject":{"protocol":"https","path":["{{account_id}}","members",""],"hash":"group_id/copy","host":["api","e2ma","net"],"query":[],"variable":[]}},"response":[{"id":"352c5733-1be2-5c1f-c721-b05f9ccbc8ca","name":"Copy 'Active' And 'Error' Contacts Into A Group","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"Converts to b64 for Authenticating the Emma Public API"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"member_status_id\": [\n    \"a\",\n    \"e\"\n  ]\n}"},"url":"https://api.e2ma.net/{{account_id}}/members/152/copy"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"true"}],"_postman_id":"728518bc-e528-81a0-7132-4ef24c64801d"},{"name":"Bulk Update Member Status","id":"60d9e2ff-28cb-a3ab-4373-db667eefc57e","request":{"method":"PUT","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"<p>Converts to b64 for Authenticating the Emma Public API</p>\n"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"group_id\": 1\n}"},"url":"https://api.e2ma.net/{{account_id}}/members/status/:status_from/to/:status_to","description":"<p><em>Update the status for a group of members, based on their current status.</em> </p>\n<p>Valid status ids:</p>\n<ul>\n<li><p><code>a</code> (<em>active</em>)</p>\n</li>\n<li><p><code>e</code> (<em>error</em>)</p>\n</li>\n<li><p><code>f</code> (<em>forwarded</em>)</p>\n</li>\n<li><p><code>o</code> (<em>optout</em>)</p>\n</li>\n<li><p><strong>Parameters:</strong></p>\n</li>\n<li><p><strong>group_id</strong> – <em>Optional.</em> Limit the update to members of the specified group</p>\n</li>\n</ul>\n<p><strong>Returns:</strong> True</p>\n<p><strong>Raises:</strong> <code>Http400</code> if the specified status is invalid</p>\n","urlObject":{"protocol":"https","path":["{{account_id}}","members","status",":status_from","to",":status_to"],"host":["api","e2ma","net"],"query":[],"variable":[{"type":"any","value":"","key":"status_from"},{"type":"any","value":"","key":"status_to"}]}},"response":[{"id":"88c68b11-752d-bfbc-9c16-b217c7d4eafc","name":"Update Members In A Group With 'Error' Status To 'Active'","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"Converts to b64 for Authenticating the Emma Public API"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"group_id\": 1\n}"},"url":"https://api.e2ma.net/{{account_id}}/members/status/e/to/a"},"status":"OK","code":200,"_postman_previewlanguage":"","header":[],"cookie":[],"responseTime":"0","body":"true"}],"_postman_id":"60d9e2ff-28cb-a3ab-4373-db667eefc57e"}],"id":"5466889a-5d73-4e97-fed0-02db6ecc8a89","description":"<p>In addition to the various CRUD endpoints here related to members, you can also change the status of members, including opting them out.</p>\n<p>You’ll notice that there are calls related to individual members, but we also provide quite a few calls to deal with bulk updates of members. Please try to use these whenever possible as opposed to looping through a list of members and calling the individual member calls.</p>\n<p>Where this is especially important is when adding new members. To do a bulk import, you’ll POST to the <code>/#account_id/members</code> endpoint. In return, you’ll receive an import ID. You can use this ID to check the status and results of your import. Imports are generally pretty fast, but the time to completion can vary with greater system usage.</p>\n","_postman_id":"5466889a-5d73-4e97-fed0-02db6ecc8a89"},{"name":"Purchase History","item":[{"name":"Products","item":[{"name":"Create A Product","id":"a4963977-52b5-ed6c-9182-730c966e90a5","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"source\": \"string\",\n  \"source_product_id\": \"string\",\n  \"sku\": \"string\",\n  \"name\": \"string\",\n  \"price\": 0,\n  \"product_url\": \"string\",\n  \"image_url\": \"string\",\n  \"categories\": [\n    \"string\"\n  ],\n  \"deleted_at\": \"2017-08-29T14:04:37.790Z\"\n}"},"url":"https://{{env}}/{{account_id}}/products","description":"<p><em>Create a Product for the given account</em></p>\n<p><strong>Parameters:</strong>  </p>\n<ul>\n<li><strong>source</strong> (<em>string</em>) - The named source that the product data is coming from.</li>\n<li><strong>source_product_id</strong> (<em>string</em>) - The source product's unique identifier.</li>\n<li><strong>sku</strong> (<em>string</em>) - Product SKU.</li>\n<li><strong>name</strong> (<em>string</em>) - The product name..</li>\n<li><strong>price</strong> (<em>float</em>) - The product price</li>\n<li><strong>product_url</strong> (<em>string</em>) - The shource url for the product.</li>\n<li><strong>image_url</strong> (<em>string</em>) - The image url for the product.</li>\n<li><strong>categories</strong> (<em>string</em>) - An array of categories that are associated with the product</li>\n<li><strong>deleted_at</strong> (<em>string</em>) - A datetime of when the product was deleted</li>\n</ul>\n<p><strong>Returns:</strong> </p>\n<ul>\n<li><code>Http200</code> - Product Created.</li>\n</ul>\n<p><strong>Raises:</strong>  </p>\n<ul>\n<li><code>Http400</code> if product data is in an invalid format.</li>\n<li><code>Http500</code> if an unexpected error occurs.</li>\n</ul>\n","urlObject":{"protocol":"https","path":["{{account_id}}","products"],"host":["{{env}}"],"query":[],"variable":[]}},"response":[{"id":"9fbfe9c1-0d9b-3655-4729-6d019755e4bb","name":"Create a Product","originalRequest":{"header":[]},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"{\n  \"account_id\": 0,\n  \"product_id\": 0,\n  \"source\": \"string\",\n  \"source_product_id\": \"string\",\n  \"source_variant_id\": \"string\",\n  \"source_variant_text\": \"string\",\n  \"sku\": \"string\",\n  \"name\": \"string\",\n  \"price\": 0,\n  \"product_url\": \"string\",\n  \"image_url\": \"string\",\n  \"categories\": [\n    \"string\"\n  ],\n  \"deleted_at\": \"2017-08-29T14:27:30.939Z\"\n}"},{"id":"fa0fce7b-db11-bf68-aa74-91d2e1d2490b","name":"Create a Product","originalRequest":{"header":[]},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"{\n  \"account_id\": 0,\n  \"product_id\": 0,\n  \"source\": \"string\",\n  \"source_product_id\": \"string\",\n  \"source_variant_id\": \"string\",\n  \"source_variant_text\": \"string\",\n  \"sku\": \"string\",\n  \"name\": \"string\",\n  \"price\": 0,\n  \"product_url\": \"string\",\n  \"image_url\": \"string\",\n  \"categories\": [\n    \"string\"\n  ],\n  \"deleted_at\": \"2017-08-29T14:27:30.939Z\"\n}"}],"_postman_id":"a4963977-52b5-ed6c-9182-730c966e90a5"},{"name":"Get Products","id":"860b07e8-54de-bced-cf9e-293cbd21a2d1","request":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":"https://{{env}}/{{account_id}}/products","description":"<p><em>Get Products in the given account</em></p>\n<p><strong>Parameters:</strong>  </p>\n<ul>\n<li><strong>count</strong> (<em>boolean</em>) - When true, returns the number of products in the account.</li>\n<li><strong>deleted</strong> (<em>boolean</em>) - When true, includes deleted products in the response.</li>\n<li><strong>start</strong> (<em>integer</em>) - Used when paging, this value indicates where to start the page.</li>\n<li><strong>end</strong> (<em>integer</em>) - Used when paging, this value indicates where to end the page.</li>\n<li><strong>sort_col</strong> (<em>string</em>) - This parameter indicates which value the API should sort the response by</li>\n<li><strong>sort_order</strong> (<em>string</em>) - This parameter indicates which value the API should sort the response by</li>\n</ul>\n<p><strong>Returns:</strong> <code>Http200</code> - Found. An array of products.</p>\n<p><strong>Raises:</strong>  <code>Http500</code> if an unexpected error occurs.</p>\n","urlObject":{"protocol":"https","path":["{{account_id}}","products"],"host":["{{env}}"],"query":[],"variable":[]}},"response":[{"id":"4325eca4-d6ea-7ef3-18f2-de081562060c","name":"Get Products","originalRequest":{"header":[]},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Connection","value":"close","name":"Connection","description":""},{"key":"Content-Type","value":"application/json; charset=utf8","name":"Content-Type","description":""},{"key":"Date","value":"Fri, 16 Jun 2017 15:46:33 GMT","name":"Date","description":""},{"key":"Server","value":"Apache/2.2.22 (Ubuntu)","name":"Server","description":""},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":""}],"cookie":[],"responseTime":"1536","body":"[\n  {\n    \"account_id\": 0,\n    \"product_id\": 0,\n    \"source\": \"string\",\n    \"source_product_id\": \"string\",\n    \"source_variant_id\": \"string\",\n    \"source_variant_text\": \"string\",\n    \"sku\": \"string\",\n    \"name\": \"string\",\n    \"price\": 0,\n    \"product_url\": \"string\",\n    \"image_url\": \"string\",\n    \"categories\": [\n      \"string\"\n    ],\n    \"deleted_at\": \"2017-08-29T14:06:16.338Z\"\n  }\n]"}],"_postman_id":"860b07e8-54de-bced-cf9e-293cbd21a2d1"},{"name":"Get A Single Product","id":"33fe6d72-0815-b3d8-97a9-8eab2ba382a6","request":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":"https://{{env}}/{{account_id}}/products/{{product_id}}","description":"<p><em>Get a specific Product by ID</em></p>\n<p><strong>Parameters:</strong>  </p>\n<ul>\n<li><strong>product_id</strong> (<em>integer</em>) – REQUIRED. The Emma product identifier</li>\n</ul>\n<p><strong>Returns:</strong> <code>Http200</code> - Product Found.</p>\n<p><strong>Raises:</strong>  </p>\n<ul>\n<li><code>Http404</code> if product is not found.</li>\n<li><code>Http500</code> if an unexpected error occurs.</li>\n</ul>\n","urlObject":{"protocol":"https","path":["{{account_id}}","products","{{product_id}}"],"host":["{{env}}"],"query":[],"variable":[]}},"response":[{"id":"90f6e7b6-b09c-913b-22e6-ac955de3ad65","name":"Get A Single Product","originalRequest":{"header":[]},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Connection","value":"close","name":"Connection","description":""},{"key":"Content-Type","value":"application/json; charset=utf8","name":"Content-Type","description":""},{"key":"Date","value":"Fri, 16 Jun 2017 15:46:33 GMT","name":"Date","description":""},{"key":"Server","value":"Apache/2.2.22 (Ubuntu)","name":"Server","description":""},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":""}],"cookie":[],"responseTime":"1536","body":"{\n  \"account_id\": 0,\n  \"product_id\": 0,\n  \"source\": \"string\",\n  \"source_product_id\": \"string\",\n  \"source_variant_id\": \"string\",\n  \"source_variant_text\": \"string\",\n  \"sku\": \"string\",\n  \"name\": \"string\",\n  \"price\": 0,\n  \"product_url\": \"string\",\n  \"image_url\": \"string\",\n  \"categories\": [\n    \"string\"\n  ],\n  \"deleted_at\": \"2017-08-29T14:38:35.800Z\"\n}"}],"_postman_id":"33fe6d72-0815-b3d8-97a9-8eab2ba382a6"},{"name":"Update A Product","id":"f3e7d741-b954-b472-dbc8-e3add5f7dab1","request":{"method":"POST","header":[{"key":"conte","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"source\": \"string\",\n  \"source_product_id\": 0,\n  \"sku\": \"string\",\n  \"name\": \"string\",\n  \"price\": 0,\n  \"product_url\": \"string\",\n  \"image_url\": \"string\",\n  \"categories\": [\n    \"string\"\n  ],\n  \"deleted_at\": \"2017-08-29T14:43:27.774Z\"\n}"},"url":"https://{{env}}/{{account_id}}/products/{{product_id}}","description":"<p><em>Update a specific Product by ID</em></p>\n<p><strong>Parameters:</strong>  </p>\n<ul>\n<li><strong>product_id</strong> (<em>integer</em>) – REQUIRED. The Emma product identifier</li>\n<li><strong>source</strong> (<em>string</em>) - The named source that the product data is coming from.</li>\n<li><strong>source_product_id</strong> (<em>string</em>) - The source product's unique identifier.</li>\n<li><strong>sku</strong> (<em>string</em>) - Product SKU.</li>\n<li><strong>name</strong> (<em>string</em>) - The product name..</li>\n<li><strong>price</strong> (<em>float</em>) - The product price</li>\n<li><strong>product_url</strong> (<em>string</em>) - The shource url for the product.</li>\n<li><strong>image_url</strong> (<em>string</em>) - The image url for the product.</li>\n<li><strong>categories</strong> (<em>string</em>) - An array of categories that are associated with the product</li>\n<li><strong>deleted_at</strong> (<em>string</em>) - A datetime of when the product was deleted</li>\n</ul>\n<p><strong>Returns:</strong> <code>Http200</code> - Product Updated.</p>\n<p><strong>Raises:</strong>  </p>\n<ul>\n<li><code>Http400</code> if product data is an invalid format.</li>\n<li><code>Http404</code> if product is not found.</li>\n<li><code>Http500</code> if an unexpected error occurs.</li>\n</ul>\n","urlObject":{"protocol":"https","path":["{{account_id}}","products","{{product_id}}"],"host":["{{env}}"],"query":[],"variable":[]}},"response":[{"id":"eb12bd0c-6bec-853a-a918-5482fba29e92","name":"Get A Single Product","originalRequest":{"header":[]},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Connection","value":"close","name":"Connection","description":""},{"key":"Content-Type","value":"application/json; charset=utf8","name":"Content-Type","description":""},{"key":"Date","value":"Fri, 16 Jun 2017 15:46:33 GMT","name":"Date","description":""},{"key":"Server","value":"Apache/2.2.22 (Ubuntu)","name":"Server","description":""},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":""}],"cookie":[],"responseTime":"1536","body":"{\n  \"account_id\": 0,\n  \"product_id\": 0,\n  \"source\": \"string\",\n  \"source_product_id\": \"string\",\n  \"source_variant_id\": \"string\",\n  \"source_variant_text\": \"string\",\n  \"sku\": \"string\",\n  \"name\": \"string\",\n  \"price\": 0,\n  \"product_url\": \"string\",\n  \"image_url\": \"string\",\n  \"categories\": [\n    \"string\"\n  ],\n  \"deleted_at\": \"2017-08-29T14:38:35.800Z\"\n}"}],"_postman_id":"f3e7d741-b954-b472-dbc8-e3add5f7dab1"},{"name":"Delete A Product","id":"7171829d-eea9-de49-c832-65274a627ad7","request":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{env}}/{{account_id}}/products/{{product_Id}}","description":"<p><em>Delete a specific Product by ID</em></p>\n<p><strong>Parameters:</strong>  </p>\n<ul>\n<li><strong>product_id</strong> (<em>integer</em>) – REQUIRED. The Emma product identifier</li>\n</ul>\n<p><strong>Returns:</strong> <code>Http200</code> - Product Deleted. True.</p>\n<p><strong>Raises:</strong>  </p>\n<ul>\n<li><code>Http404</code> if product is not found.</li>\n<li><code>Http500</code> if an unexpected error occurs.</li>\n</ul>\n","urlObject":{"protocol":"https","path":["{{account_id}}","products","{{product_Id}}"],"host":["{{env}}"],"query":[],"variable":[]}},"response":[{"id":"6f3acb66-7500-e742-0ada-447f294eacfb","name":"Delete A Single Product","originalRequest":{"header":[]},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"true"},{"id":"f2d5f40e-d5a6-6491-adbb-329606167834","name":"Delete A Single Product","originalRequest":{"header":[]},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"true"}],"_postman_id":"7171829d-eea9-de49-c832-65274a627ad7"},{"name":"Restore A Product","id":"1afc9011-0209-ad59-79b1-7def8b63ba83","request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{env}}/{{account_id}}/products/{{product_Id}}/undelete","description":"<p><em>Undelete a specific Product by ID</em></p>\n<p><strong>Parameters:</strong>  </p>\n<ul>\n<li><strong>product_id</strong> (<em>integer</em>) – REQUIRED. The Emma product identifier</li>\n</ul>\n<p><strong>Returns:</strong> <code>Http200</code> - Product Undeleted. True.</p>\n<p><strong>Raises:</strong>  </p>\n<ul>\n<li><code>Http404</code> if product is not found.</li>\n<li><code>Http500</code> if an unexpected error occurs.</li>\n</ul>\n","urlObject":{"protocol":"https","path":["{{account_id}}","products","{{product_Id}}","undelete"],"host":["{{env}}"],"query":[],"variable":[]}},"response":[{"id":"4170b8ed-b70d-b9ae-79a7-ddbe63bb16ea","name":"Restore A Single Product","originalRequest":{"header":[]},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"true"}],"_postman_id":"1afc9011-0209-ad59-79b1-7def8b63ba83"},{"name":"Create/Update Multiple Products","id":"1322dadb-f1f4-aa38-2f64-29e664a92bd1","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"products\": [\n    {\n      \"account_id\": 0,\n      \"product_id\": 0,\n      \"source\": \"string\",\n      \"source_product_id\": \"string\",\n      \"source_variant_id\": \"string\",\n      \"source_variant_text\": \"string\",\n      \"sku\": \"string\",\n      \"name\": \"string\",\n      \"price\": 0,\n      \"product_url\": \"string\",\n      \"image_url\": \"string\",\n      \"categories\": [\n        \"string\"\n      ],\n      \"deleted_at\": \"2017-08-29T14:59:37.404Z\"\n    }\n  ]\n}"},"url":"https://{{env}}/{{account_id}}/products/bulk","description":"<p><em>Create or Update Products in bulk asynchronously</em></p>\n<p><strong>Parameters:</strong>  </p>\n<ul>\n<li><strong>source</strong> (<em>string</em>) - The named source that the product data is coming from.</li>\n<li><strong>source_product_id</strong> (<em>string</em>) - The source product's unique identifier.</li>\n<li><strong>sku</strong> (<em>string</em>) - Product SKU.</li>\n<li><strong>name</strong> (<em>string</em>) - The product name..</li>\n<li><strong>price</strong> (<em>float</em>) - The product price</li>\n<li><strong>product_url</strong> (<em>string</em>) - The shource url for the product.</li>\n<li><strong>image_url</strong> (<em>string</em>) - The image url for the product.</li>\n<li><strong>categories</strong> (<em>string</em>) - An array of categories that are associated with the product</li>\n<li><strong>deleted_at</strong> (<em>string</em>) - A datetime of when the product was deleted</li>\n</ul>\n<p><strong>Returns:</strong> </p>\n<ul>\n<li><code>Http200</code> - Bulk Load Job Created.</li>\n<li><code>job_id</code> - (<em>string</em>)</li>\n</ul>\n<p><strong>Raises:</strong>  </p>\n<ul>\n<li><code>Http400</code> if invalid request.</li>\n<li><code>Http500</code> if an unexpected error occurs.</li>\n</ul>\n","urlObject":{"protocol":"https","path":["{{account_id}}","products","bulk"],"host":["{{env}}"],"query":[],"variable":[]}},"response":[{"id":"e7b943f9-9796-35af-4609-253b98ced5cf","name":"Create Multiple Products","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"products\": [\n    {\n      \"account_id\": 0,\n      \"product_id\": 0,\n      \"source\": \"string\",\n      \"source_product_id\": \"string\",\n      \"source_variant_id\": \"string\",\n      \"source_variant_text\": \"string\",\n      \"sku\": \"string\",\n      \"name\": \"string\",\n      \"price\": 0,\n      \"product_url\": \"string\",\n      \"image_url\": \"string\",\n      \"categories\": [\n        \"string\"\n      ],\n      \"deleted_at\": \"2017-08-29T14:59:37.404Z\"\n    }\n  ]\n}"},"url":"https://{{env}}/{{account_id}}/products/bulk"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"{\n  \"job_id\": \"string\"\n}"},{"id":"f1dd4a48-202c-d7af-b78b-c84b0d820bc8","name":"Create Multiple Products","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"products\": [\n    {\n      \"account_id\": 0,\n      \"product_id\": 0,\n      \"source\": \"string\",\n      \"source_product_id\": \"string\",\n      \"source_variant_id\": \"string\",\n      \"source_variant_text\": \"string\",\n      \"sku\": \"string\",\n      \"name\": \"string\",\n      \"price\": 0,\n      \"product_url\": \"string\",\n      \"image_url\": \"string\",\n      \"categories\": [\n        \"string\"\n      ],\n      \"deleted_at\": \"2017-08-29T14:59:37.404Z\"\n    }\n  ]\n}"},"url":"https://{{env}}/{{account_id}}/products/bulk","description":"*Create or Update Products in bulk asynchronously*\n\n**Parameters:**  \n- **source** (*string*) - The named source that the product data is coming from.\n- **source_product_id** (*string*) - The source product's unique identifier.\n- **sku** (*string*) - Product SKU.\n- **name** (*string*) - The product name..\n- **price** (*float*) - The product price\n- **product_url** (*string*) - The shource url for the product.\n- **image_url** (*string*) - The image url for the product.\n- **categories** (*string*) - An array of categories that are associated with the product\n- **deleted_at** (*string*) - A datetime of when the product was deleted\n\n**Returns:** \n\n- `Http200` - Bulk Load Job Created.\n- `job_id` - (*string*)\n\n**Raises:**  \n\n- `Http400` if invalid request.\n- `Http500` if an unexpected error occurs."},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"{\n  \"job_id\": \"string\"\n}"}],"_postman_id":"1322dadb-f1f4-aa38-2f64-29e664a92bd1"},{"name":"Get Bulk Product Job Status","id":"f4fc776c-3763-b02e-3e02-fffc2127fcdc","request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"products\": [\n    {\n      \"account_id\": 0,\n      \"product_id\": 0,\n      \"source\": \"string\",\n      \"source_product_id\": \"string\",\n      \"source_variant_id\": \"string\",\n      \"source_variant_text\": \"string\",\n      \"sku\": \"string\",\n      \"name\": \"string\",\n      \"price\": 0,\n      \"product_url\": \"string\",\n      \"image_url\": \"string\",\n      \"categories\": [\n        \"string\"\n      ],\n      \"deleted_at\": \"2017-08-29T14:59:37.404Z\"\n    }\n  ]\n}"},"url":"https://{{env}}/{{account_id}}/products/bulk/status/{{job_id}}","description":"<p><em>Get Bulk Load Job Status</em></p>\n<p><strong>Parameters:</strong>  </p>\n<ul>\n<li><strong>job_id</strong> (<em>string</em>) - The unique job identifier</li>\n</ul>\n<p><strong>Returns:</strong> </p>\n<ul>\n<li><code>Http200</code> - Bulk job status returned.</li>\n<li><strong>job_status</strong> (<em>string</em>) - The current status of the given job</li>\n<li><ul>\n<li><em>created</em> - job has been created</li>\n</ul>\n</li>\n<li><ul>\n<li><em>in_progress</em> - job is currently running</li>\n</ul>\n</li>\n<li><ul>\n<li><em>complete</em> - job is complete</li>\n</ul>\n</li>\n<li><ul>\n<li><em>out of retention</em> - job id has expired and is no longer in retention</li>\n</ul>\n</li>\n<li><strong>productsAdded</strong> (<em>integer</em>) - number of products added</li>\n<li><strong>productsUpdated</strong> (<em>integer</em>) - number of products updated</li>\n<li><strong>productsFailed</strong> (<em>integer</em>) - number of products that failed to be imported</li>\n<li><strong>totalProducts</strong> (<em>integer</em>) - total number of products</li>\n</ul>\n<p><strong>Raises:</strong>  </p>\n<ul>\n<li><code>Http404</code> if no job is found.</li>\n<li><code>Http500</code> if an unexpected error occurs.</li>\n</ul>\n","urlObject":{"protocol":"https","path":["{{account_id}}","products","bulk","status","{{job_id}}"],"host":["{{env}}"],"query":[],"variable":[]}},"response":[{"id":"a1f6470c-b510-1690-453f-2db739ce7d05","name":"Get Job Status","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"products\": [\n    {\n      \"account_id\": 0,\n      \"product_id\": 0,\n      \"source\": \"string\",\n      \"source_product_id\": \"string\",\n      \"source_variant_id\": \"string\",\n      \"source_variant_text\": \"string\",\n      \"sku\": \"string\",\n      \"name\": \"string\",\n      \"price\": 0,\n      \"product_url\": \"string\",\n      \"image_url\": \"string\",\n      \"categories\": [\n        \"string\"\n      ],\n      \"deleted_at\": \"2017-08-29T14:59:37.404Z\"\n    }\n  ]\n}"},"url":"https://{{env}}/{{account_id}}/products/bulk"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"{\n  \"jobStatus\": \"created\",\n  \"productsAdded\": 0,\n  \"productsUpdated\": 0,\n  \"productsFailed\": 0,\n  \"totalProducts\": 0\n}"},{"id":"b03e557d-99eb-5892-c827-d1d7e07ac729","name":"Get Job Status","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"products\": [\n    {\n      \"account_id\": 0,\n      \"product_id\": 0,\n      \"source\": \"string\",\n      \"source_product_id\": \"string\",\n      \"source_variant_id\": \"string\",\n      \"source_variant_text\": \"string\",\n      \"sku\": \"string\",\n      \"name\": \"string\",\n      \"price\": 0,\n      \"product_url\": \"string\",\n      \"image_url\": \"string\",\n      \"categories\": [\n        \"string\"\n      ],\n      \"deleted_at\": \"2017-08-29T14:59:37.404Z\"\n    }\n  ]\n}"},"url":"https://{{env}}/{{account_id}}/products/bulk/status/{{job_id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"{\n  \"jobStatus\": \"created\",\n  \"productsAdded\": 0,\n  \"productsUpdated\": 0,\n  \"productsFailed\": 0,\n  \"totalProducts\": 0\n}"}],"_postman_id":"f4fc776c-3763-b02e-3e02-fffc2127fcdc"},{"name":"Get Bulk Product Job Errors","id":"2ceb5fb1-3400-ec1b-ffac-b62a82ba5f5b","request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"products\": [\n    {\n      \"account_id\": 0,\n      \"product_id\": 0,\n      \"source\": \"string\",\n      \"source_product_id\": \"string\",\n      \"source_variant_id\": \"string\",\n      \"source_variant_text\": \"string\",\n      \"sku\": \"string\",\n      \"name\": \"string\",\n      \"price\": 0,\n      \"product_url\": \"string\",\n      \"image_url\": \"string\",\n      \"categories\": [\n        \"string\"\n      ],\n      \"deleted_at\": \"2017-08-29T14:59:37.404Z\"\n    }\n  ]\n}"},"url":"https://{{env}}/{{account_id}}/products/bulk/errors/{{job_id}}","description":"<p><em>Get Bulk Load Job Errors</em></p>\n<p><strong>Parameters:</strong>  </p>\n<ul>\n<li><strong>job_id</strong> (<em>string</em>) - The unique job identifier</li>\n</ul>\n<p><strong>Returns:</strong> </p>\n<ul>\n<li><code>Http200</code> - Bulk job status returned.</li>\n<li><strong>job_status</strong> (<em>string</em>) - The current status of the given job</li>\n<li><ul>\n<li><em>created</em> - job has been created</li>\n</ul>\n</li>\n<li><ul>\n<li><em>in_progress</em> - job is currently running</li>\n</ul>\n</li>\n<li><ul>\n<li><em>complete</em> - job is complete</li>\n</ul>\n</li>\n<li><ul>\n<li><em>out of retention</em> - job id has expired and is no longer in retention</li>\n</ul>\n</li>\n<li><strong>errors</strong> (<em>array</em>) - the last 20 errors available for a job.</li>\n<li>empty if no errors</li>\n</ul>\n<p><strong>Raises:</strong>  </p>\n<ul>\n<li><code>Http404</code> if no job is found.</li>\n<li><code>Http500</code> if an unexpected error occurs.</li>\n</ul>\n","urlObject":{"protocol":"https","path":["{{account_id}}","products","bulk","errors","{{job_id}}"],"host":["{{env}}"],"query":[],"variable":[]}},"response":[{"id":"da4e9220-a497-b73e-77e6-937aa750ecc1","name":"Get Job Errors","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"products\": [\n    {\n      \"account_id\": 0,\n      \"product_id\": 0,\n      \"source\": \"string\",\n      \"source_product_id\": \"string\",\n      \"source_variant_id\": \"string\",\n      \"source_variant_text\": \"string\",\n      \"sku\": \"string\",\n      \"name\": \"string\",\n      \"price\": 0,\n      \"product_url\": \"string\",\n      \"image_url\": \"string\",\n      \"categories\": [\n        \"string\"\n      ],\n      \"deleted_at\": \"2017-08-29T14:59:37.404Z\"\n    }\n  ]\n}"},"url":"https://{{env}}/{{account_id}}/products/bulk"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"{\n  \"jobStatus\": \"created\",\n  \"errors\": [\n    \"string\"\n  ]\n}"},{"id":"dcee80ad-2c86-4cee-5769-9fee9fb4386b","name":"Get Job Errors","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"products\": [\n    {\n      \"account_id\": 0,\n      \"product_id\": 0,\n      \"source\": \"string\",\n      \"source_product_id\": \"string\",\n      \"source_variant_id\": \"string\",\n      \"source_variant_text\": \"string\",\n      \"sku\": \"string\",\n      \"name\": \"string\",\n      \"price\": 0,\n      \"product_url\": \"string\",\n      \"image_url\": \"string\",\n      \"categories\": [\n        \"string\"\n      ],\n      \"deleted_at\": \"2017-08-29T14:59:37.404Z\"\n    }\n  ]\n}"},"url":"https://{{env}}/{{account_id}}/products/bulk/errors/{{job_id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"{\n  \"jobStatus\": \"created\",\n  \"errors\": [\n    \"string\"\n  ]\n}"}],"_postman_id":"2ceb5fb1-3400-ec1b-ffac-b62a82ba5f5b"},{"name":"Product Lookup","id":"54924e94-18f0-e4d2-e533-ed3c58b2902d","request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"source\": \"string\",\n  \"source_product_id\": \"string\",\n  \"sku\": \"string\",\n  \"name\": \"string\",\n  \"price\": 0,\n  \"product_url\": \"string\",\n  \"image_url\": \"string\",\n  \"categories\": [\n    \"string\"\n  ],\n  \"deleted_at\": \"2017-08-29T14:04:37.790Z\"\n}"},"url":"https://{{env}}/{{account_id}}/products/lookup","description":"<p><em>Get an array of Products based on the provided criteria</em></p>\n<p>Must be in the form of a query parameter.</p>\n<p><strong>Parameters:</strong>  </p>\n<ul>\n<li><strong>source</strong> (<em>string</em>) - The named source that the product data is coming from.</li>\n<li><strong>source_product_id</strong> (<em>string</em>) - The source product's unique identifier.</li>\n<li><strong>sku</strong> (<em>string</em>) - Product SKU.</li>\n<li><strong>name</strong> (<em>string</em>) - The product name..</li>\n<li><strong>price</strong> (<em>float</em>) - The product price</li>\n<li><strong>product_url</strong> (<em>string</em>) - The shource url for the product.</li>\n<li><strong>image_url</strong> (<em>string</em>) - The image url for the product.</li>\n<li><strong>categories</strong> (<em>string</em>) - An array of categories that are associated with the product</li>\n<li><strong>deleted_at</strong> (<em>string</em>) - A datetime of when the product was deleted</li>\n</ul>\n<p><strong>Returns:</strong> </p>\n<ul>\n<li><code>Http200</code> - Product(s) Found.</li>\n<li>An array of products.</li>\n</ul>\n<p><strong>Raises:</strong>  </p>\n<ul>\n<li><code>Http400</code> if lookup paramaters are invalid</li>\n<li><code>Http400</code> if no products were found.</li>\n<li><code>Http500</code> if an unexpected error occurs.</li>\n</ul>\n","urlObject":{"protocol":"https","path":["{{account_id}}","products","lookup"],"host":["{{env}}"],"query":[],"variable":[]}},"response":[{"id":"4d8ecbf9-e69d-17c8-2188-9ee5552651d1","name":"Lookup Products","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"source\": \"string\",\n  \"source_product_id\": \"string\",\n  \"sku\": \"string\",\n  \"name\": \"string\",\n  \"price\": 0,\n  \"product_url\": \"string\",\n  \"image_url\": \"string\",\n  \"categories\": [\n    \"string\"\n  ],\n  \"deleted_at\": \"2017-08-29T14:04:37.790Z\"\n}"},"url":"https://{{env}}/{{account_id}}/products/lookup"},"status":"OK","code":200,"_postman_previewlanguage":"","header":[],"cookie":[],"responseTime":"0","body":"{\n  \"account_id\": 0,\n  \"product_id\": 0,\n  \"source\": \"string\",\n  \"source_product_id\": \"string\",\n  \"source_variant_id\": \"string\",\n  \"source_variant_text\": \"string\",\n  \"sku\": \"string\",\n  \"name\": \"string\",\n  \"price\": 0,\n  \"product_url\": \"string\",\n  \"image_url\": \"string\",\n  \"categories\": [\n    \"string\"\n  ],\n  \"deleted_at\": \"2017-08-29T15:30:49.752Z\"\n}"},{"id":"ffcf4f71-d595-c474-d765-1c4121cebe2f","name":"Lookup Products","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"source\": \"string\",\n  \"source_product_id\": \"string\",\n  \"sku\": \"string\",\n  \"name\": \"string\",\n  \"price\": 0,\n  \"product_url\": \"string\",\n  \"image_url\": \"string\",\n  \"categories\": [\n    \"string\"\n  ],\n  \"deleted_at\": \"2017-08-29T14:04:37.790Z\"\n}"},"url":"https://{{env}}/{{account_id}}/products/lookup"},"status":"OK","code":200,"_postman_previewlanguage":"","header":[],"cookie":[],"responseTime":"0","body":"{\n  \"account_id\": 0,\n  \"product_id\": 0,\n  \"source\": \"string\",\n  \"source_product_id\": \"string\",\n  \"source_variant_id\": \"string\",\n  \"source_variant_text\": \"string\",\n  \"sku\": \"string\",\n  \"name\": \"string\",\n  \"price\": 0,\n  \"product_url\": \"string\",\n  \"image_url\": \"string\",\n  \"categories\": [\n    \"string\"\n  ],\n  \"deleted_at\": \"2017-08-29T15:30:49.752Z\"\n}"}],"_postman_id":"54924e94-18f0-e4d2-e533-ed3c58b2902d"},{"name":"(PRIVATE) Delete All Products","id":"25f816c1-1bd3-3916-56fa-175b2ac6073e","request":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{env}}/private/{{account_id}}/products","description":"<p><em>Purge all products, permanently delete account’s products</em></p>\n<p>This is a private endpoint.</p>\n<p><strong>Returns:</strong> </p>\n<ul>\n<li><code>Http200</code> - Products Deleted.</li>\n<li><strong>deleted_products</strong> (<em>integer</em>) - number of products that were deleted</li>\n</ul>\n<p><strong>Raises:</strong>  </p>\n<ul>\n<li><code>Http400</code> if account has orders. Orders must be purged before products.</li>\n<li><code>Http500</code> if an unexpected error occurs.</li>\n</ul>\n","urlObject":{"protocol":"https","path":["private","{{account_id}}","products"],"host":["{{env}}"],"query":[],"variable":[]}},"response":[{"id":"110db0f5-a9a0-6c87-9ca9-9c581d2dc6b6","name":"Account Has Orders","originalRequest":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{env}}/{{account_id}}/products"},"status":"Bad Request","code":400,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":"0","body":"Account has Orders"},{"id":"1b517dfe-8175-130c-96f9-890868d75659","name":"Delete All Products","originalRequest":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{env}}/{{account_id}}/products"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"{\n  \"deleted_products\": 0\n}"}],"_postman_id":"25f816c1-1bd3-3916-56fa-175b2ac6073e"},{"name":"(PRIVATE) Restore Multiple Products","id":"13e32970-6cbd-c45f-ecfa-7628fb24b0e3","request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"product_ids\": [\n    0\n  ]\n}"},"url":"https://{{env}}/private/{{account_id}}/products","description":"<p><em>Undelete multiple Products by ID</em></p>\n<p>This is a private endpoint.</p>\n<p><strong>paramters</strong></p>\n<ul>\n<li><strong>product_ids</strong> (<em>array</em>) - an array on <em>integer</em> emma product ids</li>\n</ul>\n<p><strong>Returns:</strong> <code>Http200</code> - The number of Products that were undeleted.</p>\n<p><strong>Raises:</strong>  </p>\n<ul>\n<li><code>Http400</code> if the product ids provided were in an invalid format</li>\n<li><code>Http500</code> if an unexpected error occurs.</li>\n</ul>\n","urlObject":{"protocol":"https","path":["private","{{account_id}}","products"],"host":["{{env}}"],"query":[],"variable":[]}},"response":[{"id":"bad344df-71cb-f824-92f2-7da85b15bc11","name":"Restore Multiple Products","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"product_ids\": [\n    0\n  ]\n}"},"url":"https://{{env}}/{{account_id}}/products/undelete"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"0"}],"_postman_id":"13e32970-6cbd-c45f-ecfa-7628fb24b0e3"},{"name":"(PRIVATE) Product Lookup","id":"e33c8676-c7e0-c16c-2611-24bafa20becf","request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"source\": \"string\",\n  \"source_product_id\": \"string\",\n  \"sku\": \"string\",\n  \"name\": \"string\",\n  \"price\": 0,\n  \"product_url\": \"string\",\n  \"image_url\": \"string\",\n  \"categories\": [\n    \"string\"\n  ],\n  \"deleted_at\": \"2017-08-29T14:04:37.790Z\"\n}"},"url":"https://{{env}}/private/{{account_id}}/products/lookup","description":"<p><em>Get an array of Products based on the provided criteria</em></p>\n<p>Must be in the form of a query parameter.</p>\n<p><strong>Parameters:</strong>  </p>\n<ul>\n<li><strong>source</strong> (<em>string</em>) - The named source that the product data is coming from.</li>\n<li><strong>source_product_id</strong> (<em>string</em>) - The source product's unique identifier.</li>\n<li><strong>sku</strong> (<em>string</em>) - Product SKU.</li>\n<li><strong>name</strong> (<em>string</em>) - The product name..</li>\n<li><strong>price</strong> (<em>float</em>) - The product price</li>\n<li><strong>product_url</strong> (<em>string</em>) - The shource url for the product.</li>\n<li><strong>image_url</strong> (<em>string</em>) - The image url for the product.</li>\n<li><strong>categories</strong> (<em>string</em>) - An array of categories that are associated with the product</li>\n<li><strong>deleted_at</strong> (<em>string</em>) - A datetime of when the product was deleted</li>\n</ul>\n<p><strong>Returns:</strong> </p>\n<ul>\n<li><code>Http200</code> - Product(s) Found.</li>\n<li>An array of products.</li>\n</ul>\n<p><strong>Raises:</strong>  </p>\n<ul>\n<li><code>Http400</code> if lookup paramaters are invalid</li>\n<li><code>Http400</code> if no products were found.</li>\n<li><code>Http500</code> if an unexpected error occurs.</li>\n</ul>\n","urlObject":{"protocol":"https","path":["private","{{account_id}}","products","lookup"],"host":["{{env}}"],"query":[],"variable":[]}},"response":[{"id":"3ea2fa8f-d75b-b8ee-d8cc-e96cc0e4018f","name":"Lookup Products","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"source\": \"string\",\n  \"source_product_id\": \"string\",\n  \"sku\": \"string\",\n  \"name\": \"string\",\n  \"price\": 0,\n  \"product_url\": \"string\",\n  \"image_url\": \"string\",\n  \"categories\": [\n    \"string\"\n  ],\n  \"deleted_at\": \"2017-08-29T14:04:37.790Z\"\n}"},"url":"https://{{env}}/{{account_id}}/products/lookup"},"status":"OK","code":200,"_postman_previewlanguage":"","header":[],"cookie":[],"responseTime":"0","body":"{\n  \"account_id\": 0,\n  \"product_id\": 0,\n  \"source\": \"string\",\n  \"source_product_id\": \"string\",\n  \"source_variant_id\": \"string\",\n  \"source_variant_text\": \"string\",\n  \"sku\": \"string\",\n  \"name\": \"string\",\n  \"price\": 0,\n  \"product_url\": \"string\",\n  \"image_url\": \"string\",\n  \"categories\": [\n    \"string\"\n  ],\n  \"deleted_at\": \"2017-08-29T15:30:49.752Z\"\n}"}],"_postman_id":"e33c8676-c7e0-c16c-2611-24bafa20becf"}],"id":"57a791b3-8adc-f4eb-223c-07ad35f6fdfb","_postman_id":"57a791b3-8adc-f4eb-223c-07ad35f6fdfb","description":""},{"name":"Orders","item":[{"name":"Create An Order","id":"8a9e0d34-2ce3-eba3-7c6a-dec61d22fd3f","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"status\": \"string\",\n  \"member_id\": \"string\",\n  \"created_at\": \"2017-08-30T14:39:51.277Z\",\n  \"updated_at\": \"2017-08-30T14:39:51.277Z\",\n  \"source_member_id\": \"string\",\n  \"source\": \"string\",\n  \"cancelled_reason\": \"string\",\n  \"cancelled_at\": \"2017-08-30T14:39:51.277Z\",\n  \"subtotal\": 0,\n  \"shipping_cost\": 0,\n  \"tax\": 0,\n  \"total_cost\": 0,\n  \"source_order_id\": \"string\",\n  \"items\": [\n    {\n      \"product_id\": 0,\n      \"price\": 0,\n      \"quantity\": 0\n    }\n  ]\n}"},"url":"https://{{env}}/{{account_id}}/members/{{member_id}}/orders","description":"<p><em>Create an Order for the given member</em></p>\n<p><strong>Parameters:</strong></p>\n<ul>\n<li><strong>status</strong> (<em>string</em>) - the order's status</li>\n<li><strong>member_id</strong> (<em>string</em>) - an Emma member id</li>\n<li><strong>created_at</strong> (<em>string</em>) - date-time when order was created</li>\n<li><strong>updated_at</strong> (<em>string</em>) - date-time when order was updated</li>\n<li><strong>source_member_id</strong> (<em>string</em>) -  member identifier from external source</li>\n<li><strong>source</strong> (<em>string</em>) - the external source the order is coming from</li>\n<li><strong>cancelled_reason</strong> (<em>string</em>) - the reasoning an order was cancelled</li>\n<li><strong>cancelled_at</strong> (<em>string</em>) - date-time when order was cancelled</li>\n<li><strong>subtotal</strong> (<em>float</em>) - total before tax and shipping</li>\n<li><strong>shipping_cost</strong> (<em>float</em>) - total of shipping costs</li>\n<li><strong>tax</strong> (<em>float</em>) - total of taxes</li>\n<li><strong>total_cost</strong> (<em>float</em>) - total after shippin costs and tx</li>\n<li><strong>source_order_id</strong> (<em>string</em>) - the external order idetifier</li>\n<li><strong>items</strong>  (<em>array</em>) - an array of line items on the order, consitisiting of product_id, price, and quantity.</li>\n<li><ul>\n<li><strong>product_id</strong> (<em>string</em>) - the product's unique identifier</li>\n</ul>\n</li>\n<li><ul>\n<li><strong>price</strong> (<em>float</em>) - the unit price paid for the product</li>\n</ul>\n</li>\n<li><ul>\n<li><strong>quantity</strong> (<em>integer</em>) - the number of the same items purchased</li>\n</ul>\n</li>\n</ul>\n<p><strong>Returns:</strong> </p>\n<ul>\n<li><code>Http200</code> - Order Created.</li>\n</ul>\n<p><strong>Raises:</strong>  </p>\n<ul>\n<li><code>Http400</code> if product data is in an invalid format.</li>\n<li><code>Http500</code> if an unexpected error occurs.</li>\n</ul>\n","urlObject":{"protocol":"https","path":["{{account_id}}","members","{{member_id}}","orders"],"host":["{{env}}"],"query":[],"variable":[]}},"response":[{"id":"8ec9c801-2743-cfd4-5b10-e1cc24980218","name":"Create An Order","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"status\": \"string\",\n  \"member_id\": \"string\",\n  \"created_at\": \"2017-08-30T14:39:51.277Z\",\n  \"updated_at\": \"2017-08-30T14:39:51.277Z\",\n  \"source_member_id\": \"string\",\n  \"source\": \"string\",\n  \"cancelled_reason\": \"string\",\n  \"cancelled_at\": \"2017-08-30T14:39:51.277Z\",\n  \"subtotal\": 0,\n  \"shipping_cost\": 0,\n  \"tax\": 0,\n  \"total_cost\": 0,\n  \"source_order_id\": \"string\",\n  \"items\": [\n    {\n      \"product_id\": 0,\n      \"price\": 0,\n      \"quantity\": 0\n    }\n  ]\n}"},"url":"https://{{env}}/{{account_id}}/members/{{member_id}}/orders"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"{\n  \"member_order_id\": 0,\n  \"account_id\": 0,\n  \"member_id\": 0,\n  \"source_order_id\": \"string\",\n  \"mailing_id\": \"string\",\n  \"source_member_id\": \"string\",\n  \"created_at\": \"2017-08-30T14:39:51.330Z\",\n  \"updated_at\": \"2017-08-30T14:39:51.330Z\",\n  \"completed_at\": \"2017-08-30T14:39:51.330Z\",\n  \"cancelled_at\": \"2017-08-30T14:39:51.330Z\",\n  \"source\": \"string\",\n  \"total_cost\": 0,\n  \"tax\": 0,\n  \"subtotal\": 0,\n  \"shipping_cost\": 0,\n  \"cancelled_reason\": \"string\",\n  \"items\": [\n    {\n      \"product_id\": 0,\n      \"price\": 0,\n      \"account_id\": 0,\n      \"member_id\": 0,\n      \"quantity\": 0,\n      \"member_order_id\": 0,\n      \"order_item_id\": 0\n    }\n  ]\n}"}],"_postman_id":"8a9e0d34-2ce3-eba3-7c6a-dec61d22fd3f"},{"name":"Get Member Orders","id":"6899e436-1209-bb9d-6b6c-055e23d69e2a","request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"status\": \"string\",\n  \"mailing_id\": \"string\",\n  \"created_at\": \"2017-08-30T14:39:51.277Z\",\n  \"updated_at\": \"2017-08-30T14:39:51.277Z\",\n  \"source_member_id\": \"string\",\n  \"source\": \"string\",\n  \"cancelled_reason\": \"string\",\n  \"cancelled_at\": \"2017-08-30T14:39:51.277Z\",\n  \"subtotal\": 0,\n  \"shipping_cost\": 0,\n  \"tax\": 0,\n  \"total_cost\": 0,\n  \"source_order_id\": \"string\",\n  \"items\": [\n    {\n      \"product_id\": 0,\n      \"price\": 0,\n      \"quantity\": 0\n    }\n  ]\n}"},"url":"https://{{env}}/{{account_id}}/members/{{member_id}}/orders","description":"<p><em>Get Orders for a given member</em></p>\n<p><strong>Parameters:</strong></p>\n<ul>\n<li><strong>start</strong> (<em>integer</em>) - Used when paging, this value indicates where to start the page.</li>\n<li><strong>end</strong> (<em>integer</em>) - Used when paging, this value indicates where to end the page.</li>\n<li><strong>sort_col</strong> (<em>string</em>) - This parameter indicates which value the API should sort the response by</li>\n<li><strong>sort_order</strong> (<em>string</em>) - This parameter indicates which value the API should sort the response by</li>\n</ul>\n<p><strong>Returns:</strong> </p>\n<ul>\n<li><code>Http200</code> - Order Found.</li>\n<li>An array or orders</li>\n</ul>\n<p><strong>Raises:</strong>  </p>\n<ul>\n<li><code>Http404</code> if no order is found</li>\n<li><code>Http500</code> if an unexpected error occurs.</li>\n</ul>\n","urlObject":{"protocol":"https","path":["{{account_id}}","members","{{member_id}}","orders"],"host":["{{env}}"],"query":[],"variable":[]}},"response":[{"id":"8889d0d6-089d-d069-c72b-9199302b42db","name":"Get a member's orders","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"status\": \"string\",\n  \"mailing_id\": \"string\",\n  \"created_at\": \"2017-08-30T14:39:51.277Z\",\n  \"updated_at\": \"2017-08-30T14:39:51.277Z\",\n  \"source_member_id\": \"string\",\n  \"source\": \"string\",\n  \"cancelled_reason\": \"string\",\n  \"cancelled_at\": \"2017-08-30T14:39:51.277Z\",\n  \"subtotal\": 0,\n  \"shipping_cost\": 0,\n  \"tax\": 0,\n  \"total_cost\": 0,\n  \"source_order_id\": \"string\",\n  \"items\": [\n    {\n      \"product_id\": 0,\n      \"price\": 0,\n      \"quantity\": 0\n    }\n  ]\n}"},"url":"https://{{env}}/{{account_id}}/members/{{member_id}}/orders"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"[\n{\n  \"member_order_id\": 0,\n  \"account_id\": 0,\n  \"member_id\": 0,\n  \"source_order_id\": \"string\",\n  \"mailing_id\": \"string\",\n  \"source_member_id\": \"string\",\n  \"created_at\": \"2017-08-30T14:47:28.334Z\",\n  \"updated_at\": \"2017-08-30T14:47:28.334Z\",\n  \"completed_at\": \"2017-08-30T14:47:28.334Z\",\n  \"cancelled_at\": \"2017-08-30T14:47:28.334Z\",\n  \"source\": \"string\",\n  \"total_cost\": 0,\n  \"tax\": 0,\n  \"subtotal\": 0,\n  \"shipping_cost\": 0,\n  \"cancelled_reason\": \"string\",\n  \"items\": [\n    {\n      \"product_id\": 0,\n      \"price\": 0,\n      \"account_id\": 0,\n      \"member_id\": 0,\n      \"quantity\": 0,\n      \"member_order_id\": 0,\n      \"order_item_id\": 0\n    }\n  ]\n}\n]"}],"_postman_id":"6899e436-1209-bb9d-6b6c-055e23d69e2a"},{"name":"Create An Order For Existing or New Member","id":"59b9d8fe-7d51-0ec4-eb4d-92bfdd759039","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"source\": \"string\",\n  \"source_order_id\": \"string\",\n  \"source_member_id\": \"string\",\n  \"member_id\": \"string\",\n  \"created_at\": \"2017-08-30T15:30:19.129Z\",\n  \"updated_at\": \"2017-08-30T15:30:19.129Z\",\n  \"completed_at\": \"2017-08-30T15:30:19.129Z\",\n  \"subtotal\": 0,\n  \"shipping_cost\": 0,\n  \"tax\": 0,\n  \"total_cost\": 0,\n  \"cancelled_at\": \"2017-08-30T15:30:19.129Z\",\n  \"cancelled_reason\": \"string\",\n  \"member\": {\n    \"email\": \"user@example.com\"\n  },\n  \"items\": [\n    {\n      \"product_id\": 0,\n      \"price\": 0,\n      \"quantity\": 0,\n      \"source\": \"string\",\n      \"source_product_id\": \"string\",\n      \"source_variant_id\": \"string\",\n      \"source_variant_text\": \"string\",\n      \"name\": \"string\",\n      \"sku\": \"string\"\n    }\n  ]\n}"},"url":"https://{{env}}/{{account_id}}/members/orders","description":"<p><em>Create an Order from external source for existing or new member</em></p>\n<p>This call should be used when an Emma member id us not known.  If the member already exists, it will attaqch an order to the member record.  If it doesn not exist, it will be added.  By deault, the member will be in LIMBO (a member without a group) unless an Emma group id is supplied in the request body/</p>\n<p><strong>Parameters:</strong></p>\n<ul>\n<li><strong>source</strong> (<em>string</em>) - the external source of the order</li>\n<li><strong>source_order_id</strong> (<em>string</em>) - the external order idetifier</li>\n<li><strong>source_member_id</strong> (<em>string</em>) -  member identifier from external source</li>\n<li><strong>status</strong> (<em>string</em>) - the order's status</li>\n<li><strong>member_id</strong> (<em>string</em>) - an Emma member id</li>\n<li><strong>created_at</strong> (<em>string</em>) - date-time when order was created</li>\n<li><strong>updated_at</strong> (<em>string</em>) - date-time when order was updated</li>\n<li><strong>cancelled_reason</strong> (<em>string</em>) - the reasoning an order was cancelled</li>\n<li><strong>cancelled_at</strong> (<em>string</em>) - date-time when order was cancelled</li>\n<li><strong>completed_at</strong> (<em>string</em>) - date-time of when the order was completed</li>\n<li><strong>subtotal</strong> (<em>float</em>) - total before tax and shipping</li>\n<li><strong>shipping_cost</strong> (<em>float</em>) - total of shipping costs</li>\n<li><strong>tax</strong> (<em>float</em>) - total of taxes</li>\n<li><strong>total_cost</strong> (<em>float</em>) - total after shippin costs and tx</li>\n<li><strong>member</strong> (<em>object</em>) - member-realted items for the order</li>\n<li><ul>\n<li><strong>email</strong> (<em>string</em>) - REQUIRED. the member email address</li>\n</ul>\n</li>\n<li><strong>items</strong>  (<em>array</em>) - an array of line items on the order, consitisiting of product_id, price, and quantity.</li>\n<li><ul>\n<li><strong>product_id</strong> (<em>string</em>) - REQUIRED. the product's unique identifier</li>\n</ul>\n</li>\n<li><ul>\n<li><strong>price</strong> (<em>float</em>) - REQUIRED. the unit price paid for the product</li>\n</ul>\n</li>\n<li><ul>\n<li><strong>quantity</strong> (<em>integer</em>) - RQUIRED. the number of the same items purchased\\</li>\n</ul>\n</li>\n<li><ul>\n<li><strong>source</strong> (<em>string</em>) - REQUIRED. the external source of the order</li>\n</ul>\n</li>\n<li><ul>\n<li><strong>source_product_id</strong> (<em>string</em>) - REQUIRED. the unique product idenitfier from an external source</li>\n</ul>\n</li>\n<li><ul>\n<li><strong>source_vartiant_id</strong> (<em>string</em>) - the unique variant idenitfier from an external source</li>\n</ul>\n</li>\n<li><ul>\n<li><strong>source_vartiant_text</strong> (<em>string</em>) - the description of the variant</li>\n</ul>\n</li>\n<li><ul>\n<li><strong>name</strong> (<em>string</em>) - the name of the product</li>\n</ul>\n</li>\n<li><ul>\n<li><strong>sku</strong> <em>(string</em>) - the sku of the product</li>\n</ul>\n</li>\n</ul>\n<p><strong>Returns:</strong> </p>\n<ul>\n<li><code>Http200</code> - Order Created.</li>\n</ul>\n<p><strong>Raises:</strong>  </p>\n<ul>\n<li><code>Http400</code> if order item product not found</li>\n<li><code>Http409</code> if source order already exists</li>\n<li><code>Http500</code> if an unexpected error occurs.</li>\n</ul>\n","urlObject":{"protocol":"https","path":["{{account_id}}","members","orders"],"host":["{{env}}"],"query":[],"variable":[]}},"response":[{"id":"ef8de8a9-7df9-c8c5-6450-1a29b219dc77","name":"Create An Order From an External Source","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"source\": \"string\",\n  \"source_order_id\": \"string\",\n  \"source_member_id\": \"string\",\n  \"member_id\": \"string\",\n  \"created_at\": \"2017-08-30T15:30:19.129Z\",\n  \"updated_at\": \"2017-08-30T15:30:19.129Z\",\n  \"completed_at\": \"2017-08-30T15:30:19.129Z\",\n  \"subtotal\": 0,\n  \"shipping_cost\": 0,\n  \"tax\": 0,\n  \"total_cost\": 0,\n  \"cancelled_at\": \"2017-08-30T15:30:19.129Z\",\n  \"cancelled_reason\": \"string\",\n  \"member\": {\n    \"email\": \"user@example.com\"\n  },\n  \"items\": [\n    {\n      \"product_id\": 0,\n      \"price\": 0,\n      \"quantity\": 0,\n      \"source\": \"string\",\n      \"source_product_id\": \"string\",\n      \"source_variant_id\": \"string\",\n      \"source_variant_text\": \"string\",\n      \"name\": \"string\",\n      \"sku\": \"string\"\n    }\n  ]\n}"},"url":"https://{{env}}/{{account_id}}/members/orders"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"{\n  \"member_added\": true,\n  \"order\": {\n    \"member_order_id\": 0,\n    \"account_id\": 0,\n    \"member_id\": 0,\n    \"source_order_id\": \"string\",\n    \"mailing_id\": \"string\",\n    \"source_member_id\": \"string\",\n    \"created_at\": \"2017-08-30T15:41:11.688Z\",\n    \"updated_at\": \"2017-08-30T15:41:11.688Z\",\n    \"completed_at\": \"2017-08-30T15:41:11.688Z\",\n    \"cancelled_at\": \"2017-08-30T15:41:11.688Z\",\n    \"source\": \"string\",\n    \"total_cost\": 0,\n    \"tax\": 0,\n    \"subtotal\": 0,\n    \"shipping_cost\": 0,\n    \"cancelled_reason\": \"string\",\n    \"items\": [\n      {\n        \"product_id\": 0,\n        \"price\": 0,\n        \"account_id\": 0,\n        \"member_id\": 0,\n        \"quantity\": 0,\n        \"member_order_id\": 0,\n        \"order_item_id\": 0\n      }\n    ]\n  }\n}"}],"_postman_id":"59b9d8fe-7d51-0ec4-eb4d-92bfdd759039"},{"name":"Get All Orders","id":"c347601d-e31c-1070-bb43-6e2cb7a98b07","request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"status\": \"string\",\n  \"mailing_id\": \"string\",\n  \"created_at\": \"2017-08-30T14:39:51.277Z\",\n  \"updated_at\": \"2017-08-30T14:39:51.277Z\",\n  \"source_member_id\": \"string\",\n  \"source\": \"string\",\n  \"cancelled_reason\": \"string\",\n  \"cancelled_at\": \"2017-08-30T14:39:51.277Z\",\n  \"subtotal\": 0,\n  \"shipping_cost\": 0,\n  \"tax\": 0,\n  \"total_cost\": 0,\n  \"source_order_id\": \"string\",\n  \"items\": [\n    {\n      \"product_id\": 0,\n      \"price\": 0,\n      \"quantity\": 0\n    }\n  ]\n}"},"url":"https://{{env}}/{{account_id}}/members/orders","description":"<p><em>Get all of the orders in an account</em></p>\n<p><strong>Returns:</strong> </p>\n<ul>\n<li><code>Http200</code> - Orders Found.</li>\n<li>An array or orders</li>\n</ul>\n<p><strong>Raises:</strong>  </p>\n<ul>\n<li><code>Http500</code> if an unexpected error occurs.</li>\n</ul>\n","urlObject":{"protocol":"https","path":["{{account_id}}","members","orders"],"host":["{{env}}"],"query":[],"variable":[]}},"response":[{"id":"2d5022b7-33d3-be19-ba41-5a36a1cdf8f1","name":"Get All Orders in an Account","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"status\": \"string\",\n  \"mailing_id\": \"string\",\n  \"created_at\": \"2017-08-30T14:39:51.277Z\",\n  \"updated_at\": \"2017-08-30T14:39:51.277Z\",\n  \"source_member_id\": \"string\",\n  \"source\": \"string\",\n  \"cancelled_reason\": \"string\",\n  \"cancelled_at\": \"2017-08-30T14:39:51.277Z\",\n  \"subtotal\": 0,\n  \"shipping_cost\": 0,\n  \"tax\": 0,\n  \"total_cost\": 0,\n  \"source_order_id\": \"string\",\n  \"items\": [\n    {\n      \"product_id\": 0,\n      \"price\": 0,\n      \"quantity\": 0\n    }\n  ]\n}"},"url":"https://{{env}}/{{account_id}}/members/orders"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"[\n  {\n    \"member_order_id\": 0,\n    \"account_id\": 0,\n    \"member_id\": 0,\n    \"source_order_id\": \"string\",\n    \"mailing_id\": \"string\",\n    \"source_member_id\": \"string\",\n    \"created_at\": \"2017-08-30T16:07:27.094Z\",\n    \"updated_at\": \"2017-08-30T16:07:27.094Z\",\n    \"completed_at\": \"2017-08-30T16:07:27.094Z\",\n    \"cancelled_at\": \"2017-08-30T16:07:27.094Z\",\n    \"source\": \"string\",\n    \"total_cost\": 0,\n    \"tax\": 0,\n    \"subtotal\": 0,\n    \"shipping_cost\": 0,\n    \"cancelled_reason\": \"string\",\n    \"items\": [\n      {\n        \"product_id\": 0,\n        \"price\": 0,\n        \"account_id\": 0,\n        \"member_id\": 0,\n        \"quantity\": 0,\n        \"member_order_id\": 0,\n        \"order_item_id\": 0\n      }\n    ]\n  }\n]"}],"_postman_id":"c347601d-e31c-1070-bb43-6e2cb7a98b07"},{"name":"Get A Specific Member Order","id":"007de211-a03f-ca80-ce3a-fd0ef04c4047","request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"status\": \"string\",\n  \"mailing_id\": \"string\",\n  \"created_at\": \"2017-08-30T14:39:51.277Z\",\n  \"updated_at\": \"2017-08-30T14:39:51.277Z\",\n  \"source_member_id\": \"string\",\n  \"source\": \"string\",\n  \"cancelled_reason\": \"string\",\n  \"cancelled_at\": \"2017-08-30T14:39:51.277Z\",\n  \"subtotal\": 0,\n  \"shipping_cost\": 0,\n  \"tax\": 0,\n  \"total_cost\": 0,\n  \"source_order_id\": \"string\",\n  \"items\": [\n    {\n      \"product_id\": 0,\n      \"price\": 0,\n      \"quantity\": 0\n    }\n  ]\n}"},"url":"https://{{env}}/{{account_id}}/members/{{member_id}}/orders/{{order_id}}","description":"<p><em>Get a specific Member Order by ID</em></p>\n<p><strong>Returns:</strong> </p>\n<ul>\n<li><code>Http200</code> - Order Found.</li>\n</ul>\n<p><strong>Raises:</strong>  </p>\n<ul>\n<li><code>Http404</code> if no order is found or member does not exist</li>\n<li><code>Http500</code> if an unexpected error occurs.</li>\n</ul>\n","urlObject":{"protocol":"https","path":["{{account_id}}","members","{{member_id}}","orders","{{order_id}}"],"host":["{{env}}"],"query":[],"variable":[]}},"response":[{"id":"ecb25b9e-9d7a-189f-6215-363d71d2d3fd","name":"Get a single order","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"status\": \"string\",\n  \"mailing_id\": \"string\",\n  \"created_at\": \"2017-08-30T14:39:51.277Z\",\n  \"updated_at\": \"2017-08-30T14:39:51.277Z\",\n  \"source_member_id\": \"string\",\n  \"source\": \"string\",\n  \"cancelled_reason\": \"string\",\n  \"cancelled_at\": \"2017-08-30T14:39:51.277Z\",\n  \"subtotal\": 0,\n  \"shipping_cost\": 0,\n  \"tax\": 0,\n  \"total_cost\": 0,\n  \"source_order_id\": \"string\",\n  \"items\": [\n    {\n      \"product_id\": 0,\n      \"price\": 0,\n      \"quantity\": 0\n    }\n  ]\n}"},"url":"https://{{env}}/{{account_id}}/members/{{member_id}}/orders/{{order_id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"{\n  \"member_order_id\": 0,\n  \"account_id\": 0,\n  \"member_id\": 0,\n  \"source_order_id\": \"string\",\n  \"mailing_id\": \"string\",\n  \"source_member_id\": \"string\",\n  \"created_at\": \"2017-08-30T15:18:28.035Z\",\n  \"updated_at\": \"2017-08-30T15:18:28.035Z\",\n  \"completed_at\": \"2017-08-30T15:18:28.035Z\",\n  \"cancelled_at\": \"2017-08-30T15:18:28.035Z\",\n  \"source\": \"string\",\n  \"total_cost\": 0,\n  \"tax\": 0,\n  \"subtotal\": 0,\n  \"shipping_cost\": 0,\n  \"cancelled_reason\": \"string\",\n  \"items\": [\n    {\n      \"product_id\": 0,\n      \"price\": 0,\n      \"account_id\": 0,\n      \"member_id\": 0,\n      \"quantity\": 0,\n      \"member_order_id\": 0,\n      \"order_item_id\": 0\n    }\n  ]\n}"}],"_postman_id":"007de211-a03f-ca80-ce3a-fd0ef04c4047"},{"name":"Update A Specific Member Order","id":"ea2f442b-7fc1-3bec-6460-bda0f0d0b450","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"status\": \"string\",\n  \"updated_at\": \"2017-08-30T15:22:29.323Z\",\n  \"cancelled_reason\": \"string\",\n  \"cancelled_at\": \"2017-08-30T15:22:29.323Z\",\n  \"subtotal\": 0,\n  \"shipping_cost\": 0,\n  \"tax\": 0,\n  \"total_cost\": 0\n}"},"url":"https://{{env}}/{{account_id}}/members/{{member_id}}/orders/{{order_id}}","description":"<p><em>Update a specific Member Order by ID</em></p>\n<p><strong>Parameters</strong></p>\n<ul>\n<li><strong>status</strong> (<em>string</em>) - the order's current status</li>\n<li><strong>updated_at</strong> (<em>string</em>) - date-time of when the order was updated</li>\n<li><strong>cancelled_reason</strong> (<em>string</em>) - the reason an order was canceled</li>\n<li><strong>canecelled_at</strong> (<em>string</em>) - date-time of when the order was cancelled</li>\n<li><strong>subtotal</strong> (<em>float</em>) - the total before shipping and tax</li>\n<li><strong>shipping_cost</strong> (<em>float</em>) - the total for shipping and handling</li>\n<li><strong>tax</strong> (<em>float</em>) - the total of an taxes or regulatory fees</li>\n<li><strong>total_cost</strong> (<em>float</em>) - the total order cost</li>\n</ul>\n<p><strong>Returns:</strong> </p>\n<ul>\n<li><code>Http200</code> - Order Updated.</li>\n</ul>\n<p><strong>Raises:</strong>  </p>\n<ul>\n<li><code>Http400</code> if order data is in an invalid format</li>\n<li><code>Http404</code> if no order is found or member does not exist</li>\n<li><code>Http500</code> if an unexpected error occurs.</li>\n</ul>\n","urlObject":{"protocol":"https","path":["{{account_id}}","members","{{member_id}}","orders","{{order_id}}"],"host":["{{env}}"],"query":[],"variable":[]}},"response":[{"id":"2d239c64-a2fa-f581-9a97-d97ba22238bd","name":"Update a single order","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"status\": \"string\",\n  \"updated_at\": \"2017-08-30T15:22:29.323Z\",\n  \"cancelled_reason\": \"string\",\n  \"cancelled_at\": \"2017-08-30T15:22:29.323Z\",\n  \"subtotal\": 0,\n  \"shipping_cost\": 0,\n  \"tax\": 0,\n  \"total_cost\": 0\n}"},"url":"https://{{env}}/{{account_id}}/members/{{member_id}}/orders/{{order_id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"{\n  \"member_order_id\": 0,\n  \"account_id\": 0,\n  \"member_id\": 0,\n  \"source_order_id\": \"string\",\n  \"mailing_id\": \"string\",\n  \"source_member_id\": \"string\",\n  \"created_at\": \"2017-08-30T15:30:21.036Z\",\n  \"updated_at\": \"2017-08-30T15:30:21.036Z\",\n  \"completed_at\": \"2017-08-30T15:30:21.036Z\",\n  \"cancelled_at\": \"2017-08-30T15:30:21.036Z\",\n  \"source\": \"string\",\n  \"total_cost\": 0,\n  \"tax\": 0,\n  \"subtotal\": 0,\n  \"shipping_cost\": 0,\n  \"cancelled_reason\": \"string\",\n  \"items\": [\n    {\n      \"product_id\": 0,\n      \"price\": 0,\n      \"account_id\": 0,\n      \"member_id\": 0,\n      \"quantity\": 0,\n      \"member_order_id\": 0,\n      \"order_item_id\": 0\n    }\n  ]\n}"}],"_postman_id":"ea2f442b-7fc1-3bec-6460-bda0f0d0b450"},{"name":"(PRIVATE) Delete All Orders","id":"0cd90dbf-cd7b-e2a5-261f-2cd720af0ddd","request":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"status\": \"string\",\n  \"mailing_id\": \"string\",\n  \"created_at\": \"2017-08-30T14:39:51.277Z\",\n  \"updated_at\": \"2017-08-30T14:39:51.277Z\",\n  \"source_member_id\": \"string\",\n  \"source\": \"string\",\n  \"cancelled_reason\": \"string\",\n  \"cancelled_at\": \"2017-08-30T14:39:51.277Z\",\n  \"subtotal\": 0,\n  \"shipping_cost\": 0,\n  \"tax\": 0,\n  \"total_cost\": 0,\n  \"source_order_id\": \"string\",\n  \"items\": [\n    {\n      \"product_id\": 0,\n      \"price\": 0,\n      \"quantity\": 0\n    }\n  ]\n}"},"url":"https://{{env}}/{{account_id}}/members/orders","description":"<p><em>Delete All Orders and Order Items in the Account</em></p>\n<p><strong>Returns:</strong> </p>\n<ul>\n<li><code>Http200</code> - Orders and Order Items Deleted.</li>\n<li><strong>deleted_orders</strong> (<em>integer</em>) - the total number of orders deleted</li>\n</ul>\n<p><strong>Raises:</strong>  </p>\n<ul>\n<li><code>Http500</code> if an unexpected error occurs.</li>\n</ul>\n","urlObject":{"protocol":"https","path":["{{account_id}}","members","orders"],"host":["{{env}}"],"query":[],"variable":[]}},"response":[{"id":"07fcc97e-3aa6-400a-4528-261ea3274e20","name":"Delete All Orders","originalRequest":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"status\": \"string\",\n  \"mailing_id\": \"string\",\n  \"created_at\": \"2017-08-30T14:39:51.277Z\",\n  \"updated_at\": \"2017-08-30T14:39:51.277Z\",\n  \"source_member_id\": \"string\",\n  \"source\": \"string\",\n  \"cancelled_reason\": \"string\",\n  \"cancelled_at\": \"2017-08-30T14:39:51.277Z\",\n  \"subtotal\": 0,\n  \"shipping_cost\": 0,\n  \"tax\": 0,\n  \"total_cost\": 0,\n  \"source_order_id\": \"string\",\n  \"items\": [\n    {\n      \"product_id\": 0,\n      \"price\": 0,\n      \"quantity\": 0\n    }\n  ]\n}"},"url":"https://{{env}}/{{account_id}}/members/orders"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"{\n  \"deleted_orders\": 0\n}"}],"_postman_id":"0cd90dbf-cd7b-e2a5-261f-2cd720af0ddd"},{"name":"Create Multiple Orders","id":"107bd1f6-f982-522c-d621-7964de9da5d0","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"[\n  {\n    \"status\": \"string\",\n    \"member_id\": \"string\",\n    \"created_at\": \"2017-08-30T16:12:53.176Z\",\n    \"updated_at\": \"2017-08-30T16:12:53.176Z\",\n    \"source_member_id\": \"string\",\n    \"source\": \"string\",\n    \"cancelled_reason\": \"string\",\n    \"cancelled_at\": \"2017-08-30T16:12:53.176Z\",\n    \"subtotal\": 0,\n    \"shipping_cost\": 0,\n    \"tax\": 0,\n    \"total_cost\": 0,\n    \"source_order_id\": \"string\",\n    \"items\": [\n      {\n        \"product_id\": 0,\n        \"price\": 0,\n        \"quantity\": 0\n      }\n    ]\n  }\n]"},"url":"https://{{env}}/{{account_id}}/orders/bulk","description":"<p><em>Create Orders in Bulk</em></p>\n<p>Request body should contain an array of orders</p>\n<p><strong>Parameters:</strong></p>\n<ul>\n<li><strong>status</strong> (<em>string</em>) - the order's status</li>\n<li><strong>mailing_id</strong> (<em>string</em>) - an Emma member id</li>\n<li><strong>created_at</strong> (<em>string</em>) - date-time when order was created</li>\n<li><strong>updated_at</strong> (<em>string</em>) - date-time when order was updated</li>\n<li><strong>source_member_id</strong> (<em>string</em>) -  member identifier from external source</li>\n<li><strong>source</strong> (<em>string</em>) - the external source the order is coming from</li>\n<li><strong>cancelled_reason</strong> (<em>string</em>) - the reasoning an order was cancelled</li>\n<li><strong>cancelled_at</strong> (<em>string</em>) - date-time when order was cancelled</li>\n<li><strong>subtotal</strong> (<em>float</em>) - total before tax and shipping</li>\n<li><strong>shipping_cost</strong> (<em>float</em>) - total of shipping costs</li>\n<li><strong>tax</strong> (<em>float</em>) - total of taxes</li>\n<li><strong>total_cost</strong> (<em>float</em>) - total after shippin costs and tx</li>\n<li><strong>source_order_id</strong> (<em>string</em>) - the external order idetifier</li>\n<li><strong>items</strong>  (<em>array</em>) - an array of line items on the order, consitisiting of product_id, price, and quantity.</li>\n<li><ul>\n<li><strong>product_id</strong> (<em>string</em>) - the product's unique identifier</li>\n</ul>\n</li>\n<li><ul>\n<li><strong>price</strong> (<em>float</em>) - the unit price paid for the product</li>\n</ul>\n</li>\n<li><ul>\n<li><strong>quantity</strong> (<em>integer</em>) - the number of the same items purchased</li>\n</ul>\n</li>\n</ul>\n<p><strong>Returns:</strong> </p>\n<ul>\n<li><code>Http200</code> - Bulk load orders job created.</li>\n<li><strong>job_id</strong> (<em>string</em>) - the bulk load job identifier</li>\n</ul>\n<p><strong>Raises:</strong>  </p>\n<ul>\n<li><code>Http500</code> if an unexpected error occurs.</li>\n</ul>\n","urlObject":{"protocol":"https","path":["{{account_id}}","orders","bulk"],"host":["{{env}}"],"query":[],"variable":[]}},"response":[{"id":"c6649f5b-261d-7253-015b-37240d2bd440","name":"Create Multiple Orders","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"[\n  {\n    \"status\": \"string\",\n    \"mailing_id\": \"string\",\n    \"created_at\": \"2017-08-30T16:12:53.176Z\",\n    \"updated_at\": \"2017-08-30T16:12:53.176Z\",\n    \"source_member_id\": \"string\",\n    \"source\": \"string\",\n    \"cancelled_reason\": \"string\",\n    \"cancelled_at\": \"2017-08-30T16:12:53.176Z\",\n    \"subtotal\": 0,\n    \"shipping_cost\": 0,\n    \"tax\": 0,\n    \"total_cost\": 0,\n    \"source_order_id\": \"string\",\n    \"items\": [\n      {\n        \"product_id\": 0,\n        \"price\": 0,\n        \"quantity\": 0\n      }\n    ]\n  }\n]"},"url":"https://{{env}}/{{account_id}}/orders/bulk"},"status":"OK","code":200,"_postman_previewlanguage":"","header":[],"cookie":[],"responseTime":"0","body":"{\n  \"job_id\": \"string\"\n}"},{"id":"e0470f8c-7f59-8a5a-6b54-21aa45e95447","name":"Create Multiple Orders","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"[\n  {\n    \"status\": \"string\",\n    \"member_id\": \"string\",\n    \"created_at\": \"2017-08-30T16:12:53.176Z\",\n    \"updated_at\": \"2017-08-30T16:12:53.176Z\",\n    \"source_member_id\": \"string\",\n    \"source\": \"string\",\n    \"cancelled_reason\": \"string\",\n    \"cancelled_at\": \"2017-08-30T16:12:53.176Z\",\n    \"subtotal\": 0,\n    \"shipping_cost\": 0,\n    \"tax\": 0,\n    \"total_cost\": 0,\n    \"source_order_id\": \"string\",\n    \"items\": [\n      {\n        \"product_id\": 0,\n        \"price\": 0,\n        \"quantity\": 0\n      }\n    ]\n  }\n]"},"url":"https://{{env}}/{{account_id}}/orders/bulk"},"status":"OK","code":200,"_postman_previewlanguage":"","header":[],"cookie":[],"responseTime":"0","body":"{\n  \"job_id\": \"string\"\n}"}],"_postman_id":"107bd1f6-f982-522c-d621-7964de9da5d0"},{"name":"(PRIVATE) Create Multiple Orders Without Member or Product IDs","id":"f38941cb-4f94-e4bc-8c8d-39767c5a22c8","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"[\n  {\n    \"status\": \"string\",\n    \"mailing_id\": \"string\",\n    \"created_at\": \"2017-08-30T16:23:55.455Z\",\n    \"updated_at\": \"2017-08-30T16:23:55.455Z\",\n    \"source_member_id\": \"string\",\n    \"source\": \"string\",\n    \"cancelled_reason\": \"string\",\n    \"cancelled_at\": \"2017-08-30T16:23:55.455Z\",\n    \"subtotal\": 0,\n    \"shipping_cost\": 0,\n    \"tax\": 0,\n    \"total_cost\": 0,\n    \"source_order_id\": \"string\",\n    \"member\": {\n      \"email\": \"user@example.com\",\n      \"fields\": {}\n    },\n    \"items\": [\n      {\n        \"account_id\": 0,\n        \"price\": 0,\n        \"quantity\": 0,\n        \"source\": \"string\",\n        \"source_product_id\": \"string\",\n        \"source_variant_id\": \"string\"\n      }\n    ]\n  }\n]"},"url":"https://{{env}}/{{account_id}}/orders/bulk","description":"<p><em>Create Orders in Bulk, without knowing the emma member_id or emma product_id</em></p>\n<p>Request body should contain an array of orders</p>\n<p><strong>Parameters:</strong></p>\n<ul>\n<li><strong>status</strong> (<em>string</em>) - the order's status</li>\n<li><strong>created_at</strong> (<em>string</em>) - date-time when order was created</li>\n<li><strong>updated_at</strong> (<em>string</em>) - date-time when order was updated</li>\n<li><strong>source_member_id</strong> (<em>string</em>) -  member identifier from external source</li>\n<li><strong>source</strong> (<em>string</em>) - the external source the order is coming from</li>\n<li><strong>cancelled_reason</strong> (<em>string</em>) - the reasoning an order was cancelled</li>\n<li><strong>cancelled_at</strong> (<em>string</em>) - date-time when order was cancelled</li>\n<li><strong>subtotal</strong> (<em>float</em>) - total before tax and shipping</li>\n<li><strong>shipping_cost</strong> (<em>float</em>) - total of shipping costs</li>\n<li><strong>tax</strong> (<em>float</em>) - total of taxes</li>\n<li><strong>total_cost</strong> (<em>float</em>) - total after shippin costs and tx</li>\n<li><strong>source_order_id</strong> (<em>string</em>) - the external order idetifier</li>\n<li><strong>items</strong>  (<em>array</em>) - an array of line items on the order, consitisiting of product_id, price, and quantity.</li>\n<li><ul>\n<li><strong>product_id</strong> (<em>string</em>) - the product's unique identifier</li>\n</ul>\n</li>\n<li><ul>\n<li><strong>price</strong> (<em>float</em>) - the unit price paid for the product</li>\n</ul>\n</li>\n<li><ul>\n<li><strong>quantity</strong> (<em>integer</em>) - the number of the same items purchased</li>\n</ul>\n</li>\n<li><ul>\n<li><strong>source</strong> (<em>string</em>) - the external source of the order</li>\n</ul>\n</li>\n<li><ul>\n<li><strong>source_product_id</strong> (<em>string</em>) - the unique product idenitfier from an external source</li>\n</ul>\n</li>\n<li><ul>\n<li><strong>source_vartiant_id</strong> (<em>string</em>) - the unique variant idenitfier from an external source</li>\n</ul>\n</li>\n</ul>\n<p><strong>Returns:</strong> </p>\n<ul>\n<li><code>Http200</code> - Bulk load orders job created.</li>\n<li><strong>job_id</strong> (<em>string</em>) - the bulk load job identifier</li>\n</ul>\n<p><strong>Raises:</strong>  </p>\n<ul>\n<li><code>Http500</code> if an unexpected error occurs.</li>\n</ul>\n","urlObject":{"protocol":"https","path":["{{account_id}}","orders","bulk"],"host":["{{env}}"],"query":[],"variable":[]}},"response":[{"id":"550b8c76-cf2c-6ff4-9532-c6173f19ad9a","name":"Create Multiple Orders","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"[\n  {\n    \"status\": \"string\",\n    \"mailing_id\": \"string\",\n    \"created_at\": \"2017-08-30T16:23:55.455Z\",\n    \"updated_at\": \"2017-08-30T16:23:55.455Z\",\n    \"source_member_id\": \"string\",\n    \"source\": \"string\",\n    \"cancelled_reason\": \"string\",\n    \"cancelled_at\": \"2017-08-30T16:23:55.455Z\",\n    \"subtotal\": 0,\n    \"shipping_cost\": 0,\n    \"tax\": 0,\n    \"total_cost\": 0,\n    \"source_order_id\": \"string\",\n    \"member\": {\n      \"email\": \"user@example.com\",\n      \"fields\": {}\n    },\n    \"items\": [\n      {\n        \"account_id\": 0,\n        \"price\": 0,\n        \"quantity\": 0,\n        \"source\": \"string\",\n        \"source_product_id\": \"string\",\n        \"source_variant_id\": \"string\"\n      }\n    ]\n  }\n]"},"url":"https://{{env}}/{{account_id}}/orders/bulk"},"status":"OK","code":200,"_postman_previewlanguage":"","header":[],"cookie":[],"responseTime":"0","body":"{\n  \"job_id\": \"string\"\n}"}],"_postman_id":"f38941cb-4f94-e4bc-8c8d-39767c5a22c8"},{"name":"Create Multiple Orders Without Member or Product IDs","id":"0582632d-b16c-bcaf-cd84-5e508f60bf60","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"add_members\": true,\n  \"add_products\": true,\n  \"orders\": [\n    {\n      \"source\": \"string\",\n      \"source_order_id\": \"string\",\n      \"source_member_id\": \"string\",\n      \"mailing_id\": \"string\",\n      \"created_at\": \"2017-08-30T16:47:37.461Z\",\n      \"updated_at\": \"2017-08-30T16:47:37.461Z\",\n      \"completed_at\": \"2017-08-30T16:47:37.461Z\",\n      \"subtotal\": 0,\n      \"shipping_cost\": 0,\n      \"tax\": 0,\n      \"total_cost\": 0,\n      \"cancelled_at\": \"2017-08-30T16:47:37.461Z\",\n      \"cancelled_reason\": \"string\",\n      \"member\": {\n        \"email\": \"user@example.com\"\n      },\n      \"items\": [\n        {\n          \"product_id\": 0,\n          \"price\": 0,\n          \"quantity\": 0,\n          \"source\": \"string\",\n          \"source_product_id\": \"string\",\n          \"source_variant_id\": \"string\",\n          \"source_variant_text\": \"string\",\n          \"name\": \"string\",\n          \"sku\": \"string\"\n        }\n      ]\n    }\n  ]\n}"},"url":"https://{{env}}/{{account_id}}/orders/bulk","description":"<p><em>Create Orders in Bulk, without knowing the emma member_id or emma product_id</em></p>\n<p><strong>Parameters:</strong></p>\n<ul>\n<li><strong>add_members</strong> (<em>boolean</em>) - add members that do not already exist</li>\n<li><strong>add_products</strong> (<em>boolean</em>) - add products that do not already exist</li>\n<li><ul>\n<li><strong>status</strong> (<em>string</em>) - the order's status</li>\n</ul>\n</li>\n<li><ul>\n<li><strong>created_at</strong> (<em>string</em>) - date-time when order was created</li>\n</ul>\n</li>\n<li><ul>\n<li><strong>updated_at</strong> (<em>string</em>) - date-time when order was updated</li>\n</ul>\n</li>\n<li><ul>\n<li><strong>source_member_id</strong> (<em>string</em>) -  member identifier from external source</li>\n</ul>\n</li>\n<li><ul>\n<li><strong>source</strong> (<em>string</em>) - the external source the order is coming from</li>\n</ul>\n</li>\n<li><ul>\n<li><strong>cancelled_reason</strong> (<em>string</em>) - the reasoning an order was cancelled</li>\n</ul>\n</li>\n<li><ul>\n<li><strong>cancelled_at</strong> (<em>string</em>) - date-time when order was cancelled</li>\n</ul>\n</li>\n<li><ul>\n<li><strong>subtotal</strong> (<em>float</em>) - total before tax and shipping</li>\n</ul>\n</li>\n<li><ul>\n<li><strong>shipping_cost</strong> (<em>float</em>) - total of shipping costs</li>\n</ul>\n</li>\n<li><ul>\n<li><strong>tax</strong> (<em>float</em>) - total of taxes</li>\n</ul>\n</li>\n<li><ul>\n<li><strong>total_cost</strong> (<em>float</em>) - total after shippin costs and tx</li>\n</ul>\n</li>\n<li><ul>\n<li><strong>source_order_id</strong> (<em>string</em>) - the external order idetifier</li>\n</ul>\n</li>\n<li><ul>\n<li><strong>member</strong> (<em>object</em>) - member-realted items for the order</li>\n</ul>\n</li>\n<li><ul>\n<li><ul>\n<li><strong>email</strong> (<em>string</em>) - REQUIRED. the member email address</li>\n</ul>\n</li>\n</ul>\n</li>\n<li><ul>\n<li><strong>items</strong>  (<em>array</em>) - an array of line items on the order, consitisiting of product_id, price, and quantity.</li>\n</ul>\n</li>\n<li><ul>\n<li><ul>\n<li><strong>product_id</strong> (<em>string</em>) - the product's unique identifier</li>\n</ul>\n</li>\n</ul>\n</li>\n<li><ul>\n<li><ul>\n<li><strong>price</strong> (<em>float</em>) - the unit price paid for the product</li>\n</ul>\n</li>\n</ul>\n</li>\n<li><ul>\n<li><ul>\n<li><strong>quantity</strong> (<em>integer</em>) - the number of the same items purchased</li>\n</ul>\n</li>\n</ul>\n</li>\n<li><ul>\n<li><ul>\n<li><strong>source</strong> (<em>string</em>) - the external source of the order</li>\n</ul>\n</li>\n</ul>\n</li>\n<li><ul>\n<li><ul>\n<li><strong>source_product_id</strong> (<em>string</em>) - the unique product idenitfier from an external source</li>\n</ul>\n</li>\n</ul>\n</li>\n<li><ul>\n<li><ul>\n<li><strong>source_vartiant_id</strong> (<em>string</em>) - the unique variant idenitfier from an external source</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n<p><strong>Returns:</strong> </p>\n<ul>\n<li><code>Http200</code> - Bulk load orders job created.</li>\n<li><strong>job_id</strong> (<em>string</em>) - the bulk load job identifier</li>\n</ul>\n<p><strong>Raises:</strong>  </p>\n<ul>\n<li><code>Http400</code> if an invalid request form.</li>\n<li><code>Http500</code> if an unexpected error occurs.</li>\n</ul>\n","urlObject":{"protocol":"https","path":["{{account_id}}","orders","bulk"],"host":["{{env}}"],"query":[],"variable":[]}},"response":[{"id":"093712c8-d77f-4cef-d053-0a98626fbb3d","name":"Create Multiple Orders","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"[\n  {\n    \"status\": \"string\",\n    \"mailing_id\": \"string\",\n    \"created_at\": \"2017-08-30T16:23:55.455Z\",\n    \"updated_at\": \"2017-08-30T16:23:55.455Z\",\n    \"source_member_id\": \"string\",\n    \"source\": \"string\",\n    \"cancelled_reason\": \"string\",\n    \"cancelled_at\": \"2017-08-30T16:23:55.455Z\",\n    \"subtotal\": 0,\n    \"shipping_cost\": 0,\n    \"tax\": 0,\n    \"total_cost\": 0,\n    \"source_order_id\": \"string\",\n    \"member\": {\n      \"email\": \"user@example.com\",\n      \"fields\": {}\n    },\n    \"items\": [\n      {\n        \"account_id\": 0,\n        \"price\": 0,\n        \"quantity\": 0,\n        \"source\": \"string\",\n        \"source_product_id\": \"string\",\n        \"source_variant_id\": \"string\"\n      }\n    ]\n  }\n]"},"url":"https://{{env}}/{{account_id}}/orders/bulk"},"status":"OK","code":200,"_postman_previewlanguage":"","header":[],"cookie":[],"responseTime":"0","body":"{\n  \"job_id\": \"string\"\n}"}],"_postman_id":"0582632d-b16c-bcaf-cd84-5e508f60bf60"},{"name":"Get Bulk Order Job Status","id":"19d52e8c-c062-7eac-7867-e984320e40d0","request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"products\": [\n    {\n      \"account_id\": 0,\n      \"product_id\": 0,\n      \"source\": \"string\",\n      \"source_product_id\": \"string\",\n      \"source_variant_id\": \"string\",\n      \"source_variant_text\": \"string\",\n      \"sku\": \"string\",\n      \"name\": \"string\",\n      \"price\": 0,\n      \"product_url\": \"string\",\n      \"image_url\": \"string\",\n      \"categories\": [\n        \"string\"\n      ],\n      \"deleted_at\": \"2017-08-29T14:59:37.404Z\"\n    }\n  ]\n}"},"url":"https://{{env}}/{{account_id}}/orders/bulk/status/{{job_id}}","description":"<p><em>Get Bulk Load Job Status</em></p>\n<p><strong>Parameters:</strong>  </p>\n<ul>\n<li><strong>job_id</strong> (<em>string</em>) - The unique job identifier</li>\n</ul>\n<p><strong>Returns:</strong> </p>\n<ul>\n<li><code>Http200</code> - Bulk job status returned.</li>\n<li><strong>job_status</strong> (<em>string</em>) - The current status of the given job</li>\n<li><ul>\n<li><em>created</em> - job has been created</li>\n</ul>\n</li>\n<li><ul>\n<li><em>in_progress</em> - job is currently running</li>\n</ul>\n</li>\n<li><ul>\n<li><em>complete</em> - job is complete</li>\n</ul>\n</li>\n<li><ul>\n<li><em>out of retention</em> - job id has expired and is no longer in retention</li>\n</ul>\n</li>\n<li><strong>ordersAdded</strong> (<em>integer</em>) - number of orders added</li>\n<li><strong>ordersFailed</strong> (<em>integer</em>) - number of orders that failed to be imported</li>\n<li><strong>ordersSkipped</strong> (<em>integer</em>) - number of orders that were skipped because they already existed</li>\n<li><strong>totalOrders</strong> (<em>integer</em>) - total number of orders</li>\n</ul>\n<p><strong>Raises:</strong>  </p>\n<ul>\n<li><code>Http404</code> if no job is found.</li>\n<li><code>Http500</code> if an unexpected error occurs.</li>\n</ul>\n","urlObject":{"protocol":"https","path":["{{account_id}}","orders","bulk","status","{{job_id}}"],"host":["{{env}}"],"query":[],"variable":[]}},"response":[{"id":"d5700154-0670-a956-5bc8-81d74709dbb8","name":"Get Job Status","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"products\": [\n    {\n      \"account_id\": 0,\n      \"product_id\": 0,\n      \"source\": \"string\",\n      \"source_product_id\": \"string\",\n      \"source_variant_id\": \"string\",\n      \"source_variant_text\": \"string\",\n      \"sku\": \"string\",\n      \"name\": \"string\",\n      \"price\": 0,\n      \"product_url\": \"string\",\n      \"image_url\": \"string\",\n      \"categories\": [\n        \"string\"\n      ],\n      \"deleted_at\": \"2017-08-29T14:59:37.404Z\"\n    }\n  ]\n}"},"url":"https://{{env}}/{{account_id}}/orders/bulk/status/{{job_id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"{\n  \"ordersAdded\": 0,\n  \"ordersSkipped\": 0,\n  \"ordersFailed\": 0,\n  \"totalOrders\": 0,\n  \"jobStatus\": \"created\"\n}"}],"_postman_id":"19d52e8c-c062-7eac-7867-e984320e40d0"},{"name":"Get Bulk Order Job Errors","id":"ad3a50ff-f9aa-0986-89a9-622d85c5825b","request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"products\": [\n    {\n      \"account_id\": 0,\n      \"product_id\": 0,\n      \"source\": \"string\",\n      \"source_product_id\": \"string\",\n      \"source_variant_id\": \"string\",\n      \"source_variant_text\": \"string\",\n      \"sku\": \"string\",\n      \"name\": \"string\",\n      \"price\": 0,\n      \"product_url\": \"string\",\n      \"image_url\": \"string\",\n      \"categories\": [\n        \"string\"\n      ],\n      \"deleted_at\": \"2017-08-29T14:59:37.404Z\"\n    }\n  ]\n}"},"url":"https://{{env}}/{{account_id}}/orders/bulk/errors/{{job_id}}","description":"<p><em>Get Bulk Load Job Errors</em></p>\n<p><strong>Parameters:</strong>  </p>\n<ul>\n<li><strong>job_id</strong> (<em>string</em>) - The unique job identifier</li>\n</ul>\n<p><strong>Returns:</strong> </p>\n<ul>\n<li><code>Http200</code> - Bulk job status returned.</li>\n<li><strong>job_status</strong> (<em>string</em>) - The current status of the given job</li>\n<li><ul>\n<li><em>created</em> - job has been created</li>\n</ul>\n</li>\n<li><ul>\n<li><em>in_progress</em> - job is currently running</li>\n</ul>\n</li>\n<li><ul>\n<li><em>complete</em> - job is complete</li>\n</ul>\n</li>\n<li><ul>\n<li><em>out of retention</em> - job id has expired and is no longer in retention</li>\n</ul>\n</li>\n<li><strong>errors</strong> (<em>array</em>) - the last 20 errors available for a job.</li>\n<li>empty if no errors</li>\n</ul>\n<p><strong>Raises:</strong>  </p>\n<ul>\n<li><code>Http404</code> if no job is found.</li>\n<li><code>Http500</code> if an unexpected error occurs.</li>\n</ul>\n","urlObject":{"protocol":"https","path":["{{account_id}}","orders","bulk","errors","{{job_id}}"],"host":["{{env}}"],"query":[],"variable":[]}},"response":[{"id":"52fe9730-c15e-d8cf-8286-55c3c801a366","name":"Get Job Errors","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"products\": [\n    {\n      \"account_id\": 0,\n      \"product_id\": 0,\n      \"source\": \"string\",\n      \"source_product_id\": \"string\",\n      \"source_variant_id\": \"string\",\n      \"source_variant_text\": \"string\",\n      \"sku\": \"string\",\n      \"name\": \"string\",\n      \"price\": 0,\n      \"product_url\": \"string\",\n      \"image_url\": \"string\",\n      \"categories\": [\n        \"string\"\n      ],\n      \"deleted_at\": \"2017-08-29T14:59:37.404Z\"\n    }\n  ]\n}"},"url":"https://{{env}}/{{account_id}}/orders/bulk/errors/{{job_id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"{\n  \"jobStatus\": \"created\",\n  \"errors\": [\n    \"string\"\n  ]\n}"}],"_postman_id":"ad3a50ff-f9aa-0986-89a9-622d85c5825b"}],"id":"7c0fcc31-33dd-eb23-2085-b81f3f31f6b4","_postman_id":"7c0fcc31-33dd-eb23-2085-b81f3f31f6b4","description":""}],"id":"cbc6bb4c-c462-38e1-dfce-95f08727c1fd","description":"<p>Coming Soon!</p>\n","_postman_id":"cbc6bb4c-c462-38e1-dfce-95f08727c1fd"},{"name":"Response","item":[{"name":"Get Response","id":"a7040933-a8f8-afe0-237e-4632d2556a55","request":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"<p>Converts to b64 for Authenticating the Emma Public API</p>\n"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.e2ma.net/{{account_id}}/response","description":"<p><em>Get the response summary for an account.</em></p>\n<p>This method will return a month-based time series of data including sends, opens, clicks, mailings, forwards, and opt-outs. Test mailings and forwards are not included in the data returned.</p>\n<p><strong>Parameters:</strong></p>\n<ul>\n<li><strong>include_archived</strong> (<em>boolean</em>) – Accepts 1. All other values are False. Optional flag to include archived mailings in the list.</li>\n<li><strong>range</strong> (<em>string</em>) – Accepts 2 dates (<em>YYYY-MM-DD</em>) delimited by a tilde (<code>~</code>). Example: <code>2011-04-01~2011-09-01</code>. Optional argument to limit results to a date range. If one of the dates is omitted, the default will be either min date or now. If a single date is provided with no tilde, then only mailings sent on that date will be included.</li>\n</ul>\n<p><strong>Returns:</strong> A list of objects with each object representing one month. Each object contains:</p>\n<ul>\n<li><strong>account_id</strong> – The account_id for this line of stats\n_ *<em>month</em> – two digit integer for month</li>\n<li><strong>year</strong> – four digit integer for year</li>\n<li><strong>mailings</strong> – number of mailings sent</li>\n<li><strong>sent</strong> – number of messages sent</li>\n<li><strong>delivered</strong> – number of messages delivered</li>\n<li><strong>bounced</strong> – number of messages that failed delivery due to a hard or soft bounce</li>\n<li><strong>opened</strong> – number of messages opened</li>\n<li><strong>clicked_unique</strong> – link clicks, unique on message</li>\n<li><strong>clicked</strong> – total link clicks, including duplicates</li>\n<li><strong>forwarded</strong> – times the mailing was forwarded</li>\n<li><strong>shared</strong> – total times a mailing has been shared</li>\n<li><strong>share_clicked</strong> – total times a shared mailing has been seen</li>\n<li><strong>webview_shared</strong> - total times a customer has shared their mailing</li>\n<li><strong>webview_share_clicked</strong> – total times a customer-shared mailing has been seen</li>\n<li><strong>opted_out</strong> – people who opted out based on this mailing</li>\n<li><strong>signed_up</strong> – people who signed up based on this mailing</li>\n</ul>\n","urlObject":{"protocol":"https","path":["{{account_id}}","response"],"host":["api","e2ma","net"],"query":[],"variable":[]}},"response":[{"id":"8d14b6da-1e47-8ef8-e592-2063b8f8670b","name":"Response Between Two Dates","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"Converts to b64 for Authenticating the Emma Public API"}],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"https://api.e2ma.net/{{account_id}}/response?range=2011-04-01~2011-09-01\n","protocol":"https","host":["api","e2ma","net"],"path":["{{account_id}}","response"],"query":[{"key":"range","value":"2011-04-01~2011-09-01\n"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"[]"},{"id":"9a77495a-89fd-1a0d-4859-945c902ad66d","name":"Response Summary","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"Converts to b64 for Authenticating the Emma Public API"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.e2ma.net/{{account_id}}/response"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"[\n]"},{"id":"f6daac63-f6ec-9bba-fa66-df9526b5cbe8","name":"Response From Date to Now","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"Converts to b64 for Authenticating the Emma Public API"}],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"https://api.e2ma.net/{{account_id}}/response?range=2011-04-01~","protocol":"https","host":["api","e2ma","net"],"path":["{{account_id}}","response"],"query":[{"key":"range","value":"2011-04-01~"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"[]"}],"_postman_id":"a7040933-a8f8-afe0-237e-4632d2556a55"},{"name":"Get Response For Mailing","id":"ceac8ea4-dc09-5733-6513-b2ae2522aa6c","request":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"<p>Converts to b64 for Authenticating the Emma Public API</p>\n"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.e2ma.net/{{account_id}}/response/#mailing_id","description":"<p><em>Get the response summary for a particular mailing.</em></p>\n<p>This method will return the counts of each type of response activity for a particular mailing.</p>\n<p><strong>Returns:</strong> A single object with the following fields: </p>\n<ul>\n<li><strong>name</strong> – name of mailing </li>\n<li><strong>subject</strong> – subject of the mailing </li>\n<li><strong>sent</strong> – messages sent </li>\n<li><strong>delivered</strong> – messages delivered </li>\n<li><strong>bounced</strong> – messages that failed delivery due to a hard or soft bounce </li>\n<li><strong>opened</strong> – messages opened </li>\n<li><strong>clicked_unique</strong> – link clicks, unique on message </li>\n<li><strong>clicked</strong> – total link clicks, including duplicates </li>\n<li><strong>forwarded</strong> – times the mailing was forwarded </li>\n<li><strong>opted_out</strong> – people who opted out based on this mailing </li>\n<li><strong>signed_up</strong> – people who signed up based on this mailing </li>\n<li><strong>shared</strong> – people who shared this mailing </li>\n<li><strong>share_clicked</strong> – number of clicks shares of this mailing received </li>\n<li><strong>webview_shared</strong> – number of times the customer has shared </li>\n<li><strong>webview_share_clicked</strong> – number of clicks customer-shares of this mailing received</li>\n</ul>\n<p><strong>Raises:</strong>  </p>\n<ul>\n<li><code>Http404</code> if the mailing does not exist.</li>\n<li><code>Http404</code> if the mailing is not valid mailing type:<ul>\n<li><code>m</code> (<em>standard mailings</em>)</li>\n<li><code>t</code> (<em>test mailings</em>)</li>\n<li><code>r</code> (<em>trigger mailings</em>)</li>\n</ul>\n</li>\n</ul>\n","urlObject":{"protocol":"https","path":["{{account_id}}","response",""],"hash":"mailing_id","host":["api","e2ma","net"],"query":[],"variable":[]}},"response":[{"id":"8c489c59-5774-643c-c0bc-c5cfdf8156f5","name":"Single Mailing","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"Converts to b64 for Authenticating the Emma Public API"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.e2ma.net/{{account_id}}/response/#mailing_id"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"{\n  \"delivered\": 0, \n  \"signed_up\": 0, \n  \"clicked\": 0, \n  \"forwarded\": 0, \n  \"clicked_unique\": 0, \n  \"webview_share_clicked\": 0, \n  \"subject\": \"Sample Mailing for [% member:first_name %] [% member:last_name %]\", \n  \"opened\": 0, \n  \"opted_out\": 0, \n  \"share_clicked\": 0, \n  \"shared\": 0, \n  \"webview_shared\": 0, \n  \"in_progress\": 0, \n  \"bounced\": 0, \n  \"recipient_count\": 0, \n  \"sent\": 0, \n  \"name\": \"Sample Mailing\"\n}"}],"_postman_id":"ceac8ea4-dc09-5733-6513-b2ae2522aa6c"},{"name":"Get Messages Sent For Delivery","id":"12b8a28e-22f5-a647-9cee-95197e1bf70a","request":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"<p>Converts to b64 for Authenticating the Emma Public API</p>\n"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.e2ma.net/{{account_id}}/response/#mailing_id/sends","description":"<p><em>Get the list of messages that have been sent to an MTA for delivery.</em></p>\n<p><strong>Returns:</strong> An array of objects with the following fields:</p>\n<ul>\n<li><strong>timestamp</strong> – time the message was sent</li>\n<li><strong>member_id</strong> – id of the message addressee</li>\n<li><strong>email</strong> – email of the message addressee</li>\n</ul>\n<p><strong>Raises:</strong>  </p>\n<ul>\n<li><code>Http404</code> if the mailing does not exist.</li>\n<li><code>Http404</code> if the mailing is not valid mailing type:<ul>\n<li><code>m</code> (<em>standard mailings</em>)</li>\n<li><code>t</code> (<em>test mailings</em>)</li>\n<li><code>r</code> (<em>trigger mailings</em>)</li>\n</ul>\n</li>\n</ul>\n","urlObject":{"protocol":"https","path":["{{account_id}}","response",""],"hash":"mailing_id/sends","host":["api","e2ma","net"],"query":[],"variable":[]}},"response":[{"id":"c8303f77-f227-e848-fe98-258995b0cf5d","name":"Get Messages For Sent Mailing","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"Converts to b64 for Authenticating the Emma Public API"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.e2ma.net/{{account_id}}/response/200/sends"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"[\n  {\n    \"fields\": {\n      \"first_name\": \"Emma\",\n      \"last_name\": \"Smith\",\n      \"favorite_food\": \"tacos\"\n    },\n    \"timestamp\": \"@D:2011-01-02T10:27:43\",\n    \"member_id\": 200,\n    \"member_since\": \"@D:2010-11-12T11:23:45\",\n    \"email_domain\": \"myemma.com\",\n    \"email_user\": \"emma\",\n    \"email\": \"emma@myemma.com\",\n    \"member_status_id\": \"a\"\n  },\n  {\n    \"fields\": {\n      \"first_name\": \"Gladys\",\n      \"last_name\": \"Jones\",\n      \"favorite_food\": \"toast\"\n    },\n    \"timestamp\": \"@D:2011-01-02T10:27:43\",\n    \"member_id\": 201,\n    \"member_since\": \"@D:2011-01-03T15:54:13\",\n    \"email_domain\": \"myemma.com\",\n    \"email_user\": \"gladys\",\n    \"email\": \"gladys@myemma.com\",\n    \"member_status_id\": \"o\"\n  },\n  {\n    \"fields\": {\n\n    },\n    \"timestamp\": \"@D:2011-01-02T10:27:43\",\n    \"member_id\": 204,\n    \"member_since\": \"@D:2010-12-13T23:12:44\",\n    \"email_domain\": \"myemma.com\",\n    \"email_user\": \"bob\",\n    \"email\": \"bob@myemma.com\",\n    \"member_status_id\": \"a\"\n  }\n]"}],"_postman_id":"12b8a28e-22f5-a647-9cee-95197e1bf70a"},{"name":"Get Messages In Progress","id":"4c72e278-781c-28da-4954-862da4287160","request":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"<p>Converts to b64 for Authenticating the Emma Public API</p>\n"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.e2ma.net/{{account_id}}/response/#mailing_id/in_progress","description":"<p><em>Get the list of messages that are in the queue, possibly sent, but not yet delivered.</em></p>\n<p><strong>Returns:</strong> An array of objects with the following fields:</p>\n<ul>\n<li><strong>member_id</strong> – id of the message addressee</li>\n<li><strong>email</strong> – email of the message addressee</li>\n</ul>\n<p><strong>Raises:</strong>  </p>\n<ul>\n<li><code>Http404</code> if the mailing does not exist.</li>\n<li><code>Http404</code> if the mailing is not valid mailing type:<ul>\n<li><code>m</code> (<em>standard mailings</em>)</li>\n<li><code>t</code> (<em>test mailings</em>)</li>\n<li><code>r</code> (<em>trigger mailings</em>)</li>\n</ul>\n</li>\n</ul>\n","urlObject":{"protocol":"https","path":["{{account_id}}","response",""],"hash":"mailing_id/in_progress","host":["api","e2ma","net"],"query":[],"variable":[]}},"response":[{"id":"74341784-7b59-ac1c-8f38-4e8c300969d6","name":"Get Messages In Progress","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"Converts to b64 for Authenticating the Emma Public API"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.e2ma.net/{{account_id}}/response/200/in_progress"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"[\n  {\n    \"fields\": {\n      \"first_name\": \"Gladys\",\n      \"last_name\": \"Jones\",\n      \"favorite_food\": \"toast\"\n    },\n    \"member_id\": 201,\n    \"member_since\": \"@D:2011-01-03T15:54:13\",\n    \"email_domain\": \"myemma.com\",\n    \"email_user\": \"gladys\",\n    \"email\": \"gladys@myemma.com\",\n    \"member_status_id\": \"o\"\n  },\n  {\n    \"fields\": {\n\n    },\n    \"member_id\": 204,\n    \"member_since\": \"@D:2010-12-13T23:12:44\",\n    \"email_domain\": \"myemma.com\",\n    \"email_user\": \"bob\",\n    \"email\": \"bob@myemma.com\",\n    \"member_status_id\": \"a\"\n  }\n]"}],"_postman_id":"4c72e278-781c-28da-4954-862da4287160"},{"name":"Get Delivered Messages","id":"1e2e5c2c-a1c8-3638-f638-7099a2b09a0d","request":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"<p>Converts to b64 for Authenticating the Emma Public API</p>\n"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.e2ma.net/{{account_id}}/response/#mailing_id/deliveries","description":"<p><em>Get the list of messages that have finished delivery.</em></p>\n<p>This will include those that were successfully delivered, as well as those that failed due to hard or soft bounces.</p>\n<p>This list can be limited by <code>delivery_type</code>.</p>\n<p><strong>Parameters:</strong></p>\n<ul>\n<li><strong>result</strong> (<em>string</em>) – Accepted options. Defaults to <code>all</code> if not provided: <ul>\n<li><code>all</code></li>\n<li><code>delivered</code></li>\n<li><code>bounced</code></li>\n<li><code>hard</code></li>\n<li><code>soft</code></li>\n</ul>\n</li>\n</ul>\n<p><strong>Returns:</strong> An array of objects with the following fields:</p>\n<ul>\n<li><strong>timestamp</strong> – time the message was delivered</li>\n<li><strong>delivery_type</strong> – delivery outcome: </li>\n<li><code>delivered</code>, <ul>\n<li><code>hard</code> (<em>bounce</em>)</li>\n<li><code>soft</code> (<em>bounce</em>)</li>\n</ul>\n</li>\n<li><strong>member_id</strong> – id of the message addressee</li>\n<li><strong>email</strong> – email of the message addressee</li>\n</ul>\n<p><strong>Raises:</strong>  </p>\n<ul>\n<li><code>Http404</code> if the mailing does not exist.</li>\n<li><code>Http404</code> if the mailing is not valid mailing type:<ul>\n<li><code>m</code> (<em>standard mailings</em>)</li>\n<li><code>t</code> (<em>test mailings</em>)</li>\n<li><code>r</code> (<em>trigger mailings</em>)</li>\n</ul>\n</li>\n</ul>\n","urlObject":{"protocol":"https","path":["{{account_id}}","response",""],"hash":"mailing_id/deliveries","host":["api","e2ma","net"],"query":[],"variable":[]}},"response":[{"id":"8ad25015-129d-ca31-df65-1461fdaf519f","name":"Get Deliveries","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"Converts to b64 for Authenticating the Emma Public API"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.e2ma.net/{{account_id}}/response/200/deliveries"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"[\n  {\n    \"delivery_type\": \"delivered\",\n    \"email_domain\": \"myemma.com\",\n    \"fields\": {\n      \"first_name\": \"Emma\",\n      \"last_name\": \"Smith\",\n      \"favorite_food\": \"tacos\"\n    },\n    \"mailing_id\": 200,\n    \"timestamp\": \"@D:2011-01-02T10:29:36\",\n    \"member_id\": 200,\n    \"member_status_id\": \"a\",\n    \"member_since\": \"@D:2010-11-12T11:23:45\",\n    \"mailing_name\": \"Sample Mailing\",\n    \"email_user\": \"emma\",\n    \"email\": \"emma@myemma.com\"\n  }\n]"},{"id":"b4ed8773-5036-c502-baaa-ba68b4ec7777","name":"Get All Deliveries For A Mailing","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"Converts to b64 for Authenticating the Emma Public API"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.e2ma.net/{{account_id}}/response/200/deliveries"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"[\n  {\n    \"delivery_type\": \"delivered\",\n    \"email_domain\": \"myemma.com\",\n    \"fields\": {\n      \"first_name\": \"Emma\",\n      \"last_name\": \"Smith\",\n      \"favorite_food\": \"tacos\"\n    },\n    \"mailing_id\": 200,\n    \"timestamp\": \"@D:2011-01-02T10:29:36\",\n    \"member_id\": 200,\n    \"member_status_id\": \"a\",\n    \"member_since\": \"@D:2010-11-12T11:23:45\",\n    \"mailing_name\": \"Sample Mailing\",\n    \"email_user\": \"emma\",\n    \"email\": \"emma@myemma.com\"\n  }\n]"}],"_postman_id":"1e2e5c2c-a1c8-3638-f638-7099a2b09a0d"},{"name":"Get Opens For Mailing","id":"5a8f4779-510e-741f-2423-4e0ff4ec572f","request":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"<p>Converts to b64 for Authenticating the Emma Public API</p>\n"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.e2ma.net/{{account_id}}/response/#mailing_id/opens","description":"<p><em>Get the list of opened messages for this campaign.</em></p>\n<p><strong>Returns:</strong> An array of objects with the following fields:</p>\n<ul>\n<li><strong>timestamp</strong> – time the message was delivered</li>\n<li><strong>member_id</strong> – id of the message addressee</li>\n<li><strong>email</strong> – email of the message addressee</li>\n</ul>\n<p><strong>Raises:</strong>  </p>\n<ul>\n<li><code>Http404</code> if the mailing does not exist.</li>\n<li><code>Http404</code> if the mailing is not valid mailing type:<ul>\n<li><code>m</code> (<em>standard mailings</em>)</li>\n<li><code>t</code> (<em>test mailings</em>)</li>\n<li><code>r</code> (<em>trigger mailings</em>)</li>\n</ul>\n</li>\n</ul>\n","urlObject":{"protocol":"https","path":["{{account_id}}","response",""],"hash":"mailing_id/opens","host":["api","e2ma","net"],"query":[],"variable":[]}},"response":[{"id":"72d2b764-70bb-0ff5-b97c-00a5bea3671b","name":"Get Opens","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"Converts to b64 for Authenticating the Emma Public API"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.e2ma.net/{{account_id}}/response/200/opens"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"[\n  {\n    \"fields\": {\n      \"first_name\": \"Emma\",\n      \"last_name\": \"Smith\",\n      \"favorite_food\": \"tacos\"\n    },\n    \"timestamp\": \"@D:2011-01-02T11:13:51\",\n    \"member_id\": 200,\n    \"member_since\": \"@D:2010-11-12T11:23:45\",\n    \"email_domain\": \"myemma.com\",\n    \"email_user\": \"emma\",\n    \"email\": \"emma@myemma.com\",\n    \"member_status_id\": \"a\"\n  },\n  {\n    \"fields\": {\n\n    },\n    \"timestamp\": \"@D:2011-01-02T13:55:51\",\n    \"member_id\": 204,\n    \"member_since\": \"@D:2010-12-13T23:12:44\",\n    \"email_domain\": \"myemma.com\",\n    \"email_user\": \"bob\",\n    \"email\": \"bob@myemma.com\",\n    \"member_status_id\": \"a\"\n  }\n]\n"}],"_postman_id":"5a8f4779-510e-741f-2423-4e0ff4ec572f"},{"name":"Get  Mailing Links","id":"1b6f18a9-2951-2829-d436-1f96ece78360","request":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"<p>Converts to b64 for Authenticating the Emma Public API</p>\n"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.e2ma.net/{{account_id}}/response/#mailing_id/links","description":"<p><em>Get the list of links for this mailing.</em></p>\n<p><strong>Returns:</strong> An array of objects with the following fields:</p>\n<ul>\n<li><strong>link_id</strong> – If the mailing is not a trigger, the individual id of the link will be included</li>\n<li><strong>link_order</strong> – order of the link in the mailing</li>\n<li><strong>link_name</strong> – friendly name for the link</li>\n<li><strong>link_target</strong> – link URL</li>\n<li><strong>unique_clicks</strong> – clicks on the link, unique per message</li>\n<li><strong>total_clicks</strong> – clicks on the link, total</li>\n</ul>\n<p><strong>Raises:</strong>  </p>\n<ul>\n<li><code>Http404</code> if the mailing does not exist.</li>\n<li><code>Http404</code> if the mailing is not valid mailing type:<ul>\n<li><code>m</code> (<em>standard mailings</em>)</li>\n<li><code>t</code> (<em>test mailings</em>)</li>\n<li><code>r</code> (<em>trigger mailings</em>)</li>\n</ul>\n</li>\n</ul>\n","urlObject":{"protocol":"https","path":["{{account_id}}","response",""],"hash":"mailing_id/links","host":["api","e2ma","net"],"query":[],"variable":[]}},"response":[{"id":"b5184e50-5fe9-b1d5-3ea2-1e69068f18fe","name":"Get Links","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"Converts to b64 for Authenticating the Emma Public API"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.e2ma.net/{{account_id}}/response/#mailing_id/links"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"[\n  {\n    \"link_order\": 1,\n    \"link_name\": \"Emma\",\n    \"unique_clicks\": 1,\n    \"plaintext\": false,\n    \"link_target\": \"http://www.myemma.com\",\n    \"total_clicks\": 1,\n    \"link_id\": 200\n  }\n]"},{"id":"fb0893c1-1cf7-1991-3a72-fc5ddc4f089b","name":"Get Mailing Links","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"Converts to b64 for Authenticating the Emma Public API"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.e2ma.net/{{account_id}}/response/#mailing_id/links"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"[\n  {\n    \"link_order\": 1,\n    \"link_name\": \"Emma\",\n    \"unique_clicks\": 1,\n    \"plaintext\": false,\n    \"link_target\": \"http://www.myemma.com\",\n    \"total_clicks\": 1,\n    \"link_id\": 200\n  }\n]"}],"_postman_id":"1b6f18a9-2951-2829-d436-1f96ece78360"},{"name":"Get  Mailing Clicks","id":"325faa9f-a8b8-dc8c-9917-3c604ad91532","request":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"<p>Converts to b64 for Authenticating the Emma Public API</p>\n"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.e2ma.net/{{account_id}}/response/#mailing_id/clicks","description":"<p>*Get the list of clicks for this mailing.</p>\n<p>This list can also be limited by <code>member_id</code> or <code>link_id</code>.</p>\n<p><strong>Parameters:</strong></p>\n<ul>\n<li><strong>member_id</strong> (<em>int</em>) – Limits results to a single member.</li>\n<li><strong>link_id</strong> (<em>int</em>) – Limits results to a single link.</li>\n</ul>\n<p><strong>Returns:</strong> An array of objects with the following fields:</p>\n<ul>\n<li><strong>link_id</strong> – id of the clicked link</li>\n<li><strong>timestamp</strong> – time the link was clicked</li>\n<li><strong>member_id</strong> – id of the message addressee</li>\n<li><strong>email</strong> – email of the message addressee</li>\n</ul>\n<p><strong>Raises:</strong>  </p>\n<ul>\n<li><code>Http404</code> if the mailing does not exist.</li>\n<li><code>Http404</code> if the mailing is not valid mailing type:<ul>\n<li><code>m</code> (<em>standard mailings</em>)</li>\n<li><code>t</code> (<em>test mailings</em>)</li>\n<li><code>r</code> (<em>trigger mailings</em>)</li>\n</ul>\n</li>\n</ul>\n","urlObject":{"protocol":"https","path":["{{account_id}}","response",""],"hash":"mailing_id/clicks","host":["api","e2ma","net"],"query":[],"variable":[]}},"response":[{"id":"9dd181e4-1f60-c9e7-94b5-06f99cb973ae","name":"Get Clicks","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"Converts to b64 for Authenticating the Emma Public API"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.e2ma.net/{{account_id}}/response/200/clicks"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"[\n  {\n    \"link_id\": 200,\n    \"fields\": {\n      \"first_name\": \"Emma\",\n      \"last_name\": \"Smith\",\n      \"favorite_food\": \"tacos\"\n    },\n    \"timestamp\": \"@D:2011-01-02T11:14:32\",\n    \"member_id\": 200,\n    \"member_since\": \"@D:2010-11-12T11:23:45\",\n    \"email_domain\": \"myemma.com\",\n    \"email_user\": \"emma\",\n    \"email\": \"emma@myemma.com\",\n    \"member_status_id\": \"a\"\n  }\n]"}],"_postman_id":"325faa9f-a8b8-dc8c-9917-3c604ad91532"},{"name":"Get  Mailing Forwards","id":"e5c67a56-e396-25c4-dfe0-36a59e1c3c47","request":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"<p>Converts to b64 for Authenticating the Emma Public API</p>\n"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.e2ma.net/{{account_id}}/response/#mailing_id/forwards","description":"<p><em>Get the list of forwards for this mailing.</em></p>\n<p><strong>Returns:</strong> An array of objects with the following fields:</p>\n<ul>\n<li><strong>timestamp</strong> – time the link was clicked</li>\n<li><strong>forward_mailing_id</strong> – id of the new mailing created to send the forward</li>\n<li><strong>member_id</strong> – id of the message addressee</li>\n<li><strong>email</strong> – email of the message addressee</li>\n</ul>\n<p><strong>Raises:</strong>  </p>\n<ul>\n<li><code>Http404</code> if the mailing does not exist.</li>\n<li><code>Http404</code> if the mailing is not valid mailing type:<ul>\n<li><code>m</code> (<em>standard mailings</em>)</li>\n<li><code>t</code> (<em>test mailings</em>)</li>\n<li><code>r</code> (<em>trigger mailings</em>)</li>\n</ul>\n</li>\n</ul>\n","urlObject":{"protocol":"https","path":["{{account_id}}","response",""],"hash":"mailing_id/forwards","host":["api","e2ma","net"],"query":[],"variable":[]}},"response":[{"id":"8ac216b6-6a8e-6f81-22b4-00cbca42e3d1","name":"Get Forwards","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"Converts to b64 for Authenticating the Emma Public API"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.e2ma.net/{{account_id}}/response/#mailing_id/forwards"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"[\n\n]\n"}],"_postman_id":"e5c67a56-e396-25c4-dfe0-36a59e1c3c47"},{"name":"Get  Mailing Optouts","id":"a62b69f7-37ac-2d59-7869-119c7ddf8c33","request":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"<p>Converts to b64 for Authenticating the Emma Public API</p>\n"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.e2ma.net/{{account_id}}/response/#mailing_id/optouts","description":"<p><em>Get the list of optouts for this mailing.</em></p>\n<p><strong>Returns:</strong> An array of objects with the following fields:</p>\n<ul>\n<li><strong>timestamp</strong> – time the link was clicked</li>\n<li><strong>member_id</strong> – id of the message addressee</li>\n<li><strong>email</strong> – email of the message addressee</li>\n<li><strong>first_name</strong> – first name of the opted out member</li>\n<li><strong>last_name</strong> – last name of the opted out member</li>\n</ul>\n<p><strong>Raises:</strong>  </p>\n<ul>\n<li><code>Http404</code> if the mailing does not exist.</li>\n<li><code>Http404</code> if the mailing is not valid mailing type:<ul>\n<li><code>m</code> (<em>standard mailings</em>)</li>\n<li><code>t</code> (<em>test mailings</em>)</li>\n<li><code>r</code> (<em>trigger mailings</em>)</li>\n</ul>\n</li>\n</ul>\n","urlObject":{"protocol":"https","path":["{{account_id}}","response",""],"hash":"mailing_id/optouts","host":["api","e2ma","net"],"query":[],"variable":[]}},"response":[{"id":"413ae185-3541-138b-8d77-e667a3e879a6","name":"Get Optouts","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"Converts to b64 for Authenticating the Emma Public API"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.e2ma.net/{{account_id}}/response/200/optouts"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"[\n  {\n    \"fields\": {\n\n    },\n    \"timestamp\": \"@D:2011-01-02T13:56:16\",\n    \"member_id\": 204,\n    \"member_since\": \"@D:2010-12-13T23:12:44\",\n    \"email_domain\": \"myemma.com\",\n    \"email_user\": \"bob\",\n    \"email\": \"bob@myemma.com\",\n    \"member_status_id\": \"a\"\n  }\n]"},{"id":"be0da364-dd1c-9c03-0e5a-e438ef507248","name":"Get Optouts","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"Converts to b64 for Authenticating the Emma Public API"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.e2ma.net/{{account_id}}/response/200/optouts"},"status":"OK","code":200,"_postman_previewlanguage":"","header":[],"cookie":[],"responseTime":"0","body":"[\n  {\n    \"fields\": {\n\n    },\n    \"timestamp\": \"@D:2011-01-02T13:56:16\",\n    \"member_id\": 204,\n    \"member_since\": \"@D:2010-12-13T23:12:44\",\n    \"email_domain\": \"myemma.com\",\n    \"email_user\": \"bob\",\n    \"email\": \"bob@myemma.com\",\n    \"member_status_id\": \"a\"\n  }\n]"}],"_postman_id":"a62b69f7-37ac-2d59-7869-119c7ddf8c33"},{"name":"Get  Mailing Optouts copy","id":"d51a1c01-ef11-ecfd-8249-5b571d06e459","request":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"<p>Converts to b64 for Authenticating the Emma Public API</p>\n"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.e2ma.net/{{account_id}}/response/#mailing_id/optouts","description":"<p><em>Get the list of signups for this mailing.</em></p>\n<p><strong>Returns:</strong> An array of objects with the following fields:</p>\n<ul>\n<li><strong>member_id</strong> – id of the message addressee</li>\n<li><strong>email</strong> – email of the message addressee</li>\n<li><strong>timestamp</strong> – time the link was clicked</li>\n<li><strong>first_name</strong> – first name of the opted out member</li>\n<li><strong>last_name</strong> – last name of the opted out member</li>\n<li><strong>ref_member_id</strong> – id of the referring member</li>\n</ul>\n<p><strong>Raises:</strong>  </p>\n<ul>\n<li><code>Http404</code> if the mailing does not exist.</li>\n<li><code>Http404</code> if the mailing is not valid mailing type:<ul>\n<li><code>m</code> (<em>standard mailings</em>)</li>\n<li><code>t</code> (<em>test mailings</em>)</li>\n<li><code>r</code> (<em>trigger mailings</em>)</li>\n</ul>\n</li>\n</ul>\n","urlObject":{"protocol":"https","path":["{{account_id}}","response",""],"hash":"mailing_id/optouts","host":["api","e2ma","net"],"query":[],"variable":[]}},"response":[{"id":"edc0c401-26ae-c3ee-77f7-a87fe1cbbd67","name":"Get Signups","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"Converts to b64 for Authenticating the Emma Public API"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.e2ma.net/{{account_id}}/response/200/signups"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"[\n  {\n    \"ref_member_id\": 200,\n    \"mailing_mailing_id\": 200,\n    \"fields\": {\n\n    },\n    \"timestamp\": \"@D:2011-01-05T15:28:11\",\n    \"member_id\": 205,\n    \"member_since\": \"@D:2011-01-05T15:28:11\",\n    \"email_domain\": \"myemma.com\",\n    \"email_user\": \"newbie\",\n    \"email\": \"newbie@myemma.com\",\n    \"member_status_id\": \"a\"\n  }\n]"}],"_postman_id":"d51a1c01-ef11-ecfd-8249-5b571d06e459"},{"name":"Get  Mailing Shares","id":"90488173-8648-3120-44ba-3ea5becd3989","request":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"<p>Converts to b64 for Authenticating the Emma Public API</p>\n"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.e2ma.net/{{account_id}}/response/#mailing_id/shares","description":"<p><em>Get the list of shares for this mailing</em></p>\n<p><strong>Returns:</strong> An array of objects with the following fields:</p>\n<ul>\n<li><strong>member_id</strong> – id of the shared message</li>\n<li><strong>network</strong> – name of the network the share happened on</li>\n<li><strong>clicks</strong> – number of clicks that the shared link received</li>\n</ul>\n<p><strong>Raises:</strong>  </p>\n<ul>\n<li><code>Http404</code> if the mailing does not exist.</li>\n<li><code>Http404</code> if the mailing is not valid mailing type:<ul>\n<li><code>m</code> (<em>standard mailings</em>)</li>\n<li><code>t</code> (<em>test mailings</em>)</li>\n<li><code>r</code> (<em>trigger mailings</em>)</li>\n</ul>\n</li>\n</ul>\n","urlObject":{"protocol":"https","path":["{{account_id}}","response",""],"hash":"mailing_id/shares","host":["api","e2ma","net"],"query":[],"variable":[]}},"response":[],"_postman_id":"90488173-8648-3120-44ba-3ea5becd3989"},{"name":"Get  Mailing Customer Shares","id":"a795f59c-9fa1-4a13-9505-32e0a1feaeb3","request":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"<p>Converts to b64 for Authenticating the Emma Public API</p>\n"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.e2ma.net/{{account_id}}/response/#mailing_id/customer_shares","description":"<p><em>Get the list of customer shares for this mailing</em></p>\n<p><strong>Returns:</strong> An array of objects with the following fields:</p>\n<ul>\n<li><strong>timestamp</strong> – timestamp of the shared link click</li>\n<li><strong>network</strong> – name of the network the share happened on</li>\n</ul>\n<p><strong>Raises:</strong>  </p>\n<ul>\n<li><code>Http404</code> if the mailing does not exist.</li>\n<li><code>Http404</code> if the mailing is not valid mailing type:<ul>\n<li><code>m</code> (<em>standard mailings</em>)</li>\n<li><code>t</code> (<em>test mailings</em>)</li>\n<li><code>r</code> (<em>trigger mailings</em>)</li>\n</ul>\n</li>\n</ul>\n","urlObject":{"protocol":"https","path":["{{account_id}}","response",""],"hash":"mailing_id/customer_shares","host":["api","e2ma","net"],"query":[],"variable":[]}},"response":[],"_postman_id":"a795f59c-9fa1-4a13-9505-32e0a1feaeb3"},{"name":"Get  Mailing Customer Share Clicks","id":"6bddc1ff-8905-6475-1759-e377cc55d450","request":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"<p>Converts to b64 for Authenticating the Emma Public API</p>\n"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.e2ma.net/{{account_id}}/response/#mailing_id/customer_share_clicks","description":"<p><em>Get the list of customer shares for this mailing</em></p>\n<p><strong>Returns:</strong> An array of objects with the following fields:</p>\n<ul>\n<li><strong>timestamp</strong> – timestamp of the shared link click</li>\n<li><strong>network</strong> – name of the network the share happened on</li>\n<li><strong>clicks</strong> – number of clicks that the shared link received</li>\n</ul>\n<p><strong>Raises:</strong>  </p>\n<ul>\n<li><code>Http404</code> if the mailing does not exist.</li>\n<li><code>Http404</code> if the mailing is not valid mailing type:<ul>\n<li><code>m</code> (<em>standard mailings</em>)</li>\n<li><code>t</code> (<em>test mailings</em>)</li>\n<li><code>r</code> (<em>trigger mailings</em>)</li>\n</ul>\n</li>\n</ul>\n","urlObject":{"protocol":"https","path":["{{account_id}}","response",""],"hash":"mailing_id/customer_share_clicks","host":["api","e2ma","net"],"query":[],"variable":[]}},"response":[],"_postman_id":"6bddc1ff-8905-6475-1759-e377cc55d450"},{"name":"Get Customer Share By Share Id","id":"487f283d-bbf9-20f2-57cc-af9409dd93f6","request":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"<p>Converts to b64 for Authenticating the Emma Public API</p>\n"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.e2ma.net/{{account_id}}/response/#share_id/customer_share","description":"<p><em>Get the customer share associated with the share id.</em></p>\n<p><strong>Returns:</strong> An array of objects with the following fields:</p>\n<ul>\n<li><strong>timestamp</strong> – timestamp of the shared link click</li>\n<li><strong>network</strong> – name of the network the share happened on</li>\n<li><strong>share_status</strong> – status of the share received</li>\n</ul>\n<p><strong>Raises:</strong>  </p>\n<ul>\n<li><code>Http404</code> if the mailing does not exist.</li>\n<li><code>Http404</code> if the mailing is not valid mailing type:<ul>\n<li><code>m</code> (<em>standard mailings</em>)</li>\n<li><code>t</code> (<em>test mailings</em>)</li>\n<li><code>r</code> (<em>trigger mailings</em>)</li>\n</ul>\n</li>\n</ul>\n","urlObject":{"protocol":"https","path":["{{account_id}}","response",""],"hash":"share_id/customer_share","host":["api","e2ma","net"],"query":[],"variable":[]}},"response":[],"_postman_id":"487f283d-bbf9-20f2-57cc-af9409dd93f6"},{"name":"Get Mailing Share Overview","id":"7d5068ed-c2ec-63c9-bb25-92c5d20382e1","request":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"<p>Converts to b64 for Authenticating the Emma Public API</p>\n"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.e2ma.net/{{account_id}}/response/#mailing_id/shares/overview","description":"<p><em>Get overview of shares pertaining to this mailing_id.</em></p>\n<p><strong>Returns:</strong> An array of objects with the following fields:</p>\n<ul>\n<li><strong>network</strong> – name of the network the share happened on</li>\n<li><strong>share_clicks</strong> – number of clicks that the shared link received</li>\n<li><strong>share_count</strong> – number of shares to that network</li>\n</ul>\n<p><strong>Raises:</strong>  </p>\n<ul>\n<li><code>Http404</code> if the mailing does not exist.</li>\n<li><code>Http404</code> if the mailing is not valid mailing type:<ul>\n<li><code>m</code> (<em>standard mailings</em>)</li>\n<li><code>t</code> (<em>test mailings</em>)</li>\n<li><code>r</code> (<em>trigger mailings</em>)</li>\n</ul>\n</li>\n</ul>\n","urlObject":{"protocol":"https","path":["{{account_id}}","response",""],"hash":"mailing_id/shares/overview","host":["api","e2ma","net"],"query":[],"variable":[]}},"response":[],"_postman_id":"7d5068ed-c2ec-63c9-bb25-92c5d20382e1"}],"id":"fbac2680-9011-efd6-19a2-1438754e3eaa","description":"<p>We know that you want to do some fancy pivot tables with your response data, so we’ve provided quite a few endpoints here to give you access to that response data. You can get overview numbers for all of your mailings and also drill down into finding out the actual members who opened a particular mailing.</p>\n","_postman_id":"fbac2680-9011-efd6-19a2-1438754e3eaa"},{"name":"Searches","item":[{"name":"Get Searches","id":"a2aafa07-821a-130c-0cdf-c1b89307500d","request":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":"https://api.e2ma.net/{{account_id}}/searches","description":"<p><em>Retrieve a list of saved searches.</em></p>\n<p><strong>Parameters:</strong></p>\n<ul>\n<li><strong>deleted</strong> (<em>boolean</em>) – Accepts True or 1. Optional flag to include deleted searches.</li>\n</ul>\n<p><strong>Returns</strong>: An array of searches.</p>\n","urlObject":{"protocol":"https","path":["{{account_id}}","searches"],"host":["api","e2ma","net"],"query":[],"variable":[]}},"response":[{"id":"9d3ad207-4d93-3a79-f9e8-5f0a8d205140","name":"Get Searches","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"Converts to b64 for Authenticating the Emma Public API","type":"text"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.e2ma.net/{{account_id}}/searches"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"[\n  {\n    \"search_id\": 200,\n    \"optout_count\": 0,\n    \"error_count\": 0,\n    \"name\": \"Test Search\",\n    \"criteria\": \"[\\\"or\\\", [\\\"group\\\", \\\"eq\\\", \\\"Monthly Newsletter\\\"],[\\\"group\\\", \\\"eq\\\", \\\"Widget Buyers\\\"]]\",\n    \"deleted_at\": null,\n    \"purged_at\": null,\n    \"last_run_at\": null,\n    \"active_count\": 0,\n    \"account_id\": 100\n  },\n  {\n    \"search_id\": 201,\n    \"optout_count\": 0,\n    \"error_count\": 0,\n    \"name\": \"Second Test Search\",\n    \"criteria\": \"[\\\"group\\\", \\\"eq\\\", \\\"Special Events\\\"]\",\n    \"deleted_at\": null,\n    \"purged_at\": null,\n    \"last_run_at\": null,\n    \"active_count\": 0,\n    \"account_id\": 100\n  }\n]"},{"id":"d220a17f-f968-3cc5-4d9b-7596b0c497ad","name":"Get Searches","originalRequest":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":"https://api.e2ma.net/{{account_id}}/searches"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"[\n  {\n    \"search_id\": 200,\n    \"optout_count\": 0,\n    \"error_count\": 0,\n    \"name\": \"Test Search\",\n    \"criteria\": \"[\\\"or\\\", [\\\"group\\\", \\\"eq\\\", \\\"Monthly Newsletter\\\"],[\\\"group\\\", \\\"eq\\\", \\\"Widget Buyers\\\"]]\",\n    \"deleted_at\": null,\n    \"purged_at\": null,\n    \"last_run_at\": null,\n    \"active_count\": 0,\n    \"account_id\": 100\n  },\n  {\n    \"search_id\": 201,\n    \"optout_count\": 0,\n    \"error_count\": 0,\n    \"name\": \"Second Test Search\",\n    \"criteria\": \"[\\\"group\\\", \\\"eq\\\", \\\"Special Events\\\"]\",\n    \"deleted_at\": null,\n    \"purged_at\": null,\n    \"last_run_at\": null,\n    \"active_count\": 0,\n    \"account_id\": 100\n  }\n]"}],"_postman_id":"a2aafa07-821a-130c-0cdf-c1b89307500d"},{"name":"Get Search By Id","id":"438ab49c-f1f6-bf94-574b-f95a0721ce5a","request":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"<p>Converts to b64 for Authenticating the Emma Public API</p>\n"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.e2ma.net/{{account_id}}/searches/#search_id","description":"<p><em>Get the details for a saved search.</em></p>\n<p><strong>Returns:</strong> A search.</p>\n<p><strong>Parameters:</strong></p>\n<ul>\n<li><strong>deleted</strong> (<em>boolean</em>) – Accepts True or 1. Optional flag to include deleted searches.</li>\n</ul>\n<p><strong>Raises:</strong>  <code>Http404</code> if the search does not exist.</p>\n","urlObject":{"protocol":"https","path":["{{account_id}}","searches",""],"hash":"search_id","host":["api","e2ma","net"],"query":[],"variable":[]}},"response":[{"id":"cfeba4cf-f01a-161f-69b5-27f529e6fbda","name":"Get Single Search","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"Converts to b64 for Authenticating the Emma Public API"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.e2ma.net/{{account_id}}/searches/200"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"{\n  \"search_id\": 200, \n  \"optout_count\": 0, \n  \"error_count\": 0, \n  \"name\": \"Test Search\", \n  \"criteria\": \"[\\\"or\\\", [\\\"group\\\", \\\"eq\\\", \\\"Monthly Newsletter\\\"],[\\\"group\\\", \\\"eq\\\", \\\"Widget Buyers\\\"]]\", \n  \"deleted_at\": null, \n  \"purged_at\": null, \n  \"last_run_at\": null, \n  \"active_count\": 0, \n  \"account_id\": 100\n}\n"}],"_postman_id":"438ab49c-f1f6-bf94-574b-f95a0721ce5a"},{"name":"Create Search","id":"6c0d29b5-8f82-d457-b454-6eaa3b5c843c","request":{"method":"POST","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"<p>Converts to b64 for Authenticating the Emma Public API</p>\n"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"New Search\", \n  \"criteria\": [\n    \"or\", \n    [\n      \"group\", \n      \"eq\", \n      \"Monthly Newsletter\"\n    ], \n    [\n      \"group\", \n      \"eq\", \n      \"Widget Buyers\"\n    ]\n  ]\n}"},"url":"https://api.e2ma.net/{{account_id}}/searches","description":"<p><em>Create a saved search.</em></p>\n<p>The detail of a search is specified in a JSON structure that describes the clauses to be applied using groups of <em>filter type</em>, <em>operator</em> and <em>value</em>. Where the <em>filter type</em> is <code>member_field</code>, the referenced field should be specified by joining with a colon. For example:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-JSON\">[\"and\",\n    [\"or\",\n        [\"group\", \"eq\", \"my list\"],\n        [\"group\", \"contains\", \"old\"]\n    ],\n    [\"not\", [\"member_field\", \"soup\", \"eq\", \"lentil\"]],\n    [\"opened\", 123249, \"between\", \"2011-01-22, 2011-01-31\"],\n    [\"clicked\", 83927]\n]\n</code></pre>\n<p>The following parameters are required:</p>\n<p><strong>Parameters:</strong></p>\n<ul>\n<li><strong>criteria</strong> (<em>array</em>) – A combination of search conditions, as described above.</li>\n<li><strong>name</strong> (<em>string</em>) – A name used to describe this search.</li>\n</ul>\n<p><strong>Returns:</strong> The ID of the new search</p>\n<p>**Raises: <code>Http400</code> if the search is invalid.</p>\n","urlObject":{"protocol":"https","path":["{{account_id}}","searches"],"host":["api","e2ma","net"],"query":[],"variable":[]}},"response":[{"id":"cf4a6908-7418-27a0-0bb7-24d7148659ce","name":"Create A Search","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"Converts to b64 for Authenticating the Emma Public API","type":"text"},{"key":"Content-Type","name":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"New Search\", \n  \"criteria\": [\n    \"or\", \n    [\n      \"group\", \n      \"eq\", \n      \"Monthly Newsletter\"\n    ], \n    [\n      \"group\", \n      \"eq\", \n      \"Widget Buyers\"\n    ]\n  ]\n}"},"url":"https://api.e2ma.net/{{account_id}}/searches"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"1024"}],"_postman_id":"6c0d29b5-8f82-d457-b454-6eaa3b5c843c"},{"name":"Update Search","id":"8895d442-e64e-be72-f813-c9370bac813d","request":{"method":"PUT","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"<p>Converts to b64 for Authenticating the Emma Public API</p>\n"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"criteria\": [\n    \"or\", \n    [\n      \"group\", \n      \"eq\", \n      \"Monthly Newsletter\"\n    ], \n    [\n      \"group\", \n      \"eq\", \n      \"Special Events\"\n    ]\n  ]\n}"},"url":"https://api.e2ma.net/{{account_id}}/searches/#search_id","description":"<p><em>Update a saved search.</em></p>\n<p>No parameters are required, but either the name or criteria parameter must be present for an update to occur.</p>\n<p><strong>Parameters:</strong></p>\n<ul>\n<li><em>criteria</em>* (<em>array</em>) – A combination of search conditions, as described above (<em>see create_search</em>).</li>\n<li><strong>name</strong> (<em>string</em>) – A name used to describe this search.</li>\n</ul>\n<p><strong>Returns:</strong> True if the update was successful</p>\n<p><strong>Raises:</strong></p>\n<ul>\n<li><code>Http404</code> if the search does not exist.</li>\n<li><code>Http400</code> if the search criteria is invalid.</li>\n</ul>\n","urlObject":{"protocol":"https","path":["{{account_id}}","searches",""],"hash":"search_id","host":["api","e2ma","net"],"query":[],"variable":[]}},"response":[{"id":"df2ca6e3-f957-6c93-39ba-827eb58b6c3d","name":"Update Search","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"Converts to b64 for Authenticating the Emma Public API"},{"key":"Content-Type","name":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"criteria\": [\n    \"or\", \n    [\n      \"group\", \n      \"eq\", \n      \"Monthly Newsletter\"\n    ], \n    [\n      \"group\", \n      \"eq\", \n      \"Special Events\"\n    ]\n  ]\n}"},"url":"https://api.e2ma.net/{{account_id}}/searches/200"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"true"}],"_postman_id":"8895d442-e64e-be72-f813-c9370bac813d"},{"name":"Delete Search","id":"abb19c1e-8e60-cfa0-b31f-de797139530e","request":{"method":"DELETE","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"<p>Converts to b64 for Authenticating the Emma Public API</p>\n"}],"body":{"mode":"raw","raw":""},"url":"https://api.e2ma.net/{{account_id}}/searches/#search_id","description":"<p><em>Delete a saved search. The member records referred to by the search are not affected.</em></p>\n<p>**Returns:**True if the search is deleted.</p>\n<p><strong>Raises:</strong>  <code>Http404</code> if the search does not exist.</p>\n","urlObject":{"protocol":"https","path":["{{account_id}}","searches",""],"hash":"search_id","host":["api","e2ma","net"],"query":[],"variable":[]}},"response":[{"id":"31616cc5-e295-8fda-799b-e96981bc899e","name":"Delete Search","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"Converts to b64 for Authenticating the Emma Public API"}],"body":{"mode":"raw","raw":""},"url":"https://api.e2ma.net/{{account_id}}/searches/200"},"status":"OK","code":200,"_postman_previewlanguage":"","header":[],"cookie":[],"responseTime":"0","body":"true"}],"_postman_id":"abb19c1e-8e60-cfa0-b31f-de797139530e"},{"name":"Get Members In Search","id":"fedd4963-79dd-d9be-64ae-b062529a534f","request":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"<p>Converts to b64 for Authenticating the Emma Public API</p>\n"}],"body":{"mode":"raw","raw":""},"url":"https://api.e2ma.net/{{account_id}}/searches/#search_id/members","description":"<p><em>Get the members matching the search.</em></p>\n<p><strong>Returns:</strong> An array of members.</p>\n<p><strong>Raises:</strong> <code>Http404</code> if the search does not exist.</p>\n","urlObject":{"protocol":"https","path":["{{account_id}}","searches",""],"hash":"search_id/members","host":["api","e2ma","net"],"query":[],"variable":[]}},"response":[{"id":"1c5b1c92-aca7-f20b-de30-a30ca5342b49","name":"Get Members In A Search","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"Converts to b64 for Authenticating the Emma Public API"}],"body":{"mode":"raw","raw":""},"url":"https://api.e2ma.net/{{account_id}}/searches/201/members"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"[\n  {\n    \"status\": \"active\",\n    \"confirmed_opt_in\": null,\n    \"account_id\": 100,\n    \"fields\": {\n      \"first_name\": \"Emma\",\n      \"last_name\": \"Smith\",\n      \"favorite_food\": \"tacos\"\n    },\n    \"member_id\": 200,\n    \"last_modified_at\": null,\n    \"member_status_id\": \"a\",\n    \"plaintext_preferred\": false,\n    \"email_error\": null,\n    \"member_since\": \"@D:2010-11-12T11:23:45\",\n    \"bounce_count\": 0,\n    \"deleted_at\": null,\n    \"email\": \"emma@myemma.com\"\n  },\n  {\n    \"status\": \"opt-out\",\n    \"confirmed_opt_in\": null,\n    \"account_id\": 100,\n    \"fields\": {\n      \"first_name\": \"Gladys\",\n      \"last_name\": \"Jones\",\n      \"favorite_food\": \"toast\"\n    },\n    \"member_id\": 201,\n    \"last_modified_at\": null,\n    \"member_status_id\": \"o\",\n    \"plaintext_preferred\": false,\n    \"email_error\": null,\n    \"member_since\": \"@D:2011-01-03T15:54:13\",\n    \"bounce_count\": 0,\n    \"deleted_at\": null,\n    \"email\": \"gladys@myemma.com\"\n  },\n  {\n    \"status\": \"active\",\n    \"confirmed_opt_in\": null,\n    \"account_id\": 100,\n    \"fields\": {\n      \"first_name\": \"Tony\",\n      \"last_name\": \"Brown\",\n      \"favorite_food\": \"pizza\"\n    },\n    \"member_id\": 202,\n    \"last_modified_at\": null,\n    \"member_status_id\": \"a\",\n    \"plaintext_preferred\": false,\n    \"email_error\": null,\n    \"member_since\": \"@D:2010-11-12T09:12:33\",\n    \"bounce_count\": 0,\n    \"deleted_at\": null,\n    \"email\": \"tony@myemma.com\"\n  },\n  {\n    \"status\": \"active\",\n    \"confirmed_opt_in\": null,\n    \"account_id\": 100,\n    \"fields\": {\n\n    },\n    \"member_id\": 204,\n    \"last_modified_at\": null,\n    \"member_status_id\": \"a\",\n    \"plaintext_preferred\": false,\n    \"email_error\": null,\n    \"member_since\": \"@D:2010-12-13T23:12:44\",\n    \"bounce_count\": 0,\n    \"deleted_at\": null,\n    \"email\": \"bob@myemma.com\"\n  }\n]"}],"_postman_id":"fedd4963-79dd-d9be-64ae-b062529a534f"}],"id":"3e7c4bc0-a2eb-a195-f7b3-f64c50d7c70b","description":"<p>These endpoints allow you to create, edit, and delete searches. You can also retrieve the members matching any search created in your account. You can <a href=\"http://api.myemma.com/member_search.html\">get more details on how to construct searches</a>.</p>\n","_postman_id":"3e7c4bc0-a2eb-a195-f7b3-f64c50d7c70b"},{"name":"Signup Forms","item":[{"name":"Get Signup Forms","id":"283dff5b-8ec1-d274-797a-c60d28bab4fb","request":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"<p>Converts to b64 for Authenticating the Emma Public API</p>\n"}],"body":{"mode":"raw","raw":""},"url":"https://api.e2ma.net/{{account_id}}/signup_forms","description":"<p><em>Gets a list of this account’s signup forms.</em></p>\n<p><strong>Returns:</strong> An array of signup forms.</p>\n","urlObject":{"protocol":"https","path":["{{account_id}}","signup_forms"],"host":["api","e2ma","net"],"query":[],"variable":[]}},"response":[{"id":"8496916f-395f-2dca-768a-2a959ac72fd7","name":"Get Signup Forms","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"Converts to b64 for Authenticating the Emma Public API"}],"body":{"mode":"raw","raw":""},"url":"https://api.e2ma.net/{{account_id}}/signup_forms"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"[\n  {\n    \"id\": 200,\n    \"name\": \"Your Default Signup Form\"\n  },\n  {\n    \"id\": 201,\n    \"name\": \"My First Signup Form\"\n  }\n\n]"}],"_postman_id":"283dff5b-8ec1-d274-797a-c60d28bab4fb"}],"id":"e9ee0ff6-4ad6-173d-abbd-b1b6f5d35122","description":"<p>With this endpoint, you can list all of your signup forms.</p>\n","_postman_id":"e9ee0ff6-4ad6-173d-abbd-b1b6f5d35122"},{"name":"Webhooks","item":[{"name":"Get Webhooks","id":"144e7895-8fde-eed3-80a5-ab4245dc4cae","request":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"<p>Converts to b64 for Authenticating the Emma Public API</p>\n"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.e2ma.net/{{account_id}}/webhooks","description":"<p><em>Get a basic listing of all webhooks associated with an account.</em></p>\n<p><strong>Returns:</strong> A list of webhooks that belong to the given account.</p>\n","urlObject":{"protocol":"https","path":["{{account_id}}","webhooks"],"host":["api","e2ma","net"],"query":[],"variable":[]}},"response":[{"id":"fad77820-1197-2e8c-1e3b-4fccd366d391","name":"Get Webhooks","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"Converts to b64 for Authenticating the Emma Public API","type":"text"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.e2ma.net/{{account_id}}/webhooks"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"[\n  {\n    \"url\": \"http://myemma.com\",\n    \"webhook_id\": 100,\n    \"method\": \"POST\",\n    \"account_id\": 100,\n    \"event\": \"mailing_finish\"\n  },\n  {\n    \"url\": \"http://tech.myemma.com\",\n    \"webhook_id\": 101,\n    \"method\": \"POST\",\n    \"account_id\": 100,\n    \"event\": \"mailing_finish\"\n  }\n]"}],"_postman_id":"144e7895-8fde-eed3-80a5-ab4245dc4cae"},{"name":"Get Webhook By Id","id":"bb4bd3b8-37ec-343b-8eee-9dae32170dc2","request":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"<p>Converts to b64 for Authenticating the Emma Public API</p>\n"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.e2ma.net/{{account_id}}/webhooks/#webhook_id","description":"<p><em>Get information for a specific webhook belonging to a specific account.</em></p>\n<p><strong>Returns:</strong> Details for a single webhook</p>\n<p><strong>Raises:</strong> <code>Http404</code> if no webhook found</p>\n","urlObject":{"protocol":"https","path":["{{account_id}}","webhooks",""],"hash":"webhook_id","host":["api","e2ma","net"],"query":[],"variable":[]}},"response":[{"id":"de2c3ffb-cc51-e791-8e55-89cfda583134","name":"Get A Single Webhook","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"Converts to b64 for Authenticating the Emma Public API"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.e2ma.net/{{account_id}}/webhooks/100"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"{\n  \"url\": \"http://myemma.com\", \n  \"event\": \"mailing_finish\", \n  \"method\": \"POST\", \n  \"account_id\": 100, \n  \"webhook_id\": 100\n}"}],"_postman_id":"bb4bd3b8-37ec-343b-8eee-9dae32170dc2"},{"name":"Get Webhook Events","id":"0bcf6a37-f7ca-dca2-ab1e-e558b0b6e8ff","request":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"<p>Converts to b64 for Authenticating the Emma Public API</p>\n"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.e2ma.net/{{account_id}}/webhooks/events","description":"<p><em>Get a listing of all event types that are available for webhooks.</em></p>\n<p><strong>Returns:</strong> A list of event types and descriptions</p>\n","urlObject":{"protocol":"https","path":["{{account_id}}","webhooks","events"],"host":["api","e2ma","net"],"query":[],"variable":[]}},"response":[{"id":"8f52cd99-305d-7541-a04e-0c987b001744","name":"Get Webhook Event Types","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"Converts to b64 for Authenticating the Emma Public API"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.e2ma.net/{{account_id}}/webhooks/events"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"\n[\n  {\n    \"event_name\": \"mailing_finish\",\n    \"webhook_event_id\": 1,\n    \"description\": \"Fired when a mailing is finished.\"\n  },\n  {\n    \"event_name\": \"mailing_start\",\n    \"webhook_event_id\": 2,\n    \"description\": \"Fired when a mailing starts.\"\n  },\n  {\n    \"event_name\": \"member_signup\",\n    \"webhook_event_id\": 3,\n    \"description\": \"Fired when a member signs up through a signup form.\"\n  },\n  {\n    \"event_name\": \"message_open\",\n    \"webhook_event_id\": 4,\n    \"description\": \"Fired when a message is opened.\"\n  },\n  {\n    \"event_name\": \"message_click\",\n    \"webhook_event_id\": 5,\n    \"description\": \"Fired when a link in a message is clicked.\"\n  },\n  {\n    \"event_name\": \"member_optout\",\n    \"webhook_event_id\": 6,\n    \"description\": \"Fired when a member opts out.\"\n  },\n  {\n    \"event_name\": \"message_share\",\n    \"webhook_event_id\": 7,\n    \"description\": \"Fired when a member shares a message.\"\n  },\n  {\n    \"event_name\": \"message_share_click\",\n    \"webhook_event_id\": 8,\n    \"description\": \"Fired when a someone follows a link a member has shared.\"\n  },\n  {\n    \"event_name\": \"import_finish\",\n    \"webhook_event_id\": 9,\n    \"description\": \"Fired when a member import completes.\"\n  },\n  {\n    \"event_name\": \"member_update\",\n    \"webhook_event_id\": 10,\n    \"description\": \"Fired when a member is updated.\"\n  },\n  {\n    \"event_name\": \"member_delete\",\n    \"webhook_event_id\": 11,\n    \"description\": \"Fired when a member is deleted.\"\n  },\n  {\n    \"event_name\": \"member_add_to_group\",\n    \"webhook_event_id\": 12,\n    \"description\": \"Fired when a member(s) is added to a group(s).\"\n  },\n  {\n    \"event_name\": \"member_remove_from_group\",\n    \"webhook_event_id\": 13,\n    \"description\": \"Fired when a member(s) is removed from a group(s).\"\n  },\n  {\n    \"event_name\": \"group_create\",\n    \"webhook_event_id\": 14,\n    \"description\": \"Fired when a group is created.\"\n  },\n  {\n    \"event_name\": \"group_delete\",\n    \"webhook_event_id\": 15,\n    \"description\": \"Fired when a group is deleted.\"\n  },\n  {\n    \"event_name\": \"group_update\",\n    \"webhook_event_id\": 16,\n    \"description\": \"Fired when a group is updated.\"\n  },\n  {\n    \"event_name\": \"member_status_update\",\n    \"webhook_event_id\": 17,\n    \"description\": \"Fired when a member's status changes.\"\n  },\n  {\n    \"event_name\": \"message_forward\",\n    \"webhook_event_id\": 18,\n    \"description\": \"Fired when a message is forwarded.\"\n  },\n  {\n    \"event_name\": \"member_add\",\n    \"webhook_event_id\": 19,\n    \"description\": \"Fired when a single member is added.\"\n  },\n  {\n    \"event_name\": \"field_create\",\n    \"webhook_event_id\": 20,\n    \"description\": \"Fired when a field is created.\"\n  },\n  {\n    \"event_name\": \"field_delete\",\n    \"webhook_event_id\": 21,\n    \"description\": \"Fired when a field is deleted.\"\n  },\n  {\n    \"event_name\": \"field_update\",\n    \"webhook_event_id\": 22,\n    \"description\": \"Fired when a field is updated.\"\n  }\n]"}],"_postman_id":"0bcf6a37-f7ca-dca2-ab1e-e558b0b6e8ff"},{"name":"Create Webhooks","id":"c2401ad7-806b-fe09-a198-ad0fb3196869","request":{"method":"POST","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"<p>Converts to b64 for Authenticating the Emma Public API</p>\n"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"url\": \"http://myemma.com/blog/\", \n  \"event\": \"mailing_finish\"\n}"},"url":"https://api.e2ma.net/{{account_id}}/webhooks","description":"<p><em>Create an new webhook.</em></p>\n<p>If method is <code>POST</code>, the data will be posted to the given URL as a blob of JSON. If the method is <code>GET</code> the data will be added to the query string of your URL as a url encoded blob of JSON in a key called <code>payload</code>.</p>\n<h2 id=\"parameters---event-string--the-name-of-an-event-to-register-this-webhook-for---url-string--the-url-to-call-when-the-event-happens---method-string--the-method-to-use-when-calling-the-webhook-can-be-get-or-post-defaults-to-post---public_key--the-public_key-to-use-for-authentication-note-this-can-also-be-spelled-user_id-but-this-is-deprecated\"><strong>Parameters:</strong>\n- <strong>event</strong> (<em>string</em>) – The name of an event to register this webhook for\n- <strong>url</strong> (<em>string</em>) – The URL to call when the event happens\n- <strong>method</strong> (<em>string</em>) – The method to use when calling the webhook. Can be GET or POST. Defaults to POST.\n- <strong>public_key</strong> – The public_key to use for authentication. Note: this can also be spelled <code>user_id</code> but this is deprecated.</h2>\n<p><strong>Returns:</strong> A reference to the newly created webhook.</p>\n","urlObject":{"protocol":"https","path":["{{account_id}}","webhooks"],"host":["api","e2ma","net"],"query":[],"variable":[]}},"response":[{"id":"95106baf-70e8-4372-ac68-067d45a71994","name":"Create A Webhook","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"Converts to b64 for Authenticating the Emma Public API"},{"key":"Content-Type","name":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"url\": \"http://myemma.com/blog/\", \n  \"event\": \"mailing_finish\"\n}"},"url":"https://api.e2ma.net/{{account_id}}/webhooks"},"status":"OK","code":200,"_postman_previewlanguage":"","header":[],"cookie":[],"responseTime":"0","body":"1024"}],"_postman_id":"c2401ad7-806b-fe09-a198-ad0fb3196869"},{"name":"Update Webhook","id":"05fafb3b-60e3-b727-c158-969be76a5191","request":{"method":"PUT","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"<p>Converts to b64 for Authenticating the Emma Public API</p>\n"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"url\": \"http://tech.myemma.com/\"\n}"},"url":"https://api.e2ma.net/{{account_id}}/webhooks/#webhook_id","description":"<p><em>Update an existing webhook. Takes the same params as create_webhook.</em></p>\n<p><strong>Returns:</strong> The id of the updated webhook, or False if the update failed.</p>\n<p><strong>Raises:</strong> <code>Http404</code> if the webhook cannot be found.</p>\n","urlObject":{"protocol":"https","path":["{{account_id}}","webhooks",""],"hash":"webhook_id","host":["api","e2ma","net"],"query":[],"variable":[]}},"response":[{"id":"0581aae2-5f06-a542-5f0b-f8b35196af52","name":"Update Webhook","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"Converts to b64 for Authenticating the Emma Public API"},{"key":"Content-Type","name":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"url\": \"http://tech.myemma.com/\"\n}"},"url":"https://api.e2ma.net/{{account_id}}/webhooks/100"},"status":"OK","code":200,"_postman_previewlanguage":"","header":[],"cookie":[],"responseTime":"0","body":"100"}],"_postman_id":"05fafb3b-60e3-b727-c158-969be76a5191"},{"name":"Delete Webhook","id":"61bd05b9-2a2e-1c4f-44b9-6a609f5335d9","request":{"method":"DELETE","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"<p>Converts to b64 for Authenticating the Emma Public API</p>\n"}],"body":{"mode":"raw","raw":""},"url":"https://api.e2ma.net/{{account_id}}/webhooks/#webhook_id","description":"<p><em>Deletes an existing webhook.</em>*</p>\n<p><strong>Returns:</strong> True if the webhook deleted successufully.</p>\n<p><strong>Raises:</strong> <code>Http404</code> if no webhook found.</p>\n","urlObject":{"protocol":"https","path":["{{account_id}}","webhooks",""],"hash":"webhook_id","host":["api","e2ma","net"],"query":[],"variable":[]}},"response":[{"id":"3d4fe901-5651-e118-163c-bec20e07c57e","name":"Delete A Webhook","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"Converts to b64 for Authenticating the Emma Public API"}],"body":{"mode":"raw","raw":""},"url":"https://api.e2ma.net/{{account_id}}/webhooks/101"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"true"}],"_postman_id":"61bd05b9-2a2e-1c4f-44b9-6a609f5335d9"},{"name":"Delete All Webhooks","id":"41749073-f44c-6904-46a1-843b52554450","request":{"method":"DELETE","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"<p>Converts to b64 for Authenticating the Emma Public API</p>\n"}],"body":{"mode":"raw","raw":""},"url":"https://api.e2ma.net/{{account_id}}/webhooks/#webhook_id","description":"<p><em>Delete all webhooks registered for an account.</em></p>\n<p><strong>Returns:</strong> True if the webhooks deleted successufully.</p>\n","urlObject":{"protocol":"https","path":["{{account_id}}","webhooks",""],"hash":"webhook_id","host":["api","e2ma","net"],"query":[],"variable":[]}},"response":[{"id":"87be2ff8-901f-2fd1-5dad-5800cb81fd9a","name":"Delete All Webhooks","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"Basic {{public_api_key}}:{{private_api_key}}","description":"Converts to b64 for Authenticating the Emma Public API"}],"body":{"mode":"raw","raw":""},"url":"https://api.e2ma.net/{{account_id}}/webhooks"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"true"}],"_postman_id":"41749073-f44c-6904-46a1-843b52554450"}],"id":"3df07018-b509-d27a-bcd1-724d18892f08","description":"<p>You can manage your webhooks with these endpoints. Of particular interest might be the <code>GET /#account_id/webhooks/events</code> endpoint which lets you know which events our system can send out webhooks for. You can <a href=\"http://api.myemma.com/webhooks.html\">get more info about how our webhooks work</a>.</p>\n","_postman_id":"3df07018-b509-d27a-bcd1-724d18892f08"}]}