{"info":{"_postman_id":"a6c1d2f0-da14-45ba-8f69-4084338ecaec","name":"Admin-APIS Copy 2","description":"<html><head></head><body><p>These collection includes set of APIs which can be used for generation of Discount Coupons, verification of those coupons and to redeem those coupons as a API service</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"17263120","collectionId":"a6c1d2f0-da14-45ba-8f69-4084338ecaec","publishedId":"2s93JtQPPx","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2023-03-12T02:56:58.000Z"},"item":[{"name":"signup","id":"7dd7c17f-c262-477b-b45a-0953b6829784","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\" : \"ojask2002@gmail.com\",\r\n    \"name\" : \"Ojas\",\r\n    \"company\" : \"myntra\",\r\n    \"password\" : \"12345678\"\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:5001/api/auth/signup","description":"<p>Route for User Signup</p>\n","urlObject":{"port":"5001","path":["api","auth","signup"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"7dd7c17f-c262-477b-b45a-0953b6829784"},{"name":"login","id":"160368c2-f6a7-44cf-9c3a-6dc0cafed75c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n      \"email\" : \"ojask2002@gmail.com\",\r\n    \"password\" : \"12345678\"\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:5001/api/auth/login","description":"<p>StartFragment</p>\n<p>Route for User Login</p>\n","urlObject":{"port":"5001","path":["api","auth","login"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"160368c2-f6a7-44cf-9c3a-6dc0cafed75c"},{"name":"GetAllCoupons","id":"42ffd6c1-e042-46b8-88cf-982dc123f93d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://incento-backend.vercel.app/api/Scoupon/getAllStatic?company_name=myntra","description":"<p>StartFragment</p>\n<p>GET Request to get all of the Static Coupons with company name acting as an unique id parameter.</p>\n<p>EndFragment</p>\n","urlObject":{"protocol":"https","path":["api","Scoupon","getAllStatic"],"host":["incento-backend","vercel","app"],"query":[{"key":"company_name","value":"myntra"}],"variable":[]}},"response":[],"_postman_id":"42ffd6c1-e042-46b8-88cf-982dc123f93d"},{"name":"Generate S-Coupon","id":"d15fac8e-d665-402c-b488-de5238a5ed66","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"company_name\" : \"myntra\" , \r\n    \"coupon_code\" : \"ICO-MYN-1234\",\r\n    \"max_count\" : 50,\r\n    \"redeem_count\" : 0,\r\n    \"creator_email\":\"ojask2002@gmail.com\",\r\n    \"product_categories\" : [\"Shoes\"],\r\n    \"expires_at\" : \"2023-03-29T13:34:00.000\",\r\n    \"expired\" : false,\r\n    \"verify_count\": 0,\r\n    \"users\" : {}\r\n}","options":{"raw":{"language":"json"}}},"url":"https://incento-backend.vercel.app/api/Scoupon/generate","description":"<p>Generation of Static Coupons based on Client Selection criterias such as Num of Coupons, Maximum Discount and Product Categories it is applicable to</p>\n","urlObject":{"protocol":"https","path":["api","Scoupon","generate"],"host":["incento-backend","vercel","app"],"query":[],"variable":[]}},"response":[],"_postman_id":"d15fac8e-d665-402c-b488-de5238a5ed66"},{"name":"Generate D-Coupon","id":"48ffdaeb-f005-4722-bd1f-ef7ec5ec7504","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"company_name\": \"myntra\",\r\n    \"creator_email\": \"ojask2002@gmail.com\",\r\n    \"expires_at\": \"2023-03-01T05:41:00.000Z\",\r\n    \"expired\": false,\r\n    \"rules\": {\r\n        \"conditions\": [\r\n            {\r\n                \"pre\": \"cart-value\",\r\n                \"equ\": \"greater-than\",\r\n                \"suff\": null,\r\n                \"suf\": \"123\"\r\n            },\r\n            {\r\n                \"pre\": \"product-type\",\r\n                \"equ\": \"equals\",\r\n                \"suff\": null,\r\n                \"suf\": \"hat\"\r\n            }\r\n        ],\r\n        \"effects\": [\r\n            {\r\n                \"effect\": \"free\",\r\n                \"offer\": null\r\n            },\r\n            {\r\n                \"effect\": \"cashback\",\r\n                \"offer\": \"12\"\r\n            }\r\n        ]\r\n    },\r\n    \"users\": {}\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5001/api/dCoupon/generate","description":"<p>Generation of Static Coupons based on Client Selection criterias such as Num of Coupons, Maximum Discount and Product Categories it is applicable to</p>\n","urlObject":{"protocol":"http","port":"5001","path":["api","dCoupon","generate"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"48ffdaeb-f005-4722-bd1f-ef7ec5ec7504"},{"name":"Verify S-Coupon","id":"5f884b31-30e2-493b-8410-5a52e9b38375","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"company\" : \"myntra\" , \r\n    \"coupon_code\" : \"ICO-myn-Ylym\",\r\n    \"category\" : \"Hats\",\r\n    \"uid\" : \"640c2f038654dff0f99b973a\"\r\n    \r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:5001/api/Scoupon/verify","description":"<p>Route for Verification of Static Coupons which returns whether the sent coupon is redeemable or not.</p>\n","urlObject":{"port":"5001","path":["api","Scoupon","verify"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"5f884b31-30e2-493b-8410-5a52e9b38375"},{"name":"Verify D-Coupon","id":"2fcb9abd-e98d-432a-9456-027927ff7706","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"company_name\" : \"myntra\" , \r\n    \"coupon_code\" : \"ICO-myn-iDlL\",\r\n    \"category\" : \"Hats\",\r\n    \"uid\" : \"prachet\"\r\n    \r\n}","options":{"raw":{"language":"json"}}},"url":"https://incento-backend.vercel.app/api/Dcoupon/verify","description":"<p>Route for Verification of Dynamic Coupons which returns whether the sent coupon is redeemable or not.</p>\n","urlObject":{"protocol":"https","path":["api","Dcoupon","verify"],"host":["incento-backend","vercel","app"],"query":[],"variable":[]}},"response":[],"_postman_id":"2fcb9abd-e98d-432a-9456-027927ff7706"},{"name":"Redeem D-Coupon","id":"f7318293-62cf-420b-8950-96014d04776c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"company_name\" : \"myntra\" , \r\n    \"coupon_code\" : \"ICO-myn-iDlL\",\r\n    \"category\" : \"Hats\",\r\n    \"uid\" : \"ojas\"\r\n    \r\n}","options":{"raw":{"language":"json"}}},"url":"https://incento-backend.vercel.app/api/Dcoupon/redeem","description":"<p>Route for Redeeming Dynamic Coupon which performs the processing required for using the coupon on marketpace and updates the database.</p>\n","urlObject":{"protocol":"https","path":["api","Dcoupon","redeem"],"host":["incento-backend","vercel","app"],"query":[],"variable":[]}},"response":[],"_postman_id":"f7318293-62cf-420b-8950-96014d04776c"},{"name":"Redeem S-Coupon","id":"fa079436-2cc7-444c-b47a-637e44a1225d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"company\" : \"myntra\" , \r\n    \"coupon_code\" : \"ICO-myn-Ylym\",\r\n    \"category\" : \"Hats\",\r\n    \"uid\" : \"640c2f038654dff0f99b973a\"\r\n    \r\n}","options":{"raw":{"language":"json"}}},"url":"https://incento-backend.vercel.app/api/Dcoupon/redeem","description":"<p>Route for Redeeming Static Coupon which performs the processing required for using the coupon on marketpace and updates the database.</p>\n","urlObject":{"protocol":"https","path":["api","Dcoupon","redeem"],"host":["incento-backend","vercel","app"],"query":[],"variable":[]}},"response":[],"_postman_id":"fa079436-2cc7-444c-b47a-637e44a1225d"}]}