{"info":{"_postman_id":"b0170a28-e244-4698-be6b-8b89bc828201","name":"Connect API","description":"<html><head></head><body><p>This is the backend for the Connect web app.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"4647799","collectionId":"b0170a28-e244-4698-be6b-8b89bc828201","publishedId":"S17wM6DB","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2019-03-28T18:56:02.000Z"},"item":[{"name":"Account","item":[{"name":"Recipient Signup","id":"f70952fb-57d0-4126-a006-243f76236a80","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"agency\": \"St Vincent de Vincent de Vincent\",\n\t\"email\": \"lmaothisisntrealbr0@emailio1.com\",\n\t\"password\": \"Thispasswordisfineiguess\",\n\t\"UUID\": \"1234567890\",\n\t\"ein\": \"12-1234567\",\n\t\"office\" : \"1234567789\",\n\t\"instructions\": \"Idk, just, don't do whatever you feel like man.\",\n    \"name\": \"Namebob Namepants\",\n    \"peopleFed\": 10000,\n    \"fridgeCap\": 2002,\n    \"broadAvailability\": {\n        \"Monday\": 10,\n        \"Thursday\": 0,\n        \"Friday\": 10,\n        \"Sunday\": 0,\n        \"Wednesday\": 11,\n        \"Tuesday\": 11,\n        \"Saturday\": 10\n    },\n    \"address\": {\n        \"street\": \"501 Buckland Road\",\n        \"state\": \"Matamata\",\n        \"city\": \"Hinuera\",\n        \"country\": \"New Zealand\",\n        \"postal\": \"3472\"\n    },\n    \"refusedCategories\": [\n        \"N17Auqj9Z1\",\n        \"3QiBa89lvB\"\n    ]\n}"},"url":"https://connect-sandbox.gw.gocopia.com/signup","description":"<p>Signs up a recipient, but doesn't generate an <code>accessCode</code>.\nMust include all fields necessary for a Recipient to receive donations, this means their <code>broadAvailability</code>, <code>refusedCategories</code>, <code>fridgeCap</code>, and <code>peopleFed</code> must also be provided.</p>\n<p>ALL fields are REQUIRED.</p>\n","urlObject":{"protocol":"https","path":["signup"],"host":["connect-sandbox","gw","gocopia","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"f70952fb-57d0-4126-a006-243f76236a80"},{"name":"Edit Profile","id":"14d6edb0-c352-42ae-8153-5d76a247d995","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"password":"<password>","username":"<username>"},"isInherited":false},"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"instructions\": \"Idk, just, don't do whatever you feel like man.\",\n    \"name\": \"This is my name now\",\n    \"password\": \"GOOD_PASSWORD\",\n    \"peopleFed\": 10000,\n    \"fridgeCap\": 2002,\n    \"broadAvailability\": {\n        \"Monday\": 10,\n        \"Thursday\": 0,\n        \"Friday\": 10,\n        \"Sunday\": 0,\n        \"Wednesday\": 11,\n        \"Tuesday\": 11,\n        \"Saturday\": 10\n    },\n    \"office\": \"3102234745\",\n    \"agency\": \"St. Vincent de GUAC\",\n    \"address\": {\n        \"street\": \"501 Buckland Road\",\n        \"state\": \"Matamata\",\n        \"city\": \"Hinuera\",\n        \"country\": \"New Zealand\",\n        \"postal\": \"3472\"\n    },\n    \"refusedCategories\": [\n        \"N17Auqj9Z1\",\n        \"3QiBa89lvB\"\n    ]\n}"},"url":"https://connect-sandbox.gw.gocopia.com/profile","description":"<p>Lets an admin authorized recipient edit pretty much every used field of the recipient model except categoryPrefs. </p>\n","urlObject":{"protocol":"https","path":["profile"],"host":["connect-sandbox","gw","gocopia","com"],"query":[],"variable":[]}},"response":[{"id":"11072be0-c773-44ef-abe9-5efb7bfadb5f","name":"Google can't find that address","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"address\": {\n    \t\"street\": \"1\",\n        \"state\":    \"1\",\n        \"city\": \"1\",\n        \"country\": \"1\",\n        \"postal\": \"1\"\n    }\n    \n    \n}"},"url":"http://localhost:8080/profile"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,OPTIONS"},{"key":"Access-Control-Allow-Headers","value":"Content-Type,Content-Encoding,Vary,Authorization"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Date","value":"Fri, 05 Apr 2019 21:07:46 GMT"},{"key":"Connection","value":"close"},{"key":"Content-Length","value":"129"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": {\n        \"external\": \"We had trouble finding this address, please try again.\",\n        \"internal\": \"Google couldn't find this address\",\n        \"context\": \"generic\"\n    }\n}"},{"id":"467701fe-3541-4adb-ab3b-3f2a3bd1ed2a","name":"Password is too short","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"password\": \"2short\"   \n}"},"url":"http://localhost:8080/profile"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,OPTIONS"},{"key":"Access-Control-Allow-Headers","value":"Content-Type,Content-Encoding,Vary,Authorization"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Date","value":"Fri, 05 Apr 2019 21:08:15 GMT"},{"key":"Connection","value":"close"},{"key":"Content-Length","value":"112"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": {\n        \"external\": \"Passwords should be at least 8 characters long.\",\n        \"internal\": \"Password is too short\",\n        \"context\": \"generic\"\n    }\n}"}],"_postman_id":"14d6edb0-c352-42ae-8153-5d76a247d995"},{"name":"Edit Refused Categories","id":"03e89d7e-67b0-4f88-afbc-76f042f23763","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"password":"<password>","username":"<username>"},"isInherited":false},"method":"PUT","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"refusedCategories\": [\"N17Auqj9Z1\", \"3QiBa89lvB\"]\n}"},"url":"https://connect-sandbox.gw.gocopia.com/profile/categories","description":"<p>Edits the <code>refusedCategories</code> field in the recipient to the recieved mapping of <code>refusedCategories</code> to a set of the <code>CategoryIds</code> that a recipient refuses to accept.</p>\n","urlObject":{"protocol":"https","path":["profile","categories"],"host":["connect-sandbox","gw","gocopia","com"],"query":[],"variable":[]}},"response":[{"id":"181e2777-ab16-4257-9398-c2d4f38c3753","name":"Edit Refused Categories","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"refusedCategories\": [\"N17Auqj9Z1\", \"3QiBa89lvB\"]\n}"},"url":"http://localhost:8080/profile/categories"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,OPTIONS"},{"key":"Access-Control-Allow-Headers","value":"Content-Type,Content-Encoding,Vary,Authorization"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Date","value":"Tue, 30 Apr 2019 22:26:12 GMT"},{"key":"Content-Length","value":"69"}],"cookie":[],"responseTime":null,"body":"{\n    \"refusedCategories\": [\n        \"N17Auqj9Z1\",\n        \"3QiBa89lvB\"\n    ]\n}"},{"id":"4d33c2fb-c4a5-4e27-9b79-edf098e974cd","name":"Invalid categoryId","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"refusedCategories\": [\"N17Auqj9Z1\", \"3QiBa89lvB\", \"Not a good categoryId\"]\n}"},"url":"http://localhost:8080/profile/categories"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,OPTIONS"},{"key":"Access-Control-Allow-Headers","value":"Content-Type,Content-Encoding,Vary,Authorization"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Date","value":"Tue, 30 Apr 2019 22:26:47 GMT"},{"key":"Connection","value":"close"},{"key":"Content-Length","value":"157"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": {\n        \"external\": \"Whoops, something went wrong. Please refresh the page or try again!\",\n        \"internal\": \"Attempting to add an invalid categoryId to refusedCategories\",\n        \"context\": \"generic\"\n    }\n}"}],"_postman_id":"03e89d7e-67b0-4f88-afbc-76f042f23763"},{"name":"EIN Check","id":"816ed2b0-54ea-4037-bd0f-3dc6418dddf9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"ein\": \"THIS-IS-AN-EIN\"\n}"},"url":"https://connect.gw.gocopia.com/ein","description":"<p>Endpoint for preventing duplicate Recipient sign-ups. Checks the provided EIN for existing Recipients, then returns the addresses + agency names for those Recipients for the recipient to check before continuing with the signup process.</p>\n<p>Won't return einFound as <code>true</code> if the agencies found don't have a valid addressId. </p>\n","urlObject":{"protocol":"https","path":["ein"],"host":["connect","gw","gocopia","com"],"query":[],"variable":[]}},"response":[{"id":"34a8a8ec-afdb-4150-bf98-d29870cb25e7","name":"Missing ein JSON Key","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"notEin\": \"THIS-IS-AN-EIN\"\n}"},"url":"http://localhost:8080/ein"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,OPTIONS"},{"key":"Access-Control-Allow-Headers","value":"Content-Type,Content-Encoding,Vary,Authorization"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Date","value":"Fri, 24 May 2019 00:46:35 GMT"},{"key":"Connection","value":"close"},{"key":"Content-Length","value":"137"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": {\n        \"external\": \"Whoops, something went wrong. Please refresh the page or try again!\",\n        \"internal\": \"JSON is missing key: ein\",\n        \"context\": \"generic\"\n    }\n}"},{"id":"3c31c756-b171-45fe-85d3-492166f8a159","name":"EIN Found","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"ein\": \"THIS-IS-AN-EIN\"\n}"},"url":"http://localhost:8080/ein"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,OPTIONS"},{"key":"Access-Control-Allow-Headers","value":"Content-Type,Content-Encoding,Vary,Authorization"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Date","value":"Fri, 24 May 2019 00:44:10 GMT"},{"key":"Content-Length","value":"279"}],"cookie":[],"responseTime":null,"body":"{\n    \"einFound\": true,\n    \"recipients\": [\n        {\n            \"country\": \"USA\",\n            \"createdAt\": 1554941166,\n            \"visible\": true,\n            \"agency\": \"St. Vincent de NRLMQH\",\n            \"city\": \"Beaver Island\",\n            \"street\": \"28215 Airport Rd\",\n            \"tzId\": \"America/Los_Angeles\",\n            \"state\": \"MI\",\n            \"postal\": \"49782\",\n            \"addressId\": \"3ZCyZkjMbQ\"\n        },\n        {\n            \"country\": \"USA\",\n            \"createdAt\": 1554941166,\n            \"visible\": true,\n            \"agency\": \"St. Vincent de FVAUJR\",\n            \"city\": \"Beaver Island\",\n            \"street\": \"28215 Airport Rd\",\n            \"tzId\": \"America/Los_Angeles\",\n            \"state\": \"MI\",\n            \"postal\": \"49782\",\n            \"addressId\": \"3ZCyZkjMbQ\"\n        },\n        {\n            \"country\": \"USA\",\n            \"createdAt\": 1555350706,\n            \"visible\": true,\n            \"agency\": \"Go Copia, PBC\",\n            \"city\": \"Beaver Island\",\n            \"street\": \"28215 Airport Rd\",\n            \"tzId\": \"America/Los_Angeles\",\n            \"state\": \"MI\",\n            \"postal\": \"49782\",\n            \"addressId\": \"dgoCpYG0gg\"\n        },\n        {\n            \"country\": \"USA\",\n            \"createdAt\": 1554941166,\n            \"visible\": true,\n            \"agency\": \"St. Vincent de STCLUL\",\n            \"city\": \"Beaver Island\",\n            \"street\": \"28215 Airport Rd\",\n            \"tzId\": \"America/Los_Angeles\",\n            \"state\": \"MI\",\n            \"postal\": \"49782\",\n            \"addressId\": \"3ZCyZkjMbQ\"\n        }\n    ]\n}"},{"id":"8a7d7453-1f75-48ef-af08-81cd9c61e4b4","name":"EIN Not Found","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"ein\": \"THIS-IS-NOT-AN-EIN-PROBABLY\"\n}"},"url":"http://localhost:8080/ein"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,OPTIONS"},{"key":"Access-Control-Allow-Headers","value":"Content-Type,Content-Encoding,Vary,Authorization"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Date","value":"Fri, 24 May 2019 00:45:54 GMT"},{"key":"Content-Length","value":"38"}],"cookie":[],"responseTime":null,"body":"{\n    \"einFound\": false\n}"}],"_postman_id":"816ed2b0-54ea-4037-bd0f-3dc6418dddf9"},{"name":"Get Profile","id":"5e9b9892-2c36-44b0-8411-154841624653","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"username":"<username>","password":"<password>"},"isInherited":false},"method":"GET","header":[],"url":"https://connect-sandbox.gw.gocopia.com/profile","description":"<p>Returns the authenticated Recipient, its Address broken down in an <code>address</code> map, and all of the default categories and their descriptors in the <code>categories</code> map. The <code>categories</code> map is sorted by the descriptor values.</p>\n<h2 id=\"success-200-ok\">Success: 200 OK</h2>\n","urlObject":{"protocol":"https","path":["profile"],"host":["connect-sandbox","gw","gocopia","com"],"query":[],"variable":[]}},"response":[{"id":"b684f2cd-f53d-47a0-90b0-c0f7e04b3d01","name":"Get Profile","originalRequest":{"method":"GET","header":[],"url":"https://connect-sandbox.gw.gocopia.com/profile"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,OPTIONS"},{"key":"Access-Control-Allow-Headers","value":"Content-Type,Content-Encoding,Vary,Authorization"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Date","value":"Thu, 06 Jun 2019 00:42:54 GMT"},{"key":"Content-Length","value":"937"}],"cookie":[],"responseTime":null,"body":"{\n    \"instructions\": \"Idk, just, don't do whatever you feel like man.\",\n    \"agency\": \"St. Vincent de GUAC\",\n    \"ein\": \"69-4206969\",\n    \"peopleFed\": 10000,\n    \"contractPdf\": \"CANTFINDTHIS\",\n    \"addressId\": \"TSXv1QRT7A\",\n    \"broadAvailability\": {\n        \"Monday\": 10,\n        \"Thursday\": 0,\n        \"Friday\": 10,\n        \"Sunday\": 0,\n        \"Wednesday\": 11,\n        \"Tuesday\": 11,\n        \"Saturday\": 10\n    },\n    \"refusedCategories\": [\n        \"N17Auqj9Z1\",\n        \"3QiBa89lvB\"\n    ],\n    \"accessCode\": \"MXFPVH\",\n    \"name\": \"This is my name now\",\n    \"contractId\": \"417017fa-1cc3-4159-9e16-eb5518ab233c\",\n    \"recipientId\": \"0u2UcoSt4Q\",\n    \"copiaPartner\": true,\n    \"fridgeCap\": 2002,\n    \"email\": \"jared@gocopia.com\",\n    \"address\": {\n        \"country\": \"New Zealand\",\n        \"city\": \"Hinuera\",\n        \"street\": \"501 Buckland Road\",\n        \"latitude\": -37.8723441,\n        \"tzId\": \"Pacific/Auckland\",\n        \"state\": \"Matamata\",\n        \"postal\": \"3472\",\n        \"addressId\": \"TSXv1QRT7A\",\n        \"longitude\": 175.6833613\n    },\n    \"categories\": {\n        \"8D2yCdhs18\": \"Baby Formula\",\n        \"JuqnZ71uiA\": \"Beverages\",\n        \"l1Abv90w-2\": \"Bread & Tortillas\",\n        \"3QiBa89lvE\": \"Burgers & Sandwiches\",\n        \"BBxnz-9qaA\": \"Cheese\",\n        \"Hd92jn-sAs\": \"Dairy\",\n        \"3QiBa89lvG\": \"Deli Meats\",\n        \"JXqcatfwdQ\": \"Desserts\",\n        \"U12nD93jms\": \"Dry Goods\",\n        \"pl2TcpEClw\": \"Fruit\",\n        \"N17Auqj9Z1\": \"Grains\",\n        \"Q0oAlmZdhh\": \"Lettuce & Leaves\",\n        \"3QiBa89lvA\": \"Meat\",\n        \"3QiBa89lvH\": \"Nuts, Seeds, Soy\",\n        \"o9dk1Qoesj\": \"Pasta\",\n        \"F76BvPCUlQ\": \"Pizza\",\n        \"3QiBa89lvB\": \"Poultry\",\n        \"IUDOfi8946\": \"Pre-packaged\",\n        \"p01nx8aaqH\": \"Produce\",\n        \"9Odj2yDeyw\": \"Quick Bread (Biscuit, Muffin, Pastry)\",\n        \"W6W-_LVgMw\": \"Sauce\",\n        \"3QiBa89lvF\": \"Savory Snacks\",\n        \"3QiBa89lvC\": \"Seafood\",\n        \"MqaL1u-All\": \"Soup\",\n        \"k2Jnd9W2kk\": \"Starches\",\n        \"B71uj-a0pZ\": \"Vegetables\",\n        \"Q1un9z0Alq\": \"Vegetarian Protein\"\n    },\n    \"isAdmin\": false\n}"}],"_postman_id":"5e9b9892-2c36-44b0-8411-154841624653"},{"name":"Request Reset Password","id":"8dd72946-7d70-48c6-aca6-a6c221565c7a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"password":"<password>","username":"<username>"},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://connect-sandbox.gw.gocopia.com/profile/reset/request","description":"<p>Request to reset a Recipient's password. </p>\n<p>Sends an email to the provided email. Creates a PasswordReset object, this object's id field will be appended to the Reset Password url and used as a key to verify the Password Reset.</p>\n<p>Returns \"success\" to \"true\"</p>\n","urlObject":{"protocol":"https","path":["profile","reset","request"],"host":["connect-sandbox","gw","gocopia","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"8dd72946-7d70-48c6-aca6-a6c221565c7a"},{"name":"Reset Password","id":"b8a89da9-e533-457d-a27c-c84a3dbbdd5b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"resetId\" : \"d71d7f2eaf6c864ff4e6f6fe82366183\",\n\t\"newPassword\" : \"newpassword\"\n}"},"url":"https://connect-sandbox.gw.gocopia.com/profile/reset","description":"<p>Resets a Recipients password to the value provided by <code>newPassword</code> if the <code>resetId</code> is found in our db.</p>\n","urlObject":{"protocol":"https","path":["profile","reset"],"host":["connect-sandbox","gw","gocopia","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"b8a89da9-e533-457d-a27c-c84a3dbbdd5b"},{"name":"Change Email or Name","id":"507f8292-a1bb-4b2e-aa7e-a2002896f265","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"username":"<username>","password":"<password>"},"isInherited":false},"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"newEmail\": \"newtony@gocopia.com\",\n\t\"newName\": \"The New and Improved Tony\",\n\t\"password\": \"oldpassword\"\n}"},"url":"https://connect-sandbox.gw.gocopia.com/profile/change/emailname","description":"<p>Changes the email of the currently signed in Recipient.</p>\n<p>Requires ADMIN authentication.</p>\n","urlObject":{"protocol":"https","path":["profile","change","emailname"],"host":["connect-sandbox","gw","gocopia","com"],"query":[],"variable":[]}},"response":[{"id":"27afcb2d-1ad3-457b-8621-1cbe9dd41fbe","name":"Change Email and Name","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"newEmail\": \"newtony@gocopia.com\",\n\t\"newName\": \"The New and Improved Tony\",\n\t\"password\": \"oldpassword\"\n}","options":{"raw":{"language":"json"}}},"url":"https://connect-sandbox.gw.gocopia.com/profile/change/emailname"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 15 Oct 2019 23:42:30 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"85"},{"key":"Connection","value":"keep-alive"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,OPTIONS"},{"key":"Access-Control-Allow-Headers","value":"Content-Type,Content-Encoding,Vary,Authorization"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"newEmail\": \"newtony@gocopia.com\",\n    \"newName\": \"The New and Improved Tony\"\n}"},{"id":"66399440-2139-408c-938f-99fcd3576924","name":"Missing correct json","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"newNotEmail\": \"nottony@gocopia.com\",\n\t\"password\": \"oldpassword\"\n}"},"url":"https://connect-sandbox.gw.gocopia.com/profile/change/email"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 07 Sep 2019 00:14:09 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"145"},{"key":"Connection","value":"keep-alive"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,OPTIONS"},{"key":"Access-Control-Allow-Headers","value":"Content-Type,Content-Encoding,Vary,Authorization"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": {\n        \"external\": \"Whoops, something went wrong. Please refresh the page or try again!\",\n        \"internal\": \"Required field (newEmail) is null.\",\n        \"context\": \"generic\"\n    }\n}"},{"id":"718fcae2-49a3-4561-bb37-b626711f7b32","name":"Change Email","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"newEmail\": \"tony@gocopia.com\",\n\t\"password\": \"oldpassword\"\n}","options":{"raw":{"language":"json"}}},"url":"https://connect-sandbox.gw.gocopia.com/profile/change/emailname"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 15 Oct 2019 23:44:32 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"51"},{"key":"Connection","value":"keep-alive"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,OPTIONS"},{"key":"Access-Control-Allow-Headers","value":"Content-Type,Content-Encoding,Vary,Authorization"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"newEmail\": \"tony@gocopia.com\"\n}"},{"id":"f5da8dea-af49-4713-a161-adb9216d8f15","name":"Bad password error","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"newEmail\": \"nottony@gocopia.com\",\n\t\"password\": \"notoldpassword\"\n}"},"url":"https://connect-sandbox.gw.gocopia.com/profile/change/email"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 07 Sep 2019 00:13:25 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"150"},{"key":"Connection","value":"keep-alive"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,OPTIONS"},{"key":"Access-Control-Allow-Headers","value":"Content-Type,Content-Encoding,Vary,Authorization"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": {\n        \"external\": \"Hmm, we couldn't find that email and password combo. Please double check and try again.\",\n        \"internal\": \"Invalid email password combination\",\n        \"context\": \"generic\"\n    }\n}"},{"id":"f955641e-4652-44b4-9cb2-4522160b7d96","name":"Change Name","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"newName\": \"The Old and Boring Tony\",\n\t\"password\": \"oldpassword\"\n}","options":{"raw":{"language":"json"}}},"url":"https://connect-sandbox.gw.gocopia.com/profile/change/emailname"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 15 Oct 2019 23:43:23 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"57"},{"key":"Connection","value":"keep-alive"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,OPTIONS"},{"key":"Access-Control-Allow-Headers","value":"Content-Type,Content-Encoding,Vary,Authorization"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"newName\": \"The Old and Boring Tony\"\n}"}],"_postman_id":"507f8292-a1bb-4b2e-aa7e-a2002896f265"},{"name":"Change Password","id":"e3f6ffe1-ca19-4785-a244-35f8f511d459","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"username":"<username>","password":"<password>"},"isInherited":false},"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"oldPassword\": \"oldpassword\",\n\t\"newPassword\": \"newpassword\"\n}"},"url":"https://connect-sandbox.gw.gocopia.com/profile/change/password","description":"<p>Changes the password of the currently logged in Recipient</p>\n<p>Requires ADMIN authentication</p>\n","urlObject":{"protocol":"https","path":["profile","change","password"],"host":["connect-sandbox","gw","gocopia","com"],"query":[],"variable":[]}},"response":[{"id":"e99ffec0-0f2d-4d0b-9fbe-a4e78f8cd905","name":"Change Password","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"oldPassword\": \"oldpassword\",\n\t\"newPassword\": \"newpassword\"\n}"},"url":"https://connect-sandbox.gw.gocopia.com/profile/change/password"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 07 Sep 2019 00:18:02 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"36"},{"key":"Connection","value":"keep-alive"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,OPTIONS"},{"key":"Access-Control-Allow-Headers","value":"Content-Type,Content-Encoding,Vary,Authorization"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true\n}"}],"_postman_id":"e3f6ffe1-ca19-4785-a244-35f8f511d459"},{"name":"Request Access Code","id":"2eb69329-692f-453c-8808-51828f9fb557","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"phone\": \"7607033357\"\n}"},"url":"https://connect-sandbox.gw.gocopia.com/requestaccesscode","description":"<p>Enter a <code>RecipientContact</code>'s <code>phone</code> number to send a text with the connected <code>Recipient</code>'s <code>accessCode</code>.</p>\n","urlObject":{"protocol":"https","path":["requestaccesscode"],"host":["connect-sandbox","gw","gocopia","com"],"query":[],"variable":[]}},"response":[{"id":"2919d262-8df7-422d-a1f4-28bc0db4eb9a","name":"Phone number not found","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"phone\": \"1233454567\"\n}","options":{"raw":{"language":"json"}}},"url":"https://connect-sandbox.gw.gocopia.com/requestaccesscode"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 25 Nov 2019 23:43:35 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"162"},{"key":"Connection","value":"keep-alive"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,OPTIONS"},{"key":"Access-Control-Allow-Headers","value":"Content-Type,Content-Encoding,Vary,Authorization"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": {\n        \"external\": \"Hmm, we couldn't find a contact with that information. Please double check and try again.\",\n        \"internal\": \"Couldn't find a RecipientContact for the information provided\",\n        \"context\": \"generic\"\n    }\n}"},{"id":"7e810fb0-1822-4c80-9c53-150584fc87c5","name":"Request Access Code","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"phone\": \"7607033357\"\n}","options":{"raw":{"language":"json"}}},"url":"https://connect-sandbox.gw.gocopia.com/requestaccesscode"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 25 Nov 2019 23:41:40 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"36"},{"key":"Connection","value":"keep-alive"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,OPTIONS"},{"key":"Access-Control-Allow-Headers","value":"Content-Type,Content-Encoding,Vary,Authorization"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true\n}"}],"_postman_id":"2eb69329-692f-453c-8808-51828f9fb557"},{"name":"Get Categories","id":"741c57a5-81e0-4808-938a-19912d2dfe41","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://connect-sandbox.gw.gocopia.com/categories","description":"<p>Unauthed endpoint for retrieving all our <code>Category</code> descriptors so they can be viewed on the <code>Sign Up</code> page when a potential <code>Recipient</code> fills out their <code>refusedCategories</code> </p>\n","urlObject":{"protocol":"https","path":["categories"],"host":["connect-sandbox","gw","gocopia","com"],"query":[],"variable":[]}},"response":[{"id":"d6926f37-1dc8-4d19-930a-256c274781d3","name":"Get Categories","originalRequest":{"method":"GET","header":[],"url":"https://connect-sandbox.gw.gocopia.com/categories"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 18 Dec 2019 18:43:01 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"479"},{"key":"Connection","value":"keep-alive"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,OPTIONS"},{"key":"Access-Control-Allow-Headers","value":"Content-Type,Content-Encoding,Vary,Authorization"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"8D2yCdhs18\": \"Baby Formula\",\n    \"JuqnZ71uiA\": \"Beverages\",\n    \"l1Abv90w-2\": \"Bread & Tortillas\",\n    \"3QiBa89lvE\": \"Burgers & Sandwiches\",\n    \"BBxnz-9qaA\": \"Cheese\",\n    \"Hd92jn-sAs\": \"Dairy\",\n    \"3QiBa89lvG\": \"Deli Meats\",\n    \"JXqcatfwdQ\": \"Desserts\",\n    \"U12nD93jms\": \"Dry Goods\",\n    \"pl2TcpEClw\": \"Fruit\",\n    \"N17Auqj9Z1\": \"Grains\",\n    \"Q0oAlmZdhh\": \"Lettuce & Leaves\",\n    \"3QiBa89lvA\": \"Meat\",\n    \"3QiBa89lvH\": \"Nuts, Seeds, Soy\",\n    \"o9dk1Qoesj\": \"Pasta\",\n    \"F76BvPCUlQ\": \"Pizza\",\n    \"3QiBa89lvB\": \"Poultry\",\n    \"IUDOfi8946\": \"Pre-packaged\",\n    \"p01nx8aaqH\": \"Produce\",\n    \"9Odj2yDeyw\": \"Quick Bread (Biscuit, Muffin, Pastry)\",\n    \"W6W-_LVgMw\": \"Sauce\",\n    \"3QiBa89lvF\": \"Savory Snacks\",\n    \"3QiBa89lvC\": \"Seafood\",\n    \"MqaL1u-All\": \"Soup\",\n    \"k2Jnd9W2kk\": \"Starches\",\n    \"B71uj-a0pZ\": \"Vegetables\",\n    \"Q1un9z0Alq\": \"Vegetarian Protein\"\n}"}],"_postman_id":"741c57a5-81e0-4808-938a-19912d2dfe41"}],"id":"e8207409-6ba2-44c4-8dd2-6a566b610647","_postman_id":"e8207409-6ba2-44c4-8dd2-6a566b610647","description":""},{"name":"Contact","item":[{"name":"Edit Contact","id":"a8622ad1-539c-47f6-829e-0ac23cd6d6e6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"password":"<password>","username":"<username>"},"isInherited":false},"method":"PUT","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"name\": \"Ed, Edd, N' Edited\"\n}"},"url":"https://connect-sandbox.gw.gocopia.com/contact/_gwkBf_T2Q","description":"<p>Edits the name of a Recipient Contact</p>\n","urlObject":{"protocol":"https","path":["contact","_gwkBf_T2Q"],"host":["connect-sandbox","gw","gocopia","com"],"query":[],"variable":[]}},"response":[{"id":"00ef95c2-eb16-47f9-afb7-d82684c75bc5","name":"Edit Contact","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"name\": \"Ed, Edd, N' Edited\"\n}"},"url":"https://connect-sandbox.gw.gocopia.com/contact/_gwkBf_T2Q"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 09 Jul 2019 20:46:55 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"113"},{"key":"Connection","value":"keep-alive"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,OPTIONS"},{"key":"Access-Control-Allow-Headers","value":"Content-Type,Content-Encoding,Vary,Authorization"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"phone\": \"+10006339401\",\n    \"name\": \"Ed, Edd, N' Edited\",\n    \"recipientContactId\": \"_gwkBf_T2Q\",\n    \"recipientId\": \"IH_CB5xnqg\"\n}"},{"id":"52ccc684-b85b-4dd9-a7c5-3eaed11298d3","name":"Missing JSON Key","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"notName\": \"<--- look\"\n}"},"url":"http://localhost:8080/contact/_gwkBf_T2Q"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,OPTIONS"},{"key":"Access-Control-Allow-Headers","value":"Content-Type,Content-Encoding,Vary,Authorization"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Date","value":"Thu, 28 Mar 2019 23:48:46 GMT"},{"key":"Connection","value":"close"},{"key":"Content-Length","value":"138"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": {\n        \"external\": \"Whoops, something went wrong. Please refresh the page or try again!\",\n        \"internal\": \"JSON is missing key: name\",\n        \"context\": \"generic\"\n    }\n}"}],"_postman_id":"a8622ad1-539c-47f6-829e-0ac23cd6d6e6"},{"name":"Request to Add Contact","id":"4ea1da4f-64bf-4111-8dbb-f1c753b3b7f1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"password":"<password>","username":"<username>"},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"phone\": \"7607033357\"\n}"},"url":"https://connect.gw.gocopia.com/contact/request","description":"<p>Uses Twilio to send an sms verification code to the phone number provided by the recipient. This verification code is used in the Add Contact endpoint.</p>\n<h2 id=\"success-200-ok\">Success: 200 OK</h2>\n","urlObject":{"protocol":"https","path":["contact","request"],"host":["connect","gw","gocopia","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"4ea1da4f-64bf-4111-8dbb-f1c753b3b7f1"},{"name":"Add Verified Contact","id":"7611a39a-d25e-4dc6-a42a-2e156e7f3337","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"password":"<password>","username":"<username>"},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"name\": \"Bruh, Thanks for Adding Me\",\n\t\"phone\": \"+17607033357\",\n\t\"code\": \"865469\"\n}"},"url":"https://connect-sandbox.gw.gocopia.com/contact/","description":"<p>Uses the Twilio verification code from the request to add contact endpoint to add a new contact. Requies the fields: name, phone, and code.</p>\n","urlObject":{"protocol":"https","path":["contact",""],"host":["connect-sandbox","gw","gocopia","com"],"query":[],"variable":[]}},"response":[{"id":"de4ac943-6cc2-48d1-af3f-13f0c88e987e","name":"Add Verified Contact","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"name\": \"Bruh, Thanks for Adding Me\",\n\t\"phone\": \"+17607033357\",\n\t\"code\": \"865469\"\n}"},"url":"https://connect-sandbox.gw.gocopia.com/contact/"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 09 Jul 2019 20:51:06 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"124"},{"key":"Connection","value":"keep-alive"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,OPTIONS"},{"key":"Access-Control-Allow-Headers","value":"Content-Type,Content-Encoding,Vary,Authorization"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"phone\": \"+17607033357\",\n    \"name\": \"Bruh, Thanks for Adding Me\",\n    \"recipientContactId\": \"Ie9a4GKXrw\",\n    \"recipientId\": \"0u2UcoSt4Q\"\n}"}],"_postman_id":"7611a39a-d25e-4dc6-a42a-2e156e7f3337"},{"name":"Delete a Recipient Contact","id":"660c4058-aa47-4094-9a11-326bca4f42af","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"password":"<password>","username":"<username>"},"isInherited":false},"method":"DELETE","header":[],"url":"https://connect.gw.gocopia.com/contact/IKi_Qm2QYw","description":"<p>Deletes the RecipientContact associated with the URL's <code>recipientContactId</code> param.</p>\n<h2 id=\"success-200-ok\">Success: 200 OK</h2>\n","urlObject":{"protocol":"https","path":["contact","IKi_Qm2QYw"],"host":["connect","gw","gocopia","com"],"query":[],"variable":[]}},"response":[{"id":"08171b54-85d2-478f-b07a-44dbbb0ecb07","name":"Delete a Recipient Contact","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:8080/contact/IKi_Qm2QYw"},"status":"OK","code":200,"_postman_previewlanguage":"plain","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,OPTIONS"},{"key":"Access-Control-Allow-Headers","value":"Content-Type,Content-Encoding,Vary,Authorization"},{"key":"Date","value":"Tue, 16 Apr 2019 23:20:56 GMT"},{"key":"Content-Length","value":"0"}],"cookie":[],"responseTime":null,"body":null},{"id":"0e2907ca-41d9-4042-90a3-b1c364ce9a2e","name":"RecipientContact doesn't exist","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:8080/contact/F4k3C0nT4cT"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,OPTIONS"},{"key":"Access-Control-Allow-Headers","value":"Content-Type,Content-Encoding,Vary,Authorization"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Date","value":"Wed, 17 Apr 2019 00:02:47 GMT"},{"key":"Connection","value":"close"},{"key":"Content-Length","value":"168"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": {\n        \"external\": \"Whoops, something went wrong. Please refresh the page or try again!\",\n        \"internal\": \"RecipientContact object with primary key F4k3C0nT4cT does not exist.\",\n        \"context\": \"generic\"\n    }\n}"}],"_postman_id":"660c4058-aa47-4094-9a11-326bca4f42af"},{"name":"List Contacts","id":"7b9481ab-9e27-4356-a223-f408f08378e0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"password":"<password>","username":"<username>"},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":""},"url":"https://connect-sandbox.gw.gocopia.com/contact","description":"<p>Lists all of a recipients contacts in alphabetical order by name.</p>\n","urlObject":{"protocol":"https","path":["contact"],"host":["connect-sandbox","gw","gocopia","com"],"query":[],"variable":[]}},"response":[{"id":"b9ee8be0-3461-40d4-91d2-23fd0d6f5283","name":"List Contacts","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":""},"url":"https://connect-sandbox.gw.gocopia.com/contact"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,OPTIONS"},{"key":"Access-Control-Allow-Headers","value":"Content-Type,Content-Encoding,Vary,Authorization"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Date","value":"Tue, 09 Jul 2019 20:55:16 GMT"},{"key":"Content-Length","value":"202"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"phone\": \"+17607033347\",\n        \"name\": \"Added Manually\",\n        \"recipientContactId\": \"ManUa1Id01\",\n        \"recipientId\": \"0u2UcoSt4Q\"\n    },\n    {\n        \"phone\": \"+17607033337\",\n        \"name\": \"Also added this manually\",\n        \"recipientContactId\": \"M4nu41Id02\",\n        \"recipientId\": \"0u2UcoSt4Q\"\n    },\n    {\n        \"phone\": \"+17607033357\",\n        \"name\": \"Bruh, Thanks for Adding Me\",\n        \"recipientContactId\": \"Ie9a4GKXrw\",\n        \"recipientId\": \"0u2UcoSt4Q\"\n    },\n    {\n        \"phone\": \"+17707033357\",\n        \"name\": \"Thanks For Adding me\",\n        \"recipientContactId\": \"IKi_Qm2QYw\",\n        \"recipientId\": \"0u2UcoSt4Q\"\n    }\n]"}],"_postman_id":"7b9481ab-9e27-4356-a223-f408f08378e0"}],"id":"508a84bf-71b3-4efa-be9a-fa274118590b","_postman_id":"508a84bf-71b3-4efa-be9a-fa274118590b","description":""},{"name":"Contract","item":[{"name":"Get or Create Contract","id":"d7ca16c2-11fd-4cea-8dca-d96e7639190a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"password":"<password>","username":"<username>"},"isInherited":false},"method":"POST","header":[],"url":"https://connect-sandbox.gw.gocopia.com/contract","description":"<p>Creates a contract if the currently ADMIN authenticated recipient doesn't already have one. Returns the embedded_url for the eSignatures contract.</p>\n<p>Create success -&gt; 201\nGet success -&gt; 200</p>\n","urlObject":{"protocol":"https","path":["contract"],"host":["connect-sandbox","gw","gocopia","com"],"query":[],"variable":[]}},"response":[{"id":"7199f1ba-3ee6-449a-96cc-aee687ccf172","name":"Create Contract","originalRequest":{"method":"POST","header":[],"url":"https://connect-sandbox.gw.gocopia.com/contract"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 14 Oct 2019 23:40:51 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"107"},{"key":"Connection","value":"keep-alive"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,OPTIONS"},{"key":"Access-Control-Allow-Headers","value":"Content-Type,Content-Encoding,Vary,Authorization"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"embeddedUrl\": \"https://esignatures.io/sign/2b08256f-4b7e-4698-9f12-b4124cc03727?embedded=yes\"\n}"},{"id":"de330bfe-88fa-4c7e-ad09-25737f1a50ae","name":"Get Contract","originalRequest":{"method":"POST","header":[],"url":"https://connect-sandbox.gw.gocopia.com/contract"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 14 Oct 2019 23:39:39 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"107"},{"key":"Connection","value":"keep-alive"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,OPTIONS"},{"key":"Access-Control-Allow-Headers","value":"Content-Type,Content-Encoding,Vary,Authorization"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"embeddedUrl\": \"https://esignatures.io/sign/2ea5e56d-f4be-4250-8dff-b8ab14905327?embedded=yes\"\n}"}],"_postman_id":"d7ca16c2-11fd-4cea-8dca-d96e7639190a"},{"name":"Withdraw Contract","id":"f5143197-dbf3-4f77-8274-66694937ac2a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"password":"<password>","username":"<username>"},"isInherited":false},"method":"POST","header":[],"url":"https://connect-sandbox.gw.gocopia.com/contract/withdraw","description":"<p>Withdraws a Recipient Contract. Always resets a Recipients contract related fields: <code>copiaPartner -&gt; false</code>, <code>contractPdf -&gt; null</code>, <code>contractId -&gt; null</code>. Will also remove the contract at <code>contractPdf</code> from S3.</p>\n<h2 id=\"returns-200-ok\">Returns 200 OK</h2>\n","urlObject":{"protocol":"https","path":["contract","withdraw"],"host":["connect-sandbox","gw","gocopia","com"],"query":[],"variable":[]}},"response":[{"id":"42947d01-366a-4126-999c-77c6f70a1584","name":"Can't find a Recipient's ContractPdf on S3","originalRequest":{"method":"POST","header":[],"url":"http://localhost:8080/contract/withdraw"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,OPTIONS"},{"key":"Access-Control-Allow-Headers","value":"Content-Type,Content-Encoding,Vary,Authorization"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Date","value":"Mon, 22 Apr 2019 23:36:51 GMT"},{"key":"Connection","value":"close"},{"key":"Content-Length","value":"176"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": {\n        \"external\": \"Hmm, we couldn't find your contract, please try again or contact Copia.\",\n        \"internal\": \"S3 doesn't have a recipient 0u2UcoSt4Q's contract under name CANTFINDTHIS\",\n        \"context\": \"generic\"\n    }\n}"},{"id":"c85f52bc-0a0a-4e84-ac61-0291f8df06e8","name":"Withdraw Contract","originalRequest":{"method":"POST","header":[],"url":"http://localhost:8080/contract/withdraw"},"status":"OK","code":200,"_postman_previewlanguage":"plain","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,OPTIONS"},{"key":"Access-Control-Allow-Headers","value":"Content-Type,Content-Encoding,Vary,Authorization"},{"key":"Date","value":"Mon, 22 Apr 2019 23:23:37 GMT"},{"key":"Content-Length","value":"0"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"f5143197-dbf3-4f77-8274-66694937ac2a"}],"id":"e927617b-f078-487c-9cb4-b6e8d6fbade1","_postman_id":"e927617b-f078-487c-9cb4-b6e8d6fbade1","description":""},{"name":"Donation","item":[{"name":"List Donations","id":"2b850bd3-4fd0-492f-85d6-3b811357d3f2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"username":"<username>","password":"<password>"},"isInherited":false},"method":"GET","header":[],"url":"https://connect.gw.gocopia.com/donation?start=1455311600&end=1455397940","description":"<p>Lists all of the donations the currently authorized recipient has had in the time period between query params <code>start</code> and <code>end</code>.</p>\n<p>Returns a donations mapped to descending sorted mapping  like:  </p>\n<p>{<br /><code>taskCompletedAtValue</code>: { </p>\n<p><code>payloadIdValue</code>: { </p>\n<p><code>categoryIdValue</code>: <code>totalPoundsValue</code> (total pounds of this category contained in the payload), ... </p>\n<p>},... </p>\n<p>},... </p>\n<p>}</p>\n<p>then <code>categories</code> mapped to a map of <code>categoryid</code> to <code>descriptor</code></p>\n","urlObject":{"protocol":"https","path":["donation"],"host":["connect","gw","gocopia","com"],"query":[{"key":"start","value":"1455311600"},{"key":"end","value":"1455397940"}],"variable":[]}},"response":[{"id":"70e0906b-bc30-4505-97c3-89c817cc8207","name":"Bad start/end provided","originalRequest":{"method":"GET","header":[{"key":"","value":"","type":"text","disabled":true}],"url":{"raw":"http://localhost:8080/donation?start=155531160000&end=1555397940","protocol":"http","host":["localhost"],"port":"8080","path":["donation"],"query":[{"key":"start","value":"155531160000"},{"key":"end","value":"1555397940"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,OPTIONS"},{"key":"Access-Control-Allow-Headers","value":"Content-Type,Content-Encoding,Vary,Authorization"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Date","value":"Tue, 16 Apr 2019 22:19:21 GMT"},{"key":"Connection","value":"close"},{"key":"Content-Length","value":"122"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": {\n        \"external\": \"Please enter a valid start and end date\",\n        \"internal\": \"Start time is greater than end time or negative\",\n        \"context\": \"generic\"\n    }\n}"},{"id":"839c14eb-e501-49d9-a912-fa9a92c6f046","name":"List Donations","originalRequest":{"method":"GET","header":[{"key":"","value":"","type":"text","disabled":true}],"url":{"raw":"http://localhost:8080/donation?start=1555311600&end=1555397940","protocol":"http","host":["localhost"],"port":"8080","path":["donation"],"query":[{"key":"start","value":"1555311600"},{"key":"end","value":"1555397940"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,OPTIONS"},{"key":"Access-Control-Allow-Headers","value":"Content-Type,Content-Encoding,Vary,Authorization"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Date","value":"Tue, 16 Apr 2019 22:18:35 GMT"},{"key":"Content-Length","value":"173"}],"cookie":[],"responseTime":null,"body":"{\n    \"donations\": {\n        \"1555350707\": {\n            \"OVER-RIDE-TEJE3\": {\n                \"dU81mjdp8d\": 10,\n                \"Q1un9z0Alq\": 20\n            },\n            \"OVER-RIDE-TFPJY\": {\n                \"Q1un9z0Alq\": 10\n            }\n        },\n        \"1555350714\": {\n            \"OVER-RIDE-EUPEH\": {\n                \"Q1un9z0Alq\": 10\n            }\n        }\n    },\n    \"categories\": {\n        \"dU81mjdp8d\": \"Prepared Food\",\n        \"Q1un9z0Alq\": \"Vegetarian Protein\"\n    }\n}"},{"id":"d9507911-0802-4c40-9833-26d99c0a4bf7","name":"No Donations Found","originalRequest":{"method":"GET","header":[{"key":"","value":"","type":"text","disabled":true}],"url":{"raw":"http://localhost:8080/donation?start=1455311600&end=1455397940","protocol":"http","host":["localhost"],"port":"8080","path":["donation"],"query":[{"key":"start","value":"1455311600"},{"key":"end","value":"1455397940"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,OPTIONS"},{"key":"Access-Control-Allow-Headers","value":"Content-Type,Content-Encoding,Vary,Authorization"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Date","value":"Tue, 16 Apr 2019 22:20:05 GMT"},{"key":"Content-Length","value":"48"}],"cookie":[],"responseTime":null,"body":"{\n    \"donations\": {},\n    \"categories\": {}\n}"}],"_postman_id":"2b850bd3-4fd0-492f-85d6-3b811357d3f2"}],"id":"39443404-1a56-4658-ac68-699e0834f417","_postman_id":"39443404-1a56-4658-ac68-699e0834f417","description":""},{"name":"Feedback","item":[{"name":"Add Feedback","id":"2a7455ae-f52b-4e1d-9711-d3a1f975a5d1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"password":"<password>","username":"<username>"},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"payloadId\" : \"OVER-RIDE-ZAGMM\",\n\t\"categoryId\" : \"3QiBa89lvG\",\n\t\"feedback\" : \"I can't believe it's not butter!\",\n\t\"qualityRating\": 3,\n\t\"usefulnessRating\": 2\n}"},"url":"https://connect-sandbox.gw.gocopia.com/feedback","description":"<p>Adds a RecipientFeedback for one category in a specific payload. </p>\n<p>Must be a <code>copiaPartner</code> if <code>revokeSignature</code> is <code>true</code>.</p>\n<p><code>qualityRating</code> (required): 0-3\n<code>usefulnessRating</code> (required): 0-3\n<code>feedback</code> : text based feedback</p>\n","urlObject":{"protocol":"https","path":["feedback"],"host":["connect-sandbox","gw","gocopia","com"],"query":[{"disabled":true,"key":"","value":""}],"variable":[]}},"response":[{"id":"1800a752-ed68-4c92-a50d-66461dc2bf5e","name":"Add Duplicate Feedback Error","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"payloadId\" : \"OVER-RIDE-ZAGMM\",\n\t\"categoryId\" : \"3QiBa89lvG\",\n\t\"feedback\" : \"I can't believe it's not butter!\",\n\t\"qualityRating\": 3,\n\t\"usefulnessRating\": 2\n}"},"url":{"raw":"http://localhost:8080/feedback","protocol":"http","host":["localhost"],"port":"8080","path":["feedback"],"query":[{"key":"","value":"","type":"text","disabled":true}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,OPTIONS"},{"key":"Access-Control-Allow-Headers","value":"Content-Type,Content-Encoding,Vary,Authorization"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Date","value":"Tue, 09 Apr 2019 17:06:02 GMT"},{"key":"Connection","value":"close"},{"key":"Content-Length","value":"159"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": {\n        \"external\": \"Whoops, something went wrong. Please refresh the page or try again!\",\n        \"internal\": \"Trying to add feedback to a payload-category that already has feedback\",\n        \"context\": \"generic\"\n    }\n}"},{"id":"28ab2156-bcb8-4132-bfad-f7fb42e2de59","name":"Add Negative Rating Error","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"payloadId\" : \"OVER-RIDE-ZAGMM\",\n\t\"categoryId\" : \"3QiBa89lvG\",\n\t\"feedback\" : \"I can't believe it's not butter!\",\n\t\"qualityRating\": -1,\n\t\"usefulnessRating\": 2\n}"},"url":{"raw":"http://localhost:8080/feedback","protocol":"http","host":["localhost"],"port":"8080","path":["feedback"],"query":[{"key":"","value":"","type":"text","disabled":true}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,OPTIONS"},{"key":"Access-Control-Allow-Headers","value":"Content-Type,Content-Encoding,Vary,Authorization"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Date","value":"Tue, 09 Apr 2019 17:07:51 GMT"},{"key":"Connection","value":"close"},{"key":"Content-Length","value":"145"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": {\n        \"external\": \"Whoops, something went wrong. Please refresh the page or try again!\",\n        \"internal\": \"Quality Rating must be a 0,1,2, or 3\",\n        \"context\": \"generic\"\n    }\n}"},{"id":"57a83189-6f5a-466e-85d7-d1fbe538027e","name":"Missing CategoryId Error","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"payloadId\" : \"OVER-RIDE-ZAGMM\",\n\t\"feedback\" : \"I can't believe it's not butter!\",\n\t\"qualityRating\": 3,\n\t\"usefulnessRating\": 2\n}"},"url":{"raw":"http://localhost:8080/feedback","protocol":"http","host":["localhost"],"port":"8080","path":["feedback"],"query":[{"key":"","value":"","type":"text","disabled":true}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,OPTIONS"},{"key":"Access-Control-Allow-Headers","value":"Content-Type,Content-Encoding,Vary,Authorization"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Date","value":"Tue, 09 Apr 2019 17:07:07 GMT"},{"key":"Connection","value":"close"},{"key":"Content-Length","value":"141"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": {\n        \"external\": \"Whoops, something went wrong. Please refresh the page or try again!\",\n        \"internal\": \"Feedback is missing CategoryId\",\n        \"context\": \"generic\"\n    }\n}"},{"id":"a71fa921-ecc2-44cc-95aa-1b3fd0b6b70e","name":"Add Feedback","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"payloadId\" : \"OVER-RIDE-ZAGMM\",\n\t\"categoryId\" : \"3QiBa89lvG\",\n\t\"feedback\" : \"I can't believe it's not butter!\",\n\t\"qualityRating\": 3,\n\t\"usefulnessRating\": 2\n}"},"url":{"raw":"https://connect-sandbox.gw.gocopia.com/feedback","protocol":"https","host":["connect-sandbox","gw","gocopia","com"],"path":["feedback"],"query":[{"key":"","value":"","type":"text","disabled":true}]}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 09 Jul 2019 23:56:09 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"181"},{"key":"Connection","value":"keep-alive"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,OPTIONS"},{"key":"Access-Control-Allow-Headers","value":"Content-Type,Content-Encoding,Vary,Authorization"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"payloadId\": \"OVER-RIDE-ZAGMM\",\n    \"feedback\": \"I can't believe it's not butter!\",\n    \"recipientFeedbackId\": \"Z2MTginKmQ\",\n    \"usefulnessRating\": 2,\n    \"recipientId\": \"0u2UcoSt4Q\",\n    \"qualityRating\": 3,\n    \"categoryId\": \"3QiBa89lvG\"\n}"}],"_postman_id":"2a7455ae-f52b-4e1d-9711-d3a1f975a5d1"},{"name":"Edit Feedback","id":"261b5603-1c02-4145-9760-21e65630c69a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"password":"<password>","username":"<username>"},"isInherited":false},"method":"PUT","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"revokeSignature\": false,\n\t\"feedback\": \"I can't believe it IS butter!\",\n\t\"qualityRating\": 2,\n\t\"usefulnessRating\": 2,\n\t\"categoryId\": 2\n}"},"url":"https://connect-sandbox.gw.gocopia.com/feedback/Z2MTginKmQ","description":"<p>Edit a Recipient Feedback. Copia Partnership affects this endpoint.</p>\n<p>If <code>revokeSignature</code> is true, there must be <code>feedback</code> and the authenticated Recipients.<code>copiaPartner</code> MUST BE TRUE.</p>\n<p>Can edit the <code>feedback</code>, <code>qualityRating</code>,<code>usefulnessRating</code>, and <code>revokeSignature</code>.</p>\n","urlObject":{"protocol":"https","path":["feedback","Z2MTginKmQ"],"host":["connect-sandbox","gw","gocopia","com"],"query":[],"variable":[]}},"response":[{"id":"6cbeefde-c508-499f-9631-e85107b7fb37","name":"Edit Feedback","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"revokeSignature\": false,\n\t\"feedback\": \"I can't believe it IS butter!\",\n\t\"qualityRating\": 2,\n\t\"usefulnessRating\": 2,\n\t\"categoryId\": 2\n}"},"url":"https://connect-sandbox.gw.gocopia.com/feedback/Z2MTginKmQ"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 09 Jul 2019 23:58:22 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"191"},{"key":"Connection","value":"keep-alive"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,OPTIONS"},{"key":"Access-Control-Allow-Headers","value":"Content-Type,Content-Encoding,Vary,Authorization"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"payloadId\": \"OVER-RIDE-ZAGMM\",\n    \"feedback\": \"I can't believe it IS butter!\",\n    \"recipientFeedbackId\": \"Z2MTginKmQ\",\n    \"usefulnessRating\": 2,\n    \"revokeSignature\": false,\n    \"recipientId\": \"0u2UcoSt4Q\",\n    \"qualityRating\": 2,\n    \"categoryId\": \"3QiBa89lvG\"\n}"}],"_postman_id":"261b5603-1c02-4145-9760-21e65630c69a"},{"name":"Delete Feedback","id":"d5ae4b85-5b3a-42e8-b85d-b8600d232d93","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"password":"<password>","username":"<username>"},"isInherited":false},"method":"DELETE","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":"https://connect.gw.gocopia.com/ISUmXYb9Tw","description":"<p>Deletes a feedback</p>\n<p>Must be a <code>copiaPartner</code> if <code>revokeSignature</code> is <code>true</code>.</p>\n<h2 id=\"success-200-ok\">Success: 200 OK</h2>\n","urlObject":{"protocol":"https","path":["ISUmXYb9Tw"],"host":["connect","gw","gocopia","com"],"query":[],"variable":[]}},"response":[{"id":"bb4697ac-c49d-4f29-bd98-45a1f459156f","name":"Delete Feedback","originalRequest":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":"https://connect.gw.gocopia.com/ISUmXYb9Tw"},"status":"OK","code":200,"_postman_previewlanguage":"plain","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,OPTIONS"},{"key":"Access-Control-Allow-Headers","value":"Content-Type,Content-Encoding,Vary,Authorization"},{"key":"Date","value":"Wed, 24 Apr 2019 21:49:53 GMT"},{"key":"Content-Length","value":"0"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"d5ae4b85-5b3a-42e8-b85d-b8600d232d93"},{"name":"Get Feedback","id":"cd242716-944c-4b23-933b-69356ef1dfe8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"password":"<password>","username":"<username>"},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:80/feedback/OVER-RIDE-GPEPN","description":"<p>Returns feedback for a payload in the format of:\n{\n  <code>categoryId</code> : {\n    <code>translated_map_of_feedback</code>\n  }...\n}</p>\n","urlObject":{"protocol":"http","port":"80","path":["feedback","OVER-RIDE-GPEPN"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"d742d505-f724-4b66-a8f4-039501b7e1dc","name":"Get Feedback","originalRequest":{"method":"GET","header":[],"url":"http://localhost:80/feedback/OVER-RIDE-GPEPN"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,OPTIONS"},{"key":"Access-Control-Allow-Headers","value":"Content-Type,Content-Encoding,Vary,Authorization"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Date","value":"Tue, 23 Jul 2019 01:04:48 GMT"},{"key":"Content-Length","value":"184"}],"cookie":[],"responseTime":null,"body":"{\n    \"Q1un9z0Alq\": {\n        \"payloadId\": \"OVER-RIDE-GPEPN\",\n        \"feedback\": \"is good\",\n        \"recipientFeedbackId\": \"astTopElJA\",\n        \"usefulnessRating\": 2,\n        \"revokeSignature\": false,\n        \"recipientId\": \"IH_CB5xnqg\",\n        \"qualityRating\": 1,\n        \"categoryId\": \"Q1un9z0Alq\"\n    }\n}"}],"_postman_id":"cd242716-944c-4b23-933b-69356ef1dfe8"}],"id":"30687363-292a-4f87-8163-b4bd04b49901","_postman_id":"30687363-292a-4f87-8163-b4bd04b49901","description":""},{"name":"Request","item":[{"name":"Add/Cancel a Recipient Request","id":"0b334632-edc6-4d41-91cb-3c0cfd5e0526","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"password":"<password>","username":"<username>"},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"type\": 0\n}"},"url":"https://connect-sandbox.gw.gocopia.com/request","description":"<p>Call this endpoint to create or cancel the current\nrecipient request. Authenticated Recipient must be a <code>copiaPartner</code> to use this endpoint.</p>\n<p>Use json input of <code>type</code> with value <code>0</code> (NEEDED) or <code>1</code> (UNNEEDED) to create a request of those types. Use Json of <code>status</code> with value <code>2</code> to cancel the currently active request.</p>\n","urlObject":{"protocol":"https","path":["request"],"host":["connect-sandbox","gw","gocopia","com"],"query":[],"variable":[]}},"response":[{"id":"51733b98-35e7-45d7-b209-b2bd61c01c52","name":"Too Many JSON Keys","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"type\": 0,\n\t\"status\": 0\n}"},"url":"http://localhost:8080/request"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,OPTIONS"},{"key":"Access-Control-Allow-Headers","value":"Content-Type,Content-Encoding,Vary,Authorization"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Date","value":"Mon, 01 Apr 2019 23:37:01 GMT"},{"key":"Connection","value":"close"},{"key":"Content-Length","value":"160"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": {\n        \"external\": \"Whoops, something went wrong. Please refresh the page or try again!\",\n        \"internal\": \"JSON is invalid because: only 1 json key should be present\",\n        \"context\": \"generic\"\n    }\n}"},{"id":"83e09db3-58c9-4dad-b4c6-9568917e0d4f","name":"Add an Unneeded Request","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"type\": 1\n}"},"url":"https://connect-sandbox.gw.gocopia.com/request"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 09 Jul 2019 23:44:35 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"129"},{"key":"Connection","value":"keep-alive"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,OPTIONS"},{"key":"Access-Control-Allow-Headers","value":"Content-Type,Content-Encoding,Vary,Authorization"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"requestedAt\": 1562715875,\n    \"iso8601\": \"2019-07-09\",\n    \"recipientRequestId\": \"RSs8Tl5YoQ\",\n    \"recipientId\": \"IH_CB5xnqg\",\n    \"type\": 1,\n    \"status\": 0\n}"},{"id":"972fdbd6-f5af-44c7-b233-22df72d3ff1c","name":"Duplicate Request","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"type\": 0\n}"},"url":"http://localhost:8080/request"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,OPTIONS"},{"key":"Access-Control-Allow-Headers","value":"Content-Type,Content-Encoding,Vary,Authorization"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Date","value":"Mon, 01 Apr 2019 23:39:17 GMT"},{"key":"Connection","value":"close"},{"key":"Content-Length","value":"117"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": {\n        \"external\": \"This request has already been made.\",\n        \"internal\": \"Duplicate request of the same type\",\n        \"context\": \"Duplicate-Request\"\n    }\n}"},{"id":"ae102a91-1567-41ff-b86b-153f7ea6bddc","name":"Cancel an Active Request","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"status\": 2\n}"},"url":"https://connect-sandbox.gw.gocopia.com/request"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 09 Jul 2019 23:45:11 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"129"},{"key":"Connection","value":"keep-alive"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,OPTIONS"},{"key":"Access-Control-Allow-Headers","value":"Content-Type,Content-Encoding,Vary,Authorization"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"requestedAt\": 1562715875,\n    \"iso8601\": \"2019-07-09\",\n    \"recipientRequestId\": \"RSs8Tl5YoQ\",\n    \"recipientId\": \"IH_CB5xnqg\",\n    \"type\": 1,\n    \"status\": 2\n}"},{"id":"e6b4116a-15ff-4ab9-b09b-5515f153be40","name":"Add a Needed Request","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"type\": 0\n}"},"url":"https://connect-sandbox.gw.gocopia.com/request"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 09 Jul 2019 23:43:55 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"128"},{"key":"Connection","value":"keep-alive"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,OPTIONS"},{"key":"Access-Control-Allow-Headers","value":"Content-Type,Content-Encoding,Vary,Authorization"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"requestedAt\": 1562715835,\n    \"iso8601\": \"2019-07-09\",\n    \"recipientRequestId\": \"ex0womFJ9w\",\n    \"recipientId\": \"IH_CB5xnqg\",\n    \"type\": 0,\n    \"status\": 0\n}"},{"id":"f69c2490-175b-4fa0-8f78-f9fb9695d1cf","name":"Canceling with no active requests","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"status\" : 2\n}"},"url":"http://localhost:8080/request"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,OPTIONS"},{"key":"Access-Control-Allow-Headers","value":"Content-Type,Content-Encoding,Vary,Authorization"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Date","value":"Mon, 01 Apr 2019 23:36:10 GMT"},{"key":"Connection","value":"close"},{"key":"Content-Length","value":"155"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": {\n        \"external\": \"You're up to date! There is no pending request in the system.\",\n        \"internal\": \"All requests have been canceled or completed already today.\",\n        \"context\": \"No-Cancel\"\n    }\n}"}],"_postman_id":"0b334632-edc6-4d41-91cb-3c0cfd5e0526"},{"name":"Get Current Request","id":"b237fcca-258b-40f9-bc83-4c41ee8ce84a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"password":"<password>","username":"<username>"},"isInherited":false},"method":"GET","header":[],"url":"https://connect-sandbox.gw.gocopia.com/request","description":"<p>Gets the current request. Will return the first request of the day based on <code>requestedAt</code> then <code>status</code></p>\n<p>Just returns <code>200 OK</code> if no request is found.</p>\n","urlObject":{"protocol":"https","path":["request"],"host":["connect-sandbox","gw","gocopia","com"],"query":[],"variable":[]}},"response":[{"id":"551b834e-0e4b-45cf-b712-11ee94d77530","name":"Get Current Request","originalRequest":{"method":"GET","header":[],"url":"https://connect-sandbox.gw.gocopia.com/request"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 09 Jul 2019 23:48:06 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"127"},{"key":"Connection","value":"keep-alive"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,OPTIONS"},{"key":"Access-Control-Allow-Headers","value":"Content-Type,Content-Encoding,Vary,Authorization"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"requestedAt\": 1562716025,\n    \"iso8601\": \"2019-07-09\",\n    \"recipientRequestId\": \"HY6OZas_4g\",\n    \"recipientId\": \"IH_CB5xnqg\",\n    \"type\": 0,\n    \"status\": 0\n}"},{"id":"8b0f5f89-c321-4bbe-bde8-06c37f7ebe65","name":"No Request Found","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8080/request"},"status":"OK","code":200,"_postman_previewlanguage":"plain","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,OPTIONS"},{"key":"Access-Control-Allow-Headers","value":"Content-Type,Content-Encoding,Vary,Authorization"},{"key":"Date","value":"Sat, 27 Apr 2019 00:42:26 GMT"},{"key":"Content-Length","value":"0"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"b237fcca-258b-40f9-bc83-4c41ee8ce84a"}],"id":"22e34d83-b4ce-40c3-8ba0-76e0c71f1b73","_postman_id":"22e34d83-b4ce-40c3-8ba0-76e0c71f1b73","description":""},{"name":"Session","item":[{"name":"Code Authenticate","id":"4b8e8301-71b5-4061-81ac-d698a75f319d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json","disabled":false}],"body":{"mode":"raw","raw":"{\n\t\"UUID\":\"1234567890\",\n\t\"accessCode\": \"MXFPVH\"\n}"},"url":"https://connect-sandbox.gw.gocopia.com/session/code/authenticate","description":"<p>Authenticate a recipient using a recipient access code and UUID, returns the token.</p>\n","urlObject":{"protocol":"https","path":["session","code","authenticate"],"host":["connect-sandbox","gw","gocopia","com"],"query":[],"variable":[]}},"response":[{"id":"2526b3fa-51cb-4cb7-9b10-9bdc60ee838a","name":"Code Not Found","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","disabled":false}],"body":{"mode":"raw","raw":"{\n\t\"UUID\":\"1234567890\",\n\t\"accessCode\": \"NOTAGOODACCESSCODE\"\n}"},"url":"http://localhost:8080/session/code/authenticate"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,OPTIONS"},{"key":"Access-Control-Allow-Headers","value":"Content-Type,Content-Encoding,Vary,Authorization"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Date","value":"Tue, 26 Mar 2019 21:41:19 GMT"},{"key":"Content-Length","value":"153"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": {\n        \"external\": \"That code doesn't look quite right, please try again!\",\n        \"internal\": \"No recipient found with access code: NOTAGOODACCESSCODE\",\n        \"context\": \"generic\"\n    }\n}"},{"id":"594eb843-5f10-409f-89f8-5fd96efa7104","name":"Code Authenticate","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","disabled":false}],"body":{"mode":"raw","raw":"{\n\t\"UUID\":\"1234567890\",\n\t\"accessCode\": \"MXFPVH\"\n}"},"url":"http://localhost:8080/session/code/authenticate"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,OPTIONS"},{"key":"Access-Control-Allow-Headers","value":"Content-Type,Content-Encoding,Vary,Authorization"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Date","value":"Tue, 26 Mar 2019 21:38:49 GMT"},{"key":"Content-Length","value":"171"}],"cookie":[],"responseTime":null,"body":"{\n    \"token\": \"eyJhbGciOiJIUzI1NiJ9.eyJVU0lEIjoiNDJiNjBhN2I1M2QwM2E1YWUzNTA4ZGEyOWQzYjYyMmY4YzY4MjZhNSIsInRzIjoxNTUzNjM2MzI4fQ.yjb3hKeJM0SEp2aJiymE3uRwQV2jR4i20sUMS85pm9Y\"\n}"},{"id":"c3321869-b20a-44bf-9bb9-a978c5941777","name":"Json Missing accessCode Key","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","disabled":false}],"body":{"mode":"raw","raw":"{\n\t\"UUID\":\"1234567890\"\n}"},"url":"http://localhost:8080/session/code/authenticate"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,OPTIONS"},{"key":"Access-Control-Allow-Headers","value":"Content-Type,Content-Encoding,Vary,Authorization"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Date","value":"Tue, 26 Mar 2019 21:41:44 GMT"},{"key":"Connection","value":"close"},{"key":"Content-Length","value":"143"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": {\n        \"external\": \"Whoops, something went wrong. Please refresh the page or try again!\",\n        \"internal\": \"JSON is missing key: accessCode\",\n        \"context\": \"generic\"\n    }\n}"}],"_postman_id":"4b8e8301-71b5-4061-81ac-d698a75f319d"},{"name":"Password Authenticate","id":"fabdf7ec-3bd8-4882-b870-b09acf8cd341","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"password":"<password>","username":"<username>"},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json","disabled":false}],"body":{"mode":"raw","raw":"{\n\t\"email\":\"recipientjwkg@test.com\",\n\t\"password\": \"AGoodPassword\"\n}"},"url":"https://connect.gw.gocopia.com/session/password/authenticate","description":"<p>Authenticate an already authenticated Recipient further by providing that Recipient's email and password. Appends a string containing \"ADMIN\" to the session's metadata.</p>\n","urlObject":{"protocol":"https","path":["session","password","authenticate"],"host":["connect","gw","gocopia","com"],"query":[],"variable":[]}},"response":[{"id":"0e8bbcc1-b870-402b-a210-970b6d48bc80","name":"Request When Unauthorized","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","disabled":false}],"body":{"mode":"raw","raw":"{\n\t\"email\":\"recipientprlt@test.com\",\n\t\"password\": \"AGoodPassword\"\n}"},"url":"http://localhost:8080/session/password/authenticate"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"plain","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,OPTIONS"},{"key":"Access-Control-Allow-Headers","value":"Content-Type,Content-Encoding,Vary,Authorization"},{"key":"Date","value":"Tue, 26 Mar 2019 21:49:55 GMT"},{"key":"Content-Length","value":"0"}],"cookie":[],"responseTime":null,"body":null},{"id":"3813ca97-a004-44c1-9064-4960b82fb097","name":"Bad Password","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","disabled":false}],"body":{"mode":"raw","raw":"{\n\t\"email\":\"recipientprlt@test.com\",\n\t\"password\": \"ABadPassword\"\n}"},"url":"http://localhost:8080/session/password/authenticate"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,OPTIONS"},{"key":"Access-Control-Allow-Headers","value":"Content-Type,Content-Encoding,Vary,Authorization"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Date","value":"Tue, 26 Mar 2019 21:52:02 GMT"},{"key":"Connection","value":"close"},{"key":"Content-Length","value":"142"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": {\n        \"external\": \"Whoops, something went wrong. Please refresh the page or try again!\",\n        \"internal\": \"Invalid email password combination\",\n        \"context\": \"generic\"\n    }\n}"},{"id":"5e239be0-e8e5-4a63-9352-7842a5854e87","name":"Password Authenticate","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","disabled":false}],"body":{"mode":"raw","raw":"{\n\t\"email\":\"recipientprlt@test.com\",\n\t\"password\": \"AGoodPassword\"\n}"},"url":"http://localhost:8080/session/password/authenticate"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,OPTIONS"},{"key":"Access-Control-Allow-Headers","value":"Content-Type,Content-Encoding,Vary,Authorization"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json"},{"key":"Date","value":"Tue, 26 Mar 2019 21:50:45 GMT"},{"key":"Content-Length","value":"170"}],"cookie":[],"responseTime":null,"body":"{\n    \"token\": \"eyJhbGciOiJIUzI1NiJ9.eyJVU0lEIjoiODIxNTNhYWM2NWM2YThhMTNiYmUxNzFiYTBkMGQ5NzNiYzZiZjljNCIsInRzIjoxNTUzNjM0NTU2fQ.pR13deHuqTs71MhbyI2JSw-rdIXbCAynrM43fQjD1o0\"\n}"}],"_postman_id":"fabdf7ec-3bd8-4882-b870-b09acf8cd341"},{"name":"Deauthenticate","id":"88b840f2-1c09-4dc4-ad65-319694866493","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"password":"<password>","username":"<username>"},"isInherited":false},"method":"DELETE","header":[],"url":"https://connect.gw.gocopia.com/session","description":"<p>Deauthenticates a recipient by removing the current session.</p>\n","urlObject":{"protocol":"https","path":["session"],"host":["connect","gw","gocopia","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"88b840f2-1c09-4dc4-ad65-319694866493"}],"id":"c16296de-a5d2-415a-bc20-692a93760188","_postman_id":"c16296de-a5d2-415a-bc20-692a93760188","description":""},{"name":"FAQ","item":[{"name":"Get FAQ","id":"14ad00c8-8580-47a7-9e66-8bf5641191c1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"password":"<password>","username":"<username>"},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":""},"url":"https://connect-sandbox.gw.gocopia.com/faq","description":"<p>Returns a test version of the FAQ right now.</p>\n","urlObject":{"protocol":"https","path":["faq"],"host":["connect-sandbox","gw","gocopia","com"],"query":[],"variable":[]}},"response":[{"id":"17b5a463-4cf3-4988-a81a-84f96e8c4718","name":"Get FAQ","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text","disabled":true}],"body":{"mode":"raw","raw":""},"url":"https://connect-sandbox.gw.gocopia.com/faq"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 03 Jan 2020 02:29:45 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"871"},{"key":"Connection","value":"keep-alive"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,OPTIONS"},{"key":"Access-Control-Allow-Headers","value":"Content-Type,Content-Encoding,Vary,Authorization"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"question\": \"this is multiple paragraphs\",\n        \"answer\": \"<p>When you’re logged in as an administrator, you can update your profile information (address, hours of operation, preferred categories, etc.) to ensure Copia is delivering the right food, at the right time, in the right quantities, to help you serve your community.</p><p>Also, you must be logged in as an administrator to read and sign the Partnership Agreement.</p><p>You can also update the name, email, and password associated with the administrator account when you’re logged in.</p>\"\n    },\n    {\n        \"question\": \"this is is one text block with 2 then 1 br\",\n        \"answer\": \"When you’re logged in as an administrator, you can update your profile information (address, hours of operation, preferred categories, etc.) to ensure Copia is delivering the right food, at the right time, in the right quantities, to help you serve your community.<br><br>Also, you must be logged in as an administrator to read and sign the Partnership Agreement.<br><br>You can also update the name, email, and password associated with the administrator account when you’re logged in.\"\n    },\n    {\n        \"question\": \"color test, the word jared should be green, 1st is inlined, 2nd uses the copia-gree tag\",\n        \"answer\": \"gosh <span style=\\\\\\\"color:#34c588\\\\\\\">jared</> sure is cool. i disagree, <span class=\\\"copia-green\\\">jared</span> is VERY cool.\"\n    },\n    {\n        \"question\": \"image test, p's then an img tag from the jira page\",\n        \"answer\": \"<p>this is text this is text this is text this is text this is text this is text this is text</p><p>this is also text this is also text this is also text this is also text</p><img src=\\\"blob:https://gocopia.atlassian.net/e2ed8adc-8fc8-4fa0-9f95-e53a7bf6a70d#media-blob-url=true&amp;id=3177fd4e-1d87-40bb-9d10-098cb8c4aef7&amp;collection=contentId-9928705&amp;contextId=9928705&amp;mimeType=image%2Fpng&amp;name=Screen%20Shot%202019-12-19%20at%2011.26.58%20AM.png&amp;size=81790&amp;width=1379&amp;height=1638\\\"><p>this is text too i guess</p>\"\n    },\n    {\n        \"question\": \"image test, p's then an img tag src from our s3\",\n        \"answer\": \"<p>this is text this is text this is text this is text this is text this is text this is text</p><p>this is also text this is also text this is also text this is also text</p><img src=\\\"https://s3-us-west-2.amazonaws.com/images.gocopia.com/connect_availabilty_faq.png\\\"><p>this is text too i guess</p>\"\n    }\n]"}],"_postman_id":"14ad00c8-8580-47a7-9e66-8bf5641191c1"}],"id":"df75f4d7-f78e-44d5-9732-367a985f774e","_postman_id":"df75f4d7-f78e-44d5-9732-367a985f774e","description":""},{"name":"Ops","item":[{"name":"Ops Routing","id":"51648872-7878-4a15-83a3-76572ea482fe","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"multipart/form-data","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"recipientFile","type":"file","src":"/Users/jarednapoli/Documents/dwd_4-15/tj_recips_04152020.csv"},{"key":"driverFile","type":"file","src":"/Users/jarednapoli/Documents/dwd_4-15/tj_drivers_04152020.csv"}]},"url":"https://connect-sandbox.gw.gocopia.com/ops/routing","description":"<p>Test endpoint for ops handling routing of household recipient pickups.</p>\n<p>Requires 2 csvs: a <code>driverFile</code> and <code>recipientFile</code></p>\n<p>Currently only displays row counts so tony can test and I can improve the actual logic.</p>\n<p>If you want to test error handling, just make any cell in the first column blank, thats the only error I'm detecting right now.</p>\n<p>All non-csv related errors will use a <code>500</code> error code and use the usual <code>ErrorPayload</code> format.</p>\n","urlObject":{"protocol":"https","path":["ops","routing"],"host":["connect-sandbox","gw","gocopia","com"],"query":[],"variable":[]}},"response":[{"id":"4a7e6561-c5c0-4f2f-aadc-9d66fe621295","name":"Recipient File with Blank in First Column and Row","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"multipart/form-data","type":"text"},{"key":"","value":"","type":"text","disabled":true}],"body":{"mode":"formdata","formdata":[{"key":"recipientFile","type":"file","src":"/Users/jarednapoli/Documents/dwd_4-15/test_tj_recips.csv"},{"key":"driverFile","type":"file","src":"/Users/jarednapoli/Documents/dwd_4-15/tj_drivers_04152020.csv"}]},"url":"https://connect-sandbox.gw.gocopia.com/ops/routing"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 15 Apr 2020 17:35:55 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"108"},{"key":"Connection","value":"keep-alive"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,OPTIONS"},{"key":"Access-Control-Allow-Headers","value":"Content-Type,Content-Encoding,Vary,Authorization"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"driverFile\": [],\n    \"recipientFile\": [\n        \"Error in recipient file found on row 1: value in first column is empty!\"\n    ]\n}"},{"id":"b5d468e5-7134-42c0-a16b-f431711495b7","name":"Ops Routing Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"multipart/form-data","type":"text"},{"key":"","value":"","type":"text","disabled":true}],"body":{"mode":"formdata","formdata":[{"key":"recipientFile","type":"file","src":"/Users/jarednapoli/Documents/dwd_4-15/tj_recips_04152020.csv"},{"key":"driverFile","type":"file","src":"/Users/jarednapoli/Documents/dwd_4-15/tj_drivers_04152020.csv"}]},"url":"https://connect-sandbox.gw.gocopia.com/ops/routing"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 15 Apr 2020 17:35:30 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"70"},{"key":"Connection","value":"keep-alive"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,OPTIONS"},{"key":"Access-Control-Allow-Headers","value":"Content-Type,Content-Encoding,Vary,Authorization"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"driverFile\": [\n        \"4 records found\"\n    ],\n    \"recipientFile\": [\n        \"20 records found\"\n    ]\n}"}],"_postman_id":"51648872-7878-4a15-83a3-76572ea482fe"}],"id":"a12c1240-ada6-4f7a-bf8a-8bf3e3dc73f5","_postman_id":"a12c1240-ada6-4f7a-bf8a-8bf3e3dc73f5","description":""}]}