{"info":{"_postman_id":"27066c51-74a7-495c-b0cf-7a25fb1091ae","name":"Imprzd Login Flow API Guide","description":"<html><head></head><body><h2 id=\"🚀getting-started\">🚀<strong>Getting Started</strong></h2>\n<p>Welcome to the Imprzd API workspace. The Imprzd API is organized around <a href=\"http://en.wikipedia.org/wiki/Representational_State_Transfer\">REST</a>. Our API has predictable resource-oriented URLs, accepts <a href=\"http://www.json.org/\">JSON-encoded</a> request bodies, returns <a href=\"http://www.json.org/\">JSON-encoded</a> responses, and uses standard HTTP response codes, authentication, and verbs.</p>\n<hr>\n<h2 id=\"⚒️pre-requisites\">⚒️<strong>Pre-requisites</strong></h2>\n<p>Before utilizing these APIs, ensure the following pre-requisites are met:</p>\n<ol>\n<li><strong>Account Creation:</strong> Make sure your Imprzd account has been successfully created.</li>\n<li><strong>Customer Segments:</strong> Finalize the criteria for segmenting your customers based on your marketing objectives.</li>\n<li><strong>Campaigns:</strong> Ensure that the Imprzd team has created the campaigns for all the finalized customer segments to ensure seamless automation of your marketing efforts.</li>\n</ol>\n<p>Once these pre-requisites are fulfilled, you can proceed to leverage the APIs to automate the execution of your targeted marketing campaigns.</p>\n<hr>\n<h2 id=\"🐞handling-errors\">🐞<strong>Handling Errors</strong></h2>\n<p>Imprzd uses conventional HTTP response codes to indicate the success or failure of an API request. In general,</p>\n<ol>\n<li>codes in the <code>2xx</code> range indicate success,</li>\n<li>codes in the <code>4xx</code> range indicate failure due to an error in the API request,</li>\n<li>codes in the <code>5xx</code> range indicate failure due to an error with Imprzd's servers (these are rare).</li>\n</ol>\n<p>Imprzd provides detailed descriptions in the API response in case of a failure. Hence, you can handle the <code>4xx</code> errors accordingly in your code.</p>\n<hr>\n<h2 id=\"📞help-and-support\">📞Help and Support</h2>\n<p>If you have any questions or need further assistance, please do not hesitate to reach out to us at <a href=\"https://mailto:hello@imprzd.com\">hello@imprzd.com</a>.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"28328713","collectionId":"27066c51-74a7-495c-b0cf-7a25fb1091ae","publishedId":"2sA35BaiUB","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-03-25T04:41:01.000Z"},"item":[{"name":"Campaign_url","id":"06db1545-d359-46b7-8f1e-e7453ece5bc6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n\"merchantID\":\"{{Encoded MerchantID}}\"\r\n\"segmentID\": \"{{SegmentID}}\",\r\n\"segmentType\": \"{{SegmentType}}\",\r\n\"username\": \"{{Name of the User}}\",\r\n\"userId\":\"{{ID of the User}}\",\r\n\"segmentInfo1\": \"{{addl.info of the segment}}\",\r\n\"segmentInfo2\":\"{{addl.info of the segment}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"www.imprzd.com/BroadcastImpression/api/campaign/createUrl","description":"<p><strong>API Usage:</strong></p>\n<p><strong>Recommended Trigger Point:</strong> Setup a Button code in the Merchant Web site or APP.Recommended Segmentation: Campaigns would be Pre-mapped corresponding to the Product ID and Customer Type.</p>\n<p><strong>Ecommerce Business Use Case:</strong> Demographics: Segment customers by age, gender, and location.</p>\n<p><strong>Purchase Behavior:</strong> Segment customers based on their past purchase behavior, such as purchased product category, order history, frequency, and preferences.</p>\n<p><strong>Education Business Use Case:</strong></p>\n<p><strong>Course Discipline:</strong> Segment students enrolled in specific courses.</p>\n<p><strong>Demographics:</strong> Segment students based on age, location, and qualification.</p>\n<p><strong>Top Performers:</strong> Segment top-performers in each discipline.</p>\n<p><strong>Other Industries:</strong> For businesses in other industries or with unique segmentation requirements, please reach out to us. We are here to provide personalized suggestions and guidance on how to best utilize the API for your specific use case.</p>\n<p><strong>API Definition:</strong> This end point helps to fetch the Proposed Custom Campaign_URL. You can use this endpoint to run your campaigns in auto-pilot from your web site/APP entry point.</p>\n<p>It allows you to:Send the specific parameters.Validate the parametersReturn the Encoded Campaign_url in real time response.</p>\n<h3 id=\"request-parameters\">Request Parameters</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>PARAMETERS</th>\n<th>DEFINITION,USAGE &amp; EXAMPLES</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>segmentID</strong> mandatory</td>\n<td><strong>String</strong> SegmentID which identifier to the user for segmentation which is used to Segmentize the Campaign.  <br />  <br /><strong>For E-commerce:</strong> SegmentID can be a Product ID which is associated with the User.  <br />  <br /><strong>For Edu Tech:</strong> SegmentID can be a Course ID which is associated with the Student.</td>\n</tr>\n<tr>\n<td><strong>segmentType</strong> mandatory</td>\n<td><strong>String</strong> The SegmentType is to segment the User Nature which is used to segmentize the user  <br />  <br /><strong>For E-commerce:</strong> User Type would be Customer Type (New/Repeat/Prime) etc..  <br />  <br /><strong>For Edu Tech:</strong> User Type would be based on the Student (New/Alumini/Toppers) etc..</td>\n</tr>\n<tr>\n<td><strong>username</strong> mandatory</td>\n<td><strong>String</strong> The Username is to get the Full Name of the user.  <br />  <br /><strong>For E-commerce:</strong> Full Name of the Customer.  <br />  <br /><strong>For Edu Tech:</strong> Full Name of the Student</td>\n</tr>\n<tr>\n<td><strong>userId</strong> mandatory</td>\n<td><strong>String</strong> The userId - Unique identifier of the user at Merchant System.  <br />  <br /><strong>For E-Commerce:</strong> Customer ID Assigned in Merchant System.  <br />  <br /><strong>For Edu Tech:</strong> Student ID assigned in their Eductional Instituational System.</td>\n</tr>\n<tr>\n<td><strong>segmentInfo1</strong> optional</td>\n<td><strong>String</strong> The SegmentInfo1 is used to pass the Gender info (M/F) related to Segmentation to select the Gender specific Images to the post creation.  <br />  <br /><strong>For E-commerce:</strong> In this parameter, Gender Information related to the product Segment can be sent.  <br />  <br /><strong>For Edu Tech:</strong> In this parameter, Gender Information related to the Course Segment can be sent.</td>\n</tr>\n<tr>\n<td><strong>segmentInfo2</strong> optional</td>\n<td><strong>String</strong> The SegmentInfo1 is used to pass the additional info related to Segmentation.  <br />  <br /><strong>For E-commerce:</strong> In this parameter, additional details related to the product Segment can be sent.  <br />  <br /><strong>For Edu Tech:</strong> In this parameter, additional details related to the Course Segment can be sent.</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["BroadcastImpression","api","campaign","createUrl"],"host":["www","imprzd","com"],"query":[],"variable":[]}},"response":[{"id":"fa021c35-bd08-482f-808c-22d8fd835dbc","name":"Scenario 1: Sucess Response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"merchantId\": \"NTk=\",\r\n    \"segmentId\": \"CDT1\",\r\n    \"segmentType\": \"new\",\r\n    \"username\": \"Rahul\",\r\n    \"userId\":\"Student_ID_01\",\r\n    \"segmentInfo1\": \"\",\r\n    \"segmentInfo2\":\"\"\r\n}","options":{"raw":{"language":"json"}}},"url":"www.imprzd.com/BroadcastImpression/api/campaign/createUrl"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 200,\n    \"message\": \"REQUEST COMPLETED\",\n    \"data\": \"https://www.imprzd.com/impressions-web/#/consumer-flow/Q/MzM53r\",\n    \"token\": null,\n    \"errors\": null\n}"}],"_postman_id":"06db1545-d359-46b7-8f1e-e7453ece5bc6"}],"event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":[""],"id":"b43511db-a05f-4da8-b5f7-d219d59bed6e"}},{"listen":"test","script":{"type":"text/javascript","exec":[""],"id":"6b451082-bf02-442f-840e-b0c83c03e907"}}],"variable":[{"id":"6a7bcc1e-c8d4-42b6-b939-ec1fadc5c6ac","key":"jwt_token","value":"eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJJTVBSWkQvQXV0aFNlcnZpY2VzIiwiZXhwIjoxNjg2MTI3MTQyLCJuYW1lIjoiVG9rZW5EYXRhIiwiZGF0YSI6IntcImlkXCI6NjksXCJmaXJzdG5hbWVcIjpcInTDtmhsXCIsXCJlb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