{"info":{"_postman_id":"cdd8d958-807a-4079-96ff-8121a5f91fde","name":"Symplify API Documentation","description":"<html><head></head><body><h2 id=\"symplify-api-rest-documentation\">Symplify API REST Documentation</h2>\n<hr>\n<p>This document describes the Symplify public API and how to get started trying it out. Readers are assumed to have some familiarity with Symplify's graphical interface.</p>\n<p>The API uses the REST methodology. A brief overview of RESTful web services can be found here:<br><a href=\"http://net.tutsplus.com/tutorials/other/a-beginners-introduction-to-http-and-rest/\">http://net.tutsplus.com/tutorials/other/a-beginners-introduction-to-http-and-rest/</a></p>\n<p>While you're looking into integration options, please also take a moment to read about our <a href=\"https://help.symplify.com/hc/en-us/articles/360011841579\">Event Hub</a>, which is our prefered method for real time data updates.</p>\n<h2 id=\"about-postman\">About Postman</h2>\n<p>Symplify uses Postman as a third-party library to document the REST API. You can preferably test using Postman or you can copy the resources to whatever environment your are using.</p>\n<p>You can select your prefered language in the top.</p>\n<img src=\"https://content.pstmn.io/4023cfb4-754e-41b6-be6a-59aadf5ada21/aW1hZ2UucG5n\" width=\"512\" height=\"230\">\n\n<p>Please note that when testing, it is your live data you're working with so any updates you make will alter settings for other users of your account so use <strong>POST</strong>/<strong>PUT</strong> and <strong>DELETE</strong> with care.</p>\n<p>All examples in this documentation is prepared so that you can use a Postman environment where some static parameters are predefined, these are:</p>\n<ul>\n<li><p><strong><code>token</code></strong><br>  Value: Your Symplify API token</p>\n</li>\n<li><p><strong><code>url</code></strong><br>  server+rest:<br>  Value: [[[[<a href=\"https://eu-proxy-%5C%5Bx%5D.symplifymail.com/rest%5D(https://eu-proxy-%5C%5Bx%5D.symplifymail.com/rest)%5D(https://eu-proxy-%5C%5Bx%5D.symplifymail.com/rest%5D(https://eu-proxy-%5C%5Bx%5D.symplifymail.com/rest)%5D(https://eu-proxy-%5C%5Bx%5D.symplifymail.com/rest%5D(https://eu-proxy-%5C%5Bx%5D.symplifymail.com/rest)%5D(https://eu-proxy-%5C%5Bx%5D.symplifymail.com/rest%5D(https://eu-proxy-%5C%5Bx%5D.symplifymail.com/rest)%5D(https://eu-proxy-%5C%5Bx%5D.symplifymail.com/rest%5D(https://eu-proxy-%5C%5Bx%5D.symplifymail.com/rest)%5D(https://eu-proxy-%5C%5Bx%5D.symplifymail.com/rest%5D(https://eu-proxy-%5C%5Bx%5D.symplifymail.com/rest)%5D(https://eu-proxy-%5C%5Bx%5D.symplifymail.com/rest%5D(https://eu-proxy-%5C%5Bx%5D.symplifymail.com/rest)%5D(https://eu-proxy-%5C%5Bx%5D.symplifymail.com/rest%5D(https://eu-proxy-%5C%5Bx%5D.symplifymail.com/rest)\">https://eu-proxy-\\[x].symplifymail.com/rest](https://eu-proxy-\\[x].symplifymail.com/rest)](https://eu-proxy-\\[x].symplifymail.com/rest](https://eu-proxy-\\[x].symplifymail.com/rest)](https://eu-proxy-\\[x].symplifymail.com/rest](https://eu-proxy-\\[x].symplifymail.com/rest)](https://eu-proxy-\\[x].symplifymail.com/rest](https://eu-proxy-\\[x].symplifymail.com/rest)](https://eu-proxy-\\[x].symplifymail.com/rest](https://eu-proxy-\\[x].symplifymail.com/rest)](https://eu-proxy-\\[x].symplifymail.com/rest](https://eu-proxy-\\[x].symplifymail.com/rest)](https://eu-proxy-\\[x].symplifymail.com/rest](https://eu-proxy-\\[x].symplifymail.com/rest)](https://eu-proxy-\\[x].symplifymail.com/rest](https://eu-proxy-\\[x].symplifymail.com/rest)</a>)))<br>  (learn more below)</p>\n</li>\n<li><p><strong><code>customerId</code></strong><br>  Value: Your customer ID</p>\n</li>\n<li><p><strong><code>listId</code></strong><br>  Value: Your database ID</p>\n</li>\n</ul>\n<h2 id=\"evolution-of-the-api\">Evolution of the API</h2>\n<p>We will strive to keep the API backward compatible. This means that:</p>\n<ol>\n<li><p>Resource URIs not will not change</p>\n</li>\n<li><p>Names of data fields in message body requests and responses will not change</p>\n</li>\n<li><p>Data fields in message body requests and responses will not be removed</p>\n</li>\n<li><p>New optional fields in message body requests and responses may be added in the future. Integrating systems should take this account, particularly when consuming responses from the REST API.</p>\n</li>\n<li><p>New resources will be added as new functionality is made publicly available</p>\n</li>\n<li><p>If incompatible changes are required in existing resources, the old ones will still be left available, unless the conditions under 7 apply.</p>\n</li>\n<li><p>In some very unusual cases, internal changes in the system may render existing resources obsolete or insufficient for the task they were originally intended. In these cases the original resource will be left in place, but will be modified to return the HTTP response code 410 (Gone), with a response body including information on the reason.</p>\n</li>\n</ol>\n<h2 id=\"\">​</h2>\n<h3 id=\"customer-id\">Customer ID</h3>\n<p>You must always include your customerId when calling a Symplify resource. Log in to Symplify and find your customer ID in the main menu bottom</p>\n<h3 id=\"syntax\">Syntax</h3>\n<p>For most resources there are five methods you can call; get all, get one, create one, update one and delete one The syntax is mostly the same for all resources so you should be able to pick up the general idea pretty quick.</p>\n<p>The URI structure generally looks like this:</p>\n<p><code>{{server}}/rest/{{customerid}}/{{resource}}/{{id}}</code></p>\n<p><strong>server</strong>: <code>https://eu-proxy-\\[x].symplifymail.com</code> where [x] is the number of your server, e.g. \"2\" (can be verified on <em>Account settings &gt; Symplify API</em>)</p>\n<p><strong>customerId</strong>: your customer ID.</p>\n<p><strong>resource</strong>: the resource you want to use</p>\n<p><strong>id</strong>: the ID (if any) of the item you want to add/update/get/delete.</p>\n<p>Example:</p>\n<p><code>{{server}}/rest/{{customerid}}/reports/campaigns/{{id}}</code></p>\n<p>Example request in the documentation:</p>\n<p><code>{{url}}/{{customerid}}/{apiResource}</code></p>\n<h2 id=\"media-type\">Media Type</h2>\n<p>All data supplied to and received from the REST API uses the <strong>application/json</strong> media type. To ensure full compatibility, please make sure that:​</p>\n<p><strong>All GET requests include the header:</strong></p>\n<p>Accept: application/json</p>\n<p><strong>All PUT and POST request include the following headers:</strong></p>\n<p>Accept: application/json<br>Content-Type: application/json</p>\n<p>All data sent to the API is expected to be in the standard application/json charset UTF-8, unless explicitly stated otherwise as a charset parameter in the <em>Content-Type header</em>. All data sent as responses from the API will be in the UTF-8 charset.</p>\n<p>​</p>\n<h2 id=\"types-of-requests\">Types of Requests</h2>\n<h3 id=\"get-all\">​Get All</h3>\n<p>To get all data, issue a GET request without id, e.g.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>GET  https://eu-proxy-{{server}}.symplifymail.com/rest/{{customerId}}/projects\nAccept: application/json\n\n</code></pre><p>​</p>\n<h3 id=\"get-one\">Get One</h3>\n<p>To get one data, issue a GET reqest with an id, e.g.​</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>GET https://eu-proxy-{{server}}.symplifymail.com/rest/{{customerId}}/projects/{{projId}}\n​Accept: application/json\n\n</code></pre><p>​</p>\n<h3 id=\"create-one\">Create One</h3>\n<p>To create a new data, issue a POST request without id. Usually creation of a new entity will require data for the entity to be included in the message body, e.g.:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>POST https://eu-proxy-{{server}}.symplifymail.com/rest/{{customerId}}/projects\nAccept: application/json\nContent-Type: application/json\nContent-Length: …\n{{entity to create as JSON}}\n\n</code></pre><p>​</p>\n<h3 id=\"update-one\">Update One</h3>\n<p>To update one data, issue a PUT request with id and the data required to be used for updating the entity:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>PUT https://eu-proxy-{{server}}.symplifymail.com/rest/{{customerId}}/projects/{{projId}}\nAccept: application/json\nContent-Type: application/json\nContent-Length: …\n{{entity to create as JSON}}\n\n</code></pre><p>​</p>\n<h3 id=\"delete-one\">Delete one</h3>\n<p>To delete, issue a DELETE request with an id, i.e.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>DELETE https://eu-proxy-{{server}}.symplifymail.com/rest/{{customerId}}/projects/{{projectId}}\n\n</code></pre><h2 id=\"testing-requests\">Testing Requests</h2>\n<p>You can test a request by copying the code in this document and add it to your HTTP client.</p>\n<img src=\"https://content.pstmn.io/c027d5b9-847c-4deb-9f78-9dba43f973f9/aW1hZ2UucG5n\" width=\"728\" height=\"259\">\n\n<h3 id=\"credentials\">Credentials</h3>\n<p>For testing you can use the same credentials that you use to log into Symplify. For security reasons we recommend not using your own credentials in production. The recommendation for production is to get a special API user for your account and use these credentials. These are managed by an account administrator of your Symplify account.</p>\n<p>​</p>\n<h2 id=\"get-requests\">GET Requests</h2>\n<p>GET requests are used to retrieve data from the system.</p>\n<h3 id=\"post-requests\">POST Requests</h3>\n<p><strong>POST</strong> requests are used to create data in the system.</p>\n<p><em>Note! You should not include the “id”, “dateCreated”or “dateModified” fields as they are created automatically by the server. You can safely remove fields that you do not have data for, e.g. if you do not have data for Contact.MiddleName, that field can be removed from the input JSON structure. You will get a validation error if you remove a mandatory field.</em></p>\n<h3 id=\"put-requests\">​PUT Requests</h3>\n<p>PUT requests are used for updating data in the database. The message body should include data required for updating the entity. For some resources you only need to specify the fields that you are changing, but usually you should make sure to include all fields as received from a previous GET request (once again, the id, dateCreated and dateModified fields are not required. The Id field this is specified in the URI and the other are created/updated automatically).</p>\n<h3 id=\"delete-requests\">DELETE Requests</h3>\n<p>To delete an entry you supply the customer id and the id of the data to be deleted.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"3123","collectionId":"cdd8d958-807a-4079-96ff-8121a5f91fde","publishedId":"TVRd9Wxp","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2020-09-30T13:33:31.000Z"},"item":[{"name":"Import data","item":[{"name":"Start Import","event":[{"listen":"test","script":{"id":"92e358be-e2db-46d2-887e-bad9fb5a9252","exec":["// JSON response - set variable to next request","var jsonData = JSON.parse(responseBody);","pm.environment.set(\"importId\", jsonData.id);"],"type":"text/javascript"}}],"id":"1e6df9ef-a811-4ec9-bc60-8df23e7203d6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"X-Carma-Authentication-Token","type":"text","value":"{{token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n  \"encoding\": \"UTF-8\",\r\n  \"delimiter\": \"59\",\r\n  \"type\": \"ADD\",\r\n  \"identityColumn\": \"originalId\",\r\n  \"preferencesId\": 0,\r\n  \"useCsv\": true\r\n}"},"url":"{{url}}/{{customerId}}/lists/{{listId}}/imports","description":"<h3 id=\"initiating-an-import\">Initiating an import</h3>\n<p>To start the import process, a <code>POST</code> request with metadata describing the import is sent.</p>\n<p>In the response you will receive an import id (<code>\"id\"</code>). That id will be used when doing your next request to upload your contacts.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Name</strong></th>\n<th><strong>Parameter type</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n<th><strong>Available options</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>customerid *</td>\n<td>path</td>\n<td>integer($int32)</td>\n<td>Customer Id</td>\n<td></td>\n</tr>\n<tr>\n<td>id *</td>\n<td>path</td>\n<td>integer($int32)</td>\n<td>List Id</td>\n<td></td>\n</tr>\n<tr>\n<td>encoding*</td>\n<td>body</td>\n<td>string</td>\n<td>Encoding of the file, it is recommended to use UTF-8</td>\n<td></td>\n</tr>\n<tr>\n<td>delimiter*</td>\n<td>body</td>\n<td>string</td>\n<td>Unicode value of the character used to delimit two values in an import row.</td>\n<td>Examples: comma = 44, semi-colon = 59, tab = 9, pipe = 124</td>\n</tr>\n<tr>\n<td>type*</td>\n<td>body</td>\n<td>string</td>\n<td>Type of import</td>\n<td>ADD, REPLACE, DELETE, UNSUBSCRIBE</td>\n</tr>\n<tr>\n<td>identityColumn*</td>\n<td>body</td>\n<td>string</td>\n<td>Defines which field in the import will be used as originalid</td>\n<td></td>\n</tr>\n<tr>\n<td>preferencesId*</td>\n<td>body</td>\n<td>integer($int32)</td>\n<td>Id of the import schema (preference) that will be used for this import. For automatic mapping, set this value to 0</td>\n<td></td>\n</tr>\n<tr>\n<td>useCsv</td>\n<td>body</td>\n<td>boolean</td>\n<td>Defines whether true csv import should be used. Defaults to false, meaning that quoted values are not supported</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["{{customerId}}","lists","{{listId}}","imports"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"949ae0b2-90e5-4227-9dbd-b06f01f2c17e","name":"Start Import","originalRequest":{"method":"POST","header":[{"key":"X-Carma-Authentication-Token","type":"text","value":"{{token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n  \"encoding\": \"UTF-8\",\r\n  \"delimiter\": \"59\",\r\n  \"type\": \"ADD\",\r\n  \"identityColumn\": \"originalId\",\r\n  \"preferencesId\": 0,\r\n  \"useCsv\": true\r\n}"},"url":"{{url}}/{{customerId}}/lists/23713/imports"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Wed, 22 Feb 2023 09:24:50 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Content-Type-Options","value":"nosniff"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"2860c655-793a-4066-b805-6403259b1045\",\n    \"batchId\": 0\n}"}],"_postman_id":"1e6df9ef-a811-4ec9-bc60-8df23e7203d6"},{"name":"Upload contacts","event":[{"listen":"test","script":{"id":"92e358be-e2db-46d2-887e-bad9fb5a9252","exec":["// JSON response - set variable to next request","var jsonData = JSON.parse(responseBody);","pm.environment.set(\"batchId\", jsonData.batchId);","pm.environment.unset(\"importId\");"],"type":"text/javascript"}}],"id":"e204b47f-d936-4bcf-9abb-8c4a322dea4b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"X-Carma-Authentication-Token","type":"text","value":"{{token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"text/csv"}],"body":{"mode":"raw","raw":"originalId;emailAddress;firstName;lastName;newsletter;sms;voice\r\noriginalid-1;john@example.com;John;Doe;Yes;Yes;Yes\r\norgiinalid-2;jessica.doe@example.com;Jessica;Doe;Yes;Yes;No"},"url":"{{url}}/{{customerId}}/lists/{{listId}}/recipients/{importId}","description":"<h3 id=\"uploading-your-data\">Uploading your data</h3>\n<p>After the initial request has been made and an ID has been returned it’s time to upload your data. Use the id obtained in the response of the first request to upload your data.</p>\n<p>The response will include a batchId that can then be used to get the status for a batch.</p>\n","urlObject":{"path":["{{customerId}}","lists","{{listId}}","recipients","{importId}"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"12399d84-13a0-40d4-9abc-736e9e00f09d","name":"Contacts in body","originalRequest":{"method":"POST","header":[{"key":"X-Carma-Authentication-Token","type":"text","value":"{{token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"text/csv"}],"body":{"mode":"raw","raw":"originalId;emailAddress;firstName;lastName;newsletter;sms;voice\r\noriginalid-1;john@example.com;John;Doe;Yes;Yes;Yes\r\norgiinalid-2;jessica.doe@example.com;Jessica;Doe;Yes;Yes;No"},"url":"{{url}}/{{customerId}}/lists/231713/recipients/2860c655-793a-4066-b805-6403259b1045"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Wed, 22 Feb 2023 09:25:32 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Content-Type-Options","value":"nosniff"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"2860c655-793a-4066-b805-6403259b1045\",\n    \"batchId\": 3500517\n}"},{"id":"fe6b3304-680e-46ad-a961-2d04db606e95","name":"Contacts in file","originalRequest":{"method":"POST","header":[{"key":"X-Carma-Authentication-Token","type":"text","value":"{{token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"text/csv"}],"body":{"mode":"file","file":{"src":"/Users/oida/Downloads/import.csv"}},"url":"{{url}}/{{customerId}}/lists/231713/recipients/45d4be53-723a-4637-bad6-88ee0e9096f9"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Wed, 22 Feb 2023 09:28:17 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Content-Type-Options","value":"nosniff"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"45d4be53-723a-4637-bad6-88ee0e9096f9\",\n    \"batchId\": 3500518\n}"},{"id":"b03a5341-4a6c-4d79-ac4d-f101e60fcedf","name":"404 - wrong import id","originalRequest":{"method":"POST","header":[{"key":"X-Carma-Authentication-Token","type":"text","value":"{{token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"text/csv"}],"body":{"mode":"raw","raw":"originalId;emailAddress;firstName;lastName;newsletter;sms;voice\r\noriginalid-1;john@example.com;John;Doe;Yes;Yes;Yes\r\norgiinalid-2;jessica.doe@example.com;Jessica;Doe;Yes;Yes;No"},"url":"{{url}}/{{customerId}}/lists/231713/recipients/2860c655-793a-4066-b805-6403259b1045"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Wed, 22 Feb 2023 09:26:20 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Content-Type-Options","value":"nosniff"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Import with id 2860c655-793a-4066-b805-6403259b1045 not found!\"\n}"}],"_postman_id":"e204b47f-d936-4bcf-9abb-8c4a322dea4b"},{"name":"Get Batch info","event":[{"listen":"test","script":{"id":"92e358be-e2db-46d2-887e-bad9fb5a9252","exec":["pm.environment.unset(\"batchId\");"],"type":"text/javascript"}},{"listen":"prerequest","script":{"id":"3af241f1-e932-4938-8e2f-80216d6b29a5","exec":[""],"type":"text/javascript"}}],"id":"77ebc8ab-fe4b-421e-9a85-344c6b945e2c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"X-Carma-Authentication-Token","type":"text","value":"{{token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"{{url}}/{{customerId}}/batches/{batchId}","description":"<h3 id=\"check-batch-status\">Check batch status</h3>\n<p>When the file has successfully been uploaded you can query the API to trace the imports progress. Use the batchId from the previous request. You can keep polling the method until you receive a response with the status set to <em>“FINISHED”</em>. Do not poll too often as that will put unnecessary strain on the system. Polling once every 30 seconds or every minute is normally sufficient.</p>\n<p>Status will go from <strong>PENDING</strong> to <strong>IN_PROGRESS</strong> to <strong>FINISHED</strong>.</p>\n","urlObject":{"path":["{{customerId}}","batches","{batchId}"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"9048f3c8-83ac-47ef-9eef-300862236fa7","name":"Get Batch info","originalRequest":{"method":"GET","header":[{"key":"X-Carma-Authentication-Token","type":"text","value":"{{token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"{{url}}/{{customerId}}/batches/3500517"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Wed, 22 Feb 2023 09:25:50 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Content-Type-Options","value":"nosniff"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 3500517,\n    \"type\": \"IMPORT\",\n    \"customerId\": 509,\n    \"startTime\": 1677057932880,\n    \"endTime\": 1677057933167,\n    \"affected\": 2,\n    \"processed\": 2,\n    \"total\": 2,\n    \"status\": \"FINISHED\"\n}"}],"_postman_id":"77ebc8ab-fe4b-421e-9a85-344c6b945e2c"}],"id":"12b567aa-166e-4632-8d91-f0c857643205","_postman_id":"12b567aa-166e-4632-8d91-f0c857643205","description":""},{"name":"Exports","item":[{"name":"Custom export","item":[{"name":"Start export","event":[{"listen":"test","script":{"id":"92e358be-e2db-46d2-887e-bad9fb5a9252","exec":["var jsonData = JSON.parse(responseBody);","pm.environment.set(\"batchId\", jsonData.id);","",""],"type":"text/javascript"}}],"id":"f428fad2-db12-4a77-ab8e-fd8d15229fd4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"X-Carma-Authentication-Token","type":"text","value":"{{token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n  \"exportStrategy\": \"ALL_CONTACTS_IN_LIST\",\r\n  \"entityIds\": [\"{{listId}}\"],\r\n  \"columns\": [\"contactdb.id\", \"contact.originalId\", \"contact.EmailAddress\", \"contact.firstName\", \"contact.lastName\"],\r\n  \"headers\": [\"listId\", \"originalId\", \"emailAddress\", \"firstName\", \"lastName\"],\r\n  \"useCompression\": false,\r\n  \"exportFormat\": \"CSV\",\r\n  \"uploadToFtp\": false,\r\n  \"sendEmailOnCompletion\": true,\r\n  \"userToNotify\": \"myself@example.com\",\r\n  \"batchDescription\": \"All contacts in list\"\r\n}"},"url":"{{url}}/{{customerId}}/batches/exports/custom","description":"<table><tbody><tr><td><div><p></p></div><div><div><div><div></div></div></div><div></div></div></td><td><div><p><b>Type</b></p></div><div><div><div><div></div></div></div><div></div></div></td><td><div><p><b>Description</b></p></div><div><div><div><div></div></div></div><div></div></div></td><td><div><p><b>Available values</b></p></div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div><p><b>exportStrategy\\\\\\*</b></p></div><div><div><div><div></div></div></div><div></div></div></td><td><div><p>string</p></div><div><div><div><div></div></div></div><div></div></div></td><td><div><p> </p></div><div><div><div><div></div></div></div><div></div></div></td><td><div><p><br />SENT, OPENED, CLICKS, CONVERSIONS, HARD_BOUNCES, SOFT_BOUNCES,<br />FIVE_SOFT_BOUNCES, UNSUBSCRIPTIONS, COMPLAINTS, ALL_CONTACTS,<br />NEW_CONTACTS, ACTIVE_CONTACTS, ALL_CONTACTS_IN_LIST, ALL_NON_ACTIVE_CONTACTS,<br />NON_ACTIVE_IN_LIST, NEW_CONTACTS_IN_LIST, ACTIVE_CONTACTS_IN_LIST, ALL_DATADOC_FOR_ALL_CONTACTS, ALL_DATADOC_IN_LIST</p></div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div><p><b>entityIds</b></p></div><div><div><div><div></div></div></div><div></div></div></td><td><div><p>integer($int32)</p></div><div><div><div><div></div></div></div><div></div></div></td><td><div><p>unique terms: true For certain exports (e.g. ALL_CONTACTS_IN_LIST)<br />it is required to explicitly specify the entities to take into<br />account.<br />For DataDocs add Document Type Id here (and list id if any, e.g. [38,24003])</p></div><div><div><div><div></div></div></div><div></div></div></td><td><div><p> </p></div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div><p><b>columns\\\\\\*</b></p></div><div><div><div><div></div></div></div><div></div></div></td><td><div><p>string</p></div><div><div><div><div></div></div></div><div></div></div></td><td><div><p>List of the data to exported. Each item in this list should be<br />a valid handlebars expression for extracting data based on a<br />user/message (see separate documentation).<br />For DataDocs: column names must be started with \"datadocexport.\", e.g. \"datadocexport.bookingnumber\".</p></div><div><div><div><div></div></div></div><div></div></div></td><td><div><p> </p></div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div><p><b>headers</b></p></div><div><div><div><div></div></div></div><div></div></div></td><td><div><p>string</p></div><div><div><div><div></div></div></div><div></div></div></td><td><div><p>List of the headers to be printed on the first line of the export<br />file. If not specified, this will default to the 'columns' values,<br />which will probably not be very user friendly. If specified,<br />the length of this list must be equal to the 'columns' length</p></div><div><div><div><div></div></div></div><div></div></div></td><td><div><p> </p></div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div><p><b>useCompression</b></p></div><div><div><div><div></div></div></div><div></div></div></td><td><div><p>boolean</p></div><div><div><div><div></div></div></div><div></div></div></td><td><div><p>Specifies whether the result file should be compressed. If 'true',<br />the result will be gzipped, and if no fileSuffix is specified,<br />the result file will be suffixed with '.gz' (e.g. somefile.csv.gz).<br />Defaults to true</p></div><div><div><div><div></div></div></div><div></div></div></td><td><div><p> </p></div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div><p><b>useCsv</b></p></div><div><div><div><div></div></div></div><div></div></div></td><td><div><p>boolean</p></div><div><div><div><div></div></div></div><div></div></div></td><td><div><p>Legacy, retained for backward compatibility, please use exportFormat<br />instead. Specifies whether the result file should be in pure<br />CSV format. If 'true', the result will be a comma separated CSV<br />file with quoted values (ignoring any specified delimiter), with<br />suffix '.csv' (unless other specified with fileSuffix). Defaults<br />to true</p></div><div><div><div><div></div></div></div><div></div></div></td><td><div><p> </p></div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div><p><b>exportFormat</b></p></div><div><div><div><div></div></div></div><div></div></div></td><td><div><p>string</p></div><div><div><div><div></div></div></div><div></div></div></td><td><div><p>The export format, valid values are CSV, EXCEL or CUSTOM. If<br />this value is omitted, the value of useCsv is used.</p></div><div><div><div><div></div></div></div><div></div></div></td><td><div><p> </p></div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div><p><b>delimiter</b></p></div><div><div><div><div></div></div></div><div></div></div></td><td><div><p>string</p></div><div><div><div><div></div></div></div><div></div></div></td><td><div><p>Delimiter used in the export, defaults to ; (semicolon). Ignored<br />if CSV export is specified</p></div><div><div><div><div></div></div></div><div></div></div></td><td><div><p> </p></div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div><p><b>period</b></p></div><div><div><div><div></div></div></div><div></div></div></td><td><div><p>string</p></div><div><div><div><div></div></div></div><div></div></div></td><td><div><p>The time period for data to be exported. If not specified, either<br />start or end (or both) must be specified.</p></div><div><div><div><div></div></div></div><div></div></div></td><td><div><p>Enum:<br />TODAY, YESTERDAY, LAST_DAY, LAST_3_DAYS, LAST_WEEK, LAST_2_WEEKS,<br />LAST_30_DAYS, LAST_60_DAYS, THIS_CALENDAR_MONTH, PREVIOUS_CALENDAR_MONTH,<br />THIS_QUARTER, PREVIOUS_QUARTER, THIS_YEAR, PREVIOUS_YEAR, ALL</p></div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div><p><b>start</b></p></div><div><div><div><div></div></div></div><div></div></div></td><td><div><p>Iso8601Date</p></div><div><div><div><div></div></div></div><div></div></div></td><td><div><p> </p></div><div><div><div><div></div></div></div><div></div></div></td><td><div><p> </p></div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div><p><b>end</b></p></div><div><div><div><div></div></div></div><div></div></div></td><td><div><p>Iso8601Date</p></div><div><div><div><div></div></div></div><div></div></div></td><td><div><p> </p></div><div><div><div><div></div></div></div><div></div></div></td><td><div><p> </p></div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div><p><b>uploadToFtp</b></p></div><div><div><div><div></div></div></div><div></div></div></td><td><div><p>boolean</p></div><div><div><div><div></div></div></div><div></div></div></td><td><div><p>Specifies whether the result file should be available on Carma<br />ftp server. Defaults to false.</p></div><div><div><div><div></div></div></div><div></div></div></td><td><div><p> </p></div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div><p><b>ruleJson</b></p></div><div><div><div><div></div></div></div><div></div></div></td><td><div><p>string</p></div><div><div><div><div></div></div></div><div></div></div></td><td><div><p>Specifies filter to apply on all found rows. If not specified,<br />no additional row filtering will be applied.</p></div><div><div><div><div></div></div></div><div></div></div></td><td><div><p> </p></div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div><p><b>filePrefix</b></p></div><div><div><div><div></div></div></div><div></div></div></td><td><div><p>string</p></div><div><div><div><div></div></div></div><div></div></div></td><td><div><p>Specifies the prefix of the result file. Required if uploadToFtp<br />is specified.</p></div><div><div><div><div></div></div></div><div></div></div></td><td><div><p> </p></div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div><p><b>fileDateFormat</b></p></div><div><div><div><div></div></div></div><div></div></div></td><td><div><p>string</p></div><div><div><div><div></div></div></div><div></div></div></td><td><div><p>Specifies the date format to be used for tagging the result file.<br />Required if uploadToFtp is specified.</p></div><div><div><div><div></div></div></div><div></div></div></td><td><div><p> </p></div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div><p><b>fileSuffix</b></p></div><div><div><div><div></div></div></div><div></div></div></td><td><div><p>string</p></div><div><div><div><div></div></div></div><div></div></div></td><td><div><p>Specifies the file suffix for the result file. Required if uploadToFtp<br />is specified. If not specified, csv files will be suffixed with<br />.csv; all other formats will be suffixed with .txt</p></div><div><div><div><div></div></div></div><div></div></div></td><td><div><p> </p></div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div><p><b>sendEmailOnCompletion</b></p></div><div><div><div><div></div></div></div><div></div></div></td><td><div><p>boolean</p></div><div><div><div><div></div></div></div><div></div></div></td><td><div><p>Should the exporter be notified via email on batch completion</p></div><div><div><div><div></div></div></div><div></div></div></td><td><div><p> </p></div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div><p><b>userToNotify</b></p></div><div><div><div><div></div></div></div><div></div></div></td><td><div><p>string</p></div><div><div><div><div></div></div></div><div></div></div></td><td><div><p>Email address of the user to notify. Required if this export<br />should be scheduled, and sendEmailOnCompletion is specified.</p></div><div><div><div><div></div></div></div><div></div></div></td><td><div><p> </p></div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div><p><b>batchDescription</b></p></div><div><div><div><div></div></div></div><div></div></div></td><td><div><p>string</p></div><div><div><div><div></div></div></div><div></div></div></td><td><div><p>description of the batch</p></div><div><div><div><div></div></div></div><div></div></div></td><td><div><p> </p></div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div><p><b>facebookAudienceId</b></p></div><div><div><div><div></div></div></div><div></div></div></td><td><div><p>string</p></div><div><div><div><div></div></div></div><div></div></div></td><td><div><p>facebbok audience id</p></div><div><div><div><div></div></div></div><div></div></div></td><td><div><p> </p></div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div><p><b>googleTokenId</b></p></div><div><div><div><div></div></div></div><div></div></div></td><td><div><p>integer($int32)</p></div><div><div><div><div></div></div></div><div></div></div></td><td><div><p>google token</p></div><div><div><div><div></div></div></div><div></div></div></td><td><div><p> </p></div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div><p><b>googleAudienceId</b></p></div><div><div><div><div></div></div></div><div></div></div></td><td><div><p>string</p></div><div><div><div><div></div></div></div><div></div></div></td><td><div><p>google user list id</p></div><div><div><div><div></div></div></div><div></div></div></td><td><div><p> </p></div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div><p><b>uploadToGoogleAudience</b></p></div><div><div><div><div></div></div></div><div></div></div></td><td><div><p>boolean</p></div><div><div><div><div></div></div></div><div></div></div></td><td><div><p>upload to google user list</p></div><div><div><div><div></div></div></div><div></div></div></td><td><div><p> </p></div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div><p><b>uploadToFacebookAudience</b></p></div><div><div><div><div></div></div></div><div></div></div></td><td><div><p>boolean</p></div><div><div><div><div></div></div></div><div></div></div></td><td><div><p>upload to facebook custom audience</p></div><div><div><div><div></div></div></div><div></div></div></td><td><div><p> </p></div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div><p><b>facebookTokenId</b></p></div><div><div><div><div></div></div></div><div></div></div></td><td><div><p>integer($int32)</p></div><div><div><div><div></div></div></div><div></div></div></td><td><div><p>Id of facebook token in Symplify</p></div><div><div><div><div></div></div></div><div></div></div></td><td><div><p> </p></div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div><p><b>actions</b></p></div><div><div><div><div></div></div></div><div></div></div></td><td><div><p>string</p></div><div><div><div><div></div></div></div><div></div></div></td><td><div><p>Id of facebook token in Symplify</p></div><div><div><div><div></div></div></div><div></div></div></td><td><div><p> </p></div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div><p><b>googleClientCustomerId</b></p></div><div><div><div><div></div></div></div><div></div></div></td><td><div><p>string</p></div><div><div><div><div></div></div></div><div></div></div></td><td><div><p>Id of google ad account</p></div><div><div><div><div></div></div></div><div></div></div></td><td><div><p> </p></div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div><p><b>ftpAccountId</b></p></div><div><div><div><div></div></div></div><div></div></div></td><td><div><p>integer($int32)Id </p></div><div><div><div><div></div></div></div><div></div></div></td><td><div><p>of the ftp account to use when publishing results</p></div><div><div><div><div></div></div></div><div></div></div></td><td><div><p> </p></div><div><div><div><div></div></div></div><div></div></div></td></tr></tbody></table>","urlObject":{"path":["{{customerId}}","batches","exports","custom"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"9bddf2f2-2654-484a-be8d-d2459dfe4f39","name":"Start export","originalRequest":{"method":"POST","header":[{"key":"X-Carma-Authentication-Token","type":"text","value":"{{token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n  \"exportStrategy\": \"ALL_CONTACTS_IN_LIST\",\r\n  \"entityIds\": [\"240103\"],\r\n  \"columns\": [\"contactdb.id\", \"contact.originalId\", \"contact.EmailAddress\", \"contact.firstName\", \"contact.lastName\"],\r\n  \"headers\": [\"listId\", \"originalId\", \"emailAddress\", \"firstName\", \"lastName\"],\r\n  \"useCompression\": false,\r\n  \"exportFormat\": \"CSV\",\r\n  \"uploadToFtp\": false,\r\n  \"sendEmailOnCompletion\": true,\r\n  \"userToNotify\": \"name@example.com\",\r\n  \"batchDescription\": \"All contacts in list\"\r\n}"},"url":"{{url}}/{{customerId}}/batches/exports/custom"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Mon, 20 Feb 2023 14:31:18 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Content-Type-Options","value":"nosniff"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 3498248,\n    \"type\": \"GENERIC_EXPORT\",\n    \"customerId\": 5019,\n    \"startTime\": 1676903478020,\n    \"endTime\": null,\n    \"affected\": 0,\n    \"processed\": 0,\n    \"total\": 0,\n    \"status\": \"PENDING\"\n}"},{"id":"8ea7e96f-b85c-47c4-8cc5-02d7b4dd8732","name":"All documents in DocType in list","originalRequest":{"method":"POST","header":[{"key":"X-Carma-Authentication-Token","type":"text","value":"{{token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n  \"exportStrategy\":\"ALL_DATADOC_IN_LIST\",\r\n  \"entityIds\": [38,24003],\r\n  \"columns\": [\"datadocexport.originalid\",\"datadocexport.transaction_date\",\"datadocexport.bookingnumber\"],\r\n  \"headers\": [\"originalid\",\"transaction_date\",\"bookingnumber\"],\r\n  \"useCompression\": false,\r\n  \"exportFormat\": \"CSV\",\r\n  \"uploadToFtp\": false,\r\n  \"period\": \"LAST_2_WEEKS\",\r\n  \"sendEmailOnCompletion\": true,\r\n  \"userToNotify\": \"ida@symplify.com\",\r\n  \"batchDescription\": \"All documents for DocType Events in list Customers\"\r\n}"},"url":"{{url}}/{{customerId}}/batches/exports/custom"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Mon, 29 May 2023 12:25:04 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Content-Type-Options","value":"nosniff"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 3640428,\n    \"type\": \"GENERIC_EXPORT\",\n    \"customerId\": 509,\n    \"startTime\": 1685363104720,\n    \"endTime\": null,\n    \"affected\": 0,\n    \"processed\": 0,\n    \"total\": 0,\n    \"status\": \"PENDING\"\n}"}],"_postman_id":"f428fad2-db12-4a77-ab8e-fd8d15229fd4"},{"name":"Batch info","event":[{"listen":"test","script":{"id":"92e358be-e2db-46d2-887e-bad9fb5a9252","exec":[""],"type":"text/javascript"}},{"listen":"prerequest","script":{"id":"3af241f1-e932-4938-8e2f-80216d6b29a5","exec":[""],"type":"text/javascript"}}],"id":"3b436fe0-7cb9-4fc9-a55e-3981ec464a6e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"X-Carma-Authentication-Token","type":"text","value":"{{token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"{{url}}/{{customerId}}/batches/{batchId}","description":"<p>Use the ID returned in the response in the previous request.</p>\n","urlObject":{"path":["{{customerId}}","batches","{batchId}"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"d7d79324-fdd4-4484-9f61-d42112b6f91b","name":"Batch info","originalRequest":{"method":"GET","header":[{"key":"X-Carma-Authentication-Token","type":"text","value":"{{token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"{{url}}/{{customerId}}/batches/3498248"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Mon, 20 Feb 2023 14:32:53 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Content-Type-Options","value":"nosniff"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 3498248,\n    \"type\": \"GENERIC_EXPORT\",\n    \"customerId\": 5019,\n    \"startTime\": 1676903478020,\n    \"endTime\": 1676903479307,\n    \"affected\": 10,\n    \"processed\": 10,\n    \"total\": 10,\n    \"status\": \"FINISHED\"\n}"}],"_postman_id":"3b436fe0-7cb9-4fc9-a55e-3981ec464a6e"},{"name":"Batch result","event":[{"listen":"test","script":{"id":"92e358be-e2db-46d2-887e-bad9fb5a9252","exec":["pm.environment.unset(\"batchId\");","","var jsonData = JSON.parse(responseBody);","pm.environment.set(\"batchId\", jsonData.id);",""],"type":"text/javascript"}},{"listen":"prerequest","script":{"id":"3af241f1-e932-4938-8e2f-80216d6b29a5","exec":[""],"type":"text/javascript"}}],"id":"78558f78-67d7-4efe-86ad-6d8f4eac80e0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"X-Carma-Authentication-Token","type":"text","value":"{{token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"{{url}}/{{customerId}}/batches/{batchId}/result","description":"<p>Use the ID returned in the response in the previous request.</p>\n<p>By adding <code>/url</code> to your call, the response will include a URL to download a file of your result.</p>\n<p><code>{{url}}/{{customerId}}/batches/{batchId}/result/url</code></p>\n","urlObject":{"path":["{{customerId}}","batches","{batchId}","result"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"1bae79c8-462e-4b03-b5f0-a94a975eaf8e","name":"Batch result","originalRequest":{"method":"GET","header":[{"key":"X-Carma-Authentication-Token","value":"{{token}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":"{{url}}/{{customerId}}/batches/3498248/result"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Mon, 20 Feb 2023 14:33:34 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Content-Type-Options","value":"nosniff"}],"cookie":[],"responseTime":null,"body":"\"listId\";\"originalId\";\"emailAddress\";\"firstName\";\"lastName\"\n\"240103\";\"93780\";\"nicki.sykes@example.com\";\"Nicki\";\"Sykes\"\n\"240103\";\"128945\";\"dinaras.taylor@example.com\";\"Dinaras\";\"Taylor\"\n\"240103\";\"45169\";\"dhyia.massey@example.com\";\"Dhyia\";\"Massey\"\n\"240103\";\"272357\";\"kyle.may@example.com\";\"Kyle\";\"May\"\n\"240103\";\"266059\";\"loudon.berger@example.com\";\"Loudon\";\"Berger\"\n\"240103\";\"194775\";\"rikki.perkins@example.com\";\"Rikki\";\"Perkins\"\n\"240103\";\"45167\";\"riley.cardenas@example.com\";\"Riley\";\"Cardenas\"\n\"240103\";\"216127\";\"ruari.graves@example.com\";\"Ruari\";\"Graves\"\n\"240103\";\"208467\";\"khizer.mcdaniel@example.com\";\"Khizer\";\"McDaniel\"\n\"240103\";\"40401\";\"teagan.fisher@example.com\";\"Teagan\";\"Fisher\"\n"},{"id":"7a1d8d23-a49d-475f-81ba-d048a29c0c80","name":"Batch result url","originalRequest":{"method":"GET","header":[{"key":"X-Carma-Authentication-Token","value":"{{token}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":"{{url}}/{{customerId}}/batches/3498248/result/url"},"status":"OK","code":200,"_postman_previewlanguage":"plain","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Mon, 17 Feb 2025 14:48:58 GMT"},{"key":"Content-Type","value":"text/plain"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Content-Type-Options","value":"nosniff"}],"cookie":[],"responseTime":null,"body":"https://cellar-c2.services.clever-cloud.com/symplify-export-test/result/1001/3498248_result.csv?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20250217T144858Z&X-Amz-SignedHeaders=host&X-Amz-Expires=86400&X-Amz-Credential=7592P7HGPD7%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Signature=41b6c9ab67bf3d270173edba59cef5c8a932c192ea12b67e0a6"}],"_postman_id":"78558f78-67d7-4efe-86ad-6d8f4eac80e0"}],"id":"66bd54ee-132e-4ba6-8dc1-74e4b7a31e41","description":"<p>These exports extracts data from all messages sent from your account, such as campaign, auto send, and transactonal send outs. But with additional column data such as campaign name, project name etc, the raw data can be post sorted by you based upon those values for example.</p>\n<p>Please note that you can only use one strategy per export.</p>\n<h3 id=\"strategies-for-message-data\">Strategies for message data:</h3>\n<p><strong>Sent</strong> – All sent messages from account for a set time period, plus any added field from data base.</p>\n<p><strong>Opened</strong> – All opened messages from account for a set time period, plus any added field from data base.</p>\n<p><strong>Clicked</strong> – All clicked messages from account for a set time period, plus any added field from data base.</p>\n<p><strong>Hard Bounced</strong> – All hard bounced messages from account for a set time period, plus any added field from data base.</p>\n<p><strong>Unsubscriptions</strong> – All unsubscribed messages from account for a set time period, plus any added field from data base. (applies to emails sent with Symplify default unsubscribed link).</p>\n<p><strong>Complaints</strong> – All sent messages from account for a set time period with registered complaints, plus any added field from data base.</p>\n<p><strong>Five soft bounces</strong> – deactivation – All 5X soft bounced in a row messages from account for a set time period, plus any added field from data base.</p>\n<p>​</p>\n<h3 id=\"strategies-for-contact-data\">Strategies for contact data:</h3>\n<ul>\n<li><strong>All Contacts</strong> – per list plus any added field from data base – One off export</li>\n<li><strong>New Contacts</strong> – per list plus any added field from data base per selected time span</li>\n<li><strong>Active Contacts</strong> – per list plus any added field from data base per selected time span</li>\n<li><strong>All DataDocs for all contacts</strong> - will provide all your documents stored for the selected type (only document data can be included).</li>\n<li><strong>All DataDocs in list</strong> - will provide all your documents stored for the selected type for specific list(s) (only document data can be included).</li>\n</ul>\n","_postman_id":"66bd54ee-132e-4ba6-8dc1-74e4b7a31e41"},{"name":"Export contact data","item":[{"name":"Start export","event":[{"listen":"test","script":{"id":"4b46a20e-745f-447e-a342-0f9d2905b4ee","exec":["var jsonData = JSON.parse(responseBody);","pm.environment.set(\"batchId\", jsonData.id);"],"type":"text/javascript"}}],"id":"aa5c1069-0d2f-4c0f-a69a-d8f6d39f6de6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"X-Carma-Authentication-Token","value":"{{token}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n  \"id\": -1,\r\n  \"listId\": {{listId}},\r\n  \"ruleJson\": \"{\\r\\n\\\"type\\\": \\\"LOGICAL\\\",\\r\\n\\\"operator\\\": \\\"AND\\\",\\r\\n\\\"id\\\": \\\"u_40\\\",\\r\\n\\\"elements\\\": [\\r\\n{\\r\\n\\\"name\\\": \\\"emailaddress\\\",\\r\\n\\\"operator\\\": \\\"NOT_EMPTY\\\",\\r\\n\\\"values\\\": [\\r\\n\\\"\\\"\\r\\n],\\r\\n\\\"valueType\\\": \\\"0\\\",\\r\\n\\\"type\\\": \\\"PROPERTY\\\",\\r\\n\\\"property\\\": \\\"emailaddress\\\",\\r\\n\\\"id\\\": \\\"u_158\\\",\\r\\n\\\"valueFormat\\\": \\\"DEFAULT\\\"\\r\\n}\\r\\n]\\r\\n}\",\r\n  \"requestedProperties\": [\"originalId\", \"emailAddress\", \"mobileNumber\", \"firstName\", \"lastName\"],\r\n  \"sendEmailOnCompletion\": true,\r\n  \"batchDescription\": \"Export recipients\",\r\n  \"includeInactive\": false,\r\n  \"exportFormat\": \"CSV\",\r\n  \"delimiter\": \";\",\r\n  \"limit\": -1\r\n}"},"url":"{{url}}/{{customerId}}/batches/export","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th></th>\n<th>Type</th>\n<th>Description</th>\n<th>Available options</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id*</td>\n<td>integer($int32)</td>\n<td>campaign id, or -1 for unspecified. If populated, only test contacts applicable to the campaign type</td>\n<td></td>\n</tr>\n<tr>\n<td>listId*</td>\n<td>integer($int32)</td>\n<td>list that should be exported</td>\n<td></td>\n</tr>\n<tr>\n<td>projectId</td>\n<td>integer($int32)</td>\n<td>Project id to test the rule for if applicable. Specifying this and channel applies project specific filters to the test.</td>\n<td></td>\n</tr>\n<tr>\n<td>channel</td>\n<td>string</td>\n<td>Channel to test the rule for if applicable. Specifying this and projectId applies project specific filters to the test.</td>\n<td>Enum:  <br />EMAIL, SMS, PUSH, WEB_PUSH, PRINT, UNKNOWN, PAGE, AUDIO, MIXED</td>\n</tr>\n<tr>\n<td>appInfoId</td>\n<td>integer($int32)</td>\n<td>Id of the app to test for (if channel is PUSH).</td>\n<td></td>\n</tr>\n<tr>\n<td>ruleJson*</td>\n<td>string</td>\n<td>filter (rule) that should be applied on the list**</td>\n<td></td>\n</tr>\n<tr>\n<td>ruleId*</td>\n<td>integer($int32)</td>\n<td>Id of the applied rule. Only used for tracking in progress center.</td>\n<td></td>\n</tr>\n<tr>\n<td>requestedProperties*</td>\n<td>string</td>\n<td>collection of the attributes that should be exported for each contact</td>\n<td></td>\n</tr>\n<tr>\n<td>activityFields</td>\n<td>string</td>\n<td>Collection of the activity fields that should be included (see ActivityCriteria).</td>\n<td></td>\n</tr>\n<tr>\n<td>sendEmailOnCompletion</td>\n<td>boolean</td>\n<td>should an email be sent to the exporter upon completion</td>\n<td></td>\n</tr>\n<tr>\n<td>batchDescription</td>\n<td>string</td>\n<td>description of the export</td>\n<td></td>\n</tr>\n<tr>\n<td>includeInactive*</td>\n<td>boolean</td>\n<td>should botch active and inactive user be exported</td>\n<td></td>\n</tr>\n<tr>\n<td>exportFormat</td>\n<td>string</td>\n<td>Format of the export file. Defaults to CSV.</td>\n<td>CSV, EXCEL or CUSTOM (csv without quoted values).</td>\n</tr>\n<tr>\n<td>delimiter</td>\n<td>string</td>\n<td>Delimiter to use for CSV or CUSTOM format. Defaults to ','</td>\n<td></td>\n</tr>\n<tr>\n<td>limit</td>\n<td>integer($int32)</td>\n<td>Specify this to limit the number of rows to export. Defaults to -1, meaning 'no limit'</td>\n<td></td>\n</tr>\n<tr>\n<td>bypassPeregrin</td>\n<td>boolean</td>\n<td>Bypass peregrin. This should be specified for simple searches.</td>\n<td></td>\n</tr>\n<tr>\n<td>requestedPropertiesNoEmailOrMobile</td>\n<td>string</td>\n<td></td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><p>** You can use fetch the rule/segment JSON with<br />GET <code>/filters/{filterID}</code></p>\n","urlObject":{"path":["{{customerId}}","batches","export"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"aa5c1069-0d2f-4c0f-a69a-d8f6d39f6de6"},{"name":"Check batch status","event":[{"listen":"test","script":{"id":"3c3142f7-c903-4d51-b12c-1e371d39ecfb","exec":["var jsonData = JSON.parse(responseBody);","pm.environment.set(\"batchId\", jsonData.id);"],"type":"text/javascript"}}],"id":"06b589f7-2629-4f91-8407-1c6982cd849f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Carma-Authentication-Token","value":"{{token}}"},{"key":"Content-Type","value":"application/json"}],"url":"{{url}}/{{customerId}}/batches/{batchId}","description":"<p>Use the ID returned in the response in the previous request.</p>\n<p><strong>Example response:</strong></p>\n<p>200 OK</p>\n","urlObject":{"path":["{{customerId}}","batches","{batchId}"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"06b589f7-2629-4f91-8407-1c6982cd849f"},{"name":"Get batch result","event":[{"listen":"test","script":{"id":"4111120c-b12d-4597-aecb-028a39cd963e","exec":["pm.environment.unset(\"batchId\");"],"type":"text/javascript"}},{"listen":"prerequest","script":{"id":"0eaa965a-b767-413d-a7af-5b79cf3b7e88","exec":[""],"type":"text/javascript"}}],"id":"3a7c3cca-f508-4a73-904c-c07150618309","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Carma-Authentication-Token","value":"{{token}}"},{"key":"Content-Type","value":"application/json"}],"url":"{{url}}/{{customerId}}/batches/{batchId}/result","description":"<p>Use the ID returned in the response in the previous request.</p>\n<p><strong>Example response:</strong></p>\n<p>200 OK</p>\n","urlObject":{"path":["{{customerId}}","batches","{batchId}","result"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"67f1884c-d131-49ff-aa00-de99e32015ad","name":"Batch result","originalRequest":{"method":"GET","header":[{"key":"X-Carma-Authentication-Token","value":"{{token}}"},{"key":"Content-Type","value":"application/json"}],"url":"{{url}}/{{customerId}}/batches/4101/result/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Mon, 17 Feb 2025 15:02:34 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Content-Type-Options","value":"nosniff"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"originalId\\\";\\\"emailAddress\\\";\\\"mobileNumber\\\";\\\"firstName\\\";\\\"lastName\": \"F1\\\";\\\"rikki.perkins@example.com\\\";\\\";\\\"Rikki\\\";\\\"Perkins\"\n    },\n    {\n        \"originalId\\\";\\\"emailAddress\\\";\\\"mobileNumber\\\";\\\"firstName\\\";\\\"lastName\": \"F2\\\";\\\"teagan.fisher@example.com\\\";\\\";\\\"Teagan\\\";\\\"Fisher\"\n    },\n    {\n        \"originalId\\\";\\\"emailAddress\\\";\\\"mobileNumber\\\";\\\"firstName\\\";\\\"lastName\": \"F3\\\";\\\"kyle.may@example.com\\\";;\\\"Kyle\\\";\\\"May\"\n    },\n    {\n        \"originalId\\\";\\\"emailAddress\\\";\\\"mobileNumber\\\";\\\"firstName\\\";\\\"lastName\": \"F4\\\";\\\"klein.kirk@example.com\\\";;\\\"Klein\\\";\\\"Kirk\"\n    },\n    {\n        \"originalId\\\";\\\"emailAddress\\\";\\\"mobileNumber\\\";\\\"firstName\\\";\\\"lastName\": \"F5\\\";\\\"riley.cardenas@example.com\\\";;\\\"Riley\\\";\\\"Cardenas\"\n    },\n    {\n        \"originalId\\\";\\\"emailAddress\\\";\\\"mobileNumber\\\";\\\"firstName\\\";\\\"lastName\": \"F7\\\";\\\"loudon.berger@example.com\\\";;\\\"Loudon\\\";\\\"Berger\"\n    },\n    {\n        \"originalId\\\";\\\"emailAddress\\\";\\\"mobileNumber\\\";\\\"firstName\\\";\\\"lastName\": \"F8\\\";\\\"khizer.mcdaniel@example.com\\\";;\\\"Khizer\\\";\\\"McDaniel\"\n    },\n    {\n        \"originalId\\\";\\\"emailAddress\\\";\\\"mobileNumber\\\";\\\"firstName\\\";\\\"lastName\": \"F9\\\";\\\"nicki.sykes@example.com\\\";;\\\"Nicki\\\";\\\"Sykes\"\n    },\n    {\n        \"originalId\\\";\\\"emailAddress\\\";\\\"mobileNumber\\\";\\\"firstName\\\";\\\"lastName\": \"F10\\\";\\\"dhyia.massey@example.com\\\";;\\\"Dhyia\\\";\\\"Massey\"\n    },\n    {\n        \"originalId\\\";\\\"emailAddress\\\";\\\"mobileNumber\\\";\\\"firstName\\\";\\\"lastName\": \"F11\\\";\\\"dinaras.taylor@painpong.com\\\";;\\\"Dinaras\\\";\\\"Blocked\"\n    },\n    {\n        \"originalId\\\";\\\"emailAddress\\\";\\\"mobileNumber\\\";\\\"firstName\\\";\\\"lastName\": \"F12\\\";\\\"ruari.graves@painpong.com\\\";;\\\"Ruari\\\";\\\"Opted out\"\n    }\n]"},{"id":"fd3ebad8-588d-4e49-b2ff-d818d4803700","name":"Batch result url","originalRequest":{"method":"GET","header":[{"key":"X-Carma-Authentication-Token","value":"{{token}}"},{"key":"Content-Type","value":"application/json"}],"url":"{{url}}/{{customerId}}/batches/410901/result/url"},"status":"OK","code":200,"_postman_previewlanguage":"plain","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Mon, 17 Feb 2025 15:02:15 GMT"},{"key":"Content-Type","value":"text/plain"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Content-Type-Options","value":"nosniff"}],"cookie":[],"responseTime":null,"body":"https://cellar-c2.services.clever-cloud.com/symplify-export-test/result/1001/410901_result.csv?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20250217T150215Z&X-Amz-SignedHeaders=host&X-Amz-Expires=86400&X-Amz-Credential=7592P7HGPDWAYHH50217%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Signature=a730e5fdc726e40b6119cfed7603c33807d32d58738460f577d0c"}],"_postman_id":"3a7c3cca-f508-4a73-904c-c07150618309"}],"id":"b1a85ef8-4c10-4bf3-aa82-60a56c333617","description":"<p>Get contacts matching a specified segment.</p>\n","_postman_id":"b1a85ef8-4c10-4bf3-aa82-60a56c333617"}],"id":"5e9cc588-bc6a-46d6-9967-5f6e7cb98109","description":"<p>Exports enables you to synchronize your Symplify data with your other systems.</p>\n","event":[{"listen":"prerequest","script":{"id":"76229127-2904-4be5-8379-6f0e9f878fd3","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"48b82f8e-c5d5-4c90-835e-6afe295c271a","type":"text/javascript","exec":[""]}}],"_postman_id":"5e9cc588-bc6a-46d6-9967-5f6e7cb98109"},{"name":"DataDocs","item":[{"name":"File import","item":[{"name":"Start import","event":[{"listen":"test","script":{"id":"669893d8-1ed9-494e-ad32-865caea9f792","exec":["","var jsonData = pm.response.json();","postman.setEnvironmentVariable(\"uploadUrl\", jsonData.uploadUrl);","",""],"type":"text/javascript"}}],"id":"b1f802a3-9f3d-4d7c-a5d7-ecaaf7425f6d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-Carma-Authentication-Token","type":"text","value":"{{token}}"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"type\": \"IMPORT_DATA_DOCS_FILE\",\r\n  \"entityId\": {documentTypeId},\r\n  \"contentType\": \"text/plain\",\r\n  \"customData\"{\r\n        \"batchtrigger_preprocessor\": \"DEFAULT\"\r\n  },\r\n  \"downloadUrl\": \"\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"{{url}}/{{customerId}}/batchtrigger/v2","description":"<p>The file can be supplied to Symplify in two different ways: Symplify can download the file from a specified URI, or it can be accepted as a PUT to a pre-signed URI received from the Symplify API.</p>\n<p>You will initiate using a POST and the request payload will be different depending on which approach you use.</p>\n<p>If downloadUrl is specified, the file will be downloaded immediately, and the batch will start automatically.</p>\n<p>Otherwise the response will include an <strong>uploadUrl</strong>, to which the file must be uploaded. The uploadUrl is valid for 12 hours.</p>\n<p>The data file is expected to be an UTF8-encoded text file where each line is in a JSON object (see introduction). But you can also use a CSV file (must be comma separated) if you change the \"batchtrigger_preprocessor\" to \"CSV_IMPORT\":</p>\n<p><code>\"customData\"{\"batchtrigger_preprocessor\": \"CSV_IMPORT\" }</code></p>\n<p>DataDocs connected to contacts that are not already in the system will be registered and visualized in the interface when created.</p>\n<h3 id=\"delete-documents\">Delete documents</h3>\n<p>This endpoint can also be used to delete documents that are no longer relevant for your marketing stragedy.</p>\n<p>Use type \"DELETE_DATA_DOCS_FILE\" and set whether you want to delete a collection of external ID's (selected documents will be deleted) or original ID's (all documents for these contacts will then be deleted).</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"type\": \"DELETE_DATA_DOCS_FILE\",\n  \"entityId\": {docTypeId},\n  \"contentType\": \"text/plain\",\n  \"customData\":\n    {\n        \"deleteMethod\": \"{DELETE_BY_EXTERNAL_ID|DELETE_BY_ORIGINAL_ID}\"\n    },\n  \"downloadUrl\": \"\"\n}\n\n</code></pre>\n<p>When deleting by external ID, each row must contain the external ID name and your unique document id:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\"ticketId\":\"ticket-99991\"}\n{\"ticketId\":\"ticket-99993\"}\n\n</code></pre>","urlObject":{"path":["{{customerId}}","batchtrigger","v2"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"7e0418aa-ab52-4f4b-9ce2-baaf96cd77d0","name":"With download URL","originalRequest":{"method":"POST","header":[{"key":"X-Carma-Authentication-Token","type":"text","value":"{{token}}"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"type\": \"IMPORT_DATA_DOCS_FILE\",\r\n  \"entityId\": 30,\r\n  \"contentType\": \"text/plain\",\r\n  \"downloadUrl\": \"http://yourfilestorage.com/folder/file_for_upload.txt\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"{{url}}/{{customerId}}/batchtrigger/v2"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Mon, 27 Mar 2023 15:04:23 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Content-Type-Options","value":"nosniff"}],"cookie":[],"responseTime":null,"body":"{\n    \"uploadUrl\": null,\n    \"status\": \"PENDING\"\n}"},{"id":"0bda173f-1dc4-41de-942a-140693594b79","name":"No download URL","originalRequest":{"method":"POST","header":[{"key":"X-Carma-Authentication-Token","type":"text","value":"{{token}}"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"type\": \"IMPORT_DATA_DOCS_FILE\",\r\n  \"entityId\": 31,\r\n  \"contentType\": \"text/plain\",\r\n  \"downloadUrl\": \"\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"{{url}}/{{customerId}}/batchtrigger/v2"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Mon, 27 Mar 2023 15:05:52 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Content-Type-Options","value":"nosniff"}],"cookie":[],"responseTime":null,"body":"{\n    \"uploadUrl\": \"https://symplify-batchtrigger-test.cellar-c2.services.clever-cloud.com/uploads/www4/247976084833223924445e2efcc6196d81f52c1bca535652f4e27ee107ddccc8d90919c6da26a91e7?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20230327T150552Z&X-Amz-SignedHeaders=content-type%3Bhost&X-Amz-Expires=43199&X-Amz-Credential=7592P7HGPDWAYHHO8W7Q%2F20230327%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Signature=bf71c1cf28e1d5c8a049b9e2f46e8d0774a01c5ff0a346d5bbe08927c0b522d9\",\n    \"status\": \"WAITING_FOR_UPLOAD\"\n}"},{"id":"3879647f-806c-47ff-b587-e7c00431ce26","name":"Delete by externalId","originalRequest":{"method":"POST","header":[{"key":"X-Carma-Authentication-Token","value":"{{token}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"type\": \"DELETE_DATA_DOCS_FILE\",\r\n  \"entityId\": 439,\r\n  \"contentType\": \"text/plain\",\r\n  \"customData\":\r\n    {\r\n        \"deleteMethod\": \"DELETE_BY_EXTERNAL_ID\"\r\n    },\r\n  \"downloadUrl\": \"\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"{{url}}/{{customerId}}/batchtrigger/v2"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Fri, 11 Oct 2024 13:24:32 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Content-Type-Options","value":"nosniff"}],"cookie":[],"responseTime":null,"body":"{\n    \"uploadUrl\": \"https://symplify-batchtrigger.s3.eu-central-1.amazonaws.com/uploads/test/4499343526021099c006c5ee126255adc1f169a7aeab893e0dc96e1a95e9af548669c98981dfed55?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20241011T132432Z&X-Amz-SignedHeaders=content-type%3Bhost&X-Amz-Expires=43200&X-Amz-Credential=AKIAJNJRZJQCQ3W66YIQ%2F20241011%2Feu-central-1%2Fs3%2Faws4_request&X-Amz-Signature=cef6d8764f288bac37251ae9aae0e647d5adde03502a1ca9daa67f581f139ae1\",\n    \"status\": \"WAITING_FOR_UPLOAD\",\n    \"batchProgressUri\": \"/rest/1/batches/future/CXX9B4ByfrrAlG4XzClowj1W2dPMdY8m\",\n    \"batchProgressToken\": \"CXX9B4ByfrrAlG4XzClowj1W2dPMdY8m\"\n}"}],"_postman_id":"b1f802a3-9f3d-4d7c-a5d7-ecaaf7425f6d"},{"name":"Upload file","id":"7d55ccda-9742-488b-8bbf-68b20d466497","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"X-Carma-Authentication-Token","type":"text","value":"{{token}}"},{"key":"Content-Type","name":"Content-Type","value":"text/plain","type":"text"}],"body":{"mode":"file","file":{"src":"/Users/oida/Downloads/datadocs123456.txt"}},"url":"{{uploadUrl}}","description":"<p>Use a PUT to the uploadUrl specified in the previous response to upload your data.</p>\n<p>The batch will start within seconds after the file has been uploaded.</p>\n<p>Please note:</p>\n<ul>\n<li>The value of <strong>Content-Type</strong> header should be <strong>text/plain</strong></li>\n<li>The uploaded file should be UTF-8 encoded.</li>\n<li>The uploadUrl is valid for 12 hours.</li>\n<li>The file must be publically available for download. For this reason, it is recommended that it's protected using a secure, time-based signature.</li>\n</ul>\n","urlObject":{"host":["{{uploadUrl}}"],"query":[],"variable":[]}},"response":[{"id":"4e89a988-a925-42d4-aba5-1c5d9803eb07","name":"200 - Upload file","originalRequest":{"method":"PUT","header":[{"key":"X-Carma-Authentication-Token","type":"text","value":"{{token}}"},{"key":"Content-Type","name":"Content-Type","value":"text/plain","type":"text"}],"body":{"mode":"file","file":{}},"url":{"raw":"https://symplify-batchtrigger-test.cellar-c2.services.clever-cloud.com/uploads/www4/24512779363487064a0bdff6b526438b8196301e7edaf686c54306cb03a7c8b52c092d114998cb02c?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20230324T075835Z&X-Amz-SignedHeaders=content-type%3Bhost&X-Amz-Expires=43199&X-Amz-Credential=7592P7HGPDWAYHHO8W7Q%2F20230324%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Signature=68f5dee460ef159d7bbd553fad62d2a4fd44f1b093371aa83686e8a27807171c","protocol":"https","host":["symplify-batchtrigger-test","cellar-c2","services","clever-cloud","com"],"path":["uploads","www4","24512779363487064a0bdff6b526438b8196301e7edaf686c54306cb03a7c8b52c092d114998cb02c"],"query":[{"key":"X-Amz-Algorithm","value":"AWS4-HMAC-SHA256"},{"key":"X-Amz-Date","value":"20230324T075835Z"},{"key":"X-Amz-SignedHeaders","value":"content-type%3Bhost"},{"key":"X-Amz-Expires","value":"43199"},{"key":"X-Amz-Credential","value":"7592P7HGPDWAYHHO8W7Q%2F20230324%2Fus-east-1%2Fs3%2Faws4_request"},{"key":"X-Amz-Signature","value":"68f5dee460ef159d7bbd553fad62d2a4fd44f1b093371aa83686e8a27807171c"}]}},"status":"OK","code":200,"_postman_previewlanguage":"plain","header":[{"key":"content-length","value":"0"},{"key":"ETag","value":"\"1cefe486dca8d3e32ca1380ba83ce489\""},{"key":"accept-ranges","value":"bytes"},{"key":"x-amz-expiration","value":"expiry-date=\"Fri, 07 Apr 2023 07:59:06 GMT\", rule-id=\"default-lifecycle-1.0.0\""},{"key":"x-amz-request-id","value":"tx00000000000003a5dac42-00641d584a-1763aec9-default"},{"key":"date","value":"Fri, 24 Mar 2023 07:59:06 GMT"}],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"7d55ccda-9742-488b-8bbf-68b20d466497"}],"id":"474bbdc6-f819-4b01-83e5-2501d9f45b40","description":"<h3 id=\"importing-a-datadocs-file\">Importing a DataDocs file</h3>\n<p>A DataDoc is a text string with JSON. When importing a DataDoc file, each line in the import will contain a JSON row:</p>\n<p>View MorePlain Text</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\"originalid\": \"123456\", \"bookingnumber\":\"ABC-123\", \"transactionDate\": \"2023-05-30\", \"category\": \"music\", \"eventDate\": \"2023-07-22\", \"eventDetails\": {\"location\": \"Big Arena\", \"Entrance\": \"F\", \"startTime\": \"20.00\"}}\n{\"originalid\": \"123456\", \"bookingnumber\":\"DFG-456\", \"transactionDate\": \"2023-06-02\", \"category\": \"sport\", \"eventDate\": \"2023-09-01\", \"eventDetails\": {\"location\": \"Tiny Stadium\", \"startTime\": \"15.00\"}}\n\n</code></pre><p>When updating, you must always provide the Document Type id for which the DataDocs belongs.</p>\n<p>After a succesful import, when selecting the specific document type, the docs will be visible on the contacts.</p>\n","_postman_id":"474bbdc6-f819-4b01-83e5-2501d9f45b40"},{"name":"Single doc management","item":[{"name":"Upsert doc","event":[{"listen":"test","script":{"id":"ccf6d518-ee3c-4c04-94db-a43ab8fc3d32","exec":[""],"type":"text/javascript"}}],"id":"8ee688d9-e03c-4faa-91e6-75d8db5f76dd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"X-Carma-Authentication-Token","type":"text","value":"{{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"    {\r\n       \"document\": {\r\n            \"{externalIdAttribute}\": \"{externalId}\",\r\n            \"{originalIdAttribute}\": \"{originalId}\",\r\n            \"{header}\": \"value\",\r\n            \"json_object\": {\r\n                \"header1\": \"value\",\r\n                \"header2\": \"value\"\r\n            }\r\n\r\n        }\r\n    }","options":{"raw":{"language":"json"}}},"url":"{{url}}/{{customerId}}/datadocs/fortype/{typeId}","description":"<p>To create and/or update DataDocs for a contact</p>\n<p>Create and update can also be <a href=\"https://apidocs.symplify.com/#5d964d62-13f7-49fd-ab78-d879be8fb808\">managed with Event Hub</a>.</p>\n","urlObject":{"path":["{{customerId}}","datadocs","fortype","{typeId}"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"8ee688d9-e03c-4faa-91e6-75d8db5f76dd"},{"name":"Get all docs for a contact","event":[{"listen":"test","script":{"id":"bcab3ce4-a208-421e-8214-d76c9d6367de","exec":[""],"type":"text/javascript"}}],"id":"d3b5ead2-9601-4368-bf6b-09467a0e208e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Carma-Authentication-Token","type":"text","value":"{{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{url}}/{{customerId}}/datadocs/contacts/{originalid}/documents","description":"<p>Returns all DataDocs in any Document Type for a specific contact.</p>\n","urlObject":{"path":["{{customerId}}","datadocs","contacts","{originalid}","documents"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"e68dc0d0-e981-468d-9209-447ea8888a39","name":"Get all docs for a contact","originalRequest":{"method":"GET","header":[{"key":"X-Carma-Authentication-Token","type":"text","value":"{{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{url}}/{{customerId}}/datadocs/contacts/40401/documents"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Wed, 05 Apr 2023 13:39:18 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Content-Type-Options","value":"nosniff"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"dataDocId\": 29,\n        \"documentTypeId\": 34,\n        \"document\": {\n            \"transaction_date\": \"2023-05-30\",\n            \"event_date\": \"2023-07-22\",\n            \"bookingnumber\": \"ABC-123123\",\n            \"event_details\": {\n                \"location\": \"Big Arena\",\n                \"Entrance\": \"F\",\n                \"startTime\": \"20.00\"\n            },\n            \"originalid\": \"40401\",\n            \"category\": \"music\"\n        }\n    },\n    {\n        \"dataDocId\": 30,\n        \"documentTypeId\": 34,\n        \"document\": {\n            \"transaction_date\": \"2023-06-02\",\n            \"event_date\": \"2023-09-01\",\n            \"bookingnumber\": \"DFG-456123\",\n            \"event_details\": {\n                \"location\": \"Tiny Stadium\",\n                \"startTime\": \"15.00\"\n            },\n            \"originalid\": \"40401\",\n            \"category\": \"sport\"\n        }\n    }\n]"}],"_postman_id":"d3b5ead2-9601-4368-bf6b-09467a0e208e"},{"name":"Get all docs in a type for a contact","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript","id":"abeda35f-6c2f-4e3a-b657-40302379e6fc"}}],"id":"6b518155-b03e-43d3-bb09-498bbda5c341","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Carma-Authentication-Token","type":"text","value":"{{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{url}}/{{customerId}}/datadocs/contacts/{contactid}/documents/{documenttypeid}","description":"<p>Returns all DataDocs for a contact within the specific Document Type.</p>\n","urlObject":{"path":["{{customerId}}","datadocs","contacts","{contactid}","documents","{documenttypeid}"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"1e785eb7-0049-484b-9538-5602e35d86d3","name":"Get all docs in a type for a contact","originalRequest":{"method":"GET","header":[{"key":"X-Carma-Authentication-Token","type":"text","value":"{{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{url}}/{{customerId}}/datadocs/contacts/40401/documents/34"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Wed, 05 Apr 2023 13:43:31 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Content-Type-Options","value":"nosniff"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"dataDocId\": 29,\n        \"documentTypeId\": 34,\n        \"document\": {\n            \"transaction_date\": \"2023-05-30\",\n            \"event_date\": \"2023-07-22\",\n            \"bookingnumber\": \"ABC-123123\",\n            \"event_details\": {\n                \"location\": \"Big Arena\",\n                \"Entrance\": \"F\",\n                \"startTime\": \"20.00\"\n            },\n            \"originalid\": \"40401\",\n            \"category\": \"music\"\n        }\n    },\n    {\n        \"dataDocId\": 30,\n        \"documentTypeId\": 34,\n        \"document\": {\n            \"transaction_date\": \"2023-06-02\",\n            \"event_date\": \"2023-09-01\",\n            \"bookingnumber\": \"DFG-456123\",\n            \"event_details\": {\n                \"location\": \"Tiny Stadium\",\n                \"startTime\": \"15.00\"\n            },\n            \"originalid\": \"40401\",\n            \"category\": \"sport\"\n        }\n    }\n]"}],"_postman_id":"6b518155-b03e-43d3-bb09-498bbda5c341"},{"name":"Get specific doc by doc id","event":[{"listen":"test","script":{"id":"c2a893b1-5c42-4a93-a407-fe1fc72075a6","exec":[""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"43a9deea-d4f6-4f2b-93ce-d2fc49eda2a0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Carma-Authentication-Token","value":"{{token}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{url}}/{{customerId}}/datadocs/{datadocId}","description":"<p>Returns the DataDoc for the given DataDocs ID.</p>\n","urlObject":{"path":["{{customerId}}","datadocs","{datadocId}"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"43a9deea-d4f6-4f2b-93ce-d2fc49eda2a0"},{"name":"Get specific doc history by doc id","event":[{"listen":"test","script":{"id":"c2a893b1-5c42-4a93-a407-fe1fc72075a6","exec":[""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"dc2556d6-e75e-4592-8113-9b8a42f1b6bb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Carma-Authentication-Token","value":"{{token}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{url}}/{{customerId}}/datadocs/{datadocId}/history","description":"<p>Returns the DataDoc history for the given DataDocs ID.</p>\n","urlObject":{"path":["{{customerId}}","datadocs","{datadocId}","history"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"dc2556d6-e75e-4592-8113-9b8a42f1b6bb"},{"name":"Get single doc in specific DocType by externalId","event":[{"listen":"test","script":{"id":"1d0fd1aa-970c-49d7-9cc4-cd9ccfff991c","exec":[""],"type":"text/javascript"}}],"id":"4283a79c-7495-4c17-9496-034cf4a65817","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Carma-Authentication-Token","type":"text","value":"{{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{url}}/{{customerId}}/datadocs/contacts/{contactid}/documents/{documenttypeid}/externalid/{externalid}","description":"<p>Delete a given DataDoc in specific Document Type by externalId (your id reference).</p>\n","urlObject":{"path":["{{customerId}}","datadocs","contacts","{contactid}","documents","{documenttypeid}","externalid","{externalid}"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"4283a79c-7495-4c17-9496-034cf4a65817"},{"name":"Delete single doc by doc id","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript","id":"1d0fd1aa-970c-49d7-9cc4-cd9ccfff991c"}}],"id":"1cdf23dc-55bd-42e4-bcb2-5fd96c20f7d4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"X-Carma-Authentication-Token","type":"text","value":"{{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":" {\r\n        \"contactId\": \"orgid\",\r\n        \"externalId\": \"extid3\",\r\n        \"documentTypeId\": 1,\r\n        \"document\": {\r\n            \"name\": \"value\",\r\n            \"name2\":\"value2\"\r\n        }\r\n    }","options":{"raw":{"language":"json"}}},"url":"{{url}}/{{customerId}}/datadocs/{datadocId}","description":"<p>Delete the DataDoc with the given DataDoc ID.</p>\n","urlObject":{"path":["{{customerId}}","datadocs","{datadocId}"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"1cdf23dc-55bd-42e4-bcb2-5fd96c20f7d4"},{"name":"Delete single doc in specific DocType by externalId","event":[{"listen":"test","script":{"id":"1d0fd1aa-970c-49d7-9cc4-cd9ccfff991c","exec":[""],"type":"text/javascript"}}],"id":"da5633c7-01b1-4ae7-b635-4e0a3a3aa3fe","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"X-Carma-Authentication-Token","type":"text","value":"{{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{url}}/{{customerId}}/datadocs/contacts/{contactid}/documents/{documenttypeid}/externalid/{externalid}","description":"<p>Delete a given DataDoc in specific Document Type by externalId (your id reference).</p>\n","urlObject":{"path":["{{customerId}}","datadocs","contacts","{contactid}","documents","{documenttypeid}","externalid","{externalid}"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"da5633c7-01b1-4ae7-b635-4e0a3a3aa3fe"},{"name":"Delete all docs for a contact","event":[{"listen":"test","script":{"id":"1d0fd1aa-970c-49d7-9cc4-cd9ccfff991c","exec":[""],"type":"text/javascript"}}],"id":"35bcdce6-a735-402e-93d2-b536286f9856","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"X-Carma-Authentication-Token","type":"text","value":"{{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{url}}/{{customerId}}/datadocs/contacts/{originalId}/documents","description":"<p>Deletes all the DataDocs for a contact.</p>\n","urlObject":{"path":["{{customerId}}","datadocs","contacts","{originalId}","documents"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"35bcdce6-a735-402e-93d2-b536286f9856"},{"name":"Delete all docs in specific DocType for a contact","event":[{"listen":"test","script":{"id":"1d0fd1aa-970c-49d7-9cc4-cd9ccfff991c","exec":[""],"type":"text/javascript"}}],"id":"f55f1862-5c9f-4e61-87d7-2b165dd783e8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"X-Carma-Authentication-Token","type":"text","value":"{{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{url}}/{{customerId}}/datadocs/contacts/{contactid}/documents/{documentTypeId}","description":"<p>Delete all DataDocs within the given Document Type for a given contact.</p>\n","urlObject":{"path":["{{customerId}}","datadocs","contacts","{contactid}","documents","{documentTypeId}"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"f55f1862-5c9f-4e61-87d7-2b165dd783e8"}],"id":"1e07244c-36bf-4233-a7d8-1f1237be5351","description":"<p>Create, update, view or delete docs.</p>\n","_postman_id":"1e07244c-36bf-4233-a7d8-1f1237be5351"},{"name":"Manage document types","item":[{"name":"Batch delete of documents","item":[{"name":"Batch delete of documents","event":[{"listen":"test","script":{"id":"0c2b6a44-0380-492c-bc03-d2cab760d296","exec":[""],"type":"text/javascript"}}],"id":"0b335c29-5846-4b00-bc3e-9626779400bc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-Carma-Authentication-Token","type":"text","value":"{{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"type\": \"DELETE_DATA_DOCS_FILE\",\n  \"entityId\": {DocTypeId},\n  \"contentType\": \"text/plain\",\n  \"customData\":\n    {\n        \"deleteMethod\": \"<DELETE_BY_EXTERNAL_ID|DELETE_BY_ORIGINAL_ID>\"\n    },\n  \"downloadUrl\": \"\"\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/{{customerId}}/batchtrigger/v2","description":"<p>Use the type <code>DELETE_DATA_DOCS_FILE</code> to delete multiple documents in one job.</p>\n<p>You can either delete by exteranlId or original id, method is defined by <code>deleteMethod</code> when initiating the batch job.</p>\n<p>Note that <strong>all documents</strong> for an original id will be deleted when using deleteMethod <code>DELETE_BY_ORIGINAL_ID</code>.</p>\n<p>File structure example:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\"ticketId\":\"62\"}\n{\"ticketId\":\"61\"}\n\n</code></pre>\n","urlObject":{"path":["{{customerId}}","batchtrigger","v2"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"cf998267-7f6d-4177-a11d-39e43691aa09","name":"200 OK - by external id","originalRequest":{"method":"POST","header":[{"key":"X-Carma-Authentication-Token","type":"text","value":"{{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"type\": \"DELETE_DATA_DOCS_FILE\",\n  \"entityId\": 49,\n  \"contentType\": \"text/plain\",\n  \"customData\":\n    {\n        \"deleteMethod\": \"DELETE_BY_EXTERNAL_ID\"\n    },\n  \"downloadUrl\": \"\"\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/{{customerId}}/batchtrigger/v2"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Thu, 21 Dec 2023 14:10:08 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Content-Type-Options","value":"nosniff"}],"cookie":[],"responseTime":null,"body":"{\n    \"uploadUrl\": \"https://symplify-batchtrigger-test.cellar-c2.services.clever-cloud.com/uploads/www4/65763211966550899be678a8e3a44356c494142969eb8a143f170694eb212a92bc84f44506b235ef?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20231221T141008Z&X-Amz-SignedHeaders=content-type%3Bhost&X-Amz-Expires=43199&X-Amz-Credential=7592P7HGPDWAYHHO8W7Q%2F20231221%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Signature=8670d38b82607202dc7b8f20defbdd107fbf7493cd14fee07baed16b6c0ed7ab\",\n    \"status\": \"WAITING_FOR_UPLOAD\",\n    \"batchProgressUri\": \"/rest/509/batches/future/q1S32Oo0B2axlP0aeWtzApHNsHIC2N4R\",\n    \"batchProgressToken\": \"q1S32Oo0B2axlP0aeWtzApHNsHIC2N4R\"\n}"},{"id":"b3b8f1cb-dcbd-472d-a34e-9421147d1d2d","name":"200 OK - by original id","originalRequest":{"method":"POST","header":[{"key":"X-Carma-Authentication-Token","type":"text","value":"{{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"type\": \"DELETE_DATA_DOCS_FILE\",\n  \"entityId\": 49,\n  \"contentType\": \"text/plain\",\n  \"customData\":\n    {\n        \"deleteMethod\": \"DELETE_BY_ORIGINAL_ID\"\n    },\n  \"downloadUrl\": \"\"\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/{{customerId}}/batchtrigger/v2"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Thu, 21 Dec 2023 14:49:21 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Content-Type-Options","value":"nosniff"}],"cookie":[],"responseTime":null,"body":"{\n    \"uploadUrl\": \"https://symplify-batchtrigger-test.cellar-c2.services.clever-cloud.com/uploads/www4/6578673888778114dc285511a32dbe90fa1915451d953825341f6bf315b4a7c0141ab94da62cb934?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20231221T144921Z&X-Amz-SignedHeaders=content-type%3Bhost&X-Amz-Expires=43200&X-Amz-Credential=7592P7HGPDWAYHHO8W7Q%2F20231221%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Signature=25cb3f718b1b14ef36beb465bafbb0a6d2c054b69bfb80640334b867163aa356\",\n    \"status\": \"WAITING_FOR_UPLOAD\",\n    \"batchProgressUri\": \"/rest/509/batches/future/iAXr13e6H7PhLoclkU4TjqiIjjbSaCdr\",\n    \"batchProgressToken\": \"iAXr13e6H7PhLoclkU4TjqiIjjbSaCdr\"\n}"}],"_postman_id":"0b335c29-5846-4b00-bc3e-9626779400bc"},{"name":"Upload file","id":"60533418-b96d-43f0-b1d7-14c9c7931cf3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"X-Carma-Authentication-Token","type":"text","value":"{{token}}"},{"key":"Content-Type","name":"Content-Type","value":"text/plain","type":"text"}],"body":{"mode":"file","file":{"src":"/Users/oida/Downloads/json_file.txt"}},"url":"{uploadUrl}","description":"<p>You may now upload the contact file using a PUT to the uploadUrl specified in the previous response.</p>\n<p>The batch will start within seconds after the file has been uploaded.</p>\n<p>Please note:</p>\n<ul>\n<li>The value of <strong>Content-Type</strong> header should be <strong>text/plain</strong></li>\n<li>The uploaded file should be UTF-8 encoded.</li>\n<li>The uploadUrl is valid for 12 hours.</li>\n<li>The file must be publically available for download. For this reason, it is recommended that it's protected using a secure, time-based signature.</li>\n</ul>\n","urlObject":{"host":["{uploadUrl}"],"query":[],"variable":[]}},"response":[{"id":"e0d9032f-eda1-4b1f-b138-63f05fb21b83","name":"200 OK - by externalId","originalRequest":{"method":"PUT","header":[{"key":"X-Carma-Authentication-Token","type":"text","value":"{{token}}","disabled":true},{"key":"Content-Type","name":"Content-Type","value":"text/plain","type":"text"}],"body":{"mode":"raw","raw":"{\"ticketId\":\"62\"}\n{\"ticketId\":\"61\"}"},"url":{"raw":"https://symplify-batchtrigger-test.cellar-c2.services.clever-cloud.com/uploads/www4/65785096760941368ec2d2a6fed99a8e22530cd5e116e490b5d8c285337625dab9af612d745256fd9b6?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20231221T144636Z&X-Amz-SignedHeaders=content-type%3Bhost&X-Amz-Expires=43200&X-Amz-Credential=7592P7HGPDWAYHHO8W7Q%2F20231221%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Signature=df654efc51e275ec7b68d6616c167ff13a6c7d6d913103f53cba5e835b94d509","protocol":"https","host":["symplify-batchtrigger-test","cellar-c2","services","clever-cloud","com"],"path":["uploads","www4","65785096760941368ec2d2a6fed99a8e22530cd5e116e490b5d8c285337625dab9af612d745256fd9b6"],"query":[{"key":"X-Amz-Algorithm","value":"AWS4-HMAC-SHA256"},{"key":"X-Amz-Date","value":"20231221T144636Z"},{"key":"X-Amz-SignedHeaders","value":"content-type%3Bhost"},{"key":"X-Amz-Expires","value":"43200"},{"key":"X-Amz-Credential","value":"7592P7HGPDWAYHHO8W7Q%2F20231221%2Fus-east-1%2Fs3%2Faws4_request"},{"key":"X-Amz-Signature","value":"df654efc51e275ec7b68d6616c167ff13a6c7d6d913103f53cba5e835b94d509"}]}},"status":"OK","code":200,"_postman_previewlanguage":"plain","header":[{"key":"content-length","value":"0"},{"key":"ETag","value":"\"34f0970cf94d58532effa933a49adbdc\""},{"key":"accept-ranges","value":"bytes"},{"key":"x-amz-expiration","value":"expiry-date=\"Thu, 04 Jan 2024 14:46:49 GMT\", rule-id=\"default-lifecycle-1.0.0\""},{"key":"x-amz-request-id","value":"tx000000000000004ece24d-0065844fd9-2584b210-default"},{"key":"date","value":"Thu, 21 Dec 2023 14:46:49 GMT"}],"cookie":[],"responseTime":null,"body":null},{"id":"f3e60ed6-ba5f-4325-98ae-2649aeee571e","name":"200 OK - by originalId","originalRequest":{"method":"PUT","header":[{"key":"X-Carma-Authentication-Token","type":"text","value":"{{token}}","disabled":true},{"key":"Content-Type","name":"Content-Type","value":"text/plain","type":"text"}],"body":{"mode":"raw","raw":"{\"personId\":\"62\"}\n{\"personId\":\"61\"}"},"url":{"raw":"https://symplify-batchtrigger-test.cellar-c2.services.clever-cloud.com/uploads/www4/6578673888778114dc285511a32dbe90fa1915451d953825341f6bf315b4a7c0141ab94da62cb934?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20231221T144921Z&X-Amz-SignedHeaders=content-type%3Bhost&X-Amz-Expires=43200&X-Amz-Credential=7592P7HGPDWAYHHO8W7Q%2F20231221%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Signature=25cb3f718b1b14ef36beb465bafbb0a6d2c054b69bfb80640334b867163aa356","protocol":"https","host":["symplify-batchtrigger-test","cellar-c2","services","clever-cloud","com"],"path":["uploads","www4","6578673888778114dc285511a32dbe90fa1915451d953825341f6bf315b4a7c0141ab94da62cb934"],"query":[{"key":"X-Amz-Algorithm","value":"AWS4-HMAC-SHA256"},{"key":"X-Amz-Date","value":"20231221T144921Z"},{"key":"X-Amz-SignedHeaders","value":"content-type%3Bhost"},{"key":"X-Amz-Expires","value":"43200"},{"key":"X-Amz-Credential","value":"7592P7HGPDWAYHHO8W7Q%2F20231221%2Fus-east-1%2Fs3%2Faws4_request"},{"key":"X-Amz-Signature","value":"25cb3f718b1b14ef36beb465bafbb0a6d2c054b69bfb80640334b867163aa356"}]}},"status":"OK","code":200,"_postman_previewlanguage":"plain","header":[{"key":"content-length","value":"0"},{"key":"ETag","value":"\"1ee3be8151bff1d5685897c22e111ce2\""},{"key":"accept-ranges","value":"bytes"},{"key":"x-amz-expiration","value":"expiry-date=\"Thu, 04 Jan 2024 14:50:00 GMT\", rule-id=\"default-lifecycle-1.0.0\""},{"key":"x-amz-request-id","value":"tx000000000000005018389-0065845098-2447f710-default"},{"key":"date","value":"Thu, 21 Dec 2023 14:50:00 GMT"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"60533418-b96d-43f0-b1d7-14c9c7931cf3"}],"id":"b2d3baf4-3634-4a14-84d6-0b1fea28dbbe","_postman_id":"b2d3baf4-3634-4a14-84d6-0b1fea28dbbe","description":""},{"name":"Get all document types","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript","id":"0c2b6a44-0380-492c-bc03-d2cab760d296"}}],"id":"e45d4101-c77d-4017-b7dc-8dbc1067a655","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Carma-Authentication-Token","type":"text","value":"{{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{url}}/{{customerId}}/datadocs/documenttype","description":"<p>Returns the information about all your Document Types, including the mapping structure.</p>\n","urlObject":{"path":["{{customerId}}","datadocs","documenttype"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"e45d4101-c77d-4017-b7dc-8dbc1067a655"},{"name":"Get document type by id","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript","id":"e7a1b266-afc2-4e11-a339-f2baf76f26f6"}}],"id":"3dae5c9d-bea8-4aa3-9c99-a80e154054a5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Carma-Authentication-Token","type":"text","value":"{{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{url}}/{{customerId}}/datadocs/documenttype/{documentTypeId}","description":"<p>Returns information about the specific Document Type, including mapping structure.</p>\n","urlObject":{"path":["{{customerId}}","datadocs","documenttype","{documentTypeId}"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"1e5e4f6e-e5eb-4605-a866-0dae5bae96e6","name":"Get document type by id","originalRequest":{"method":"GET","header":[{"key":"X-Carma-Authentication-Token","type":"text","value":"{{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{url}}/{{customerId}}/datadocs/documenttype/30"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Wed, 29 Mar 2023 08:28:57 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Content-Type-Options","value":"nosniff"}],"cookie":[],"responseTime":null,"body":"{\n    \"documentTypeId\": 30,\n    \"customerId\": 509,\n    \"name\": \"Events SE\",\n    \"originalIdAttribute\": \"originalId\",\n    \"externalIdAttribute\": \"bookingnumber\",\n    \"description\": \"All bookings Sweden\",\n    \"jsonSchema\": \"\",\n    \"validateSchema\": false\n}"}],"_postman_id":"3dae5c9d-bea8-4aa3-9c99-a80e154054a5"},{"name":"Create document type","event":[{"listen":"test","script":{"id":"1f6f3290-c1b1-469b-a3d0-2778ed28053f","exec":[""],"type":"text/javascript"}}],"id":"d344c870-2d41-4587-8048-ffc9458cd3e3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-Carma-Authentication-Token","type":"text","value":"{{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":" {\n        \"name\": \"{Document type name}\",\n        \"description\": \"{Document type description}\",\n        \"originalIdAttribute\": \"{docHeaderForMappingOrignalId}\",\n        \"externalIdAttribute\": \"{docHeaderForMappingExternalId}\",\n        \"jsonSchema\": \"\"\n    }","options":{"raw":{"language":"json"}}},"url":"{{url}}/{{customerId}}/datadocs/documenttype","urlObject":{"path":["{{customerId}}","datadocs","documenttype"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"d344c870-2d41-4587-8048-ffc9458cd3e3"},{"name":"Update document type","event":[{"listen":"test","script":{"id":"b825651b-00b4-4f42-92e2-cc4d48eae20c","exec":[""],"type":"text/javascript"}}],"id":"ef86d4be-d64a-4da6-b2a7-2ede33c871df","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"X-Carma-Authentication-Token","type":"text","value":"{{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"{Document type name}\",\n    \"originalIdAttribute\": \"{docHeaderForMappingOrignalId}\",\n    \"externalIdAttribute\": \"{docHeaderForMappingExternalId}\",\n    \"description\": \"{Document type description}\",\n    \"jsonSchema\": \"\"\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/{{customerId}}/datadocs/documenttype/{documentTypeId}","description":"<p>Before you make your update, always fetch the document type you want to update first, make your changes and include every field in this update request.</p>\n","urlObject":{"path":["{{customerId}}","datadocs","documenttype","{documentTypeId}"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"ef86d4be-d64a-4da6-b2a7-2ede33c871df"},{"name":"Delete document type","event":[{"listen":"test","script":{"id":"f2bde9c0-08e2-46e2-89af-98949c872ba0","exec":[""],"type":"text/javascript"}}],"id":"4d0a6ace-1c97-4d75-816a-07fa5f0b49bb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"X-Carma-Authentication-Token","type":"text","value":"{{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"url":"{{url}}/{{customerId}}/datadocs/documenttype/{documentTypeId}","urlObject":{"path":["{{customerId}}","datadocs","documenttype","{documentTypeId}"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"4d0a6ace-1c97-4d75-816a-07fa5f0b49bb"},{"name":"Delete all documents in a DocType","event":[{"listen":"test","script":{"id":"0c2b6a44-0380-492c-bc03-d2cab760d296","exec":[""],"type":"text/javascript"}}],"id":"2a284899-0df5-410b-a570-ec91261b5e40","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"X-Carma-Authentication-Token","type":"text","value":"{{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"url":"{{url}}/{{customerId}}/datadocs/documenttype/purge/{documentTypeId}","description":"<p>Delete all documents in a DocType.</p>\n","urlObject":{"path":["{{customerId}}","datadocs","documenttype","purge","{documentTypeId}"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"5da943c7-80c5-4e9d-aaac-febf17cec997","name":"200 OK","originalRequest":{"method":"PUT","header":[{"key":"X-Carma-Authentication-Token","type":"text","value":"{{token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"url":"{{url}}/{{customerId}}/datadocs/documenttype/purge/50"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Thu, 21 Dec 2023 14:17:52 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Content-Type-Options","value":"nosniff"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 3960364,\n    \"type\": \"UNKNOWN\",\n    \"customerId\": 509,\n    \"startTime\": 1703168272387,\n    \"endTime\": null,\n    \"affected\": 0,\n    \"processed\": 0,\n    \"total\": 0,\n    \"status\": \"PENDING\"\n}"}],"_postman_id":"2a284899-0df5-410b-a570-ec91261b5e40"}],"id":"c54d2675-4440-46d5-ab6c-3252ad2dd275","description":"<p>In your DataDocs central you can store one or more Document Types. A Document Type gathers DataDocs with the same content and defines the two mandatory fields (originalId and externalId) in your JSON. You will always map a DataDoc to a type.</p>\n<p>Multiple types can be used if you, let's say, want to separate different markets or brands due to different setups or data sources.</p>\n<p>When viewing a contact's DataDocs you first select the document type and all rows connected to that contact within the selected type will appear.You must create a type before you can start creating docs for your contacts.</p>\n<p>Document Types can be managed by Symplify admin users under <em><strong>Account Settings &gt; (Audience) Document Types.</strong></em></p>\n","_postman_id":"c54d2675-4440-46d5-ab6c-3252ad2dd275"}],"id":"b158d6c5-9bf3-4b33-99c6-c05a6af193e0","description":"<p>DataDocs is a feature for storing relational data regarding your contacts, this can for example be purchase history, upcoming events or other services.</p>\n<h3 id=\"terminology\">Terminology</h3>\n<ul>\n<li><p><strong>Document type</strong><br />  In your DataDocs central you can store one or more Document Types. A Document Type gathers DataDocs with the same content and defines the two mandatory fields (originalId and externalId) in your JSON. You will always map a DataDoc to a type.Multiple types can be used if you, let's say, want to separate different markets or brands due to different setups or data sources.<br />  When viewing a contact's DataDocs you first select the document type and all rows connected to that contact within the selected type will appear.You must create a type before you can start creating docs for your contacts.</p>\n</li>\n<li><p><strong>DataDoc</strong><br />  A row of data connected to a contact by original id. Must belong to a Document type. The data for a contact can be updated and/or deleted.</p>\n</li>\n<li><p><strong>OriginalId</strong><br />  The <a href=\"https://help.symplify.com/hc/en-us/articles/360011033580\">originalId</a> is your unique identifier for a contact in Symplify.<br />  What field in your JSON that correspond to originalId is defined by the Document Type.</p>\n</li>\n<li><p><strong>ExternalId</strong><br />  The external Id is your own identifier for a specific DataDoc row, for example an order or booking number. It must be a unique string for that specific event. The externalId can be used for updating or deleting a doc row.<br />  What field in your JSON that correspond to externalId is defined by the Document Type.</p>\n</li>\n</ul>\n<h3 id=\"preparations\">Preparations</h3>\n<p>DataDocs is a blank sheet when you first start so begin with defining your content.</p>\n<p>There are only <strong>two mandatory fields</strong> for each row; one field containing the original Id (<code>string</code>) and one field containing the external id (<code>string</code>), the rest of the headers are added according to what you include in your file/call.<br />The mandatory fields are mapped when creating the Document Type.</p>\n<p><strong>Important! Document headers are case sensitive and must be alphanumeric (A–Z, a–z and 0–9) and not contain any whitespaces.</strong> Underscore (_) and dash (-) are allowed.</p>\n<p>Document headers are used for visualization of data, when using <a href=\"https://help.symplify.com/hc/en-us/articles/360011094480\">placeholders</a> and when creating <a href=\"https://help.symplify.com/hc/en-us/articles/360013654180\">segments</a>.</p>\n<p>You can add more document headers over time but please note that already existing ones can not be edited (while the values within can).</p>\n<p>The field values can be text, <a href=\"https://help.symplify.com/hc/en-us/articles/360011075900\">dates</a> or numbers (decimals separated with a period (.)) that can be used for segmentation and placeholders in sendouts.<br />A value field can also contain JSON, however that can only be used for placeholder data (and not used for segmentation).</p>\n<p>You can include as many headers you like but have in mind that everything should be there for a reason, unnecessary data means unnecessary work for the marketers.</p>\n<h3 id=\"using-datadocs-in-api-triggered-journeys\">Using DataDocs in API triggered journeys</h3>\n<p>Documents that should be refered to in Journeys (in placeholders or segment splits), must be included for each contact when triggering the journey.</p>\n<p>Use the documentTypeId and the externalId to point out the document(s) that should be used.</p>\n<p>Learn more:</p>\n<ul>\n<li><a href=\"https://apidocs.symplify.com/#70163ac9-64d4-4d09-ab76-2bf4141a9589\">Single commence</a></li>\n<li><a href=\"https://apidocs.symplify.com/#6dbe5ceb-1cbb-4db7-8aa6-404ff4b271d3\">Multiple commence</a></li>\n</ul>\n","_postman_id":"b158d6c5-9bf3-4b33-99c6-c05a6af193e0"},{"name":"Contacts","item":[{"name":"Create or update a contact","item":[{"name":"Create a new contact","id":"091f632e-0303-4259-882d-a3272ad43c05","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Carma-Authentication-Token","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"listId\": {listId},\n    \"originalId\": \"{originalId}\",\n    \"firstName\": \"John\",\n    \"lastName\": \"Doe\",\n    \"emailAddress\": \"john@example.com\",\n    \"mobileNumber\": \"123465789\",\n    \"properties\": {\n        \"newsletter\": \"Yes\",\n        \"level\": 100\n  }\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/{{customerId}}/lists/contacts","description":"<p>This request is used to add a new contact to a specific customer's list. The request should be made to the endpoint \"{{url}}/{{customerId}}/lists/contacts\" with the following payload in the raw request body:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"listId\": {listId},\n    \"originalId\": \"{originalId}\",\n    \"firstName\": \"John\",\n    \"lastName\": \"Doe\",\n    \"emailAddress\": \"john@example.com\",\n    \"mobileNumber\": \"123465789\",\n    \"properties\": {\n        \"newsletter\": \"Yes\",\n        \"level\": 100\n    }\n}\n\n</code></pre>\n<p>The response will include the details of the newly added contact, such as their unique \"id\", \"listId\", \"originalId\", \"firstName\", \"lastName\", \"emailAddress\", \"mobileNumber\", and various other properties. The \"properties\" field in the response will contain both indexed and named properties associated with the contact.</p>\n<p>Example response:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"id\": 427427320,\n    \"listId\": 24003,\n    \"country\": null,\n    \"originalId\": \"100100\",\n    \"originalIDHashed\": 1448636000,\n    \"firstName\": \"John\",\n    \"lastName\": \"Doe\",\n    \"emailAddress\": \"john@example.com\",\n    \"mobileNumber\": \"123465789\",\n    ...\n    \"properties\": {\n        \"5862\": \"100\",\n        \"7701\": \"Yes\"\n    },\n    \"namedProperties\": {\n        \"newsletter\": \"Yes\",\n        \"firstName\": \"John\",\n        \"lastName\": \"Doe\",\n        \"emailAddress\": \"john@example.com\",\n        \"level\": \"100\",\n        \"mobileNumber\": \"123465789\"\n    },\n    ...\n}\n\n</code></pre>\n","urlObject":{"path":["{{customerId}}","lists","contacts"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"462b7162-f634-4435-9d68-b3e62a2373b3","name":"200 - Contact created","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Carma-Authentication-Token","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"listId\": 24003,\n    \"originalId\": \"100100\",\n    \"firstName\": \"John\",\n    \"lastName\": \"Doe\",\n    \"emailAddress\": \"john@example.com\",\n    \"mobileNumber\": \"123465789\",\n    \"properties\": {\n        \"newsletter\": \"Yes\",\n        \"level\": 100\n  }\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/{{customerId}}/lists/contacts"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Mon, 20 Nov 2023 09:12:09 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Content-Type-Options","value":"nosniff"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 427427320,\n    \"listId\": 24003,\n    \"country\": null,\n    \"originalId\": \"100100\",\n    \"originalIDHashed\": 1448636000,\n    \"firstName\": \"John\",\n    \"lastName\": \"Doe\",\n    \"middleName\": null,\n    \"emailAddress\": \"john@example.com\",\n    \"title\": null,\n    \"dateOfBirth\": null,\n    \"city\": null,\n    \"zipcode\": null,\n    \"sex\": null,\n    \"mobileNumber\": \"123465789\",\n    \"unsubscribed\": false,\n    \"bounced\": false,\n    \"mobileUnsubscribed\": false,\n    \"audioUnsubscribed\": false,\n    \"preferredContentVersionId\": 0,\n    \"optOutDate\": null,\n    \"dateOfInvalidation\": null,\n    \"optOutMobileDate\": null,\n    \"optOutAudioDate\": null,\n    \"active\": true,\n    \"dateCreated\": 1700471529002,\n    \"dateModified\": 1700471529002,\n    \"blockedUntil\": null,\n    \"properties\": {\n        \"5862\": \"100\",\n        \"7701\": \"Yes\"\n    },\n    \"namedProperties\": {\n        \"newsletter\": \"Yes\",\n        \"firstName\": \"John\",\n        \"lastName\": \"Doe\",\n        \"emailAddress\": \"john@example.com\",\n        \"level\": \"100\",\n        \"mobileNumber\": \"123465789\"\n    },\n    \"deviceInfo\": [],\n    \"mobileNumberValid\": true\n}"},{"id":"64170e0d-6dd1-4f08-b93e-a7e768d79979","name":"409 - Contact already exists","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Carma-Authentication-Token","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"listId\": 24003,\n    \"originalId\": \"100100\",\n    \"firstName\": \"John\",\n    \"lastName\": \"Doe\",\n    \"emailAddress\": \"john@example.com\",\n    \"mobileNumber\": \"123465789\",\n    \"properties\": {\n        \"level\": 200\n  }\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/{{customerId}}/lists/contacts"},"status":"Conflict","code":409,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Mon, 20 Nov 2023 09:16:00 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Content-Type-Options","value":"nosniff"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Conflict\"\n}"},{"id":"c5517301-8b50-4b59-80d1-cade655cd77f","name":"404 - Not found (e.g. wrong list id)","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Carma-Authentication-Token","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"listId\": 123456,\n    \"originalId\": \"100100\",\n    \"firstName\": \"John\",\n    \"lastName\": \"Doe\",\n    \"emailAddress\": \"john@example.com\",\n    \"mobileNumber\": \"123465789\",\n    \"properties\": {\n        \"level\": 200\n  }\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/{{customerId}}/lists/contacts"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Mon, 20 Nov 2023 09:19:27 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Content-Type-Options","value":"nosniff"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Incorrect result size: expected 1, actual 0\"\n}"}],"_postman_id":"091f632e-0303-4259-882d-a3272ad43c05"},{"name":"Update a contact","id":"7ca6d14a-793a-4f70-b9df-002439422492","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Carma-Authentication-Token","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"originalId\": \"originalId\",\n    \"listId\": 123456,\n    \"properties\": {\n        \"emailAddress\": \"jane@example.com\",\n        \"attributeName1\": \"value\",\n        \"attributeName2\": \"value\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/{{customerId}}/lists/{{listId}}/contacts/{{originalId}}","urlObject":{"path":["{{customerId}}","lists","{{listId}}","contacts","{{originalId}}"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"eb88340d-0ee2-4a07-b5a7-5e129b6b3320","name":"200 - Contact updated","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Carma-Authentication-Token","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"originalId\": \"originalId\",\n    \"listId\": 123456,\n    \"properties\": {\n        \"emailAddress\": \"jane@example.com\",\n        \"attributeName1\": \"value\",\n        \"attributeName2\": \"value\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/{{customerId}}/lists/{{listId}}/contacts/{{originalId}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Fri, 17 Feb 2023 09:25:53 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"0"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Content-Type-Options","value":"nosniff"}],"cookie":[],"responseTime":null,"body":null},{"id":"3444fb92-9f84-424e-a730-e4311a86699e","name":"404 - Contact not found","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Carma-Authentication-Token","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"originalId\": \"originalId\",\n    \"listId\": 123456,\n    \"properties\": {\n        \"emailAddress\": \"jane@example.com\",\n        \"attributeName1\": \"value\",\n        \"attributeName2\": \"value\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/{{customerId}}/lists/{{listId}}/contacts/{{originalId}}"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Fri, 17 Feb 2023 09:27:52 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Content-Type-Options","value":"nosniff"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Incorrect result size: expected 1, actual 0\"\n}"}],"_postman_id":"7ca6d14a-793a-4f70-b9df-002439422492"},{"name":"Upsert a contact","id":"7fe2b04f-3509-41e4-bd61-eda25c46fcb5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Carma-Authentication-Token","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"originalId\": \"originalId\",\n    \"listId\": 123456,\n    \"properties\": {\n        \"emailAddress\": \"jane@example.com\",\n        \"attributeName1\": \"value\",\n        \"attributeName2\": \"value\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/{{customerId}}/lists/{{listId}}/contacts/{{originalId}}?force=true","urlObject":{"path":["{{customerId}}","lists","{{listId}}","contacts","{{originalId}}"],"host":["{{url}}"],"query":[{"key":"force","value":"true"}],"variable":[]}},"response":[{"id":"2434668e-48a9-422e-8358-24b6be8b17cf","name":"200 - Contact updated","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Carma-Authentication-Token","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"originalId\": \"originalId\",\n    \"listId\": 123456,\n    \"properties\": {\n        \"emailAddress\": \"jane@example.com\",\n        \"attributeName1\": \"value\",\n        \"attributeName2\": \"value\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{url}}/{{customerId}}/lists/{{listId}}/contacts/{{originalId}}?force=true","host":["{{url}}"],"path":["{{customerId}}","lists","{{listId}}","contacts","{{originalId}}"],"query":[{"key":"force","value":"true"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Fri, 17 Feb 2023 09:25:53 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"0"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Content-Type-Options","value":"nosniff"}],"cookie":[],"responseTime":null,"body":null},{"id":"3912fabf-7313-4270-9f2d-4bcfba6ae41c","name":"404 - Contact not found","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Carma-Authentication-Token","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"originalId\": \"originalId\",\n    \"listId\": 123456,\n    \"properties\": {\n        \"emailAddress\": \"jane@example.com\",\n        \"attributeName1\": \"value\",\n        \"attributeName2\": \"value\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{url}}/{{customerId}}/lists/{{listId}}/contacts/{{originalId}}?force=true","host":["{{url}}"],"path":["{{customerId}}","lists","{{listId}}","contacts","{{originalId}}"],"query":[{"key":"force","value":"true"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Fri, 17 Feb 2023 09:27:52 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Content-Type-Options","value":"nosniff"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Incorrect result size: expected 1, actual 0\"\n}"}],"_postman_id":"7fe2b04f-3509-41e4-bd61-eda25c46fcb5"}],"id":"aa12f770-54ef-46fd-a268-7cf9481a6095","_postman_id":"aa12f770-54ef-46fd-a268-7cf9481a6095","description":""},{"name":"Subscription status","item":[{"name":"Subscription status by originalId","id":"b4c01659-acd3-406b-8aae-e70eaa09708a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"X-Carma-Authentication-Token","type":"text","value":"{{token}}"},{"key":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"{{url}}/{{customerId}}/lists/{{listId}}/contacts/{originalId}/subscriptionstatus","description":"<p>Get status by original ID.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th></th>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n<th><strong>Available values</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>status</td>\n<td>string</td>\n<td>status for Email</td>\n<td>SUBSCRIBED, UNSUBSCRIBED</td>\n</tr>\n<tr>\n<td>mobileStatus</td>\n<td>string</td>\n<td>status for SMS</td>\n<td>SUBSCRIBED, UNSUBSCRIBED</td>\n</tr>\n<tr>\n<td>audioStatus</td>\n<td>string</td>\n<td>status for Voice</td>\n<td>SUBSCRIBED, UNSUBSCRIBED</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["{{customerId}}","lists","{{listId}}","contacts","{originalId}","subscriptionstatus"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"b4c01659-acd3-406b-8aae-e70eaa09708a"},{"name":"Subscription status by originalId","id":"14c24cf4-83a8-4fdd-a5d0-93e73b800e91","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"PUT","header":[{"key":"X-Carma-Authentication-Token","type":"text","value":"{{token}}"},{"key":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n  \"status\": \"SUBSCRIBED\",\r\n  \"mobileStatus\": \"SUBSCRIBED\",\r\n  \"audioStatus\": \"UNSUBSCRIBED\"\r\n}"},"url":"{{url}}/{{customerId}}/lists/{{listId}}/contacts/{originalId}/subscriptionstatus","description":"<p>Update a status by original ID.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th></th>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n<th><strong>Available values</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>status</td>\n<td>string</td>\n<td>status for Email</td>\n<td>SUBSCRIBED, UNSUBSCRIBED</td>\n</tr>\n<tr>\n<td>mobileStatus</td>\n<td>string</td>\n<td>status for SMS</td>\n<td>SUBSCRIBED, UNSUBSCRIBED</td>\n</tr>\n<tr>\n<td>audioStatus</td>\n<td>string</td>\n<td>status for Voice</td>\n<td>SUBSCRIBED, UNSUBSCRIBED</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["{{customerId}}","lists","{{listId}}","contacts","{originalId}","subscriptionstatus"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"1f294a01-1809-46dc-87b2-5463d231ce90","name":"200 OK","originalRequest":{"method":"PUT","header":[{"key":"X-Carma-Authentication-Token","type":"text","value":"{{token}}"},{"key":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n  \"status\": \"SUBSCRIBED\",\r\n  \"mobileStatus\": \"SUBSCRIBED\",\r\n  \"audioStatus\": \"UNSUBSCRIBED\"\r\n}"},"url":"{{url}}/{{customerId}}/lists/240147/contacts/74f35dfb-5b4eccbf08/subscriptionstatus"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Fri, 10 Feb 2023 13:27:35 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Content-Type-Options","value":"nosniff"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"SUBSCRIBED\",\n    \"mobileStatus\": \"SUBSCRIBED\",\n    \"audioStatus\": \"UNSUBSCRIBED\"\n}"},{"id":"5b773be9-4da3-4484-af6a-f019d053d8bf","name":"404 Not Found","originalRequest":{"method":"PUT","header":[{"key":"X-Carma-Authentication-Token","type":"text","value":"{{token}}"},{"key":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n  \"status\": \"SUBSCRIBED\",\r\n  \"mobileStatus\": \"SUBSCRIBED\",\r\n  \"audioStatus\": \"UNSUBSCRIBED\"\r\n}"},"url":"{{url}}/{{customerId}}/lists/123456/contacts/ex12345/subscriptionstatus"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Fri, 10 Feb 2023 13:28:55 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Content-Type-Options","value":"nosniff"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"enduser not found: listId:244047 orgid:ex12345 orgid hashed:-123456789\"\n}"}],"_postman_id":"14c24cf4-83a8-4fdd-a5d0-93e73b800e91"}],"id":"f319f988-997a-4cea-85b4-7fb8777fa020","description":"<p>To view and/or update the default subscription status of a contact.</p>\n","_postman_id":"f319f988-997a-4cea-85b4-7fb8777fa020"},{"name":"Temp block","item":[{"name":"Temporary block contact","id":"f7897dde-42fe-422e-8946-7a9c01bd4701","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Carma-Authentication-Token","type":"text","value":"{{token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"{{url}}/{{customerId}}/lists/contacts/tempblock?listid={{listId}}&searchvalue={originalId}&findby=ORIGINALID","urlObject":{"path":["{{customerId}}","lists","contacts","tempblock"],"host":["{{url}}"],"query":[{"key":"listid","value":"{{listId}}"},{"key":"searchvalue","value":"{originalId}"},{"key":"findby","value":"ORIGINALID"}],"variable":[]}},"response":[{"id":"b8ec274e-ccbf-4c75-a84c-1df3622e506f","name":"Not blocked contact","originalRequest":{"method":"GET","header":[{"key":"X-Carma-Authentication-Token","type":"text","value":"{{token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":{"raw":"{{url}}/{{customerId}}/lists/contacts/tempblock?listid=240178&searchvalue=10&findby=ORIGINALID","host":["{{url}}"],"path":["{{customerId}}","lists","contacts","tempblock"],"query":[{"key":"listid","value":"240178"},{"key":"searchvalue","value":"10"},{"key":"findby","value":"ORIGINALID"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Wed, 15 Feb 2023 13:24:14 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Content-Type-Options","value":"nosniff"}],"cookie":[],"responseTime":null,"body":"[]"},{"id":"5af10190-78bd-43ef-bf64-aae57a3a22c6","name":"Blocked contact","originalRequest":{"method":"GET","header":[{"key":"X-Carma-Authentication-Token","value":"{{token}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":{"raw":"{{url}}/{{customerId}}/lists/contacts/tempblock?listid=240178&searchvalue=10&findby=ORIGINALID","host":["{{url}}"],"path":["{{customerId}}","lists","contacts","tempblock"],"query":[{"key":"listid","value":"240178"},{"key":"searchvalue","value":"10"},{"key":"findby","value":"ORIGINALID"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Wed, 15 Feb 2023 13:25:45 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Content-Type-Options","value":"nosniff"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"listId\": 240178,\n        \"enduserId\": 4273724746,\n        \"blockUntil\": 1702162800000,\n        \"emaiAddress\": \"john.doe@example.com\",\n        \"originalId\": \"10\",\n        \"userModified\": \"api_user\",\n        \"userCreated\": \"api_user\",\n        \"dateCreated\": 1676467519263,\n        \"dateModified\": 1676467519263\n    }\n]"}],"_postman_id":"f7897dde-42fe-422e-8946-7a9c01bd4701"},{"name":"Set temporary block for contact","id":"9e0c6a72-4cab-45fc-8622-81abcc35f478","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"X-Carma-Authentication-Token","type":"text","value":"{{token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n  \"findBy\": \"ORIGINALID\",\r\n  \"listId\": {{listId}},\r\n  \"searchValue\": \"{originalId}\",\r\n  \"blockUntil\": \"2019-12-10\"\r\n}"},"url":"{{url}}/{{customerId}}/lists/contacts/tempblock","urlObject":{"path":["{{customerId}}","lists","contacts","tempblock"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"f0f0748d-4dda-4f31-a4f4-ea03eb95aaf5","name":"Set temporary block for contact","originalRequest":{"method":"PUT","header":[{"key":"X-Carma-Authentication-Token","type":"text","value":"{{token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n  \"findBy\": \"ORIGINALID\",\r\n  \"listId\": 240178,\r\n  \"searchValue\": \"10\",\r\n  \"blockUntil\": \"2023-12-10\"\r\n}"},"url":"{{url}}/{{customerId}}/lists/contacts/tempblock"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Wed, 15 Feb 2023 13:25:19 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Content-Type-Options","value":"nosniff"}],"cookie":[],"responseTime":null,"body":"{\n    \"affected\": 1\n}"}],"_postman_id":"9e0c6a72-4cab-45fc-8622-81abcc35f478"},{"name":"Remove temp block","id":"b1a61175-616e-4ad4-a6b4-ee5135d203dc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"X-Carma-Authentication-Token","type":"text","value":"{{token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n  \"findBy\": \"ORIGINALID\",\r\n  \"listId\": {{listId}},\r\n  \"searchValue\": \"{originalId}\",\r\n  \"blockUntil\": \"\"\r\n}"},"url":"{{url}}/{{customerId}}/lists/contacts/tempblock","urlObject":{"path":["{{customerId}}","lists","contacts","tempblock"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"9f242613-ec6b-458d-bffc-af31415986e4","name":"Remove temp block","originalRequest":{"method":"PUT","header":[{"key":"X-Carma-Authentication-Token","type":"text","value":"{{token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n  \"findBy\": \"ORIGINALID\",\r\n  \"listId\": 240178,\r\n  \"searchValue\": \"10\",\r\n  \"blockUntil\": \"\"\r\n}"},"url":"{{url}}/{{customerId}}/lists/contacts/tempblock"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Wed, 15 Feb 2023 13:27:21 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Content-Type-Options","value":"nosniff"}],"cookie":[],"responseTime":null,"body":"{\n    \"affected\": 1\n}"}],"_postman_id":"b1a61175-616e-4ad4-a6b4-ee5135d203dc"}],"id":"4da42be6-b65e-4bd2-96e1-9a36b45e41dc","description":"<p>If you want to temporary block a contact from receiving messages you can do so by using the blocking feature managed by with the API.</p>\n<p>Note that this is a feature that needs activation before use. Reach out to your Success Manager to get it activated on your account.</p>\n<p>When you block a contact you'll set an end date and until that date, no messages will be sent. You can <a href=\"https://help.symplify.com/hc/en-us/articles/360011378080-Temporary-contact-blocking#h_d2eee5ab-b2c1-4056-ab59-35233456e804\">release a block</a> if necessary.</p>\n<p>You can also use the <a href=\"https://help.symplify.com/hc/en-us/articles/4405698180242\">Event Hub for blocking contacts</a>.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th></th>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n<th><strong>Available values</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>findBy*</td>\n<td>string</td>\n<td>How to identify the contact</td>\n<td>ORIGINALID,EMAILADRESS</td>\n</tr>\n<tr>\n<td>listid*</td>\n<td>integer($int32)  <br />(query)</td>\n<td>If supplied, only the the contact on the supplied list will get blocked. Otherwise, block across all lists.</td>\n<td>List Id for specific list. Leave blank for across lists.  <br />  <br /></td>\n</tr>\n<tr>\n<td>searchValue*</td>\n<td>string</td>\n<td>searchValue of contact to be blocked</td>\n<td>Depends on findBy value (original id or email address)</td>\n</tr>\n<tr>\n<td>blockUntil</td>\n<td>Iso8601Date</td>\n<td>Time unit for the block</td>\n<td></td>\n</tr>\n<tr>\n<td>blockForUnit</td>\n<td>integer($int32)</td>\n<td>Time unit for the block</td>\n<td></td>\n</tr>\n<tr>\n<td>blockForTimeType</td>\n<td>string</td>\n<td>Time unit type to block for</td>\n<td>MINUTE, HOUR, DAY, MONTH, YEAR</td>\n</tr>\n</tbody>\n</table>\n</div>","_postman_id":"4da42be6-b65e-4bd2-96e1-9a36b45e41dc"},{"name":"Get messages for a contact","id":"09a1a307-07db-4b62-8b95-aca24ea53156","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Carma-Authentication-Token","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{url}}/{{customerId}}/lists/{{listId}}/contacts/{{originalId}}/messages","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Name</strong></th>\n<th><strong>Parameter type</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n<th><strong>Available values</strong></th>\n<th><strong>Default value</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>customerid *</td>\n<td>path</td>\n<td>integer($int32)</td>\n<td>Customer Id.</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>id *</td>\n<td>path</td>\n<td>integer($int32)</td>\n<td>Contact Id.</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>nostat</td>\n<td>query</td>\n<td>boolean</td>\n<td>True means returned links will not register statistics.</td>\n<td>true, false</td>\n<td>false</td>\n</tr>\n<tr>\n<td>subject</td>\n<td>query</td>\n<td>boolean</td>\n<td>True means return subject line in the response.</td>\n<td>true, false</td>\n<td>false</td>\n</tr>\n<tr>\n<td>noOfMessages</td>\n<td>query</td>\n<td>integer($int32)</td>\n<td>Number of messages</td>\n<td></td>\n<td>100</td>\n</tr>\n<tr>\n<td>start</td>\n<td>query</td>\n<td>string</td>\n<td>Start time to use, ISO8601 format</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>channel</td>\n<td>query</td>\n<td>string</td>\n<td>Get messages for a specific channel</td>\n<td>EMAIL, SMS, PUSH, WEB_PUSH, PRINT, UNKNOWN, PAGE, AUDIO, MIXED</td>\n<td></td>\n</tr>\n<tr>\n<td>messageProperties</td>\n<td>query</td>\n<td>boolean</td>\n<td>True means return properties sent when triggering the message.</td>\n<td></td>\n<td>false</td>\n</tr>\n</tbody>\n</table>\n</div><p>Note that you add <code>®ister=0</code> to your <code>openInBrowserUrl</code> value in order to avoid registering a message open. Example:<br /><code>/mail/OBS?muid=60e5007001977XjiaDg11969616904®ister=0</code></p>\n","urlObject":{"path":["{{customerId}}","lists","{{listId}}","contacts","{{originalId}}","messages"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"f5b679af-28a1-490e-b9d0-c2eaf9a2dd88","name":"Get messages for a contact","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Carma-Authentication-Token","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":{"raw":"{{url}}/{{customerId}}/lists/24003/contacts/40401/messages?subject=True&noOfMessages=5","host":["{{url}}"],"path":["{{customerId}}","lists","24003","contacts","40401","messages"],"query":[{"key":"subject","value":"True"},{"key":"noOfMessages","value":"5"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Mon, 06 Mar 2023 10:21:33 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Content-Type-Options","value":"nosniff"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 11969616904,\n        \"contactId\": 4225838415,\n        \"deliveryId\": 1011681,\n        \"read\": false,\n        \"readTimestamp\": null,\n        \"sentTimestamp\": null,\n        \"openInBrowserUrl\": \"/mail/OBS?muid=60e5007001977XjiaDg11969616904\",\n        \"textContentOpenInBrowserUrl\": \"/mail/OBS?muid=60e5007001977Xjia1Dg1969616904&textcontent=true\",\n        \"actions\": {\n            \"opened\": false,\n            \"recieved\": false,\n            \"clicked\": false,\n            \"converted\": false,\n            \"softBounce\": false,\n            \"hardBounce\": false,\n            \"unsubscribed\": false,\n            \"complaint\": false\n        },\n        \"type\": \"EMAIL\",\n        \"module\": \"CAMPAIGN\",\n        \"name\": \"Another campaign\",\n        \"subject\": \"Another campaignish subject\",\n        \"archived\": false\n    },\n    {\n        \"id\": 11969616889,\n        \"contactId\": 4225838415,\n        \"deliveryId\": 1011680,\n        \"read\": false,\n        \"readTimestamp\": null,\n        \"sentTimestamp\": 1676552060077,\n        \"openInBrowserUrl\": \"/mail/OBS?muid=60e50070019GdD1t5aDg1969616889\",\n        \"textContentOpenInBrowserUrl\": \"/mail/OBS?muid=60e50070019GdDt5aDg19696162889&textcontent=true\",\n        \"actions\": {\n            \"opened\": false,\n            \"recieved\": true,\n            \"clicked\": false,\n            \"converted\": false,\n            \"softBounce\": false,\n            \"hardBounce\": false,\n            \"unsubscribed\": false,\n            \"complaint\": false\n        },\n        \"type\": \"EMAIL\",\n        \"module\": \"CAMPAIGN\",\n        \"name\": \"A campaign\",\n        \"subject\": \"A campaignish subject\",\n        \"archived\": false\n    },\n    {\n        \"id\": 11969544112,\n        \"contactId\": 4225838415,\n        \"deliveryId\": 1011609,\n        \"read\": false,\n        \"readTimestamp\": null,\n        \"sentTimestamp\": 1675502976760,\n        \"openInBrowserUrl\": \"/mail/OBS?muid=60e50065019PX1HmcaHg1969544112\",\n        \"textContentOpenInBrowserUrl\": \"/mail/OBS?muid=60e50065019PX2HmcaHg1969544112&textcontent=true\",\n        \"actions\": {\n            \"opened\": false,\n            \"recieved\": true,\n            \"clicked\": false,\n            \"converted\": false,\n            \"softBounce\": false,\n            \"hardBounce\": false,\n            \"unsubscribed\": false,\n            \"complaint\": false\n        },\n        \"type\": \"WEB_PUSH\",\n        \"module\": \"CAMPAIGN\",\n        \"name\": \"campaign email 3\",\n        \"subject\": \"Oh the stories 3\",\n        \"archived\": false\n    },\n    {\n        \"id\": 11969537883,\n        \"contactId\": 4225838415,\n        \"deliveryId\": 1011617,\n        \"read\": false,\n        \"readTimestamp\": null,\n        \"sentTimestamp\": 1675409994630,\n        \"openInBrowserUrl\": \"/mail/OBS?muid=60e5006y019b15QxjaDg1969537883\",\n        \"textContentOpenInBrowserUrl\": \"/mail/OBS?muid=60e52006y019b5QxjaDg1969537883&textcontent=true\",\n        \"actions\": {\n            \"opened\": false,\n            \"recieved\": true,\n            \"clicked\": false,\n            \"converted\": false,\n            \"softBounce\": false,\n            \"hardBounce\": false,\n            \"unsubscribed\": false,\n            \"complaint\": false\n        },\n        \"type\": \"EMAIL\",\n        \"module\": \"CAMPAIGN\",\n        \"name\": \"campaign email 2\",\n        \"subject\": \"Oh the stories 2\",\n        \"archived\": false\n    },\n    {\n        \"id\": 11969406269,\n        \"contactId\": 4225838415,\n        \"deliveryId\": 1011575,\n        \"read\": true,\n        \"readTimestamp\": 1673620801150,\n        \"sentTimestamp\": 1673615656673,\n        \"openInBrowserUrl\": \"/mail/OBS?muid=60e5006q10192HiOVaDg1969406269\",\n        \"textContentOpenInBrowserUrl\": \"/mail/OBS?muid=60e5006q0192HiOVaDg19694062269&textcontent=true\",\n        \"actions\": {\n            \"opened\": true,\n            \"recieved\": true,\n            \"clicked\": true,\n            \"converted\": false,\n            \"softBounce\": false,\n            \"hardBounce\": false,\n            \"unsubscribed\": false,\n            \"complaint\": false\n        },\n        \"type\": \"EMAIL\",\n        \"module\": \"CAMPAIGN\",\n        \"name\": \"campaign email 3\",\n        \"subject\": \"Oh the stories 3\",\n        \"archived\": false\n    }\n]"}],"_postman_id":"09a1a307-07db-4b62-8b95-aca24ea53156"},{"name":"Get contact by originalId","id":"2eb58227-b51e-449e-8e0f-d7ca3f7a46d7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"X-Carma-Authentication-Token","value":"{{token}}","type":"text"}],"url":"{{url}}/{{customerId}}/lists/{{listId}}/contacts/{{originalId}}","urlObject":{"path":["{{customerId}}","lists","{{listId}}","contacts","{{originalId}}"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"2eb58227-b51e-449e-8e0f-d7ca3f7a46d7"},{"name":"Inactivate a contact","id":"d4d53aa9-e1df-414f-83b4-1faf41f9b70e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Carma-Authentication-Token","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{url}}/{{customerId}}/lists/{{listId}}/contacts/{{originalId}}","urlObject":{"path":["{{customerId}}","lists","{{listId}}","contacts","{{originalId}}"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"63536bdd-2691-4dcb-aa77-df505a0cf213","name":"200 - Contact created","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Carma-Authentication-Token","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"contactId\": \"originalId\",\n  \"listId\": 123456,\n  \"properties\": {\n    \"emailaddress\": \"john@example.com\"\n  }\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/{{customerId}}/contacts"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Fri, 17 Feb 2023 09:16:02 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"0"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Content-Type-Options","value":"nosniff"}],"cookie":[],"responseTime":null,"body":null},{"id":"e562a8b3-86bb-4a1b-a64c-857effa654c8","name":"409 - Contact already exists","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Carma-Authentication-Token","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"contactId\": \"originalId\",\n  \"listId\": 123456,\n  \"properties\": {\n    \"emailaddress\": \"john@example.com\"\n  }\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/{{customerId}}/contacts"},"status":"Conflict","code":409,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Fri, 17 Feb 2023 09:18:50 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Content-Type-Options","value":"nosniff"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Contact with this id already exists\"\n}"},{"id":"83e10792-8e09-45c9-a0d8-d6768eb01416","name":"404 - Not found (e.g. wrong list id)","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Carma-Authentication-Token","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"contactId\": \"originalId\",\n  \"listId\": 123456,\n  \"properties\": {\n    \"emailaddress\": \"john@example.com\"\n  }\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/{{customerId}}/contacts"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Fri, 17 Feb 2023 09:20:09 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Content-Type-Options","value":"nosniff"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Incorrect result size: expected 1, actual 0\"\n}"}],"_postman_id":"d4d53aa9-e1df-414f-83b4-1faf41f9b70e"}],"id":"175e7784-3005-43c8-8923-02b73a609bb7","description":"<p>Your contacts are the heart of your business. Making sure they are updated with relevant information for your communication is of highest importance.</p>\n","_postman_id":"175e7784-3005-43c8-8923-02b73a609bb7"},{"name":"GDPR","item":[{"name":"All scheduled anonymizations","id":"ec549ab4-4f81-4408-847e-5a2f757317d1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Carma-Authentication-Token","type":"text","value":"{{token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"{{url}}/{{customerId}}/batches/exports/anonymization/schedule","urlObject":{"path":["{{customerId}}","batches","exports","anonymization","schedule"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"ec549ab4-4f81-4408-847e-5a2f757317d1"},{"name":"Scheduled anonymization by id","id":"ef0da5f9-c679-4bae-9388-ea76387fdf24","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Carma-Authentication-Token","type":"text","value":"{{token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"{{url}}/{{customerId}}/batches/exports/anonymization/schedule/{anonymizationId}","urlObject":{"path":["{{customerId}}","batches","exports","anonymization","schedule","{anonymizationId}"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"ef0da5f9-c679-4bae-9388-ea76387fdf24"},{"name":"Create scheduled anonymization","event":[{"listen":"test","script":{"id":"d034fa16-1a68-45cd-bb00-ac860e28c995","exec":["var jsonData = JSON.parse(responseBody);","pm.environment.set(\"anonymizationId\", jsonData.id);"],"type":"text/javascript"}}],"id":"76e7680e-ecd0-4768-86ab-9d0da03699e0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-Carma-Authentication-Token","type":"text","value":"{{token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n    \"schedule\": \"0 0 12 1 * ?\",\r\n    \"enabled\": true,\r\n    \"config\": {\r\n        \"exportStrategy\": \"ALL_CONTACTS_IN_LIST\",\r\n        \"entityIds\": [\r\n        \t23686\r\n        ],\r\n        \"columns\": [\r\n            \"contact.emailaddress\",\r\n            \"contact.originalid\",\r\n            \"contact.id\",\r\n            \"contactdb.id\"\r\n        ],\r\n        \"headers\": [\r\n            \"contact.emailaddress\",\r\n            \"contact.originalid\",\r\n            \"contact.id\",\r\n            \"contactdb.id\"\r\n        ],\r\n        \"useCompression\": false,\r\n        \"exportFormat\": \"CSV\",\r\n        \"period\": \"ALL\",\r\n        \"uploadToFtp\": false,\r\n        \"ruleJson\": \"{\\\"type\\\":\\\"LOGICAL\\\",\\\"operator\\\":\\\"AND\\\",\\\"id\\\":\\\"u_48\\\",\\\"elements\\\":[{\\\"name\\\":7429,\\\"operator\\\":\\\"EQUALS\\\",\\\"values\\\":[\\\"rm\\\"],\\\"valueType\\\":\\\"0\\\",\\\"type\\\":\\\"PROPERTY\\\",\\\"property\\\":7429,\\\"id\\\":\\\"u_161\\\",\\\"valueFormat\\\":\\\"DEFAULT\\\"}]}\",\r\n        \"sendEmailOnCompletion\": false,\r\n        \"userToNotify\": \"jesper@symplify.com\",\r\n        \"batchDescription\": \"GDPR\",\r\n        \"uploadToGoogleAudience\": false,\r\n        \"uploadToFacebookAudience\": false,\r\n        \"actions\": [\r\n            \"ANONYMIZE\"\r\n        ]\r\n    }\r\n}"},"url":"{{url}}/{{customerId}}/batches/exports/anonymization/schedule","description":"<blockquote>\n<ul>\n<li>If specific list is wanted use</li>\n<li>\"entityIds\": [\"int\"]</li>\n</ul>\n</blockquote>\n","urlObject":{"path":["{{customerId}}","batches","exports","anonymization","schedule"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"76e7680e-ecd0-4768-86ab-9d0da03699e0"},{"name":"Anonymize contact","id":"2687adf6-113c-4c5a-bf7e-cc144c5e1494","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"X-Carma-Authentication-Token","type":"text","value":"{{token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n  \"findBy\": \"ORIGINALID\",\r\n  \"listId\": {{listId}},\r\n  \"searchValue\": \"{originalId}\"\r\n}"},"url":"{{url}}/{{customerId}}/lists/contacts/anonymization","urlObject":{"path":["{{customerId}}","lists","contacts","anonymization"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"2687adf6-113c-4c5a-bf7e-cc144c5e1494"},{"name":"Update scheduled anonymization","id":"8dd7ec2d-0c77-46a9-8e03-32c7ad1f25f3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"X-Carma-Authentication-Token","type":"text","value":"{{token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n\t\"id\": {anonymizationId},\r\n    \"schedule\": \"0 0 12 1 * ?\",\r\n    \"enabled\": true,\r\n    \"config\": {\r\n        \"exportStrategy\": \"ALL_CONTACTS_IN_LIST\",\r\n        \"entityIds\": [\r\n            23686\r\n        ],\r\n        \"columns\": [\r\n            \"contact.emailaddress\",\r\n            \"contact.originalid\",\r\n            \"contact.id\",\r\n            \"contactdb.id\"\r\n        ],\r\n        \"headers\": [\r\n            \"contact.emailaddress\",\r\n            \"contact.originalid\",\r\n            \"contact.id\",\r\n            \"contactdb.id\"\r\n        ],\r\n        \"useCompression\": false,\r\n        \"exportFormat\": \"CSV\",\r\n        \"period\": \"ALL\",\r\n        \"uploadToFtp\": false,\r\n        \"ruleJson\": \"{\\\"type\\\":\\\"LOGICAL\\\",\\\"operator\\\":\\\"AND\\\",\\\"id\\\":\\\"u_48\\\",\\\"elements\\\":[{\\\"name\\\":7429,\\\"operator\\\":\\\"EQUALS\\\",\\\"values\\\":[\\\"rm\\\"],\\\"valueType\\\":\\\"0\\\",\\\"type\\\":\\\"PROPERTY\\\",\\\"property\\\":7429,\\\"id\\\":\\\"u_161\\\",\\\"valueFormat\\\":\\\"DEFAULT\\\"}]}\",\r\n        \"sendEmailOnCompletion\": false,\r\n        \"userToNotify\": \"jesper@symplify.com\",\r\n        \"batchDescription\": \"GDPR - updated\",\r\n        \"uploadToGoogleAudience\": false,\r\n        \"uploadToFacebookAudience\": false,\r\n        \"actions\": [\r\n            \"ANONYMIZE\"\r\n        ]\r\n    }\r\n}"},"url":"{{url}}/{{customerId}}/batches/exports/anonymization/schedule/{anonymizationId}","urlObject":{"path":["{{customerId}}","batches","exports","anonymization","schedule","{anonymizationId}"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"8dd7ec2d-0c77-46a9-8e03-32c7ad1f25f3"},{"name":"Delete scheduled anonymization","id":"04f02ace-0ae9-4903-896c-9565c61be409","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"X-Carma-Authentication-Token","type":"text","value":"{{token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"{{url}}/{{customerId}}/batches/exports/anonymization/schedule/{anonymizationId}","urlObject":{"path":["{{customerId}}","batches","exports","anonymization","schedule","{anonymizationId}"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"04f02ace-0ae9-4903-896c-9565c61be409"}],"id":"f4b0c9da-56f2-40ff-ba0e-a8d448c17871","_postman_id":"f4b0c9da-56f2-40ff-ba0e-a8d448c17871","description":""},{"name":"Webhooks","item":[{"name":"All webhooks","event":[{"listen":"test","script":{"id":"92e358be-e2db-46d2-887e-bad9fb5a9252","exec":["","",""],"type":"text/javascript"}}],"id":"8d574754-0e0f-4a10-8051-7e91cf90f284","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"X-Carma-Authentication-Token","type":"text","value":"{{token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"file","file":{"src":""}},"url":"{{url}}/{{customerId}}/webhooks","urlObject":{"path":["{{customerId}}","webhooks"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"7669d2c6-7384-4ef8-99d1-72ac93eab1de","name":"All webhooks","originalRequest":{"method":"GET","header":[{"key":"X-Carma-Authentication-Token","type":"text","value":"{{token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"{{url}}/{{customerId}}/webhooks"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Wed, 15 Feb 2023 13:12:47 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Content-Type-Options","value":"nosniff"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"eventType\": 11,\n        \"url\": \"https://1.yourendpoint.com\"\n    },\n    {\n        \"eventType\": 5,\n        \"url\": \"https://2.yourendpoint.com\"\n    },\n    {\n        \"eventType\": 12,\n        \"url\": \"https://3.yourendpoint.com\"\n    },\n    {\n        \"eventType\": 1,\n        \"url\": \"https://4.yourendpoint.com\"\n    },\n    {\n        \"eventType\": 3,\n        \"url\": \"https://5.yourendpoint.com\"\n    }"}],"_postman_id":"8d574754-0e0f-4a10-8051-7e91cf90f284"},{"name":"Webhook by event type","event":[{"listen":"test","script":{"id":"92e358be-e2db-46d2-887e-bad9fb5a9252","exec":["","",""],"type":"text/javascript"}}],"id":"0af5ef6d-b81a-4065-b023-8be2693b1eba","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"X-Carma-Authentication-Token","type":"text","value":"{{token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"file","file":{"src":""}},"url":"{{url}}/{{customerId}}/webhooks/{eventType}","urlObject":{"path":["{{customerId}}","webhooks","{eventType}"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"25040e4a-d220-4ee5-80d9-b80378a566e8","name":"Webhook by event type","originalRequest":{"method":"GET","header":[{"key":"X-Carma-Authentication-Token","type":"text","value":"{{token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"file","file":{"src":""}},"url":"{{url}}/{{customerId}}/webhooks/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Wed, 15 Feb 2023 13:16:39 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Content-Type-Options","value":"nosniff"}],"cookie":[],"responseTime":null,"body":"{\n    \"eventType\": 1,\n    \"url\": \"https://4.yourendpoint.com\"\n}"}],"_postman_id":"0af5ef6d-b81a-4065-b023-8be2693b1eba"},{"name":"Set webhook URL","event":[{"listen":"test","script":{"id":"92e358be-e2db-46d2-887e-bad9fb5a9252","exec":["","",""],"type":"text/javascript"}}],"id":"858061e5-1be3-4500-a3b4-5d3e48f38a67","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"PUT","header":[{"key":"X-Carma-Authentication-Token","type":"text","value":"{{token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"eventType\": 1,\n    \"url\": \"http://www.example.com\"\n}"},"url":"{{url}}/{{customerId}}/webhooks","description":"<blockquote>\n<h2 id=\"event-type´s\"><em>Event type´s</em></h2>\n<ul>\n<li>1 = Link clicked</li>\n<li>3 = Mail opened</li>\n<li>5 = Opt out</li>\n<li>6 = Bounce</li>\n<li>8 = Trigger failed</li>\n<li>9 = Sms inbox</li>\n<li>11 = Contact updated</li>\n<li>12 = Opt in</li>\n</ul>\n</blockquote>\n","urlObject":{"path":["{{customerId}}","webhooks"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"858061e5-1be3-4500-a3b4-5d3e48f38a67"},{"name":"Remove webhook","event":[{"listen":"test","script":{"id":"92e358be-e2db-46d2-887e-bad9fb5a9252","exec":["",""],"type":"text/javascript"}}],"id":"2b9c3dd0-1586-4043-bb27-ddbcfe4bee36","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"DELETE","header":[{"key":"X-Carma-Authentication-Token","type":"text","value":"{{token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"text/csv"}],"body":{"mode":"file","file":{"src":""}},"url":"{{url}}/{{customerId}}/webhooks/{eventTypeId}","urlObject":{"path":["{{customerId}}","webhooks","{eventTypeId}"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"2b9c3dd0-1586-4043-bb27-ddbcfe4bee36"}],"id":"14759de9-8d11-4a75-a7f2-09caea9652f8","description":"<p>View and manage the your webhooks.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>ID</strong></th>\n<th><strong>Type of event</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>1</td>\n<td>Link clicked</td>\n</tr>\n<tr>\n<td>2</td>\n<td>Viewed email in browser</td>\n</tr>\n<tr>\n<td>3</td>\n<td>Email opened</td>\n</tr>\n<tr>\n<td>5</td>\n<td>Opted out</td>\n</tr>\n<tr>\n<td>6</td>\n<td>Email bounced</td>\n</tr>\n<tr>\n<td>8</td>\n<td>Trigger failed</td>\n</tr>\n<tr>\n<td>9</td>\n<td>SMS inbox</td>\n</tr>\n<tr>\n<td>10</td>\n<td>Execute command</td>\n</tr>\n<tr>\n<td>11</td>\n<td>Property set</td>\n</tr>\n<tr>\n<td>12</td>\n<td>Opted in</td>\n</tr>\n</tbody>\n</table>\n</div>","_postman_id":"14759de9-8d11-4a75-a7f2-09caea9652f8"},{"name":"Run segment test (dry run)","item":[{"name":"Get segment JSON","event":[{"listen":"test","script":{"id":"3c3142f7-c903-4d51-b12c-1e371d39ecfb","exec":["var jsonData = JSON.parse(responseBody);","pm.environment.set(\"dryRunId\", jsonData.id);"],"type":"text/javascript"}}],"id":"171ec59f-3903-41f4-b069-e16ffef5fdbe","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Carma-Authentication-Token","value":"{{token}}"},{"key":"Content-Type","value":"application/json"}],"url":"{{url}}/{{customerId}}/filters/{filterID}","description":"<p>Get the rule JSON to use when exporting or starting segment tests.</p>\n","urlObject":{"path":["{{customerId}}","filters","{filterID}"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"171ec59f-3903-41f4-b069-e16ffef5fdbe"},{"name":"Start dry run batch","event":[{"listen":"test","script":{"id":"92e358be-e2db-46d2-887e-bad9fb5a9252","exec":["","// JSON response - set variable to next request","var jsonData = JSON.parse(responseBody);","pm.environment.set(\"dryRunId\", jsonData.id);",""],"type":"text/javascript"}}],"id":"2abf2a64-eb42-4f26-a5ef-663d1be18149","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"X-Carma-Authentication-Token","type":"text","value":"{{token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n  \"id\": -1,\r\n  \"listId\": {{listId}},\r\n  \"ruleJson\": \"{\\r\\n\\\"type\\\": \\\"LOGICAL\\\",\\r\\n\\\"operator\\\": \\\"AND\\\",\\r\\n\\\"id\\\": \\\"u_40\\\",\\r\\n\\\"elements\\\": [\\r\\n{\\r\\n\\\"name\\\": \\\"emailaddress\\\",\\r\\n\\\"operator\\\": \\\"NOT_EMPTY\\\",\\r\\n\\\"values\\\": [\\r\\n\\\"\\\"\\r\\n],\\r\\n\\\"valueType\\\": \\\"0\\\",\\r\\n\\\"type\\\": \\\"PROPERTY\\\",\\r\\n\\\"property\\\": \\\"emailaddress\\\",\\r\\n\\\"id\\\": \\\"u_158\\\",\\r\\n\\\"valueFormat\\\": \\\"DEFAULT\\\"\\r\\n}\\r\\n]\\r\\n}\",\r\n  \"includeInactive\": true,\r\n  \"filterTotal\": true,\r\n  \"summaryCriteria\": [\"ALL\"]\r\n}"},"url":"{{url}}/{{customerId}}/batches/dryrun","description":"<p>Example response:</p>\n<p>201 Created</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"id\": 3482578,\n    \"type\": \"DRY_RUN\",\n    \"customerId\": 509,\n    \"startTime\": 1675763524770,\n    \"endTime\": null,\n    \"affected\": 0,\n    \"processed\": 0,\n    \"total\": 0,\n    \"status\": \"PENDING\"\n}\n\n</code></pre>\n","urlObject":{"path":["{{customerId}}","batches","dryrun"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"2abf2a64-eb42-4f26-a5ef-663d1be18149"},{"name":"Check Dry Run status","event":[{"listen":"test","script":{"id":"3c3142f7-c903-4d51-b12c-1e371d39ecfb","exec":["var jsonData = JSON.parse(responseBody);","pm.environment.set(\"dryRunId\", jsonData.id);"],"type":"text/javascript"}}],"id":"c4cbd3ae-d4a2-4015-9539-c92abdf57f73","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Carma-Authentication-Token","value":"{{token}}"},{"key":"Content-Type","value":"application/json"}],"url":"{{url}}/{{customerId}}/batches/{dryRunId}","description":"<p>Use the ID returned in the response in the previous request.</p>\n<p><strong>Example response:</strong></p>\n<p>200 OK</p>\n","urlObject":{"path":["{{customerId}}","batches","{dryRunId}"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"c4cbd3ae-d4a2-4015-9539-c92abdf57f73"},{"name":"Get Dry Run result","event":[{"listen":"test","script":{"id":"3c3142f7-c903-4d51-b12c-1e371d39ecfb","exec":["pm.environment.unset(\"dryRunId\");"],"type":"text/javascript"}}],"id":"a058b02d-fbb1-4a31-b6eb-871d59f8ec07","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Carma-Authentication-Token","value":"{{token}}"},{"key":"Content-Type","value":"application/json"}],"url":"{{url}}/{{customerId}}/batches/{dryRunId}/result","description":"<p>Use the ID returned in the response in the previous request.</p>\n<p><strong>Example response:</strong></p>\n<p>200 OK</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"ALL\": {\n        \"matchSummary\": {\n            \"u_1124\": 1,\n            \"u_1564\": 1,\n            \"u_841\": 2\n        },\n        \"failedMatchSummary\": {\n            \"u_1124\": 9,\n            \"u_1564\": 8,\n            \"u_841\": 8\n        },\n        \"matchedEndUsers\": 2,\n        \"failedEndUsers\": 8\n    }\n}\n\n</code></pre>\n","urlObject":{"path":["{{customerId}}","batches","{dryRunId}","result"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"a058b02d-fbb1-4a31-b6eb-871d59f8ec07"}],"id":"36f9bedf-d9a4-4a27-8c98-0c94ad9efba1","description":"<p>Get segment segment result.</p>\n","_postman_id":"36f9bedf-d9a4-4a27-8c98-0c94ad9efba1"},{"name":"Send batch Campaign","item":[{"name":"Start batch campaign generation","event":[{"listen":"test","script":{"id":"92e358be-e2db-46d2-887e-bad9fb5a9252","exec":["var jsonData = JSON.parse(responseBody);","pm.environment.set(\"campaignGenerationId\", jsonData.id);","",""],"type":"text/javascript"}}],"id":"1fc79e4f-cf54-4a4b-8344-7057a9bc4ab5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"X-Carma-Authentication-Token","type":"text","value":"{{token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n  \"type\": \"CAMPAIGN\",\r\n  \"id\": {campaignId},\r\n  \"listId\": {{listId}},\r\n  \"delimiter\": 9,\r\n  \"sendTime\": \"\"\r\n}"},"url":"{{url}}/{{customerId}}/jobs/generation/fixed","description":"<blockquote>\n<h2 id=\"delimiter-ascii-code\"><em>Delimiter ASCII code</em></h2>\n<p>see <a href=\"https://theasciicode.com.ar/\">theasciicode.com</a></p>\n<p>9 = tab</p>\n</blockquote>\n","urlObject":{"path":["{{customerId}}","jobs","generation","fixed"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"1fc79e4f-cf54-4a4b-8344-7057a9bc4ab5"},{"name":"Specify campaign recipients","event":[{"listen":"test","script":{"id":"92e358be-e2db-46d2-887e-bad9fb5a9252","exec":["","var jsonData = JSON.parse(responseBody);","pm.environment.set(\"campaignGenerationId\", jsonData.id);","",""],"type":"text/javascript"}}],"id":"c9fe90a9-0713-4e56-b1d5-bf5e0027723c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"X-Carma-Authentication-Token","type":"text","value":"{{token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"text/csv"}],"body":{"mode":"file","file":{"src":""}},"url":"{{url}}/{{customerId}}/jobs/generation/fixed/{campaignGenerationId}/recipients","description":"<blockquote>\n</blockquote>\n<h2 id=\"example-file-rows\"><em>Example file rows</em></h2>\n<p>tab delimited txt file</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>originalId    emailAddress    firstName\noriginalid-1    aretha@example.com    Aretha\noriginalid-2    p.simon@example.com    Paul\n\n</code></pre>","urlObject":{"path":["{{customerId}}","jobs","generation","fixed","{campaignGenerationId}","recipients"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"c9fe90a9-0713-4e56-b1d5-bf5e0027723c"},{"name":"Generation info","event":[{"listen":"test","script":{"id":"92e358be-e2db-46d2-887e-bad9fb5a9252","exec":["","",""],"type":"text/javascript"}}],"id":"9f1b609a-65e0-444a-9b2e-e462602f5d85","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"X-Carma-Authentication-Token","type":"text","value":"{{token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"file","file":{"src":""}},"url":"{{url}}/{{customerId}}/jobs/generation/fixed/{campaignGenerationId}","description":"<blockquote>\n<h2 id=\"use-id-from-previous-request´s-response\"><em>Use id from previous request´s response</em></h2>\n</blockquote>\n","urlObject":{"path":["{{customerId}}","jobs","generation","fixed","{campaignGenerationId}"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"9f1b609a-65e0-444a-9b2e-e462602f5d85"}],"id":"ba2b65aa-4aa0-4d38-b9e7-b85b494075b1","_postman_id":"ba2b65aa-4aa0-4d38-b9e7-b85b494075b1","description":""},{"name":"Properties (Contact attributes)","item":[{"name":"Properties","event":[{"listen":"test","script":{"id":"1cef130f-b56c-4804-af80-37621bc93ee4","exec":[""],"type":"text/javascript"}}],"id":"db8aafe6-3402-487b-a1e7-254a79eb02fd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Carma-Authentication-Token","type":"text","value":"{{token}}"},{"key":"Content-Type","type":"text","value":"application/json"}],"url":"{{url}}/{{customerId}}/properties","urlObject":{"path":["{{customerId}}","properties"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"db8aafe6-3402-487b-a1e7-254a79eb02fd"},{"name":"Create property","event":[{"listen":"test","script":{"id":"76376409-1e6e-4d3e-bb42-f92447fe088c","exec":["var jsonData = JSON.parse(responseBody);","pm.environment.set(\"propertyId\", jsonData.id);"],"type":"text/javascript"}}],"id":"3e4f9753-d662-4493-8e3f-8d08c817a927","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-Carma-Authentication-Token","type":"text","value":"{{token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n  \"propertyTypeId\": 1,\r\n  \"name\": \"ApiCreatedProperty\",\r\n  \"description\": \"Created via API\",\r\n  \"dataType\": \"STRING\",\r\n  \"includeInBaExport\": false,\r\n  \"staticProperty\": false,\r\n  \"fileHeaders\": [\r\n    \"ApiCreatedProperty\"\r\n  ]\r\n}\r\n"},"url":"{{url}}/{{customerId}}/properties","urlObject":{"path":["{{customerId}}","properties"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"3e4f9753-d662-4493-8e3f-8d08c817a927"},{"name":"Update property","event":[{"listen":"test","script":{"id":"76376409-1e6e-4d3e-bb42-f92447fe088c","exec":[""],"type":"text/javascript"}}],"id":"b4d90593-1e04-4b27-bd15-7fd45e156110","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"X-Carma-Authentication-Token","type":"text","value":"{{token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n    \"id\": {propertyId},\r\n    \"propertyTypeId\": 1,\r\n    \"name\": \"ApiCreatedProperty\",\r\n    \"description\": \"Created via API - and updated\",\r\n    \"dataType\": \"STRING\",\r\n    \"staticProperty\": false,\r\n    \"fileHeaders\": [\r\n        \"ApiCreatedProperty\",\r\n        \"AddAnotherFileHeader\"\r\n    ]\r\n}"},"url":"{{url}}/{{customerId}}/properties/{propertyId}","urlObject":{"path":["{{customerId}}","properties","{propertyId}"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"b4d90593-1e04-4b27-bd15-7fd45e156110"},{"name":"Delete property","event":[{"listen":"test","script":{"id":"87100909-0fe8-49a9-837b-cfbc24ae6de9","exec":[""],"type":"text/javascript"}}],"id":"e319d380-4b28-4b56-b054-388ccc7b9f60","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"X-Carma-Authentication-Token","type":"text","value":"{{token}}"}],"body":{"mode":"raw","raw":""},"url":"{{url}}/{{customerId}}/properties/{propertyId}","urlObject":{"path":["{{customerId}}","properties","{propertyId}"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"e319d380-4b28-4b56-b054-388ccc7b9f60"}],"id":"10b1a97e-ba2d-4ba1-bee1-cbb74fb19d34","description":"<p>Your contact data is stored in properties (attributes) and values are unique for an original id and list.</p>\n<p>When a property is updated it will overwrite the previous value.</p>\n<p><a href=\"https://help.symplify.com/hc/en-us/articles/360011154519-Recipient-attributes\">Learn more on Expertise</a>.</p>\n","_postman_id":"10b1a97e-ba2d-4ba1-bee1-cbb74fb19d34"},{"name":"Snippets","item":[{"name":"All snippets","event":[{"listen":"test","script":{"id":"1cef130f-b56c-4804-af80-37621bc93ee4","exec":[""],"type":"text/javascript"}}],"id":"e01f0be8-ed1e-4aa8-a0b4-dd7c0dc01cd1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Carma-Authentication-Token","type":"text","value":"{{token}}"},{"key":"Content-Type","type":"text","value":"application/json"}],"url":"{{url}}/{{customerId}}/snippets","urlObject":{"path":["{{customerId}}","snippets"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"e01f0be8-ed1e-4aa8-a0b4-dd7c0dc01cd1"},{"name":"Snippet by Id","event":[{"listen":"test","script":{"id":"1cef130f-b56c-4804-af80-37621bc93ee4","exec":[""],"type":"text/javascript"}}],"id":"98b7cb5a-b0e4-428c-84d9-4049328ebc01","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Carma-Authentication-Token","type":"text","value":"{{token}}"},{"key":"Content-Type","type":"text","value":"application/json"}],"url":"{{url}}/{{customerId}}/snippets/{snippetId}","urlObject":{"path":["{{customerId}}","snippets","{snippetId}"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"98b7cb5a-b0e4-428c-84d9-4049328ebc01"},{"name":"Create snippet","event":[{"listen":"test","script":{"id":"76376409-1e6e-4d3e-bb42-f92447fe088c","exec":["var jsonData = JSON.parse(responseBody);","pm.environment.set(\"snippetId\", jsonData.id);"],"type":"text/javascript"}}],"id":"92f292d1-9c92-410c-a0ce-99b1bd7bdb76","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-Carma-Authentication-Token","type":"text","value":"{{token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n  \"name\": \"snippetApiCreated\",\r\n  \"description\": \"Created via API\",\r\n  \"code\": \"Hello {{contact.firstName}}! How are you?\"\r\n}"},"url":"{{url}}/{{customerId}}/snippets","urlObject":{"path":["{{customerId}}","snippets"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"92f292d1-9c92-410c-a0ce-99b1bd7bdb76"},{"name":"Update snippet","event":[{"listen":"test","script":{"id":"76376409-1e6e-4d3e-bb42-f92447fe088c","exec":[""],"type":"text/javascript"}}],"id":"3c38ac8d-f50b-4c1d-8b2c-70026a0e75c2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"X-Carma-Authentication-Token","type":"text","value":"{{token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"id\": {snippetId},\n    \"name\": \"snippetApiCreated\",\n    \"description\": \"Created via API - and updated\",\n    \"code\": \"Hello {{contact.firstName}}! How are you? Better now? Bye\"\n}"},"url":"{{url}}/{{customerId}}/snippets/{snippetId}","urlObject":{"path":["{{customerId}}","snippets","{snippetId}"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"3c38ac8d-f50b-4c1d-8b2c-70026a0e75c2"},{"name":"Delete snippet","event":[{"listen":"test","script":{"id":"87100909-0fe8-49a9-837b-cfbc24ae6de9","exec":[""],"type":"text/javascript"}}],"id":"0ca6a2e5-96e4-410f-9521-3c1d6a6b1eec","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"X-Carma-Authentication-Token","type":"text","value":"{{token}}"}],"body":{"mode":"raw","raw":""},"url":"{{url}}/{{customerId}}/snippets/{snippetId}","urlObject":{"path":["{{customerId}}","snippets","{snippetId}"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"0ca6a2e5-96e4-410f-9521-3c1d6a6b1eec"}],"id":"d0cf757c-edc9-41ec-9d37-f12022d84f9d","_postman_id":"d0cf757c-edc9-41ec-9d37-f12022d84f9d","description":""},{"name":"Journeys/Campaign Manager","item":[{"name":"View journeys","item":[{"name":"All Journeys","id":"9a19946a-a3f3-49d8-aab0-cc66524d371b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Carma-Authentication-Token","type":"text","value":"{{token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"{{url}}/{{customerId}}/journeys","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Name</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n<th><strong>Available values</strong></th>\n<th><strong>Default value</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>customerid</strong> *  <br />  <br />(path)</td>\n<td>integer($int32)</td>\n<td>Customer ID</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td><strong>projectId</strong>  <br />  <br />(query)</td>\n<td>integer($int32)</td>\n<td>Filter on project</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td><strong>state</strong>  <br />  <br />(query)</td>\n<td>string</td>\n<td>Filter journeys on state</td>\n<td>DRAFT, LIVE, PAST, LIVE_OR_PAST, ANY</td>\n<td>ANY</td>\n</tr>\n<tr>\n<td><strong>type</strong>  <br />  <br />(query)</td>\n<td>string</td>\n<td>Filter journeys on type</td>\n<td>PERIODIC, CAMPAIGN</td>\n<td>PERIODIC</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["{{customerId}}","journeys"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"439009c7-0b78-4319-b8dc-d150832dd7d5","name":"All Journeys","originalRequest":{"method":"GET","header":[{"key":"X-Carma-Authentication-Token","type":"text","value":"{{token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":{"raw":"{{url}}/{{customerId}}/journeys?projectId=55000","host":["{{url}}"],"path":["{{customerId}}","journeys"],"query":[{"key":"projectId","value":"55000"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Wed, 07 Feb 2024 10:20:41 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Content-Type-Options","value":"nosniff"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 384,\n        \"projectId\": 55000,\n        \"name\": \"Multistep campaign 123\",\n        \"description\": \"\",\n        \"reenterAllowed\": true,\n        \"data\": {},\n        \"state\": \"LIVE\",\n        \"type\": \"CAMPAIGN\",\n        \"permissions\": null\n    },\n    {\n        \"id\": 463,\n        \"projectId\": 55000,\n        \"name\": \"Journey A\",\n        \"description\": \"\",\n        \"reenterAllowed\": false,\n        \"data\": {},\n        \"state\": \"LIVE\",\n        \"type\": \"PERIODIC\",\n        \"permissions\": null\n    },\n    {\n        \"id\": 651,\n        \"projectId\": 55000,\n        \"name\": \"Journey B\",\n        \"description\": \"\",\n        \"reenterAllowed\": true,\n        \"data\": {},\n        \"state\": \"PAST\",\n        \"type\": \"PERIODIC\",\n        \"permissions\": null\n    }\n]"}],"_postman_id":"9a19946a-a3f3-49d8-aab0-cc66524d371b"},{"name":"All Journeys overviews","id":"801559db-ef84-44c6-9a01-73778848249b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Carma-Authentication-Token","type":"text","value":"{{token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"{{url}}/{{customerId}}/journeys/overviews","urlObject":{"path":["{{customerId}}","journeys","overviews"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"a3089f0a-f252-46ba-af80-f0b3c1515c3b","name":"All Journeys overviews","originalRequest":{"method":"GET","header":[{"key":"X-Carma-Authentication-Token","type":"text","value":"{{token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"{{url}}/{{customerId}}/journeys/overviews"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Wed, 07 Feb 2024 10:22:49 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Content-Type-Options","value":"nosniff"}],"cookie":[],"responseTime":null,"body":"    {\n        \"id\": 1001,\n        \"name\": \"Journey A\",\n        \"projectId\": 55000,\n        \"projectName\": \"Project 1\",\n        \"firstActivated\": 1543937908737,\n        \"firstActivatedBy\": \"Aretha\",\n        \"lastActivated\": 1545135057643,\n        \"lastActivatedBy\": \"Lady\",\n        \"contactsEntered\": 1502675,\n        \"contactsExited\": 1501432,\n        \"lastModified\": 1631516962863,\n        \"lastModifiedBy\": \"Lady\",\n        \"permissions\": null,\n        \"status\": \"LIVE\"\n    },\n    {\n        \"id\": 1002,\n        \"name\": \"Journey B\",\n        \"projectId\": 55001,\n        \"projectName\": \"Project 2\",\n        \"firstActivated\": 1603899905677,\n        \"firstActivatedBy\": \"Lady\",\n        \"lastActivated\": 1603899905677,\n        \"lastActivatedBy\": \"PaulS\",\n        \"contactsEntered\": 903266,\n        \"contactsExited\": 903266,\n        \"lastModified\": 1603899905677,\n        \"lastModifiedBy\": \"PaulS\",\n        \"permissions\": null,\n        \"status\": \"PAST\"\n    },\n    {\n        \"id\": 1003,\n        \"name\": \"Journey C\",\n        \"projectId\": 55001,\n        \"projectName\": \"Project 2\",\n        \"firstActivated\": 1604490970227,\n        \"firstActivatedBy\": \"Lady\",\n        \"lastActivated\": 1614269933337,\n        \"lastActivatedBy\": \"PaulS\",\n        \"contactsEntered\": 108149,\n        \"contactsExited\": 108048,\n        \"lastModified\": 1631874804447,\n        \"lastModifiedBy\": \"PaulS\",\n        \"permissions\": null,\n        \"status\": \"LIVE\"\n    },"}],"_postman_id":"801559db-ef84-44c6-9a01-73778848249b"},{"name":"Specific Journey overview","id":"8055164f-cb5d-466d-bdb0-f527869bd3e7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Carma-Authentication-Token","type":"text","value":"{{token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"{{url}}/{{customerId}}/journeys/{journeyId}/overview","description":"<p>Start and end date must be specified when fetching the overview for a specific journey.</p>\n<p>This is included in the query:</p>\n<p><code>?start=YYYY-DD-MM&amp;end=YYYY-DD-MM</code></p>\n","urlObject":{"path":["{{customerId}}","journeys","{journeyId}","overview"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"85e59522-3367-456c-b02f-ea64ab04381a","name":"Specific Journey overview","originalRequest":{"method":"GET","header":[{"key":"X-Carma-Authentication-Token","type":"text","value":"{{token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":{"raw":"{{url}}/{{customerId}}/journeys/2000/overview?start=2024-01-25&end=2024-02-07","host":["{{url}}"],"path":["{{customerId}}","journeys","2000","overview"],"query":[{"key":"start","value":"2024-01-25"},{"key":"end","value":"2024-02-07"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Wed, 07 Feb 2024 10:39:00 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Content-Type-Options","value":"nosniff"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 2000,\n    \"name\": \"Journey 10\",\n    \"projectId\": 55500,\n    \"projectName\": \"Project D\",\n    \"firstActivated\": 1706011432400,\n    \"firstActivatedBy\": \"Lady\",\n    \"lastActivated\": 1706011432400,\n    \"lastActivatedBy\": \"John\",\n    \"contactsEntered\": 126,\n    \"contactsExited\": 106,\n    \"lastModified\": 1706786665947,\n    \"lastModifiedBy\": \"John\",\n    \"readAllowed\": false,\n    \"writeAllowed\": false,\n    \"executeAllowed\": false,\n    \"status\": \"LIVE\",\n    \"contactsIn\": 20\n}"}],"_postman_id":"8055164f-cb5d-466d-bdb0-f527869bd3e7"},{"name":"Journey by id","id":"8609d095-0ab3-43b7-9eed-5bfa9f9ae56f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Carma-Authentication-Token","type":"text","value":"{{token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"{{url}}/{{customerId}}/journeys/{journeyId}","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Name</strong></th>\n<th><strong>Description</strong></th>\n<th><strong>Possible values</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>reenterAllowed</td>\n<td>If a contact can join the journey more than once. True is enabling multiple entries.</td>\n<td>true, false</td>\n</tr>\n<tr>\n<td>state</td>\n<td>Journey status. Live is active.</td>\n<td>DRAFT, LIVE, PAST</td>\n</tr>\n<tr>\n<td>type</td>\n<td>Communication module. CAMPAIGN is Campaign Manager, PERIODIC is Journeys.</td>\n<td>CAMPAIGN, PERIODIC</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["{{customerId}}","journeys","{journeyId}"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"b3d25feb-acfb-485d-b693-c9029bf8d7fb","name":"Journey by id","originalRequest":{"method":"GET","header":[{"key":"X-Carma-Authentication-Token","type":"text","value":"{{token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"{{url}}/{{customerId}}/journeys/12748"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Thu, 09 Mar 2023 13:27:42 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Content-Type-Options","value":"nosniff"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 12748,\n    \"projectId\": 111477,\n    \"name\": \"Order\",\n    \"description\": \"Order flow\",\n    \"reenterAllowed\": true,\n    \"data\": {},\n    \"state\": \"LIVE\",\n    \"type\": \"PERIODIC\",\n    \"permissions\": null\n}"}],"_postman_id":"8609d095-0ab3-43b7-9eed-5bfa9f9ae56f"},{"name":"Journey versions by id","id":"5bab4b64-b32c-415f-9cea-57ec1e94c703","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Carma-Authentication-Token","type":"text","value":"{{token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"{{url}}/{{customerId}}/journeys/{journeyId}","urlObject":{"path":["{{customerId}}","journeys","{journeyId}"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"8b62a197-81de-49be-b01a-22e26489c584","name":"Journey versions by id","originalRequest":{"method":"GET","header":[{"key":"X-Carma-Authentication-Token","type":"text","value":"{{token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"{{url}}/{{customerId}}/journeys/17184/versions"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Thu, 09 Mar 2023 13:44:41 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Content-Type-Options","value":"nosniff"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"journeyId\": 17184,\n        \"version\": 1,\n        \"comment\": \"\",\n        \"status\": \"ACTIVE_NOT_ACCEPTING_NEW\",\n        \"listId\": 231997,\n        \"startCondition\": {\n            \"strategy\": \"API_REQUEST\"\n        },\n        \"startStep\": \"1a95230592\",\n        \"maxRetryCount\": 3,\n        \"schedule\": \"0 0 0 * * *\",\n        \"scheduleTimezone\": null,\n        \"data\": {},\n        \"firstActivated\": 1678143600000,\n        \"includeProjectSegment\": true,\n        \"executeHourly\": false,\n        \"firstExecutionHourOfDay\": -1,\n        \"lastExecutionHourOfDay\": -1,\n        \"defaultExecutionTimezone\": null,\n        \"expirationDate\": null,\n        \"expirationStatus\": null,\n        \"executionStages\": []\n    },\n    {\n        \"journeyId\": 17184,\n        \"version\": 2,\n        \"comment\": \"Copy of \",\n        \"status\": \"ACTIVE\",\n        \"listId\": 231997,\n        \"startCondition\": {\n            \"strategy\": \"API_REQUEST\"\n        },\n        \"startStep\": \"1a95230592\",\n        \"maxRetryCount\": 3,\n        \"schedule\": \"0 0 0 * * *\",\n        \"scheduleTimezone\": null,\n        \"data\": {},\n        \"firstActivated\": 1678316400000,\n        \"includeProjectSegment\": true,\n        \"executeHourly\": false,\n        \"firstExecutionHourOfDay\": -1,\n        \"lastExecutionHourOfDay\": -1,\n        \"defaultExecutionTimezone\": null,\n        \"expirationDate\": null,\n        \"expirationStatus\": null,\n        \"executionStages\": []\n    }\n]"}],"_postman_id":"5bab4b64-b32c-415f-9cea-57ec1e94c703"},{"name":"Journey steps by versions","id":"310da601-7025-4b09-867f-490af0348ead","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Carma-Authentication-Token","type":"text","value":"{{token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"{{url}}/{{customerId}}/journeys/{journeyId}/versions/{versionId}/steps","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Name</strong></th>\n<th><strong>Description</strong></th>\n<th><strong>Possible values</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>Step Id</td>\n<td></td>\n</tr>\n<tr>\n<td>type</td>\n<td>Step type</td>\n<td>SEND_DELIVERY, SOCIAL_EXPORT, ENGAGEMENT_SPLIT, WEIGHTED_SPLIT, SEGMENT_WAIT, PRIORITY_SEGMENT_SPLIT, WAIT, API_WAIT, WAIT_UNTIL_DATE, PRIORITY_WAIT, EXECUTE_ACTION, CONTROL_POINT, WEBHOOK, EXIT</td>\n</tr>\n<tr>\n<td>name</td>\n<td>Step name</td>\n<td></td>\n</tr>\n<tr>\n<td>description</td>\n<td>Custom description</td>\n<td></td>\n</tr>\n<tr>\n<td>executionStage</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>data</td>\n<td>Step details, will differ depending on step</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["{{customerId}}","journeys","{journeyId}","versions","{versionId}","steps"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"f448adb9-28f4-4111-b503-5c0a38b19be0","name":"Journey steps by versions","originalRequest":{"method":"GET","header":[{"key":"X-Carma-Authentication-Token","type":"text","value":"{{token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"{{url}}/{{customerId}}/journeys/17184/versions/2/steps"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Thu, 09 Mar 2023 13:52:45 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Content-Type-Options","value":"nosniff"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": \"1a95230592\",\n        \"deliveryContainerId\": 7168,\n        \"type\": \"SEND_DELIVERY\",\n        \"name\": \"\",\n        \"description\": null,\n        \"executionStage\": 2147483647,\n        \"data\": {\n            \"timeoutStep\": null,\n            \"meta\": {\n                \"sendGate2SplitControls\": false,\n                \"hasCampaign\": 1011718,\n                \"channel\": \"EMAIL\"\n            },\n            \"sendTimeMinute\": 0,\n            \"ignoreOptOut\": false,\n            \"nextStep\": \"10ae0fef2e\",\n            \"acceptStep\": \"10ae0fef2e\",\n            \"sendTimezone\": null,\n            \"rejectStep\": null,\n            \"sendTimeHour\": 0,\n            \"maxDuration\": 1,\n            \"timeUnit\": \"DAYS\"\n        }\n    },\n    {\n        \"id\": \"6c7a526668\",\n        \"deliveryContainerId\": 7169,\n        \"type\": \"SEND_DELIVERY\",\n        \"name\": \"\",\n        \"description\": null,\n        \"executionStage\": 2147483647,\n        \"data\": {\n            \"timeoutStep\": null,\n            \"meta\": {\n                \"sendGate2SplitControls\": false,\n                \"hasCampaign\": 1011719,\n                \"channel\": \"EMAIL\"\n            },\n            \"sendTimeMinute\": 0,\n            \"ignoreOptOut\": false,\n            \"nextStep\": \"b4c309c242\",\n            \"acceptStep\": \"b4c309c242\",\n            \"sendTimezone\": null,\n            \"rejectStep\": null,\n            \"sendTimeHour\": 0,\n            \"maxDuration\": 1,\n            \"timeUnit\": \"DAYS\"\n        }\n    },\n    {\n        \"id\": \"10ae0fef2e\",\n        \"deliveryContainerId\": null,\n        \"type\": \"WAIT\",\n        \"name\": null,\n        \"description\": null,\n        \"executionStage\": 2147483647,\n        \"data\": {\n            \"duration\": 1,\n            \"nextStep\": \"7c4ddce5b6\",\n            \"meta\": {},\n            \"timeUnit\": \"DAYS\"\n        }\n    },\n    {\n        \"id\": \"178d0fb2b5\",\n        \"deliveryContainerId\": null,\n        \"type\": \"PRIORITY_SEGMENT_SPLIT\",\n        \"name\": null,\n        \"description\": null,\n        \"executionStage\": 2147483647,\n        \"data\": {\n            \"defaultStep\": \"aa79bdc417\",\n            \"meta\": {\n                \"segmentNames\": [\n                    null\n                ]\n            },\n            \"prioritizedSegmentMappings\": [\n                {\n                    \"segment\": null,\n                    \"step\": \"524c6a5119\",\n                    \"ruleReference\": 10285\n                }\n            ]\n        }\n    },\n    {\n        \"id\": \"a95095be07\",\n        \"deliveryContainerId\": null,\n        \"type\": \"EXIT\",\n        \"name\": null,\n        \"description\": null,\n        \"executionStage\": 2147483647,\n        \"data\": {}\n    },\n    {\n        \"id\": \"7c4ddce5b6\",\n        \"deliveryContainerId\": 7186,\n        \"type\": \"SEND_DELIVERY\",\n        \"name\": \"\",\n        \"description\": null,\n        \"executionStage\": 2147483647,\n        \"data\": {\n            \"timeoutStep\": null,\n            \"meta\": {\n                \"channel\": \"SMS\",\n                \"hasCampaign\": 1011739,\n                \"sendGate2SplitControls\": false\n            },\n            \"sendTimeMinute\": 0,\n            \"ignoreOptOut\": false,\n            \"nextStep\": \"46db5337b9\",\n            \"acceptStep\": \"46db5337b9\",\n            \"sendTimezone\": null,\n            \"rejectStep\": null,\n            \"sendTimeHour\": 0,\n            \"maxDuration\": 1,\n            \"timeUnit\": \"DAYS\"\n        }\n    },\n    {\n        \"id\": \"dfaae391c0\",\n        \"deliveryContainerId\": null,\n        \"type\": \"EXIT\",\n        \"name\": null,\n        \"description\": null,\n        \"executionStage\": 2147483647,\n        \"data\": {}\n    },\n    {\n        \"id\": \"46db5337b9\",\n        \"deliveryContainerId\": null,\n        \"type\": \"API_WAIT\",\n        \"name\": null,\n        \"description\": null,\n        \"executionStage\": 2147483647,\n        \"data\": {\n            \"agentActionName\": null,\n            \"timeoutStep\": \"a95095be07\",\n            \"webhookIdentifier\": \"yo\",\n            \"webhookCustomFields\": {},\n            \"meta\": {},\n            \"acceptStep\": \"6c7a526668\",\n            \"rejectStep\": \"dfaae391c0\",\n            \"maxDuration\": 1,\n            \"timeUnit\": \"DAYS\",\n            \"sendWebhook\": true\n        }\n    },\n    {\n        \"id\": \"aa79bdc417\",\n        \"deliveryContainerId\": 7166,\n        \"type\": \"SEND_DELIVERY\",\n        \"name\": \"\",\n        \"description\": null,\n        \"executionStage\": 2147483647,\n        \"data\": {\n            \"timeoutStep\": null,\n            \"meta\": {\n                \"sendGate2SplitControls\": false,\n                \"hasCampaign\": 1011716,\n                \"channel\": \"EMAIL\"\n            },\n            \"sendTimeMinute\": 0,\n            \"ignoreOptOut\": false,\n            \"nextStep\": \"5f1e75174e\",\n            \"acceptStep\": \"5f1e75174e\",\n            \"sendTimezone\": null,\n            \"rejectStep\": null,\n            \"sendTimeHour\": 0,\n            \"maxDuration\": 1,\n            \"timeUnit\": \"DAYS\"\n        }\n    },\n    {\n        \"id\": \"524c6a5119\",\n        \"deliveryContainerId\": 7167,\n        \"type\": \"SEND_DELIVERY\",\n        \"name\": \"\",\n        \"description\": null,\n        \"executionStage\": 2147483647,\n        \"data\": {\n            \"timeoutStep\": null,\n            \"meta\": {\n                \"sendGate2SplitControls\": false,\n                \"hasCampaign\": 1011717,\n                \"channel\": \"EMAIL\"\n            },\n            \"sendTimeMinute\": 0,\n            \"ignoreOptOut\": false,\n            \"nextStep\": \"d1970b7d6c\",\n            \"acceptStep\": \"d1970b7d6c\",\n            \"sendTimezone\": null,\n            \"rejectStep\": null,\n            \"sendTimeHour\": 0,\n            \"maxDuration\": 1,\n            \"timeUnit\": \"DAYS\"\n        }\n    },\n    {\n        \"id\": \"b4c309c242\",\n        \"deliveryContainerId\": null,\n        \"type\": \"WAIT\",\n        \"name\": null,\n        \"description\": null,\n        \"executionStage\": 2147483647,\n        \"data\": {\n            \"duration\": 1,\n            \"nextStep\": \"178d0fb2b5\",\n            \"meta\": {},\n            \"timeUnit\": \"DAYS\"\n        }\n    },\n    {\n        \"id\": \"d1970b7d6c\",\n        \"deliveryContainerId\": null,\n        \"type\": \"EXIT\",\n        \"name\": null,\n        \"description\": null,\n        \"executionStage\": 2147483647,\n        \"data\": {}\n    },\n    {\n        \"id\": \"5f1e75174e\",\n        \"deliveryContainerId\": null,\n        \"type\": \"EXIT\",\n        \"name\": null,\n        \"description\": null,\n        \"executionStage\": 2147483647,\n        \"data\": {}\n    }\n]"},{"id":"bbd798ba-dda3-496c-a6fd-3e2cc2465c5b","name":"All steps","originalRequest":{"method":"GET","header":[{"key":"X-Carma-Authentication-Token","type":"text","value":"{{token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"{{url}}/{{customerId}}/journeys/17819/versions/1/steps"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Fri, 10 Mar 2023 10:34:57 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Content-Type-Options","value":"nosniff"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": \"a141385366\",\n        \"deliveryContainerId\": null,\n        \"type\": \"SOCIAL_EXPORT\",\n        \"name\": null,\n        \"description\": null,\n        \"executionStage\": 2147483647,\n        \"data\": {\n            \"nextStep\": \"79c9507478\",\n            \"audienceId\": \"23851521345539670172\",\n            \"tokenId\": 211,\n            \"socialPlatform\": \"FACEBOOK\",\n            \"meta\": {\n                \"tokenName\": \"Token for systemuser a_user_name\",\n                \"accountId\": \"25818346234553712685\",\n                \"accountName\": \"Facebook_account_name\",\n                \"audienceName\": \"Sweden\"\n            }\n        }\n    },\n    {\n        \"id\": \"1afc1f6cbc\",\n        \"deliveryContainerId\": null,\n        \"type\": \"ENGAGEMENT_SPLIT\",\n        \"name\": null,\n        \"description\": null,\n        \"executionStage\": 2147483647,\n        \"data\": {\n            \"onUnsubscribe\": null,\n            \"onClick\": \"f5cf8d05e6\",\n            \"onOpen\": null,\n            \"onSoftBounce\": null,\n            \"meta\": {\n                \"selectedEngagements\": {\n                    \"onOpen\": false,\n                    \"onClick\": true,\n                    \"onConvert\": false,\n                    \"onUnsubscribe\": false,\n                    \"onAnyBounce\": false,\n                    \"remaining\": true\n                }\n            },\n            \"step\": \"1a95230592\",\n            \"onConvert\": null,\n            \"onAnyBounce\": null,\n            \"onHardBounce\": null,\n            \"remaining\": \"6bbc6e729a\"\n        }\n    },\n    {\n        \"id\": \"6bbc6e729a\",\n        \"deliveryContainerId\": null,\n        \"type\": \"EXIT\",\n        \"name\": \"Exit A\",\n        \"description\": null,\n        \"executionStage\": 2147483647,\n        \"data\": {}\n    },\n    {\n        \"id\": \"37deee0a6e\",\n        \"deliveryContainerId\": 7188,\n        \"type\": \"SEND_DELIVERY\",\n        \"name\": \"An app push delivery name\",\n        \"description\": null,\n        \"executionStage\": 2147483647,\n        \"data\": {\n            \"timeoutStep\": null,\n            \"meta\": {\n                \"channel\": \"PUSH\"\n            },\n            \"sendTimeMinute\": 0,\n            \"ignoreOptOut\": false,\n            \"nextStep\": \"069af01bcf\",\n            \"acceptStep\": \"069af01bcf\",\n            \"sendTimezone\": null,\n            \"rejectStep\": null,\n            \"sendTimeHour\": 0,\n            \"maxDuration\": 1,\n            \"timeUnit\": \"DAYS\"\n        }\n    },\n    {\n        \"id\": \"1a95230592\",\n        \"deliveryContainerId\": 7177,\n        \"type\": \"SEND_DELIVERY\",\n        \"name\": \"An email delivery name\",\n        \"description\": null,\n        \"executionStage\": 2147483647,\n        \"data\": {\n            \"timeoutStep\": null,\n            \"meta\": {\n                \"sendGate2SplitControls\": false,\n                \"hasCampaign\": 1011727,\n                \"channel\": \"EMAIL\"\n            },\n            \"sendTimeMinute\": 0,\n            \"ignoreOptOut\": false,\n            \"nextStep\": \"709bab53e3\",\n            \"acceptStep\": \"709bab53e3\",\n            \"sendTimezone\": null,\n            \"rejectStep\": null,\n            \"sendTimeHour\": 0,\n            \"maxDuration\": 1,\n            \"timeUnit\": \"DAYS\"\n        }\n    },\n    {\n        \"id\": \"6c7a526668\",\n        \"deliveryContainerId\": 7178,\n        \"type\": \"SEND_DELIVERY\",\n        \"name\": \"\",\n        \"description\": null,\n        \"executionStage\": 2147483647,\n        \"data\": {\n            \"timeoutStep\": null,\n            \"meta\": {\n                \"sendGate2SplitControls\": false,\n                \"hasCampaign\": 1011728,\n                \"channel\": \"EMAIL\"\n            },\n            \"sendTimeMinute\": 0,\n            \"ignoreOptOut\": false,\n            \"nextStep\": null,\n            \"acceptStep\": null,\n            \"sendTimezone\": null,\n            \"rejectStep\": null,\n            \"sendTimeHour\": 0,\n            \"maxDuration\": 1,\n            \"timeUnit\": \"DAYS\"\n        }\n    },\n    {\n        \"id\": \"aa87c7fe70\",\n        \"deliveryContainerId\": null,\n        \"type\": \"WAIT\",\n        \"name\": null,\n        \"description\": null,\n        \"executionStage\": 2147483647,\n        \"data\": {\n            \"duration\": 1,\n            \"nextStep\": \"4a389b9b8c\",\n            \"meta\": {},\n            \"timeUnit\": \"DAYS\"\n        }\n    },\n    {\n        \"id\": \"b3a4307eab\",\n        \"deliveryContainerId\": null,\n        \"type\": \"EXECUTE_ACTION\",\n        \"name\": null,\n        \"description\": null,\n        \"executionStage\": 2147483647,\n        \"data\": {\n            \"nextStep\": \"2bfa4150f4\",\n            \"actions\": [\n                {\n                    \"type\": \"SET_PROPERTY\",\n                    \"synchronous\": false,\n                    \"config\": {\n                        \"listId\": null,\n                        \"property\": \"5845\",\n                        \"value\": \"123\"\n                    }\n                }\n            ],\n            \"meta\": {}\n        }\n    },\n    {\n        \"id\": \"178d0fb2b5\",\n        \"deliveryContainerId\": null,\n        \"type\": \"PRIORITY_SEGMENT_SPLIT\",\n        \"name\": null,\n        \"description\": null,\n        \"executionStage\": 2147483647,\n        \"data\": {\n            \"defaultStep\": \"1ac3967df4\",\n            \"meta\": {\n                \"segmentNames\": [\n                    null\n                ]\n            },\n            \"prioritizedSegmentMappings\": [\n                {\n                    \"segment\": null,\n                    \"step\": \"2a8fa201cd\",\n                    \"ruleReference\": 10285\n                }\n            ]\n        }\n    },\n    {\n        \"id\": \"2a8fa201cd\",\n        \"deliveryContainerId\": null,\n        \"type\": \"WEBHOOK\",\n        \"name\": null,\n        \"description\": null,\n        \"executionStage\": 2147483647,\n        \"data\": {\n            \"nextStep\": \"b3a4307eab\",\n            \"webhookIdentifier\": null,\n            \"webhookCustomFields\": null,\n            \"meta\": {}\n        }\n    },\n    {\n        \"id\": \"069af01bcf\",\n        \"deliveryContainerId\": 7189,\n        \"type\": \"SEND_DELIVERY\",\n        \"name\": \"A web push delivery name\",\n        \"description\": null,\n        \"executionStage\": 2147483647,\n        \"data\": {\n            \"timeoutStep\": null,\n            \"meta\": {\n                \"channel\": \"WEB_PUSH\"\n            },\n            \"sendTimeMinute\": 0,\n            \"ignoreOptOut\": false,\n            \"nextStep\": \"1b9e829e31\",\n            \"acceptStep\": \"1b9e829e31\",\n            \"sendTimezone\": null,\n            \"rejectStep\": null,\n            \"sendTimeHour\": 0,\n            \"maxDuration\": 1,\n            \"timeUnit\": \"DAYS\"\n        }\n    },\n    {\n        \"id\": \"46db5337b9\",\n        \"deliveryContainerId\": null,\n        \"type\": \"API_WAIT\",\n        \"name\": null,\n        \"description\": null,\n        \"executionStage\": 2147483647,\n        \"data\": {\n            \"agentActionName\": null,\n            \"timeoutStep\": \"a95095be07\",\n            \"webhookIdentifier\": \"yo\",\n            \"webhookCustomFields\": {},\n            \"meta\": {},\n            \"acceptStep\": \"1afc1f6cbc\",\n            \"rejectStep\": \"dfaae391c0\",\n            \"maxDuration\": 1,\n            \"timeUnit\": \"DAYS\",\n            \"sendWebhook\": true\n        }\n    },\n    {\n        \"id\": \"aa79bdc417\",\n        \"deliveryContainerId\": 7175,\n        \"type\": \"SEND_DELIVERY\",\n        \"name\": \"An email delivery name,\n        \"description\": null,\n        \"executionStage\": 2147483647,\n        \"data\": {\n            \"timeoutStep\": null,\n            \"meta\": {\n                \"sendGate2SplitControls\": false,\n                \"hasCampaign\": 1011725,\n                \"channel\": \"EMAIL\"\n            },\n            \"sendTimeMinute\": 0,\n            \"ignoreOptOut\": false,\n            \"nextStep\": null,\n            \"acceptStep\": null,\n            \"sendTimezone\": null,\n            \"rejectStep\": null,\n            \"sendTimeHour\": 0,\n            \"maxDuration\": 1,\n            \"timeUnit\": \"DAYS\"\n        }\n    },\n    {\n        \"id\": \"524c6a5119\",\n        \"deliveryContainerId\": 7176,\n        \"type\": \"SEND_DELIVERY\",\n        \"name\": \"\",\n        \"description\": null,\n        \"executionStage\": 2147483647,\n        \"data\": {\n            \"timeoutStep\": null,\n            \"meta\": {\n                \"sendGate2SplitControls\": false,\n                \"hasCampaign\": 1011726,\n                \"channel\": \"EMAIL\"\n            },\n            \"sendTimeMinute\": 0,\n            \"ignoreOptOut\": false,\n            \"nextStep\": null,\n            \"acceptStep\": null,\n            \"sendTimezone\": null,\n            \"rejectStep\": null,\n            \"sendTimeHour\": 0,\n            \"maxDuration\": 1,\n            \"timeUnit\": \"DAYS\"\n        }\n    },\n    {\n        \"id\": \"2bfa4150f4\",\n        \"deliveryContainerId\": null,\n        \"type\": \"CONTROL_POINT\",\n        \"name\": \"Customized group name\",\n        \"description\": null,\n        \"executionStage\": 2147483647,\n        \"data\": {\n            \"nextStep\": \"a141385366\",\n            \"meta\": {}\n        }\n    },\n    {\n        \"id\": \"4a389b9b8c\",\n        \"deliveryContainerId\": null,\n        \"type\": \"WAIT_UNTIL_DATE\",\n        \"name\": null,\n        \"description\": null,\n        \"executionStage\": 2147483647,\n        \"data\": {\n            \"nextStep\": \"ed558b712f\",\n            \"strategy\": \"DAY_OF_WEEK\",\n            \"meta\": {},\n            \"values\": [\n                \"2\"\n            ]\n        }\n    },\n    {\n        \"id\": \"acdf0476c4\",\n        \"deliveryContainerId\": 7191,\n        \"type\": \"SEND_DELIVERY\",\n        \"name\": \"A print delivery name\",\n        \"description\": null,\n        \"executionStage\": 2147483647,\n        \"data\": {\n            \"timeoutStep\": null,\n            \"meta\": {\n                \"channel\": \"PRINT\"\n            },\n            \"sendTimeMinute\": 0,\n            \"ignoreOptOut\": false,\n            \"nextStep\": \"aa87c7fe70\",\n            \"acceptStep\": \"aa87c7fe70\",\n            \"sendTimezone\": null,\n            \"rejectStep\": null,\n            \"sendTimeHour\": 0,\n            \"maxDuration\": 1,\n            \"timeUnit\": \"DAYS\"\n        }\n    },\n    {\n        \"id\": \"1b9e829e31\",\n        \"deliveryContainerId\": 7190,\n        \"type\": \"SEND_DELIVERY\",\n        \"name\": null,\n        \"description\": null,\n        \"executionStage\": 2147483647,\n        \"data\": {\n            \"timeoutStep\": null,\n            \"meta\": {\n                \"channel\": \"AUDIO\"\n            },\n            \"sendTimeMinute\": 0,\n            \"ignoreOptOut\": false,\n            \"nextStep\": \"acdf0476c4\",\n            \"acceptStep\": \"acdf0476c4\",\n            \"sendTimezone\": null,\n            \"rejectStep\": null,\n            \"sendTimeHour\": 0,\n            \"maxDuration\": 1,\n            \"timeUnit\": \"DAYS\"\n        }\n    },\n    {\n        \"id\": \"709bab53e3\",\n        \"deliveryContainerId\": 7187,\n        \"type\": \"SEND_DELIVERY\",\n        \"name\": \"An SMS delivery name\",\n        \"description\": null,\n        \"executionStage\": 2147483647,\n        \"data\": {\n            \"timeoutStep\": null,\n            \"meta\": {\n                \"channel\": \"SMS\"\n            },\n            \"sendTimeMinute\": 0,\n            \"ignoreOptOut\": false,\n            \"nextStep\": \"37deee0a6e\",\n            \"acceptStep\": \"37deee0a6e\",\n            \"sendTimezone\": null,\n            \"rejectStep\": null,\n            \"sendTimeHour\": 0,\n            \"maxDuration\": 1,\n            \"timeUnit\": \"DAYS\"\n        }\n    },\n    {\n        \"id\": \"80e418392c\",\n        \"deliveryContainerId\": null,\n        \"type\": \"PRIORITY_WAIT\",\n        \"name\": null,\n        \"description\": null,\n        \"executionStage\": 2147483647,\n        \"data\": {\n            \"priorityWaitId\": 53,\n            \"timeoutStep\": null,\n            \"meta\": {\n                \"automaticRetry\": false\n            },\n            \"acceptStep\": \"46db5337b9\",\n            \"rejectStep\": \"ef82904181\",\n            \"maxDuration\": 2,\n            \"timeUnit\": \"DAYS\"\n        }\n    },\n    {\n        \"id\": \"f5cf8d05e6\",\n        \"deliveryContainerId\": null,\n        \"type\": \"WEIGHTED_SPLIT\",\n        \"name\": null,\n        \"description\": null,\n        \"executionStage\": 2147483647,\n        \"data\": {\n            \"meta\": {\n                \"equalSplits\": true\n            },\n            \"splits\": [\n                {\n                    \"step\": \"178d0fb2b5\",\n                    \"weight\": 0\n                },\n                {\n                    \"step\": \"34e648c5b5\",\n                    \"weight\": 0\n                }\n            ]\n        }\n    },\n    {\n        \"id\": \"ed558b712f\",\n        \"deliveryContainerId\": null,\n        \"type\": \"SEGMENT_WAIT\",\n        \"name\": null,\n        \"description\": null,\n        \"executionStage\": 2147483647,\n        \"data\": {\n            \"timeoutStep\": \"c41ddfa1ef\",\n            \"ruleReference\": 10285,\n            \"meta\": {\n                \"segmentName\": null\n            },\n            \"segment\": {},\n            \"nextStep\": \"80e418392c\",\n            \"maxDuration\": 5,\n            \"timeUnit\": \"DAYS\"\n        }\n    }\n]"}],"_postman_id":"310da601-7025-4b09-867f-490af0348ead"},{"name":"Update Journey","id":"1c846e51-678b-4ce8-8805-4c7df5352830","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"X-Carma-Authentication-Token","type":"text","value":"{{token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n  \"name\": \"\",\r\n  \"description\": \"\",\r\n  \"reenterAllowed\": false,\r\n  \"data\": {\r\n    \"empty\": false\r\n  }\r\n}"},"url":"{{url}}/{{customerId}}/journeys/{journeyId}","urlObject":{"path":["{{customerId}}","journeys","{journeyId}"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"1c846e51-678b-4ce8-8805-4c7df5352830"}],"id":"57cdae18-acf4-429a-a1e7-59376cfdb897","_postman_id":"57cdae18-acf4-429a-a1e7-59376cfdb897","description":""},{"name":"Start journey (multiple contacts)","item":[{"name":"Start import","event":[{"listen":"test","script":{"id":"9bdbe2e3-b773-45ba-a93d-b6d3f3f8bd1e","exec":["","var jsonData = pm.response.json();","postman.setEnvironmentVariable(\"uploadUrl\", jsonData.uploadUrl);","",""],"type":"text/javascript"}}],"id":"64e975ff-f0df-48c4-9428-370ef93162d1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-Carma-Authentication-Token","type":"text","value":"{{token}}"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"type\": \"JOURNEY_COMMENCE\",\r\n  \"entityId\": {journeyId},\r\n  \"saveProps\": true,\r\n  \"customData\": {\r\n    \"empty\": false\r\n  },\r\n  \"downloadUrl\": \"\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/{{customerId}}/batchtrigger/v2","description":"<p>Initiate the import.</p>\n<p>If downloadUrl is specified, the file will be downloaded immediately, and the batch will start automatically.</p>\n<p>Otherwise the response will include an <strong>uploadUrl</strong>, to which the file must be uploaded. The uploadUrl is valid for 12 hours.</p>\n<p>The data file is expected to be an UTF8-encoded text file where each line is in a JSON object (see introduction)</p>\n<p>Any contacts not already present in the system will be automatically created; already existing contacts will be 'touched'.</p>\n","urlObject":{"path":["{{customerId}}","batchtrigger","v2"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"664821cc-f9b6-4f63-a75e-68c602f1a655","name":"No downloadUrl","originalRequest":{"method":"POST","header":[{"key":"X-Carma-Authentication-Token","type":"text","value":"{{token}}"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"type\": \"JOURNEY_COMMENCE\",\r\n  \"entityId\": 17599,\r\n  \"saveProps\": true,\r\n  \"contentType\": \"text/plain\",\r\n  \"customData\": {\r\n    \"empty\": false\r\n  },\r\n  \"downloadUrl\": \"\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/{{customerId}}/batchtrigger/v2"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Wed, 15 Feb 2023 09:26:13 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Content-Type-Options","value":"nosniff"}],"cookie":[],"responseTime":null,"body":"{\n    \"uploadUrl\": \"https://symplify-batchtrigger-test.cellar-c2.services.clever-cloud.com/uploads/www4/2132132714244187616a2fd9b971428a36cf0ffbf406614aba8b52ea751120240cdaf0d2f582?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20230215T092613Z&X-Amz-SignedHeaders=content-type%3Bhost&X-Amz-Expires=43200&X-Amz-Credential=7592P7HGPDWAYHHO8W7Q%2F20230215%2request&X-Amz-Signature=5db617bf8ab078f7fa21ada7f9ab7aa1acc9f360f7\",\n    \"status\": \"WAITING_FOR_UPLOAD\",\n    \"batchProgressUri\": \"/rest/3000/batches/future/oTrTq8II2VcyKUoqd9SRdYZGClmSTi2I\",\n    \"batchProgressToken\": \"oTrTq8II2VcyKUoqd9SRdYZGClmSTi2I\"\n}"},{"id":"4cf53d25-dec8-43c2-b8bb-2bd59babec6c","name":"With downloadUrl","originalRequest":{"method":"POST","header":[{"key":"X-Carma-Authentication-Token","type":"text","value":"{{token}}"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"type\": \"JOURNEY_COMMENCE\",\r\n  \"entityId\": 17599,\r\n  \"saveProps\": true,\r\n  \"contentType\": \"text/plain\",\r\n  \"customData\": {\r\n    \"empty\": false\r\n  },\r\n  \"downloadUrl\": \"http://yourfilestorage.com/folder/file_for_upload.txt\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/{{customerId}}/batchtrigger/v2"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Wed, 15 Feb 2023 09:34:23 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Content-Type-Options","value":"nosniff"}],"cookie":[],"responseTime":null,"body":"{\n    \"uploadUrl\": null,\n    \"status\": \"PENDING\",\n    \"batchProgressUri\": \"/rest/3000/batches/future/FpdHLEhl98uLHFfRBCK1VpMPUGWbaN6z\",\n    \"batchProgressToken\": \"FpdHLEhl98uLHFfRBCK1VpMPUGWbaN6z\"\n}"},{"id":"b8363278-a699-48d5-ad24-bf427f841f01","name":"409 - Already triggered (CM)","originalRequest":{"method":"POST","header":[{"key":"X-Carma-Authentication-Token","type":"text","value":"{{token}}"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"type\": \"JOURNEY_COMMENCE\",\r\n  \"entityId\": 17611,\r\n  \"saveProps\": true,\r\n  \"contentType\": \"text/plain\",\r\n  \"customData\": {\r\n    \"empty\": false\r\n  },\r\n  \"downloadUrl\": \"\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/{{customerId}}/batchtrigger/v2"},"status":"Conflict","code":409,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Wed, 15 Feb 2023 09:55:38 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Content-Type-Options","value":"nosniff"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Journey cannot be triggered - status is ALREADY_TRIGGERED\"\n}"},{"id":"cf4b11bb-ebdf-4e1b-907d-aab57c3ee399","name":"409 - No active version (CM)","originalRequest":{"method":"POST","header":[{"key":"X-Carma-Authentication-Token","type":"text","value":"{{token}}"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"type\": \"JOURNEY_COMMENCE\",\r\n  \"entityId\": 17621,\r\n  \"saveProps\": true,\r\n  \"contentType\": \"text/plain\",\r\n  \"customData\": {\r\n    \"empty\": false\r\n  },\r\n  \"downloadUrl\": \"\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/{{customerId}}/batchtrigger/v2"},"status":"Conflict","code":409,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Wed, 15 Feb 2023 09:56:19 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Content-Type-Options","value":"nosniff"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Journey cannot be triggered - status is NO_ACTIVE_VERSION\"\n}"}],"_postman_id":"64e975ff-f0df-48c4-9428-370ef93162d1"},{"name":"Upload file","id":"30030196-b8d0-448a-ab05-c6c4e9179fe0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"X-Carma-Authentication-Token","type":"text","value":"{{token}}"},{"key":"Content-Type","name":"Content-Type","value":"text/plain","type":"text"}],"body":{"mode":"file","file":{"src":"/Users/oida/Downloads/json_file.txt"}},"url":"{uploadUrl}","description":"<p>You may now upload the contact file using a PUT to the uploadUrl specified in the previous response.</p>\n<p>The batch will start within seconds after the file has been uploaded.</p>\n<p>Please note:</p>\n<ul>\n<li>The value of <strong>Content-Type</strong> header should be <strong>text/plain</strong></li>\n<li>The uploaded file should be UTF-8 encoded.</li>\n<li>The uploadUrl is valid for 12 hours.</li>\n<li>The file must be publically available for download. For this reason, it is recommended that it's protected using a secure, time-based signature.</li>\n</ul>\n","urlObject":{"host":["{uploadUrl}"],"query":[],"variable":[]}},"response":[{"id":"bf21ca72-bb6c-4799-af9c-b28a3f07c2ec","name":"Upload file","originalRequest":{"method":"PUT","header":[{"key":"X-Carma-Authentication-Token","type":"text","value":"{{token}}"},{"key":"Content-Type","name":"Content-Type","value":"text/plain","type":"text"}],"body":{"mode":"file","file":{"src":"/Users/oida/Downloads/json_file.txt"}},"url":{"raw":"https://symplify-batchtrigger-test.cellar-c2.services.clever-cloud.com/uploads/www4/2132132714244187616a2fd9abadd37e8b52ea751120240cdaf0d2f582?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20230215T092613Z&X-Amz-SignedHeaders=content-type%3Bhost&X-Amz-Expires=43200&X-Amz-Credential=7592P7HGPDWAYHHO8W7Q%2F20230215%request&X-Amz-Signature=5db617bf8ab078f7fa21ada7fd56e179773a1acc","protocol":"https","host":["symplify-batchtrigger-test","cellar-c2","services","clever-cloud","com"],"path":["uploads","www4","2132132714244187616a2fd9abadd37e8b52ea751120240cdaf0d2f582"],"query":[{"key":"X-Amz-Algorithm","value":"AWS4-HMAC-SHA256"},{"key":"X-Amz-Date","value":"20230215T092613Z"},{"key":"X-Amz-SignedHeaders","value":"content-type%3Bhost"},{"key":"X-Amz-Expires","value":"43200"},{"key":"X-Amz-Credential","value":"7592P7HGPDWAYHHO8W7Q%2F20230215%request"},{"key":"X-Amz-Signature","value":"5db617bf8ab078f7fa21ada7fd56e179773a1acc"}]}},"status":"OK","code":200,"_postman_previewlanguage":"plain","header":[{"key":"content-length","value":"0"},{"key":"ETag","value":"\"d41d8cd98f00b204e9800998ecf8427e\""},{"key":"accept-ranges","value":"bytes"},{"key":"x-amz-expiration","value":"expiry-date=\"Wed, 01 Mar 2023 09:26:44 GMT\", rule-id=\"default-lifecycle-1.0.0\""},{"key":"x-amz-request-id","value":"tx00000000000002b2e2e18-0063eca554-1763aec9-default"},{"key":"date","value":"Wed, 15 Feb 2023 09:26:44 GMT"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"30030196-b8d0-448a-ab05-c6c4e9179fe0"},{"name":"Import status","id":"5bf30982-7b3a-466a-8cc0-cbb6891f9e8b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Carma-Authentication-Token","type":"text","value":"{{token}}"}],"url":"{{url}}/{{customerId}}/batches/future/{batchProgressToken}","description":"<p>The response when initiating an import will include <code>batchProgressUri</code> (endpoint and batchProgressToken) and <code>batchProgressToken</code>, which can be used to check the status of an import.</p>\n<p>The respons will include any of the statuses:</p>\n<ul>\n<li><strong>PENDING</strong> (about to start)</li>\n<li><strong>IN_PROGRESS</strong> (importing)</li>\n<li><strong>FINISHED</strong> (Import completed)</li>\n<li><strong>ERROR</strong> (Import failed)</li>\n</ul>\n","urlObject":{"path":["{{customerId}}","batches","future","{batchProgressToken}"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"4fff5b45-a7db-442a-8415-7008438fe270","name":"Import status","originalRequest":{"method":"GET","header":[{"key":"X-Carma-Authentication-Token","type":"text","value":"{{token}}"},{"key":"Content-Type","name":"Content-Type","value":"text/plain","type":"text","disabled":true}],"url":"{{url}}/{{customerId}}/batches/future/{batchProgressToken}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Tue, 28 Nov 2023 10:56:08 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Content-Type-Options","value":"nosniff"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 39293396,\n    \"type\": \"BATCHTRIGGER_JOURNEY_COMMENCE\",\n    \"customerId\": 3000,\n    \"startTime\": 1701168866247,\n    \"endTime\": 1701168873607,\n    \"affected\": 20,\n    \"processed\": 20,\n    \"total\": 20,\n    \"status\": \"FINISHED\"\n}"}],"_postman_id":"5bf30982-7b3a-466a-8cc0-cbb6891f9e8b"}],"id":"6dbe5ceb-1cbb-4db7-8aa6-404ff4b271d3","description":"<p><em>This guide is about triggering multiple contacts to a</em> <a href=\"https://help.symplify.com/hc/en-us/articles/360037812293\"><i>journey</i></a> <em>or a</em> <a href=\"https://help.symplify.com/hc/en-us/articles/4403679007250\"><i>campaign in Campaign Manager</i></a><em>.</em></p>\n<p>Say that you have a large number of contacts gathered in some other system that you want to trigger a journey or a campaign for at the same time. To accomplish this you should use the batchtrigger endpoint of the Symplify REST API.</p>\n<p><em>Note for Journeys: this endpoint is only intended for when you have a number of contacts that should be entered at the same time; this endpoint is not intended for use when entering individual contacts to a Journey. For that purpose, please use the</em> <a href=\"https://apidocs.symplify.com/#70163ac9-64d4-4d09-ab76-2bf4141a9589\"><i>single request</i></a><em>.</em></p>\n<h2 id=\"prerequisites\">Prerequisites</h2>\n<p>The API batch starter requires an input file with JSON rows representing each individual contact to be added to the journey/campaign:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\"id\": \"0\", \"properties\": {\"emailAddress\": \"the_boss@example.com\", \"firstname\": \"Bruce\", \"attributeName\": \"yes\"}}\n{\"id\": \"1\", \"properties\": {\"emailAddress\": \"aretha.f@example.com\", \"firstname\": \"Aretha\", \"attributeName\": \"yes\"}}\n{\"id\": \"2\", \"properties\": {\"emailAddress\": \"ladygaga@example.com\", \"firstname\": \"Lady\", \"attributeName\": \"no\"}}\n\n</code></pre><p>NOTE: Each row in the input file needs to be a separate JSON object. Do NOT use a JSON array.</p>\n<p>The \"<strong>id</strong>\" attribute of each JSON object in the file represents the <strong>original id</strong> of the contact. The \"properties\" attribute can be used to supply additional data with each contact for use, e.g. in segments or placeholders.</p>\n<p>The contact file can be supplied to Symplify in two different ways: Symplify can download the file from a specified URI, or it can be accepted as a PUT to a pre-signed URI received from the Symplify API.</p>\n<p>You will initiate using a POST and the request payload will be different depending on which approach you use.</p>\n<p>You can include data and use <code>\"saveProps\": false</code>. By doing so, included default attributes, such as email address and date of birth, will get updated <strong>but not custom attributes</strong>.</p>\n<p>The custom attributes, will not overwrite the data on the contact but can be used for content rendering (content segment and placeholders) throughout the journey. However, the temporary journey data can not be used in segment splits.</p>\n<h3 id=\"include-the-same-contact-multiple-times\">Include the same contact multiple times</h3>\n<p>By default, a contact that is found multiple times in a file, will only enter the journey one time (and any other rows will fail).<br />However, it is possible to enter a specific contact multiple times with the same file.<br />This means that if original id 2 is found two times in a file, the contact will enter the journey two times (on different trips) and run throughout the journey on separate trips.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\"id\": \"0\", \"properties\": {\"emailAddress\": \"the_boss@example.com\", \"firstname\": \"Bruce\", \"attributeName\": \"yes\"}}\n{\"id\": \"1\", \"properties\": {\"emailAddress\": \"aretha.f@example.com\", \"firstname\": \"Aretha\", \"attributeName\": \"yes\"}}\n{\"id\": \"2\", \"properties\": {\"emailAddress\": \"ladygaga@example.com\", \"firstname\": \"Lady\", \"attributeName\": \"no\"}}\n{\"id\": \"2\", \"properties\": {\"emailAddress\": \"ladygaga@example.com\", \"firstname\": \"Lady\", \"attributeName\": \"yes\"}}\n\n</code></pre><p>The functionality needs activation on your account so please reach out to your Success manager if you want to learn more and activate. This will affect all your journeys (using multiple API starter).</p>\n<h3 id=\"include-datadocs\">Include DataDocs</h3>\n<p>If you want to refer to one or more specific document(s) in your journey you need to define these when triggering the contacts.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\"id\": \"1\",\"properties\": {\"level\": \"silver\"},\"dataDocs\": [{\"documentTypeId\": 38,\"externalId\": \"2023-2\"}, {\"documentTypeId\": 39,\"externalId\": \"A-2023-1\"}]}\n{\"id\": \"2\",\"properties\": {\"level\": \"silver\"},\"dataDocs\": [{\"documentTypeId\": 38,\"externalId\": \"2023-3-1\"}]}\n\n</code></pre><p>The targeted documents will be included in all your steps and can be used in placeholders for rendering content or segment splits.</p>\n","_postman_id":"6dbe5ceb-1cbb-4db7-8aa6-404ff4b271d3"},{"name":"Start journey (single contact)","id":"70163ac9-64d4-4d09-ab76-2bf4141a9589","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-Carma-Authentication-Token","type":"text","value":"{{token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n  \"originalId\": \"originalId\",\r\n  \"properties\": {\r\n  \t\"emailAddress\": \"john@example.com\",\r\n  \t\"firstName\": \"John\",\r\n  \t\"lastName\": \"Doe\",\r\n  \t\"mobileNumber\": \"123456789\"\r\n  },\r\n  \"saveProps\": false\r\n}"},"url":"{{url}}/{{customerId}}/journeys/{journeyId}/commence","description":"<p>The journey commence triggers one journey for one single contact.</p>\n<p>You can include data and use <code>\"saveProps\": false</code>. By doing so, included default attributes, such as email address and date of birth, will get updated <strong>but not custom attributes</strong>.</p>\n<p>The custom attributes, will not overwrite the data on the contact but can be used for content rendering (content segment and placeholders) throughout the journey. However, the temporary journey data can not be used in segment splits.</p>\n<h3 id=\"refer-to-datadocs\">Refer to DataDocs</h3>\n<p>If you want to trigger a journey and refer to one or more specific documents you include the document type and the externalId in the body (see example \"Including DataDocs):</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">    \"dataDocs\":\n        [{\n            \"documentTypeId\": {documentTypeId},\n            \"externalId\": \"{externalId}\"\n        }]\n\n</code></pre>\n<p>The targeted documents will be included in all your steps and can be used in placeholders for rendering content or segment splits.</p>\n","urlObject":{"path":["{{customerId}}","journeys","{journeyId}","commence"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"1c2209a2-3b2f-4663-bf98-f728c255711c","name":"200","originalRequest":{"method":"POST","header":[{"key":"X-Carma-Authentication-Token","type":"text","value":"{{token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n  \"originalId\": \"1\",\r\n  \"properties\": {\r\n  \t\"emailAddress\": \"john@example.com\",\r\n  \t\"firstName\": \"John\",\r\n  \t\"lastName\": \"Doe\",\r\n  \t\"mobileNumber\": \"123456789\"\r\n  },\r\n  \"saveProps\": false\r\n}"},"url":"{{url}}/{{customerId}}/journeys/{journeyId}/commence"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Wed, 15 Feb 2023 09:21:43 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"0"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Content-Type-Options","value":"nosniff"}],"cookie":[],"responseTime":null,"body":null},{"id":"93252381-1788-46f6-a660-ec0c3f07bf29","name":"Including DataDocs","originalRequest":{"method":"POST","header":[{"key":"X-Carma-Authentication-Token","type":"text","value":"{{token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n    \"originalId\": \"404401\",\r\n    \"dataDocs\":\r\n        [{\r\n            \"documentTypeId\": 38,\r\n            \"externalId\": \"2023-2\"\r\n        }],\r\n        \r\n    \"properties\": \r\n        {\r\n        \"level\": \"silver\"\r\n        },\r\n  \"saveProps\": false\r\n    }"},"url":"{{url}}/{{customerId}}/journeys/1825/commence"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Thu, 11 May 2023 12:40:06 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"0"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Content-Type-Options","value":"nosniff"}],"cookie":[],"responseTime":null,"body":null},{"id":"819313e9-d9cb-465a-a2fd-38123fb10a2f","name":"404 - No active journey version","originalRequest":{"method":"POST","header":[{"key":"X-Carma-Authentication-Token","type":"text","value":"{{token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n  \"originalId\": \"1\",\r\n  \"properties\": {\r\n  \t\"emailAddress\": \"john@example.com\",\r\n  \t\"firstName\": \"John\",\r\n  \t\"lastName\": \"Doe\",\r\n  \t\"mobileNumber\": \"123456789\"\r\n  },\r\n  \"saveProps\": false\r\n}"},"url":"{{url}}/{{customerId}}/journeys/{journeyId}/commence"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Wed, 15 Feb 2023 09:19:18 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Content-Type-Options","value":"nosniff"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Incorrect result size: expected 1, actual 0\"\n}"}],"_postman_id":"70163ac9-64d4-4d09-ab76-2bf4141a9589"},{"name":"Start journey (single contact) with PDF attachment","id":"751fed93-12ec-47db-be03-55b9f3104b51","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-Carma-Authentication-Token","type":"text","value":"{{token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n  \"originalId\": \"originalId\",\r\n  \"attachmentUrl\": \"https://stcustomerdspcommunidev.blob.core.windows.net/invoice-pdf/2023/order_1234_invoice_5678.pdf?sp=r&st=2023-06-13T08:32:11Z&se=2024-06-13T16:32:11Z&spr=https&sv=2022-11-02&sr=b&sig=kmEmRodA977MUaLnr2N2%2FS3FtPPde0aSEqv3ZcWIeas%3D\",\r\n  \"properties\": {\r\n    \"emailAddress\": \"john@example.com\",\r\n    \"firstName\": \"John\",\r\n    \"lastName\": \"Doe\",\r\n    \"mobileNumber\": \"123456789\"\r\n  },\r\n  \"saveProps\": false\r\n}"},"url":"{{url}}/{{customerId}}/journeys/{journeyId}/commence","description":"<p>When triggering a transactional email in a journey for a single contact you can include a PDF attachment.</p>\n<p>You store the files on your end and make sure that they are reachable for the service.</p>\n<p>It is our strongest recommendation to use presigned URL's to the files to ensure maximum security.</p>\n<p>Ensure that the sendout step in your journey is allowing PDF attachments.</p>\n<p>Please note that this is an add-on feature. Reach out to your Success manager at Symplify to learn more.</p>\n","urlObject":{"path":["{{customerId}}","journeys","{journeyId}","commence"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"a4a2680e-d829-445d-8748-86406d9e7b56","name":"200","originalRequest":{"method":"POST","header":[{"key":"X-Carma-Authentication-Token","type":"text","value":"{{token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n  \"originalId\": \"1\",\r\n  \"properties\": {\r\n  \t\"emailAddress\": \"john@example.com\",\r\n  \t\"firstName\": \"John\",\r\n  \t\"lastName\": \"Doe\",\r\n  \t\"mobileNumber\": \"123456789\"\r\n  },\r\n  \"saveProps\": false\r\n}"},"url":"{{url}}/{{customerId}}/journeys/{journeyId}/commence"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Wed, 15 Feb 2023 09:21:43 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"0"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Content-Type-Options","value":"nosniff"}],"cookie":[],"responseTime":null,"body":null},{"id":"e29adb43-45fa-4e33-a768-bfc2eb4db6cd","name":"Including DataDocs","originalRequest":{"method":"POST","header":[{"key":"X-Carma-Authentication-Token","type":"text","value":"{{token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n    \"originalId\": \"404401\",\r\n    \"dataDocs\":\r\n        [{\r\n            \"documentTypeId\": 38,\r\n            \"externalId\": \"2023-2\"\r\n        }],\r\n        \r\n    \"properties\": \r\n        {\r\n        \"level\": \"silver\"\r\n        },\r\n  \"saveProps\": false\r\n    }"},"url":"{{url}}/{{customerId}}/journeys/1825/commence"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Thu, 11 May 2023 12:40:06 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"0"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Content-Type-Options","value":"nosniff"}],"cookie":[],"responseTime":null,"body":null},{"id":"a05f24f6-777f-4178-afb8-229e163ab4ed","name":"404 - No active journey version","originalRequest":{"method":"POST","header":[{"key":"X-Carma-Authentication-Token","type":"text","value":"{{token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n  \"originalId\": \"1\",\r\n  \"properties\": {\r\n  \t\"emailAddress\": \"john@example.com\",\r\n  \t\"firstName\": \"John\",\r\n  \t\"lastName\": \"Doe\",\r\n  \t\"mobileNumber\": \"123456789\"\r\n  },\r\n  \"saveProps\": false\r\n}"},"url":"{{url}}/{{customerId}}/journeys/{journeyId}/commence"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Wed, 15 Feb 2023 09:19:18 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Content-Type-Options","value":"nosniff"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Incorrect result size: expected 1, actual 0\"\n}"}],"_postman_id":"751fed93-12ec-47db-be03-55b9f3104b51"}],"id":"5320b106-29df-42ff-a674-cb953c3c7b36","_postman_id":"5320b106-29df-42ff-a674-cb953c3c7b36","description":""},{"name":"Purchase History","item":[{"name":"GET & SET columns","item":[{"name":"Get PH column mapping","event":[{"listen":"test","script":{"id":"1ef22377-25de-41cc-8580-a5a9f437589f","exec":[""],"type":"text/javascript"}}],"id":"9c1f290a-f53d-48cb-9e84-8ee30fb072af","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"X-Carma-Authentication-Token","value":"{{token}}"},{"key":"Content-Type","type":"text","value":"application/json"}],"url":"{{url}}/{{customerId}}/purchasehistory/columns","urlObject":{"path":["{{customerId}}","purchasehistory","columns"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"dbb70638-20d3-4bd9-b9de-86a5b04405ec","name":"Get PH column mapping","originalRequest":{"method":"GET","header":[{"key":"X-Carma-Authentication-Token","value":"{{token}}"},{"key":"Content-Type","type":"text","value":"application/json"}],"url":"{{url}}/{{customerId}}/purchasehistory/columns"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Fri, 10 Feb 2023 14:31:48 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Content-Type-Options","value":"nosniff"}],"cookie":[],"responseTime":null,"body":"{\n    \"column1\": \"product\",\n    \"column2\": \"startdate\",\n    \"column3\": \"enddate\",\n    \"column4\": \"C4\",\n    \"column5\": \"C5\",\n    \"column6\": \"C6\",\n    \"column7\": \"C7\",\n    \"column8\": \"C8\",\n    \"column9\": null,\n    \"column10\": \"null\",\n    \"column11\": \"null\",\n    \"column12\": \"null\",\n    \"column13\": \"null\",\n    \"column14\": \"null\",\n    \"column15\": \"null\",\n    \"column16\": null,\n    \"column17\": null,\n    \"column18\": null,\n    \"column19\": null,\n    \"column20\": null,\n    \"column21\": null,\n    \"column22\": null,\n    \"column23\": null,\n    \"column24\": null,\n    \"column25\": null,\n    \"column26\": null\n}"}],"_postman_id":"9c1f290a-f53d-48cb-9e84-8ee30fb072af"},{"name":"Set PH column mapping","event":[{"listen":"test","script":{"id":"1ef22377-25de-41cc-8580-a5a9f437589f","exec":[""],"type":"text/javascript"}}],"id":"f431400a-f325-4128-8976-9a1de339041e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"PUT","header":[{"key":"X-Carma-Authentication-Token","value":"{{token}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n  \"column1\": \"sku\",\r\n  \"column2\": \"Category1\",\r\n  \"column3\": \"Category2\",\r\n  \"column4\": \"Color\",\r\n  \"column5\": \"Size\",\r\n  \"column6\": \"column 6\",\r\n  \"column7\": \"\",\r\n  \"column8\": \"\",\r\n  \"column9\": \"\",\r\n  \"column10\": \"\",\r\n  \"column11\": \"\",\r\n  \"column12\": \"\",\r\n  \"column13\": \"\",\r\n  \"column14\": \"\",\r\n  \"column15\": \"\",\r\n  \"column16\": \"\",\r\n  \"column17\": \"\",\r\n  \"column18\": \"\",\r\n  \"column19\": \"\",\r\n  \"column20\": \"\",\r\n  \"column21\": \"\",\r\n  \"column22\": \"\",\r\n  \"column23\": \"\",\r\n  \"column24\": \"\",\r\n  \"column25\": \"\",\r\n  \"column26\": \"\"\r\n}"},"url":"{{url}}/{{customerId}}/purchasehistory/columns","urlObject":{"path":["{{customerId}}","purchasehistory","columns"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"13cae020-b4f4-47c4-ad4f-06d857a81bf1","name":"Set PH column mapping","originalRequest":{"method":"PUT","header":[{"key":"X-Carma-Authentication-Token","value":"{{token}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n  \"column1\": \"\",\r\n  \"column2\": \"\",\r\n  \"column3\": \"\",\r\n  \"column4\": \"\",\r\n  \"column5\": \"\",\r\n  \"column6\": \"\",\r\n  \"column7\": \"\",\r\n  \"column8\": \"Color\",\r\n  \"column9\": \"Size\",\r\n  \"column10\": \"\",\r\n  \"column11\": \"\",\r\n  \"column12\": \"\",\r\n  \"column13\": \"\",\r\n  \"column14\": \"\",\r\n  \"column15\": \"\",\r\n  \"column16\": \"\",\r\n  \"column17\": \"\",\r\n  \"column18\": \"\",\r\n  \"column19\": \"\",\r\n  \"column20\": \"\",\r\n  \"column21\": \"\",\r\n  \"column22\": \"\",\r\n  \"column23\": \"\",\r\n  \"column24\": \"\",\r\n  \"column25\": \"\",\r\n  \"column26\": \"\"\r\n}"},"url":"{{url}}/{{customerId}}/purchasehistory/columns"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Fri, 10 Feb 2023 14:40:18 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"0"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Content-Type-Options","value":"nosniff"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"f431400a-f325-4128-8976-9a1de339041e"}],"id":"9ce90a0b-6894-4a2d-ae89-60b796288b12","description":"<blockquote>\n<p>**Please note that Purchase history is depracated. No new integrations will include this integration option.**The following documentation is only to support already existing integrations.<br />Reach out to your success manager if you have any questions.</p>\n</blockquote>\n","_postman_id":"9ce90a0b-6894-4a2d-ae89-60b796288b12"},{"name":"PH import","item":[{"name":"PH import JSON rows","event":[{"listen":"test","script":{"id":"68d56f2f-20c3-4ead-af80-a897cd23b456","exec":[""],"type":"text/javascript"}}],"id":"9675d5c5-cc54-4871-9ee2-a3242e74929f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"X-Carma-Authentication-Token","value":"{{token}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n    \"rows\": [\r\n    {\r\n    \t\"originalId\": \"abc1\",\r\n        \"column1\": \"sku-1\",\r\n        \"itemPrice\": \"100.00\",\r\n        \"transactionDate\": \"2023-01-01T01:00:00\",\r\n        \"count\": \"1\",\r\n        \"totalPrice\": \"100.00\",\r\n        \"column2\": \"category1\",\r\n        \"column3\": \"category2\",\r\n        \"column4\": \"color\",\r\n        \"column5\": \"size\",\r\n        \"column6\": \"hello world\"\r\n    },\r\n    {\r\n    \t\"originalId\": \"abc1\",\r\n        \"column1\": \"sku-2\",\r\n        \"itemPrice\": \"200.00\",\r\n        \"transactionDate\": \"2023-01-01T02:00:00\",\r\n        \"count\": \"2\",\r\n        \"totalPrice\": \"400.00\",\r\n        \"column2\": \"category1\",\r\n        \"column3\": \"category2\",\r\n        \"column4\": \"color\",\r\n        \"column5\": \"size\",\r\n        \"column6\": \"hello world\"\r\n    },\r\n    {\r\n    \t\"originalId\": \"abc2\",\r\n        \"column1\": \"sku-3\",\r\n        \"itemPrice\": \"300.00\",\r\n        \"transactionDate\": \"2023-01-01T03:00:00\",\r\n        \"count\": \"3\",\r\n        \"totalPrice\": \"900.00\",\r\n        \"column2\": \"category1\",\r\n        \"column3\": \"category2\",\r\n        \"column4\": \"color\",\r\n        \"column5\": \"size\",\r\n        \"column6\": \"hello world\"\r\n    }\r\n]\r\n}"},"url":"{{url}}/{{customerId}}/purchasehistory/rows","urlObject":{"path":["{{customerId}}","purchasehistory","rows"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"9675d5c5-cc54-4871-9ee2-a3242e74929f"},{"name":"PH import file - start job","event":[{"listen":"test","script":{"id":"68d56f2f-20c3-4ead-af80-a897cd23b456","exec":[""],"type":"text/javascript"}}],"id":"c890a28b-c405-4839-9b82-19f0608c8f5f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"X-Carma-Authentication-Token","value":"{{token}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"file","file":{"src":""}},"url":"{{url}}/{{customerId}}/purchasehistory/imports","description":"<blockquote>\n<p><strong>Please note that Purchase history is depracated. No new integrations will include this integration option.</strong><br />The following documentation is only to support already existing integrations. </p>\n</blockquote>\n<blockquote>\n</blockquote>\n<h2 id=\"example-file-rows\"><em>Example file rows</em></h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n    \"rows\": [\n    {\n        \"originalId\": \"originalid-1\",\n        \"column1\": \"sku-1\",\n        \"itemPrice\": \"100.00\",\n        \"transactionDate\": \"2001-01-01T01:00:00\",\n        \"count\": \"1\",\n        \"totalPrice\": \"100.00\",\n        \"column2\": \"category1\",\n        \"column3\": \"category2\",\n        \"column4\": \"color\",\n        \"column5\": \"size\",\n        \"column6\": \"hello world\"\n    }\n]\n}\n\n</code></pre>","urlObject":{"path":["{{customerId}}","purchasehistory","imports"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"c844a8b8-4493-485c-98ba-60ca74598394","name":"PH import file - start job","originalRequest":{"method":"POST","header":[{"key":"X-Carma-Authentication-Token","value":"{{token}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"file","file":{"src":""}},"url":"{{url}}/{{customerId}}/purchasehistory/imports"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Mon, 13 Mar 2023 14:06:29 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Content-Type-Options","value":"nosniff"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"d71ca847-9ea5-4ca0-a56d-1d6bc52b50da\",\n    \"batchId\": 0\n}"}],"_postman_id":"c890a28b-c405-4839-9b82-19f0608c8f5f"},{"name":"PH import - upload file","event":[{"listen":"test","script":{"id":"dc1d7adf-b78d-4c87-a1f3-664782285806","exec":[""],"type":"text/javascript"}}],"id":"8265d3aa-9e8e-4f5a-9387-2be472908fd8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"X-Carma-Authentication-Token","value":"{{token}}"},{"key":"Content-Type","value":"text/csv"}],"body":{"mode":"file","file":{"src":""}},"url":"{{url}}/{{customerId}}/purchasehistory/imports/{importId}/data","description":"<blockquote>\n<p><strong>Please note that Purchase history is depracated. No new integrations will include this integration option.</strong><br />The following documentation is only to support already existing integrations. </p>\n</blockquote>\n<blockquote>\n</blockquote>\n<h2 id=\"example-file-rows\"><em>Example file rows</em></h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n    \"rows\": [\n    {\n        \"originalId\": \"originalid-1\",\n        \"column1\": \"sku-1\",\n        \"itemPrice\": \"100.00\",\n        \"transactionDate\": \"2001-01-01T01:00:00\",\n        \"count\": \"1\",\n        \"totalPrice\": \"100.00\",\n        \"column2\": \"category1\",\n        \"column3\": \"category2\",\n        \"column4\": \"color\",\n        \"column5\": \"size\",\n        \"column6\": \"hello world\"\n    }\n]\n}\n\n</code></pre>","urlObject":{"path":["{{customerId}}","purchasehistory","imports","{importId}","data"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"7651117b-cf37-4f2c-9e25-00dc2a510987","name":"PH import - upload file","originalRequest":{"method":"POST","header":[{"key":"X-Carma-Authentication-Token","value":"{{token}}"},{"key":"Content-Type","value":"text/csv"}],"body":{"mode":"file","file":{"src":"/Users/oida/Downloads/ph.csv"}},"url":"{{url}}/{{customerId}}/purchasehistory/imports/{importId}/data"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Mon, 13 Mar 2023 14:41:01 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Content-Type-Options","value":"nosniff"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"e86ff263-3f6c-4909-9f77-9dad140db339\",\n    \"batchId\": 3524170\n}"}],"_postman_id":"8265d3aa-9e8e-4f5a-9387-2be472908fd8"},{"name":"Get Batch info","event":[{"listen":"test","script":{"id":"92e358be-e2db-46d2-887e-bad9fb5a9252","exec":["pm.environment.unset(\"batchId\");"],"type":"text/javascript"}},{"listen":"prerequest","script":{"id":"3af241f1-e932-4938-8e2f-80216d6b29a5","exec":[""],"type":"text/javascript"}}],"id":"0bc93d98-e306-4482-8f37-f275e3930717","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"X-Carma-Authentication-Token","type":"text","value":"{{token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"{{url}}/{{customerId}}/batches/{batchId}","description":"<blockquote>\n<p><strong>Please note that Purchase history is depracated. No new integrations will include this integration option.</strong><br />The following documentation is only to support already existing integrations. </p>\n</blockquote>\n<h3 id=\"check-batch-status\">Check batch status</h3>\n<p>When the file has successfully been uploaded you can query the API to trace the imports progress. Use the batchId from the previous request. You can keep polling the method until you receive a response with the status set to <em>“FINISHED”</em>. Do not poll too often as that will put unnecessary strain on the system. Polling once every 30 seconds or every minute is normally sufficient.</p>\n<p>Status will go from <strong>PENDING</strong> to <strong>IN_PROGRESS</strong> to <strong>FINISHED</strong>.</p>\n","urlObject":{"path":["{{customerId}}","batches","{batchId}"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"9fccab87-4d8c-4e2f-9dd6-516b53221b19","name":"Get Batch info","originalRequest":{"method":"GET","header":[{"key":"X-Carma-Authentication-Token","type":"text","value":"{{token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"{{url}}/{{customerId}}/batches/3500517"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Wed, 22 Feb 2023 09:25:50 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Content-Type-Options","value":"nosniff"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 3500517,\n    \"type\": \"IMPORT\",\n    \"customerId\": 509,\n    \"startTime\": 1677057932880,\n    \"endTime\": 1677057933167,\n    \"affected\": 2,\n    \"processed\": 2,\n    \"total\": 2,\n    \"status\": \"FINISHED\"\n}"}],"_postman_id":"0bc93d98-e306-4482-8f37-f275e3930717"}],"id":"f9ccfdd7-c8d1-48b6-ad00-7c6e01183ea6","description":"<blockquote>\n<p><strong>Please note that Purchase history is depracated. No new integrations will include this integration option.</strong><br />The following documentation is only to support already existing integrations.  </p>\n</blockquote>\n<p>Reach out to your success manager if you have any questions. </p>\n<p>Before you start, please be aware that batch imports triggered by the API adds an overhead to each included file. You should therefor send larger files less often, rather than smaller files frequently.<br />Recommended minimum import interval is hourly but a new import should not be initiated until a previous import is done (check the batch status).</p>\n<p>If import files are triggered too frequently, the service will respond with a HTTP 429. Your import may also be throttled and placed in queue. In other words, several sequentially imported files will cause an import delay.</p>\n<p>Please observe these recommendations to avoid issues.</p>\n","_postman_id":"f9ccfdd7-c8d1-48b6-ad00-7c6e01183ea6"},{"name":"Get PH for contact by originalId","item":[{"name":"Get PH for contact by originalId","event":[{"listen":"test","script":{"id":"b1b249e7-47d7-4a10-a947-f51ff052d52f","exec":[""],"type":"text/javascript"}}],"id":"378244d8-1315-4355-a275-8934c2879f29","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"X-Carma-Authentication-Token","value":"{{token}}"},{"key":"Content-Type","type":"text","value":"application/json"}],"url":"{{url}}/{{customerId}}/lists/{{listId}}/contacts/{originalId}/purchasehistory","urlObject":{"path":["{{customerId}}","lists","{{listId}}","contacts","{originalId}","purchasehistory"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"378244d8-1315-4355-a275-8934c2879f29"}],"id":"6cf0003f-1e44-4509-a7f9-f34d005cee64","description":"<blockquote>\n<p><strong>Please note that Purchase history is depracated. No new integrations will include this integration option.</strong><br />The following documentation is only to support already existing integrations.</p>\n</blockquote>\n","_postman_id":"6cf0003f-1e44-4509-a7f9-f34d005cee64"}],"id":"cb534120-a347-4542-8652-f61f183dccff","description":"<p><strong>Please note that Purchase history is depracated. No new integrations will include this integration option.</strong></p>\n<p>The following documentation is only to support already existing integrations.</p>\n<p>Reach out to your success manager if you have any questions.</p>\n","_postman_id":"cb534120-a347-4542-8652-f61f183dccff"},{"name":"Event hub","item":[{"name":"GENERIC_USER","id":"51041f5c-1ccb-4be6-acf5-71a63f0b1710","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"content-type":true}},"request":{"method":"POST","header":[{"key":"X-Carma-Authentication-Token","value":"{{token}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"type\": \"GENERIC_USER\",\r\n  \"mappingSelector\": \"{mappingName}\",\r\n  \"contactId\": \"{originalId}\",\r\n  \"properties\": {\r\n    \"attributeName1\": \"value1\",\r\n    \"attributeName2\": \"value2\"\r\n  }\r\n}"},"url":"{{url}}/{{customerId}}/events","description":"<p>The GENERIC_USER type is mostly used for:</p>\n<ul>\n<li>creating a contact</li>\n<li>updating a contact</li>\n<li>entering journeys</li>\n</ul>\n<p>But you can also set default attribute values and anonymize a contact with this type.</p>\n","urlObject":{"path":["{{customerId}}","events"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"56b271fe-7596-409f-b1c4-aeacdcb188a5","name":"GENERIC_USER","originalRequest":{"method":"POST","header":[{"key":"X-Carma-Authentication-Token","value":"{{token}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"type\": \"GENERIC_USER\",\r\n  \"mappingSelector\": \"newContact\",\r\n  \"contactId\": \"123456\",\r\n  \"properties\": {\r\n    \"firstName\": \"Lady Gaga\",\r\n    \"emailaddress\": \"lady.g@example.com\"\r\n  }\r\n}"},"url":"{{url}}/{{customerId}}/events"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Thu, 31 Aug 2023 11:58:16 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"0"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Content-Type-Options","value":"nosniff"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"51041f5c-1ccb-4be6-acf5-71a63f0b1710"},{"name":"GENERIC_USER with PDF attachment","id":"3c2007ea-37c0-4d65-ac9b-a8959b21d9ae","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"content-type":true}},"request":{"method":"POST","header":[{"key":"X-Carma-Authentication-Token","value":"{{token}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"type\": \"GENERIC_USER_WITH_ATTACHMENT\",\r\n  \"mappingSelector\": \"{mappingName}\",\r\n  \"contactId\": \"{originalId}\",\r\n  \"attachmentUrl\": \"{https://yourstorage.com/location}\",\r\n  \"properties\": {\r\n    \"attributeName1\": \"value1\",\r\n    \"attributeName2\": \"value2\"\r\n  }\r\n}"},"url":"{{url}}/{{customerId}}/events","description":"<p>When triggering a transactional email in a journey for a single contact you can include a PDF attachment.</p>\n<p>You store the files on your end and make sure that they are reachable for the service.</p>\n<p>It is our strongest recommendation to use presigned URL's to the files to ensure maximum security.</p>\n<p>Ensure that the sendout step in your journey is allowing PDF attachments.</p>\n<p><em>Please note that this is an add-on feature. Reach out to your Success manager at Symplify to learn more.</em></p>\n","urlObject":{"path":["{{customerId}}","events"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"85a0ae3e-05a0-43d0-a20e-c3b3b9316f15","name":"GENERIC_USER with PDF attachment","originalRequest":{"method":"POST","header":[{"key":"X-Carma-Authentication-Token","value":"{{token}}","type":"text"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n\"type\":\"GENERIC_USER_WITH_ATTACHMENT\",\r\n  \"mappingSelector\": \"orderConfirmation\",\r\n  \"attachmentUrl\": \"https://stcustomerdspcommunidev.blob.core.windows.net/invoice-pdf/2023/order_1234_invoice_5678.pdf?sp=r&st=2023-06-13T08:32:11Z&se=2024-06-13T16:32:11Z&spr=https&sv=2022-11-02&sr=b&sig=kmEmRodA977MUaLnr2N2%2FS3FtPPde0aSEqv3ZcWIeas%3D\",\r\n  \"contactId\": \"123456\",\r\n  \"properties\": {\r\n    \"level\": \"123\"\r\n  }\r\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/{{customerId}}/events"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Tue, 15 Aug 2023 08:41:30 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"0"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Content-Type-Options","value":"nosniff"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"3c2007ea-37c0-4d65-ac9b-a8959b21d9ae"},{"name":"GENERIC_USER with DataDocs","id":"5d964d62-13f7-49fd-ab78-d879be8fb808","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"content-type":true}},"request":{"method":"POST","header":[{"key":"X-Carma-Authentication-Token","value":"{{token}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"type\": \"GENERIC_USER_WITH_DATADOCS\",\r\n  \"mappingSelector\":\"{mappingName}\",\r\n  \"contactId\": \"{originalId}\",\r\n  \"dataDocs\": [{ \"documentTypeId\": {typeId},\r\n    \"document\": {\r\n        \"externalIdAttribute\":\"value1\",\r\n        \"originalIdAttribute\":\"value2\",\r\n        \"json_object\": {\r\n                \"header1\": \"value1\",\r\n                \"header2\": \"value2\"\r\n            }\r\n        }\r\n        }],\r\n    \"properties\": {\r\n        \"attributeName1\": \"value1\",\r\n        \"attributeName2\": \"value2\"\r\n  }\r\n}"},"url":"{{url}}/{{customerId}}/events","description":"<p>To add DataDocs rows via Event Hub you use the GENERIC_USER type with the addition \"_WITH_DATADOCS\".</p>\n<p>Note that this event not only add DataDoc rows but also can update contact attributes data, which is why you must include your original id on both contactId and for each DataDoc row.</p>\n<p>Both externalId and originalId must be typed as a <code>string</code>.</p>\n<p>This event can be mapped to the type <em>User</em> in the Symplify interface including any of the actions <em>Create contact, Update contact or Upsert contact.</em></p>\n<p><em>Please note that DataDocs is an add-on feature. Reach out to your Success manager at Symplify to learn more.</em></p>\n","urlObject":{"path":["{{customerId}}","events"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"9122cce6-4bc7-4409-bea7-d5f8f9dffd1a","name":"GENERIC_USER with DataDocs","originalRequest":{"method":"POST","header":[{"key":"X-Carma-Authentication-Token","value":"{{token}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"type\": \"GENERIC_USER_WITH_DATADOCS\",\r\n  \"mappingSelector\":\"datadocs\",\r\n  \"contactId\": \"404401\",\r\n  \"dataDocs\": [{ \"documentTypeId\": 38,\r\n    \"document\": {\r\n            \"transaction_date\": \"2023-05-30\",\r\n            \"event_date\": \"2023-07-22\",\r\n            \"bookingnumber\": \"ABC-123123\",\r\n            \"event_details\": {\r\n                \"location\": \"Big Arena\",\r\n                \"Entrance\": \"F\",\r\n                \"startTime\": \"20.00\"\r\n            },\r\n            \"originalid\": \"404401\",\r\n            \"category\": \"music\"\r\n        }\r\n        }],\r\n          \"properties\": {\r\n\r\n    \"level\": \"123\"\r\n  }\r\n}"},"url":"{{url}}/{{customerId}}/events"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Tue, 15 Aug 2023 10:45:37 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"0"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Content-Type-Options","value":"nosniff"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"5d964d62-13f7-49fd-ab78-d879be8fb808"},{"name":"GENERIC_USER start journey with DataDocs","id":"119c8867-9db2-4719-a420-9086e2db419e","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"content-type":true}},"request":{"method":"POST","header":[{"key":"X-Carma-Authentication-Token","value":"{{token}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"type\": \"GENERIC_USER_WITH_DATADOCS\",\r\n  \"mappingSelector\": \"{mappingSelector}\",\r\n  \"contactId\": \"{originalId}\",\r\n  \"properties\": {\r\n\r\n  },\r\n  \"journeyDataDocs\": [{\r\n      \"documentTypeId\": {documentTypeId},\r\n      \"externalId\": \"{externalId}\"\r\n  },\r\n  {\r\n      \"documentTypeId\": {documentTypeId},\r\n      \"externalId\": \"{externalId}\"\r\n  }\r\n  ]\r\n}\r\n\r\n"},"url":"{{url}}/{{customerId}}/events","description":"<p>You can trigger a journey for a single contact and refer to one or more documents on that contact.</p>\n<p>The referred document(s) can be used as placeholder data in sendouts within the journey.</p>\n<p>Referring is done in \"journeyDataDocs\".</p>\n<p>You can also create a document and refer to it with the same payload (see example \"Creating and referring to doc\").</p>\n","urlObject":{"path":["{{customerId}}","events"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"60586396-78f3-4d98-9a04-ad8b105c8524","name":"Referring to docs","originalRequest":{"method":"POST","header":[{"key":"X-Carma-Authentication-Token","value":"{{token}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"type\": \"GENERIC_USER_WITH_DATADOCS\",\r\n  \"mappingSelector\": \"journey\",\r\n  \"contactId\": \"111\",\r\n  \"properties\": {\r\n\r\n  },\r\n  \"journeyDataDocs\": [{\r\n      \"documentTypeId\": 1,\r\n      \"externalId\": \"2023-1-111\"\r\n  },\r\n  {\r\n      \"documentTypeId\": 1,\r\n      \"externalId\": \"2023-2-111\"\r\n  }\r\n  ]\r\n}\r\n\r\n"},"url":"{{url}}/{{customerId}}/events"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Thu, 01 Aug 2024 13:07:30 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"0"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=31536000 ; includeSubDomains"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Content-Type-Options","value":"nosniff"}],"cookie":[],"responseTime":null,"body":null},{"id":"30c7db94-2202-4a8f-92db-5d6b1a0f6884","name":"Creating and referring to doc","originalRequest":{"method":"POST","header":[{"key":"X-Carma-Authentication-Token","value":"{{token}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"type\": \"GENERIC_USER_WITH_DATADOCS\",\r\n  \"mappingSelector\": \"journey\",\r\n  \"contactId\": \"111\",\r\n  \"properties\": {\r\n\r\n  },\r\n   \"dataDocs\": [{ \"documentTypeId\": 1,\r\n    \"document\": {\r\n            \"transaction_date\": \"2024-05-30\",\r\n            \"event_date\": \"2024-07-22\",\r\n            \"bookingnumber\": \"ABC-123123\",\r\n            \"event\": \"Teletubbies in concert\",\r\n            \"event_details\": {\r\n                \"location\": \"Big Arena\",\r\n                \"Entrance\": \"F\",\r\n                \"startTime\": \"20.00\"\r\n            },\r\n            \"originalid\": \"111\",\r\n            \"category\": \"music\"\r\n        }\r\n        }],\r\n\r\n  \"journeyDataDocs\": [{\r\n      \"documentTypeId\": 1,\r\n      \"externalId\": \"ABC-123123\"\r\n  }\r\n  ]\r\n}\r\n\r\n"},"url":"{{url}}/{{customerId}}/events"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Thu, 01 Aug 2024 13:04:49 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"0"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=31536000 ; includeSubDomains"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Content-Type-Options","value":"nosniff"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"119c8867-9db2-4719-a420-9086e2db419e"},{"name":"GENERIC_TRANSACTION_V2 with Purchase History","id":"2673a619-dceb-4996-9bb5-ad76fd944ab4","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"content-type":true}},"request":{"method":"POST","header":[{"key":"X-Carma-Authentication-Token","value":"{{token}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"type\": \"GENERIC_TRANSACTION_V2\",\r\n  \"mappingSelector\": \"{mappingName}\",  \r\n  \"contactId\": \"{originalId}\",\r\n  \"timestamp\": \"{yyyy-MM-ddTHH:mm:ss}\",\r\n  \"amount\": {amount.decimal},\r\n  \"properties\": {\r\n    \"attributeName1\": \"value1\",\r\n    \"attributeName2\": \"value2\"\r\n  },\r\n  \"transactionAttributes\":{ \r\n    \"purchaseHistoryField1\": \"value1\",\r\n    \"purchaseHistoryField2\": \"value2\" \r\n  }\r\n\r\n}"},"url":"{{url}}/{{customerId}}/events","description":"<blockquote>\n<p><strong>Please note that Purchase history is depracated. No new integrations will include this integration option.</strong><br />The following documentation is only to support already existing integrations.  </p>\n</blockquote>\n<p>This event is able to both update contact attributes but also create a Purchase history row. </p>\n<p>This event should be mapped to the type <em>Transaction</em> in the Symplify interface including the action <em>Create Purchase History row.</em> Note that if you also wants to update contact attributes you will need to add corresponding action for that as well.</p>\n<img src=\"https://content.pstmn.io/eab6dc04-4676-40b0-a631-ddc764473529/aW1hZ2UucG5n\" width=\"1003\" height=\"523\" />","urlObject":{"path":["{{customerId}}","events"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"e047f922-783d-4628-8061-8531adeece8c","name":"GENERIC_TRANSACTION_V2 with Purchase History","originalRequest":{"method":"POST","header":[{"key":"X-Carma-Authentication-Token","value":"{{token}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"type\": \"GENERIC_TRANSACTION_V2\",\r\n  \"mappingSelector\": \"PH\",\r\n  \"contactId\": \"8a6c62bc-6664-447d-2c48-16568030d1d1\",\r\n  \"timestamp\": \"2023-08-01T10:11:22\",\r\n  \"amount\": 150.5,\r\n  \"properties\": {\r\n    \"points\": \"84\"\r\n  },\r\n  \"transactionAttributes\":{ \r\n    \"category\": \"beauty\",\r\n    \"product\": \"conditioner\",\r\n    \"size\": \"50 ml\"\r\n  }\r\n\r\n}"},"url":"{{url}}/{{customerId}}/events/TheQueue"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Thu, 31 Aug 2023 12:50:45 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"0"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Content-Type-Options","value":"nosniff"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"2673a619-dceb-4996-9bb5-ad76fd944ab4"},{"name":"USER_CONSENT_UPDATE","id":"c2fddb83-1274-41e0-b868-b2753c87a818","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"content-type":true}},"request":{"method":"POST","header":[{"key":"X-Carma-Authentication-Token","value":"{{token}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"type\": \"USER_CONSENT_UPDATE\",\r\n  \"mappingSelector\": \"{mappingName}\",\r\n  \"contactId\": \"{originalId}\",\r\n  \"channel\": \"EMAIL|SMS\",\r\n  \"consented\": true|false,\r\n  \"properties\": {\r\n    \"attributeName1\": \"value1\",\r\n    \"attributeName2\": \"value2\"\r\n  }\r\n}"},"url":"{{url}}/{{customerId}}/events","description":"<p>USER_CONSENT UPDATE will toggle the default subscription statuses for email and SMS.</p>\n<p>This event can be mapped to the type <em>Consent</em> in the Symplify interface including actions like <em>Create contact, Update contact or Upsert contact.</em></p>\n","urlObject":{"path":["{{customerId}}","events"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"6146d41f-d3ff-4d54-946a-5caa4fe2e8ee","name":"USER_CONSENT_UPDATE","originalRequest":{"method":"POST","header":[{"key":"X-Carma-Authentication-Token","value":"{{token}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"type\": \"USER_CONSENT_UPDATE\",\r\n  \"mappingSelector\": \"consent\",\r\n  \"contactId\": \"8a6c62bc-6664-447d-2c48-16568030d1d1\",\r\n  \"channel\": \"SMS\",\r\n  \"consented\": false\r\n}"},"url":"{{url}}/{{customerId}}/events/TheQueue"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Thu, 31 Aug 2023 13:05:13 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"0"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Content-Type-Options","value":"nosniff"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"c2fddb83-1274-41e0-b868-b2753c87a818"},{"name":"USER_BLOCKED with end date","id":"d20e2282-2486-45a1-9f86-6b487cd3d07c","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"content-type":true}},"request":{"method":"POST","header":[{"key":"X-Carma-Authentication-Token","value":"{{token}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"type\": \"USER_BLOCKED\",\r\n  \"mappingSelector\": \"{mappingName}\",  \r\n  \"contactId\": \"{originalId}\",\r\n  \"blockedUntil\":\"{yyyy-MM-ddTHH:mm:ss}\",\r\n  \"properties\": {\r\n    \"attributeName1\": \"value1\",\r\n    \"attributeName2\": \"value2\"\r\n  }\r\n}"},"url":"{{url}}/{{customerId}}/events","description":"<p>A USER_BLOCKED event will add a temporary block end date to a contact, meaning no messages (in any channel) will be created and sent until that date.</p>\n<p>To release a block, simply send a date in the past.</p>\n<p>This event can be mapped to the type <em>Block</em> in the Symplify interface including actions like <em>Create contact, Update contact or Upsert contact.</em></p>\n","urlObject":{"path":["{{customerId}}","events"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"4dd16c52-00c6-4e8b-839e-24b63133db99","name":"USER_BLOCKED with end date","originalRequest":{"method":"POST","header":[{"key":"X-Carma-Authentication-Token","value":"{{token}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"type\": \"USER_BLOCKED\",\r\n  \"mappingSelector\": \"block_until\",  \r\n  \"contactId\": \"8a6c62bc-6664-447d-2c48-16568030d1d1\",\r\n  \"blockedUntil\":\"2024-05-01T23:59:59\",\r\n  \"properties\": {\r\n    \"block_reason\": \"self excluded\"\r\n  }\r\n}"},"url":"{{url}}/{{customerId}}/events/TheQueue"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Thu, 31 Aug 2023 13:08:20 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"0"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Content-Type-Options","value":"nosniff"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"d20e2282-2486-45a1-9f86-6b487cd3d07c"},{"name":"USER_BLOCKED_TOGGLE","id":"7bd6047c-07ce-46c7-8a1c-66c754fc1f88","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"content-type":true}},"request":{"method":"POST","header":[{"key":"X-Carma-Authentication-Token","value":"{{token}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"type\": \"USER_BLOCKED_TOGGLE\",\r\n  \"mappingSelector\": \"{mappingName}\",\r\n  \"contactId\": \"{originalId}\",\r\n  \"blocked\": true|false,\r\n  \"properties\": {\r\n    \"attributeName1\": \"value1\",\r\n    \"attributeName2\": \"value2\"\r\n  }\r\n}"},"url":"{{url}}/{{customerId}}/events","description":"<p>A USER_BLOCKED_TOGGLE event will add a temporary block to a contact, meaning no messages (in any channel) will be created and sent until you release the block.</p>\n<p>To release a block, simply send <code>\"blocked\": false</code>.</p>\n<p>This event can be mapped to the type <em>Block</em> in the Symplify interface including actions like <em>Create contact, Update contact or Upsert contact.</em></p>\n","urlObject":{"path":["{{customerId}}","events"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"8eb79bcd-8622-4754-9734-9a8396997968","name":"USER_BLOCKED_TOGGLE","originalRequest":{"method":"POST","header":[{"key":"X-Carma-Authentication-Token","value":"{{token}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"type\": \"USER_BLOCKED_TOGGLE\",\r\n  \"mappingSelector\": \"block_toggle\",\r\n  \"contactId\": \"8a6c62bc-6664-447d-2c48-16568030d1d1\",\r\n  \"blocked\": true,\r\n  \"properties\": {\r\n    \"block_reason\": \"self excluded\"\r\n  }\r\n}"},"url":"{{url}}/{{customerId}}/events/TheQueue"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Thu, 31 Aug 2023 13:10:12 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"0"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Content-Type-Options","value":"nosniff"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"7bd6047c-07ce-46c7-8a1c-66c754fc1f88"},{"name":"BATCH NOTIFICATION","id":"3a53f357-03c9-4275-91c1-7cda899cb45f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"X-Carma-Authentication-Token","type":"text","value":"{{token}}"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"type\": \"BATCH_NOTIFICATION\",\n  \"mappingSelector\": \"{mappingName}\",\n  \"downloadUri\": \"{http://yourdomain.com/folder/file}\"\n}"},"url":"{{url}}/{{customerId}}/events/\n","description":"<p><em><strong>Please note that this event type is not available over HTTP.</strong></em></p>\n<p>A selection of contacts made in some other system may be pushed to Event hub in a batch using the type BATCH_NOTIFICATION.</p>\n<p>To set up the events in Symplify, select the mapping type \"Batch\":</p>\n<img src=\"https://content.pstmn.io/57f81cec-0760-4c16-b284-0f32d8914dff/aW1hZ2UucG5n\" width=\"482\" height=\"259\" />\n\n<p>This type can be mapped to perform any of the actions:</p>\n<ul>\n<li><p>Enter journey</p>\n</li>\n<li><p>Exit journey</p>\n</li>\n<li><p>Database import</p>\n</li>\n</ul>\n<p>You will provide a downloadUri with the path of your file. The data file is expected to be an UTF8-encoded text file where each line is in a JSON object.</p>\n<p>Any contacts not already present in the system will be automatically created; already existing contacts will be \"touched\".</p>\n<p>The \"<strong>id</strong>\" attribute of each JSON object in the file represents the <strong>original id</strong> of the contact.</p>\n<p>Example data:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\"id\": \"0\", \"properties\": {\"emailAddress\": \"the_boss@example.com\", \"firstname\": \"Bruce\", \"attributeName\": \"yes\"}}\n{\"id\": \"1\", \"properties\": {\"emailAddress\": \"aretha.f@example.com\", \"firstname\": \"Aretha\", \"attributeName\": \"yes\"}}\n{\"id\": \"2\", \"properties\": {\"emailAddress\": \"ladygaga@example.com\", \"firstname\": \"Lady\", \"attributeName\": \"no\"}}\n\n</code></pre><p>When using any of the journey actions, please note that custom attribute data will not update the contacts, but will be available for use in placeholders within the journey.</p>\n","urlObject":{"path":["{{customerId}}","events","\n"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"51ce98bc-eda2-480b-b7d1-c38b862ebc46","name":"BATCH NOTIFICATION","originalRequest":{"method":"POST","header":[{"key":"X-Carma-Authentication-Token","type":"text","value":"{{token}}"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"type\": \"BATCH_NOTIFICATION\",\n  \"mappingSelector\": \"shipping\",\n  \"downloadUri\": \"http://domain.com/folder/batch_12345.txt\"\n}"},"url":"{{url}}/{{customerId}}/events/TheQueue\n"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Thu, 31 Aug 2023 14:10:42 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"0"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Content-Type-Options","value":"nosniff"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"3a53f357-03c9-4275-91c1-7cda899cb45f"}],"id":"fe997050-e2d5-41db-8f60-3be650558b5b","description":"<h2 id=\"overview\">Overview</h2>\n<p><em>The Event hub functionality is perfect if you want to react quickly to events originating from your system, and need data in Symplify to be as up-to-date as possible at every single point in time. It's ideal if you already have a message broker where you publish application events, or if you want to avoid explicit integration with the Symplify REST API.</em></p>\n<p>In an Event hub setup, Symplify is configured to listen for messages from a Message Broker (SQS or RabbitMQ), and instructed to take actions depending on incoming messages. As long as the incoming message format follows the recommended format described here, no additional integration is required.</p>\n<p>Best practice is to send this data via AWS SQS, but if this is not possible the REST API mimics this functionality. The same payload is used but some benefits of the message broker are lost.</p>\n<p>You will send a <em>Payload</em> containing the data and then set a <em>MappingSelector</em> that will be used to map the data to one or more <em>Actions</em> in Symplify. I.e. you can send an event containing a GENERIC_USER payload with the MappingSelector \"CreateUser\". In Symplify you can them map this to the <em>CreateUser</em> action and the <em>EnterJourney</em> action and both these actions will be executed when an event comes in.</p>\n<p>The mappingSelector is an arbitrary string that you choose. This way you will not have to decide at implementation time how the data shall be mapped. If no mappingselector is set, it will default to the same value as the <em>Type</em> field.</p>\n<h1 id=\"configuration\">Configuration</h1>\n<p>The configuration is made using the Symplify admin interface and includes:</p>\n<ul>\n<li><strong>Endpoint identifier/URI/Queue identifier</strong></li>\n<li><strong>Authentication information</strong><ul>\n<li>For SQS, this will be the key + secret key of an AWS IAM user with read access to the specified queue. Alternatively, you can grant read access on your queue to our AWS account, which completely eliminates the need for credentials registration in Symplify.</li>\n<li>For RabbitMQ this will be username/password for a user with read access to the specified queue</li>\n<li>For HTTP requests you will use the same authentication method as you do for all other requests through the Symplify REST API (X-Carma-Authentication-Token)<br />  The payload will be the same as the examples in this documentation.</li>\n</ul>\n</li>\n<li><strong>Action mapping</strong><br />  The setup for how each event should be managed in Symplify. <a href=\"https://desktop.postman.com/?desktopVersion=10.13.0&amp;userId=6437984&amp;teamId=986301\">Learn more on Expertise</a>.</li>\n</ul>\n<p>It is possible to set up multiple queues if you have data from different sources. If your queue is not converted from an older setup (named DEFAULT) you must include the queue name in your endpoint.</p>\n<img src=\"https://content.pstmn.io/eec7f71f-ae42-4dcf-b150-704c3e4e0d4a/aW1hZ2UucG5n\" alt=\"Multiple%20queues\" width=\"853\" height=\"122\" />\n\n<p>Example posting to a queue:</p>\n<p><code>{{url}}/{{customerId}}/events/{queueName}</code></p>\n<p><em>If you have converted an older setup (where only one queue was allowed) you will automatically get a queue called DEFAULT. Example posting to the DEFAULT queue:</em></p>\n<p><code>{{url}}/{{customerId}}/events</code></p>\n<h1 id=\"message-broker-event-processing\">Message broker event processing</h1>\n<p>Events are processed in the order they are received from the message broker. We will rely on the message broker to ensure proper ordering and \"only once\" delivery of events. This means that if the broker delivers the exact same event message more than once (\"at least once\" message delivery), both of these events will be processed. This is something that needs to be taken into account when setting up this kind of integration. We recommend using a message broker that supports ordered, \"only once\" message delivery.</p>\n<h1 id=\"events-and-format\">Events and format</h1>\n<p>Incoming event payloads need to be in JSON format. We highly recommend using the default event format described in this documentation.</p>\n<p>If you find it impossible to produce events in the default event format, Symplify can implement a custom message converter at additional costs.</p>\n<p>All messages that you want a custom Symplify message converter to consume will need to be typed either through a header attribute or a message attribute, depending on the technology used by your message queue. Your custom event format will be transformed using the custom-built converter to the standard events described below. Consequently, for us to be able to implement a custom converter, we do need the events from your system to contain all the necessary information needed to populate our standard event objects.</p>\n<p>All events must contain:</p>\n<ul>\n<li><strong>Type</strong><br />  Defines the content and structure of the data</li>\n<li><strong>Mapping selector</strong><br />  Maps the event to handle the data as requested in the Symplify interface.</li>\n<li><strong>Event specific data</strong><br />  Depending on the event the specific data may vary.</li>\n</ul>\n<h2 id=\"terminology\">Terminology</h2>\n<ul>\n<li>Symplify API - The main Symplify REST API.</li>\n<li>Event API - The Symplify CRM Event REST API</li>\n<li>Contacts - A representation of your users in Symplify.</li>\n<li>Users - Users of your application. Represented as Contacts in Symplify.</li>\n</ul>\n<p>This documentation covers all available events with example payloads.</p>\n","event":[{"listen":"prerequest","script":{"id":"e9c32e80-29de-418e-985f-cb96f8eb39b5","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"ecd0ff62-ca53-4a17-9514-8e3c64a7dbda","type":"text/javascript","exec":[""]}}],"_postman_id":"fe997050-e2d5-41db-8f60-3be650558b5b"},{"name":"Web Push","item":[{"name":"Web Push REST API","item":[],"id":"cb499346-6590-433b-b95d-63b038f66ca0","description":"<p>The Web Push REST API allows integrating systems to retrieve, update and delete Web Push messages - as well as subscribing webhooks to handle incoming messages - on a per contact basis.</p>\n<p><a href=\"https://documenter.getpostman.com/view/6437984/Szf6Yoh1\">Read the full documentation here</a></p>\n","event":[{"listen":"prerequest","script":{"id":"cfb5a949-5bbd-4c05-961d-2aba14496092","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"d5035351-8e28-4a09-8c25-c08cdac2298a","type":"text/javascript","exec":[""]}}],"_postman_id":"cb499346-6590-433b-b95d-63b038f66ca0"},{"name":"Web Push JS","item":[],"id":"064499e0-6f3a-4550-8029-da85c2f27bb4","description":"<p>The Web Push JS Library allows integrating messaging and Inbox functionality.</p>\n<p><a href=\"https://documenter.getpostman.com/view/6437984/TW6uqA8w\">Read the full documentation here</a></p>\n","event":[{"listen":"prerequest","script":{"id":"d66155f2-dbbf-42e9-ae55-9d5031be9575","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"184129ab-1aba-403c-a8b4-be83c5bd3fd8","type":"text/javascript","exec":[""]}}],"_postman_id":"064499e0-6f3a-4550-8029-da85c2f27bb4"}],"id":"5e6e4472-9548-45c8-ba73-4ba629ab8c4f","description":"<p>Symplify Web Push messaging enables you to Pop Up when your customer is on site.<br />You can for example use Symplify Web Push to inform selected customers that they have an active offer available, tips and tricks within the platform or showcasing features based on the recipient profile.</p>\n<p>You can of course personalize all messages and use the different Symplify modules, like Journeys and Campaigns to generate your Symplify Web Push messages.</p>\n<ul>\n<li><p>Create welcome messages for new users with link and instructions for navigating the app or best use the application</p>\n</li>\n<li><p>Send a reminder that pops up after login so they remember to complete their registration with credit card, loyalty card and shipping address etc.</p>\n</li>\n<li><p>Showcase new features and encourage users to try them out</p>\n</li>\n<li><p>Send coupons and offers</p>\n</li>\n<li><p>Remind customers of abandoned carts or loyalty credits on their accounts</p>\n</li>\n<li><p>Offer order tracking after sales</p>\n</li>\n</ul>\n","_postman_id":"5e6e4472-9548-45c8-ba73-4ba629ab8c4f"},{"name":"App Push Firebase integration","item":[{"name":"Register device token","id":"17a2a45b-32f1-4ee0-b6e4-b473d2e72011","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"PUT","header":[{"key":"X-Carma-Authentication-Token","value":"{{token}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\"originalId\": \"123456\",\n\"deviceInfo\": [{\"devicetoken\": \"abcdefghijklmno\", \"appType\": \"6\"}]\n}"},"url":"{{url}}/{{customerId}}/apps/{appid}/devices","description":"<p>Please note that <strong>appType</strong> is not mandatory in the payload but must be included if you have multiple apps (on different platforms) sharing appId.</p>\n<p>appId 1 = iOS<br />appId6 = Firebase</p>\n<p><code>{ \"originalId\": \"abcdefghijklmno\", \"deviceInfo\": [ { \"devicetoken\": \"abc123\", \"appType\": 6 } ]</code></p>\n","urlObject":{"path":["{{customerId}}","apps","{appid}","devices"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"759d06d8-7c50-42ab-bfc1-15abce240074","name":"Register device token","originalRequest":{"method":"PUT","header":[{"key":"X-Carma-Authentication-Token","value":"98765432abc","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\"originalId\": \"123456\",\n\"deviceInfo\": [{\"devicetoken\": \"abcdefghijklmno\", \"appType\": \"6\"}]\n}"},"url":"{{url}}/{{customerId}}/apps/com.yourcompany.app/devices"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Mon, 30 Dec 2024 08:27:15 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Content-Type-Options","value":"nosniff"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 0,\n    \"listId\": 0,\n    \"country\": null,\n    \"originalId\": \"123456\",\n    \"originalIDHashed\": 0,\n    \"firstName\": null,\n    \"lastName\": null,\n    \"middleName\": null,\n    \"emailAddress\": null,\n    \"title\": null,\n    \"dateOfBirth\": null,\n    \"city\": null,\n    \"zipcode\": null,\n    \"sex\": null,\n    \"mobileNumber\": null,\n    \"unsubscribed\": null,\n    \"bounced\": null,\n    \"mobileUnsubscribed\": null,\n    \"audioUnsubscribed\": null,\n    \"preferredContentVersionId\": 0,\n    \"optOutDate\": null,\n    \"dateOfInvalidation\": null,\n    \"optOutMobileDate\": null,\n    \"optOutAudioDate\": null,\n    \"active\": false,\n    \"dateCreated\": null,\n    \"dateModified\": null,\n    \"blockedUntil\": null,\n    \"properties\": {},\n    \"namedProperties\": {},\n    \"deviceInfo\": [\n        {\n            \"appInfoId\": 0,\n            \"appId\": null,\n            \"appName\": null,\n            \"devicetoken\": \"abcdefghijklmno\",\n            \"appInfoEnduiserId\": 0,\n            \"appType\": 6,\n            \"manufacturer\": null,\n            \"model\": null,\n            \"osVersion\": null,\n            \"country\": null,\n            \"dateOfInvalidation\": null,\n            \"invalidationType\": 0,\n            \"sandboxToken\": false\n        }\n    ],\n    \"appInfoEnduserId\": 0,\n    \"mobileNumberValid\": true\n}"}],"_postman_id":"17a2a45b-32f1-4ee0-b6e4-b473d2e72011"},{"name":"Invalidate device token","id":"c72dc88d-3cf2-46c0-8e73-a5ef6e4461f8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"PUT","header":[{"key":"X-Carma-Authentication-Token","value":"{{token}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\"deviceInfo\":[{\"devicetoken\": \"abcdefghijklmno\"}],\n\"originalId\":\"abc123\"\n}"},"url":"{{url}}/{{customerId}}/apps/{appid}/devices/invalidation","description":"<p>Please note that <strong>appType</strong> is not mandatory in the payload but must be included if you have multiple apps (on different platforms) sharing appId.</p>\n<p>appId 1 = iOS<br />appId6 = Firebase</p>\n<p><code>{ \"originalId\": \"abcdefghijklmno\", \"deviceInfo\": [ { \"devicetoken\": \"abc123\", \"appType\": 6 } ]</code></p>\n","urlObject":{"path":["{{customerId}}","apps","{appid}","devices","invalidation"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"2f0d33f8-1e77-4a1b-a38c-787cf1c50543","name":"Invalidate device token","originalRequest":{"method":"PUT","header":[{"key":"X-Carma-Authentication-Token","value":"98765432abc","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\"deviceInfo\":[{\"devicetoken\": \"abcdefghijklmno\"}],\n\"originalId\":\"abc123\"\n}"},"url":"{{url}}/{{customerId}}/apps/com.yourcompany.app/devices/invalidation"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Mon, 30 Dec 2024 08:44:02 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"0"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Content-Type-Options","value":"nosniff"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"c72dc88d-3cf2-46c0-8e73-a5ef6e4461f8"}],"id":"233ad620-28d7-4d19-b394-cfcac0ed2a49","description":"<p>This document describes how to integrate Symplify with Google's Firebase push notifications and how to manage enduser devices in Symplify.</p>\n<h3 id=\"how-firebase-cloud-messaging-fcm-works\">How Firebase Cloud Messaging (FCM) works</h3>\n<p>Firebase is backend platform for building web, Android and IOS applications. It offers real time database, different APIs, multiple authentication types and hosting platform.<br />Google’s system considers three parties:</p>\n<ul>\n<li><p>The client application</p>\n</li>\n<li><p>Google's FCM servers</p>\n</li>\n<li><p>A 3rd party server, in this case Symplify.</p>\n</li>\n</ul>\n<p>When a user installs an application, it must register itself to enable FCM. Once done, as soon as you decide to send your users a notification, a succession of actions are triggered:</p>\n<ul>\n<li><p>Symplify sends the push notification to Google's FCM servers.</p>\n</li>\n<li><p>These servers relay the message to all your registered mobile applications.</p>\n</li>\n<li><p>Messages are queued and stored for devices that are offline.</p>\n</li>\n<li><p>As soon as a device comes back online, FCM servers relay the queued message.</p>\n</li>\n<li><p>The messages are received and presented according to the platform-specific implementation.</p>\n</li>\n</ul>\n<h3 id=\"firebase-cloud-messaging-overview\">Firebase Cloud Messaging overview</h3>\n<p>FCM is a service provided by Google that helps developers implement push notifications in their applications. By using FCM, developers are not required to implement their own method for sending data from their server to the client applications.</p>\n<p>Your App server &gt; FCM &gt; device running your client application</p>\n<p>Both the app server and the client need to register with FCM and provide information to uniquely identify and authorize them. Your app will need a Package name and your server will need a Private key (JSON) for your Service account, both of which can be obtained using the <a href=\"https://console.firebase.google.com\">Firebase Developers Console</a>.</p>\n<h3 id=\"integration-overview\">Integration overview</h3>\n<p>Before you begin, you will need to have an app that you want to send push notifications to:</p>\n<ol>\n<li><p>The app is registered with Google and is given an <em>appName.</em></p>\n</li>\n<li><p>The app is registered in Symplify using the <em>appName</em> and the <em>Firebase Private Key</em>.</p>\n</li>\n</ol>\n<p>The app code:</p>\n<ol>\n<li><p>The app requests a token from FCM</p>\n</li>\n<li><p>The App sends this token to Symplify along with the <em>appName</em>.</p>\n</li>\n<li><p>The token is stored in Symplify and associated with the app and the originalId.</p>\n</li>\n</ol>\n<h3 id=\"configuring-the-project-in-firebase-developers-console\">Configuring the project in Firebase Developers Console</h3>\n<p>The first step to the implementation is to integrate Firebase notifications with your app, please follow the <a href=\"https://firebase.google.com/docs/guides\">Firebase's tutorial</a> (see <em>Add Firebase to an app</em>).</p>\n<p>Two services should be added to use Firebase Cloud Messaging service: a basic code for testing if push notification works, and other codes to handle receiving message when you app is in the foreground or sending message in your app according to your design. You must also implement code that will receive notifications when the app is in the background.</p>\n<p>When you have succesfully sent a test message within the Firebase test environment you are ready to move on and write the Symplify specific code.</p>\n<h3 id=\"write-the-symplify-specific-code\">Write the Symplify specific code</h3>\n<h4 id=\"symplify-credentials\">Symplify credentials</h4>\n<p>The code above is generic for any push notification implementation. There are some additional tasks you need to perform in order to integrate your app with Symplify.</p>\n<p>Before you start coding you will need to find four pieces of data that are used in all interactions with Symplify.</p>\n<p>The first is the appName, e.g. com.somecompany.app.<br />To find the other three you will need to login to Symplify. The data is:</p>\n<ul>\n<li><p>REST URL (restUrl)</p>\n</li>\n<li><p>Symplify API Key, embedded token in Mobile app (carmaAccessToken)</p>\n</li>\n<li><p>Customer ID (customerId)</p>\n</li>\n</ul>\n<p>The first two can be found in Symplify under <em>Account Settings &gt; Symplify API.</em><br />If you haven’t created an API key before, <a href=\"https://help.symplify.com/hc/en-us/articles/360011230039-API-keys-and-tokens\">click the <i>Create New</i> button to add a new one</a> and for security reasons, make sure you have ticked the \"Only for use as embedded token in Mobile app\".</p>\n<p>Your customer ID is found on the dashboard in Symplify.<br />The usage of this information is described in a chapter below.</p>\n<h4 id=\"request-headers\">Request headers</h4>\n<p>All calls to Symplify need three request headers.</p>\n<p>The resource uses a custom header for authentication and need you to set the <code>Content-Type</code> and <code>Accept</code> headers to <code>application/json</code></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-java\">HttpPut post = new HttpPut(url);\npost.setEntity(se);\npost.setHeader(\"Accept\", \"application/json\");\npost.setHeader(\"Content-Type\", \"application/json\");\npost.setHeader(\"X-Carma-Authentication-Token\", accessToken);\n\n</code></pre>\n<p>All calls to Symplify are REST calls. Java has multiple ways to implement REST, so you will need to choose one to your liking. The examples below uses a bare metal method to give some idea on how this could be implemented.</p>\n<h3 id=\"registration\">Registration</h3>\n<p>You can now begin coding. The first thing you need to do is to send the Firebase token to Symplify. The token is received via the Firebase SDK using the <code>MyFirebaseMessagingService</code> class.</p>\n<p>This token needs to be registered in Symplify along with the <em>appId</em> and an originalid of your choosing. The <a href=\"https://help.symplify.com/hc/en-us/articles/360038847914-What-is-an-Original-Id-\">originalid</a> is the key identifier of the contact in Symplify.</p>\n<p>You register a token by issuing a <code>PUT</code> request to:</p>\n<p><code>https://{url}/rest/{customerid}/apps/{appid}/devices</code></p>\n<p>with a json payload containing at the minimum:</p>\n<ul>\n<li><p>deviceToken</p>\n</li>\n<li><p>originalId</p>\n</li>\n</ul>\n<p><strong>NOTE!</strong> Even if they are the same both values must be provided.</p>\n<p>A minimal version of the payload would look like this:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n\"originalId\": \"123456\",\n\"deviceInfo\": [{\"devicetoken\": \"abcdefghijklmno\"}]\n}\n\n</code></pre>\n<p><strong>NOTE!</strong> If you use the same appId for apps of different platforms, e.g. com.company.name for both iOS and Android, you must add the <code>appType</code> to the token.<br />The appType can be found in Symplify under <em>Account settings &gt; Push</em>.<br />For a Firebase integration, the appType value is <code>6</code>.*</p>\n<p>The payload will then be:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n\"originalId\": \"123456\",\n\"deviceInfo\": [{\"devicetoken\": \"abcdefghijklmno\", \"appType\": \"6\"}]\n}\n\n</code></pre>\n<p>In this payload you can also add other information about the user that should be transferred to Symplify.<br />Below is the full list of available properties.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n\"listId\": 1000000005,\n\"country\": null,\n\"originalId\": \"123456\", \n\"firstName\": \"value\",\n\"lastName\": \"value\",\n\"middleName\": null,\n\"emailAddress\": \"name@domain.com\",\n\"title\": null,\n\"dateOfBirth\": null,\n\"city\": null,\n\"zipcode\": null,\n\"sex\": null,\n\"mobileNumber\": null,\n\"optOutDate\": null,\n\"dateOfInvalidation\": null,\n\"optOutMobileDate\": null,\n  \"active\": true,\n  \"properties\": {\n    \"attributeName1\": \"value\",\n    \"attributeName2\": \"value\"\n  },\n  \"deviceInfo\": [{\n\"devicetoken\": \"abcdefghijklmno\",\n\"manufacturer\": \"apple\",\n\"model\": \"iphone 6\",\n\"osVersion\": \"9.2\",\n\"country\": \"Sweden\", \n\"dateOfInvalidation\": null,\n\"appInfoId\": 1001,\n\"invalidationType\": 0\n}]\n}\n\n</code></pre>\n<p>The same structure is used to return info on the device, but it is then appended with all devices that is connected to the contact (more details given later in the document).</p>\n<p>The following code can be used for the registration:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-java\">private void registerDeviceAndProfile(CarmaUserProfile profile) {\nHttpClient client = new DefaultHttpClient(); JSONObject parent = new JSONObject(); JSONArray deviceInfo = new JSONArray(); JSONObject token = new JSONObject();\nString packageName =\"com.your.packagename\";\nString accessToken =\"234kj5h345jh3kj532kjh5g35345\";\ntry {\ntoken.put(\"devicetoken\", profile.getToken()); deviceInfo.put(token); parent.put(\"deviceInfo\",deviceInfo); parent.put(\"originalId\", profile.getOriginalId()); parent.put(\"emailAddress\",profile.getEmail()); parent.put(\"mobileNumber\",profile.getMobile());\n} catch (JSONException e) { e.printStackTrace();\n}\nfinal String url = Constants.server + \"/rest/\" +new Integer(Constants.customerId).toString() + \"/apps/\"+packageName+\"/pushdevices\";\nStringEntity se; try {\nse = new StringEntity( parent.toString(),\"UTF8\");\nse.setContentType(new BasicHeader(HTTP.CONTENT_TYPE, \"application/json\")); se.setContentEncoding(\"UTF8\");\n} catch (UnsupportedEncodingException e) { e.printStackTrace();\nreturn;\n}\nHttpPut post = new HttpPut(url);\npost.setEntity(se);\npost.setHeader(\"Accept\", \"application/json\"); post.setHeader(\"Content-Type\", \"application/json\"); post.setHeader(\"X-Carma-Authentication-Token\", accessToken); try {\nfinal HttpResponse response = client.execute(post); StatusLine line = response.getStatusLine();\nfinal int code = line.getStatusCode(); StringBuilder sb = new StringBuilder();\ntry {\nBufferedReader reader =\nnew BufferedReader(new InputStreamReader(response.getEntity().getContent()), 65728);\nString cline = null;\nwhile ((cline = reader.readLine()) != null) {\n                sb.append(cline);\n            }\n}\ncatch (IOException e) { e.printStackTrace(); } catch (Exception e) { e.printStackTrace(); }\n} catch (ClientProtocolException e) { e.printStackTrace();\n} catch (IOException e) { e.printStackTrace();\n} catch (Exception e) {\n} }\n\n</code></pre>\n<p><em>*Other valid values for appType are 1 (iOS), 2 (Android) and 3 (Windows).</em></p>\n<h3 id=\"invalidation-of-a-devicetoken\">Invalidation of a devicetoken</h3>\n<p>If you want to remove a registration of a devicetoken for an OriginalId you can issue a <code>PUT</code> request to</p>\n<p><code>https://{url}/rest/{customerid}/apps/{appid}/devices/invalidation</code></p>\n<p>with a json payload containing at the minimum:</p>\n<ul>\n<li><p>deviceToken</p>\n</li>\n<li><p>originalId</p>\n</li>\n</ul>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n\"deviceInfo\":[{\"devicetoken\": \"abcdefghijklmno\"}],\n\"originalId\":\"abc123\"\n}\n\n</code></pre>\n<p>(Not invalidated expired tokens are simply ignored by Firebase.)</p>\n<h3 id=\"retrieving-information-about-a-contact\">Retrieving information about a contact</h3>\n<p>For security reasons, mobile app API tokens are not allowed to retrieve any data about a contact to the app. Fetching data about a contact should instead be done by your main system using a regular Symplify API token (never use a regular API token within your app):</p>\n<p><strong>GET</strong> <code>https://{url}/rest/{customerid}/lists/{listId}/contacts/{originalId}</code></p>\n<p>which will include device info.</p>\n<p>You will receive the same structure as when you register a device. It will contain a list of all devices registered on the originalId. If you have imported information by other means e.g. via scheduled import on the list, this data will also retrieved.</p>\n<h3 id=\"receive-push\">Receive push</h3>\n<p>A Symplify push message contains the following fields:</p>\n<ul>\n<li><p><strong>alert</strong><br />  intended to be the line shown next to the icon in the notification</p>\n</li>\n<li><p><strong>body</strong><br />  intended to be the line shown under the first in the notification</p>\n</li>\n<li><p><strong>url</strong><br />  the url pointing to the actual rich content of the push</p>\n</li>\n<li><p><strong>pushreadurl</strong><br />  to mark a message as opened you will need to issue a <code>GET</code> request to the <code>pushreadurl</code>(or if you prefer to manage opens via <em>Rich content</em> (learn more below)).</p>\n</li>\n<li><p><strong>source</strong><br />  will always be “carma”. This should be used to distinguish between push messages that comes from other systems than Symplify (previously Carma).</p>\n</li>\n<li><p>any other custom name/value pair that you have supplied in the Symplify UI for the push.</p>\n</li>\n</ul>\n<p>It’s important to remember that it’s up to the application developer to decide how these fields should be used.</p>\n<h3 id=\"app-setup-in-symplify\">App setup in Symplify</h3>\n<p>Find your way to <em><strong>Account Settings &gt; Push</strong></em> and click <em><strong>Create new</strong></em> and add the necessary details for your app.</p>\n<p>To register your app in Symplify you will need:</p>\n<ul>\n<li><p><strong>Name</strong><br />  The name of your app (for your orientation)</p>\n</li>\n<li><p><strong>App ID</strong><br />  The application id</p>\n</li>\n<li><p><strong>API key</strong><br />  Deprecated functionality</p>\n</li>\n<li><p><strong>Main activity</strong><br />  Android required class for activities</p>\n</li>\n<li><p>**Service account<br />  **Your private key from Firebase to setup the connection. <a href=\"https://help.symplify.com/hc/en-us/articles/14068850409244-Firebase-Cloud-Messaging-deprecation\">Learn more</a>.</p>\n</li>\n</ul>\n<p>Click <em><strong>Create</strong></em> and you are ready to start sending Push requests to you users.</p>\n<img src=\"https://content.pstmn.io/59c452fb-8764-4908-a0bc-c0f3b64e01d4/aW1hZ2UucG5n\" alt=\"App%20settings%20in%20Symplify\" width=\"488\" height=\"769\" />\n\n<h3 id=\"testing-and-troubleshooting\">Testing and troubleshooting</h3>\n<p>Once you have done integration, perform the following tests.</p>\n<ul>\n<li><p>Install the application on a new device</p>\n</li>\n<li><p>Notice that the number of recipients increases for each time you do this. If not, check that the id’s you supply are correct. Check also that the appid you gave when registering the application is the same as the package given in the top of your manifest.</p>\n</li>\n<li><p>If the list does grow, test a simple push while the application is running. If a notification does not show up after a few minutes, make sure that you have given the correct API key when registering the app in Symplify.</p>\n</li>\n<li><p>Once the above works correct, verify that the notifications show up when sending a push even though the application is not running.</p>\n</li>\n</ul>\n<h2 id=\"additional-integration-option\">Additional integration option</h2>\n<h3 id=\"rich-content\">Rich content</h3>\n<p>Normally when a push notification is received you open up the app by clicking on the notification. Symplify offers the option to select whether the app or the <em>Rich content</em> of a landing page should open. The Rich content can be personalized offers leading to the app or wherever that offer can be reached.</p>\n<p>Rich content is edited in Symplify together with the specific push notification.</p>\n<p>When a landing page should open can be managed with predefined key/value pairs.</p>\n<p>To fetch the Rich content of a notification you simply call the URL that is received in the url field in the notification.</p>\n<h3 id=\"content\">Content</h3>\n<p>The content of a push message is not sent in the push itself, but is located at server side where the URL in message is pointing. Content is usually a page of HTML that is generated for the particular device, from a template of the server side. It could however be XML or other text-based formats as defined by template.</p>\n<p>The most common way to handle content is to simply open an webview and pointing it to the URL, making it display the page. The developer could however choose to handle it in different ways. Examples would be opening the device browser instead by an intent, downloading the content and parsing it to extract information that is used in the application or passing it to another application.</p>\n<p>Loading rich content will mark the notification as opened.</p>\n<h3 id=\"load-rich-content\">Load rich content</h3>\n<p>By looking for the extra parameter URL when starting the main activity you can retrieve the link to rich content. The code below starts an activity AddWebView with the URL as a parameter when a push is received.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-java\">protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);\nBundle extras = getIntent().getExtras();\nif ( extras != null) {\nString url = extras.getString(\"url\"); if (url != null) {\nif (url != null) {\nIntent i = new Intent(getBaseContext(), AddWebViewActivity.class); i.putExtra(\"url\", url);\nstartActivity(i);\n} }\n\n</code></pre>\n<p>Below is the code for an AddWebView activity that shows the rich content in a new WebView</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-java\">public class AddWebviewActivity extends AppCompatActivity {\nprivate static final String TAG = ContentActivity.class.getSimpleName(); @Override\npublic void onCreate(Bundle savedInstanceState) {\nsuper.onCreate(savedInstanceState); setContentView(R.layout.activity_content); Bundle extras = getIntent().getExtras(); String url = extras.getString(\"url\");\nif (!TextUtils.isEmpty(url)) {\nWebView view = (WebView) findViewById(R.id.rich_content_webview);\nview.invokeZoomPicker();\nWebSettings settings = view.getSettings(); settings.setJavaScriptEnabled(true); view.setScrollBarStyle(WebView.SCROLLBARS_OUTSIDE_OVERLAY); view.getSettings().setLoadWithOverviewMode(false); view.getSettings().setUseWideViewPort(false); view.setWebContentsDebuggingEnabled(false);\ntry {\nview.loadUrl(url); } catch(Exception ex) {\n//Log.e(TAG, ex.getMessage());\n} }\n}\n\n</code></pre>\n","_postman_id":"233ad620-28d7-4d19-b394-cfcac0ed2a49"}],"event":[{"listen":"prerequest","script":{"id":"1e0e1e93-2cbb-4248-b4e4-163fea35b90a","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"4f0b53c6-3302-48b3-a017-8fb7c89e0a6e","type":"text/javascript","exec":[""]}}]}