{"info":{"_postman_id":"635233d3-bf74-4b41-97b8-5b5c05d6b400","name":"SalesScreen API","description":"<html><head></head><body><h5 id=\"authorization\">AUTHORIZATION</h5>\n<p>Your API key can be created inside SalesScreen by going to <strong>Settings -&gt; Api Keys -&gt; \"Add API key\"</strong>.</p>\n<p>Use the generated key in the header of all requests:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>KEY</th>\n<th>VALUE</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>apiKey</td>\n<td>{ your apiKey }</td>\n</tr>\n</tbody>\n</table>\n</div><h5 id=\"rate-limits\">Rate limits</h5>\n<p>1s: 15</p>\n<p>1m: 200</p>\n<h5 id=\"core-concepts\">CORE CONCEPTS</h5>\n<ul>\n<li><p><strong>All IDs in requests sent to SalesScreen should be IDs from your system</strong>.When you send a list to <strong>/Record/Add</strong> each of the list elements have an Id and an UserId from your system. We use these Ids to track the records and users in SalesScreen, if a match on a record is found it is updated accordingly.</p>\n</li>\n<li><p><strong>Activity Types and Activities</strong>Activity Types are categories/buckets for your Activities. Say you want to track three different subscriptions: small, medium and large. Your Activities could be \"small\", \"medium\" and \"large\", while the Activity Type would be \"Subscriptions\".</p>\n</li>\n<li><p><strong>Everything is automatically created</strong>If a record contains something (Activity, User, Team etc.) that does not exist in SalesScreen we create it, there are no seperate endpoints for adding content to SalesScreen.</p>\n</li>\n<li><p><strong>Date</strong><br>  The date used for <code>createdDate</code> is the primary time decider in SalesScreen for widgets, competitions, events and so on. The date chosen here will depend on the context of what you send, it can be the date an Order was accepted or the time of a sent Email.</p>\n</li>\n</ul>\n<h5 id=\"development-details\">DEVELOPMENT DETAILS</h5>\n<p>Get started by looking at the <strong>/Record/Add</strong> endpoint below and the supplied <strong>request body</strong>, which will add a record to SalesScreen and at the same time create the associated Activity Type, Activity and User in your SalesScreen account.</p>\n<p><strong>Tip</strong>: log in to SalesScreen to see an overview of all the activities, users, teams etc. you have added to SalesScreen in the <strong>Mappings</strong> section, you'll find it under <strong>Settings</strong>.</p>\n<p><strong>Activity Type</strong>, <strong>Activity</strong>, <strong>Team</strong> and <strong>Dropdown1</strong>, <strong>Dropdown2</strong> entities are automatically created if they do not exist, also users will be added automatically if the <strong>User</strong> contains both an Id and an email.</p>\n<p>If it is not practical to include the user email for every request to <strong>/Record/Add</strong> the endpoint will return the error code \"missingUser\" and a list of the missing users. Typical workflow would then be:</p>\n<ul>\n<li><p><strong>Send a list records</strong> - Record/Add</p>\n</li>\n<li><p><strong>Handle any missing users</strong> - <em>User/Add</em></p>\n</li>\n</ul>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"302212","collectionId":"635233d3-bf74-4b41-97b8-5b5c05d6b400","publishedId":"SVSBxDUK","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"333333","highlight":"1EAFAA"},"publishDate":"2019-08-21T11:44:36.000Z"},"item":[{"name":"Main Implementation","item":[{"name":"/Record/Add","id":"7172ed26-da20-4963-8b80-427ee319e996","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"apiKey","type":"text","value":"{{apiKey}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"[\n    {\n        \"id\": \"1234567\",\n        \"activityTypeName\": \"Sale\",\n        \"user\": {\n            \"id\": \"user_1234\",\n            \"email\": \"[your email]\",\n            \"firstname\": \"John\",\n            \"lastname\": \"Doe\"\n        },\n        \"activity\": {\n            \"key\": \"pro package\",\n            \"name\": \"\"\n        },\n        \"quantity\": 1,\n        \"value1\": 2000,\n        \"text1\": \"Customer A\"\n    }\n]"},"url":"https://connect.salesscreen.com/api/v1/Record/Add","description":"<h4 id=\"get-started\">Get started</h4>\n<p>Please copy the base json in the <strong>Body</strong> below and fill in your email to get started. Then add properties as you see fit from the <strong>Record</strong> model definition.</p>\n<h5 id=\"complete-record-model\">Complete <strong>Record</strong> model</h5>\n<ul>\n<li><p><strong>Records</strong></p>\n<ul>\n<li><p><strong>Id</strong> (required): Unique ID of the record you are sending to SalesScreen.</p>\n</li>\n<li><p><strong>ActivityTypeName</strong> (required): Unique string for Activity Type.</p>\n</li>\n<li><p><strong>User</strong> (required): creator/owner</p>\n<ul>\n<li><p><strong>Id</strong> (required): Unique ID of the creator/owner of the record.</p>\n</li>\n<li><p><strong>Email</strong> (optional): string</p>\n</li>\n<li><p><strong>Firstname</strong> (optional): string</p>\n</li>\n<li><p><strong>Lastname</strong> (optional): string</p>\n</li>\n<li><p><strong>Team</strong> (optional)</p>\n<ul>\n<li><p><strong>Key</strong>: unique Key or Name.</p>\n</li>\n<li><p><strong>Name</strong>: string</p>\n</li>\n</ul>\n</li>\n</ul>\n</li>\n<li><p><strong>Activity</strong> (required)</p>\n<ul>\n<li><p><strong>Key</strong> (required): unique Key or Name for the Activity.</p>\n</li>\n<li><p><strong>Name</strong> (optional): string</p>\n</li>\n</ul>\n</li>\n<li><p><strong>Quantity</strong> (required): int</p>\n</li>\n<li><p><strong>Value1</strong>: double</p>\n</li>\n<li><p><strong>Value2</strong>: double</p>\n</li>\n<li><p><strong>Value3</strong>: double</p>\n</li>\n<li><p><strong>Text1</strong>: string</p>\n</li>\n<li><p><strong>Text2</strong>: string</p>\n</li>\n<li><p><strong>CreatedDate</strong>: ISO 8601 UTC. Specify no date and we set it to <em>Now</em> (if the record is not an edit).</p>\n</li>\n<li><p><strong>Date2</strong>: ISO 8601 UTC</p>\n</li>\n<li><p><strong>Dropdown1</strong>: Dynamic filter value (i.e. origin, source or status)</p>\n<ul>\n<li><p><strong>Key</strong>: unique Key or Name.</p>\n</li>\n<li><p><strong>Name</strong>: string</p>\n</li>\n</ul>\n</li>\n<li><p><strong>Dropdown2</strong>: Dynamic filter value (i.e. origin, source or status)</p>\n<ul>\n<li><p><strong>Key</strong>: unique Key or Name.</p>\n</li>\n<li><p><strong>Name</strong>: string</p>\n</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n","urlObject":{"protocol":"https","path":["api","v1","Record","Add"],"host":["connect","salesscreen","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"7172ed26-da20-4963-8b80-427ee319e996"},{"name":"/User/Add","id":"129a43a0-1a6b-4b7e-8bc3-6f015fa97981","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"apiKey","value":"{{apiKey}}","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"userId\": \"user_1234\",\n\t\"email\": \"johndoe@salesscreen.com\",\n\t\"firstname\": \"John\",\n\t\"lastname\": \"Doe\",\n    \"imageUrl\": \"your_public_url\",\n    \"team\": {\n        \"key\": \"my_super_team\", \n        \"name\": \"Super Team\"\n    }\n}"},"url":"https://connect.salesscreen.com/api/v1/User/Add","description":"<p><strong>UserId</strong> is the same Id of the <strong>User</strong> you specify when adding records.<br /><strong>ImageUrl</strong> is optional and can also be uploaded by the user inside the plattform.</p>\n","urlObject":{"protocol":"https","path":["api","v1","User","Add"],"host":["connect","salesscreen","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"129a43a0-1a6b-4b7e-8bc3-6f015fa97981"}],"id":"65941ab7-4fb8-48b9-820d-f2ff0b158a82","event":[{"listen":"prerequest","script":{"id":"11c0785d-ac75-4c3a-b256-188d0d06abd9","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"767eb27f-edf7-491f-8875-835b7d66e480","type":"text/javascript","exec":[""]}}],"_postman_id":"65941ab7-4fb8-48b9-820d-f2ff0b158a82","description":""},{"name":"Support Function","item":[{"name":"/ActivityType/Get","id":"26a6ab11-75c6-4f5f-8d25-35fd39e93e27","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"apiKey","value":"{{apiKey}}","type":"text"}],"url":"https://connect.salesscreen.com/api/v1/ActivityType/Get","urlObject":{"protocol":"https","path":["api","v1","ActivityType","Get"],"host":["connect","salesscreen","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"26a6ab11-75c6-4f5f-8d25-35fd39e93e27"},{"name":"/User/DisableByEmail","id":"43609e59-5f15-4ac2-ba12-c71a8dbe9c87","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"apiKey","value":"{{apiKey}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"john.doe@testco.com\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://connect.salesscreen.com/api/v1/User/DisableByEmail","urlObject":{"protocol":"https","path":["api","v1","User","DisableByEmail"],"host":["connect","salesscreen","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"43609e59-5f15-4ac2-ba12-c71a8dbe9c87"}],"id":"88d55bc5-862d-47ad-b534-7bd9dfdf7e9b","description":"<p><strong>/ActivityType/Get</strong>\nlists the <strong>Activity Types</strong> in your company with properties for each type and their custom name. </p>\n<p>Use case for this is primarily if Activity Types have been defined in SalesScreen and you do not have access to the account. </p>\n<p>Each <strong>Activity Type</strong> has the same available fields (quantity, value2, value3...) but they might be very different in the context of the type. Example: you have two <strong>Activity Types</strong> \"Sales\" and \"Calls\" the value2 field could be \"sale value\" and \"call duration\" respectively. </p>\n","event":[{"listen":"prerequest","script":{"id":"481c242c-c813-4ffc-8c3e-70e257665c2b","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"7b376764-01b3-40da-b9b9-87c477a9694d","type":"text/javascript","exec":[""]}}],"_postman_id":"88d55bc5-862d-47ad-b534-7bd9dfdf7e9b"}],"event":[{"listen":"prerequest","script":{"id":"21994068-9115-4f5e-b39a-8e07919f081f","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"fb9030fd-bb6d-472f-a506-47dba9d04473","type":"text/javascript","exec":[""]}}]}