{"info":{"_postman_id":"20609fb2-1c6b-4ec2-83f7-8719f8d4b825","name":"TshirtshopAPI","description":"<html><head></head><body><p>An api for a tshirt online store</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"6573134","collectionId":"20609fb2-1c6b-4ec2-83f7-8719f8d4b825","publishedId":"S1LyV85N","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2019-05-13T18:06:04.000Z"},"item":[{"name":"Register Customer","id":"21dc451e-6cfa-4cde-8829-ea29d64c7d12","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"","description":"<p>(Required)  Customer's Name</p>\n","type":"text"},{"key":"email","value":"","description":"<p>(Required)  Customer's Email Address</p>\n","type":"text"},{"key":"password","value":"","description":"<p>(Required)  Customer's Password</p>\n","type":"text"}]},"url":"http://localhost:3000/customers/","description":"<p>An endpoint to register a customer</p>\n<h3 id=\"responses\">Responses</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>200 Return a Object of Customer with auth credencials\n</code></pre><pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n    \"accessToken\": \"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjdXN0b21lcklkIjo0LCJuYW1lIjoidG9ueSIsImVtYWlsIjoiYW50aG9ueXUyMzRAZ21haWwuY29tIiwiaWF0IjoxNTU3NjYzMjE3LCJleHAiOjE1NTc3NDk2MTd9.dyqvedHDEQFE30BlGEZfj4rgicxDLvUz15EckF1tlnQ\",\n    \"customer\": {\n        \"customer_id\": 4,\n        \"name\": \"tony\",\n        \"email\": \"anthonyu234@gmail.com\",\n        \"credit_card\": null,\n        \"address_1\": null,\n        \"address_2\": null,\n        \"city\": null,\n        \"region\": null,\n        \"postal_code\": null,\n        \"country\": null,\n        \"shipping_region_id\": 1,\n        \"day_phone\": null,\n        \"eve_phone\": null,\n        \"mob_phone\": null\n    },\n    \"expires_in\": \"24h\"\n}\n</code></pre><pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>400 Return error object\n</code></pre><pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n    \"error\": {\n        \"status\": 400,\n        \"code\": \"USR_01\",\n        \"message\": \"email is not allowed to be empty\",\n        \"field\": \"email\"\n    }\n}\n\n</code></pre>","urlObject":{"protocol":"http","port":"3000","path":["customers",""],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"21dc451e-6cfa-4cde-8829-ea29d64c7d12"},{"name":"Login Customer","id":"8f7f7192-01e7-4957-accc-928bbac60946","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"email","value":"anthonyu73@yahoo.com","description":"<p>(Required)</p>\n","type":"text"},{"key":"password","value":"facebook","description":"<p>(Required)</p>\n","type":"text"}]},"url":"http://localhost:3000/customers/login","description":"<p>An endpoint to login a customer</p>\n<h3 id=\"responses\">Responses</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>200 Return a Object of Customer with auth credencials\n</code></pre><pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n    \"accessToken\": \"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjdXN0b21lcklkIjo0LCJuYW1lIjoidG9ueSIsImVtYWlsIjoiYW50aG9ueXUyMzRAZ21haWwuY29tIiwiaWF0IjoxNTU3NjYzMjE3LCJleHAiOjE1NTc3NDk2MTd9.dyqvedHDEQFE30BlGEZfj4rgicxDLvUz15EckF1tlnQ\",\n    \"customer\": {\n        \"customer_id\": 4,\n        \"name\": \"tony\",\n        \"email\": \"anthonyu234@gmail.com\",\n        \"credit_card\": null,\n        \"address_1\": null,\n        \"address_2\": null,\n        \"city\": null,\n        \"region\": null,\n        \"postal_code\": null,\n        \"country\": null,\n        \"shipping_region_id\": 1,\n        \"day_phone\": null,\n        \"eve_phone\": null,\n        \"mob_phone\": null\n    },\n    \"expires_in\": \"24h\"\n}\n</code></pre><pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>400 Return error object\n</code></pre><pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n    \"error\": {\n        \"status\": 400,\n        \"code\": \"USR_01\",\n        \"message\": \"email is not allowed to be empty\",\n        \"field\": \"email\"\n    }\n}\n\n</code></pre>","urlObject":{"protocol":"http","port":"3000","path":["customers","login"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"8f7f7192-01e7-4957-accc-928bbac60946"},{"name":"Get customer","id":"d82899cd-af74-4a69-b38b-595bdd354812","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"USER-KEY","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjdXN0b21lcklkIjo3LCJuYW1lIjoidG9ueSIsImVtYWlsIjoidG9uZXJvQGdtYWlsLmNvbSIsImlhdCI6MTU1Njk3MDIzNSwiZXhwIjoxNTU3MDU2NjM1fQ.O32KtlE3TlXLZAOFHTQYurwIVe6AgvU0rjSQRU07Gzk","type":"text"}],"url":"http://localhost:3000/customer","description":"<p>An endpoint to get a customer</p>\n<h3 id=\"responses\">Responses</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>200 Return a Object of Customer \n</code></pre><pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n  \"customer_id\": 1,\n  \"name\": \"tonyi\",\n  \"email\": \"tony@gmail.com\",\n  \"address_1\": \"QI 19\",\n  \"address_2\": \"\",\n  \"city\": \"\",\n  \"region\": \"\",\n  \"postal_code\": \"\",\n  \"country\": \"\",\n  \"shipping_region_id\": 1,\n  \"day_phone\": \"+351323213511235\",\n  \"eve_phone\": \"+452436143246123\",\n  \"mob_phone\": \"+351323213511235\",\n  \"credit_card\": \"XXXXXXXX5100\"\n}\n</code></pre><pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>401 Unauthorized\n</code></pre><ul>\n<li>Example response</li>\n</ul>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n    \"error\": {\n        \"status\": 401,\n        \"code\": \"AUT_02\",\n        \"message\": \"The userkey is invalid\",\n        \"field\": \"USER_KEY\"\n    }\n}\n</code></pre>","urlObject":{"protocol":"http","port":"3000","path":["customer"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"d82899cd-af74-4a69-b38b-595bdd354812"},{"name":"Update customer address","id":"fff716d8-d847-4a12-82b3-93b008689305","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"USER-KEY","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjdXN0b21lcklkIjo3LCJuYW1lIjoidG9ueSIsImVtYWlsIjoidG9uZXJvQGdtYWlsLmNvbSIsImlhdCI6MTU1Njk3MDIzNSwiZXhwIjoxNTU3MDU2NjM1fQ.O32KtlE3TlXLZAOFHTQYurwIVe6AgvU0rjSQRU07Gzk","description":"<p>(Required)</p>\n","type":"text"},{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"address_1","value":"abc","description":"<p>(Required)</p>\n","type":"text"},{"key":"address_2","value":"zaf","type":"text"},{"key":"city","value":"lagos","description":"<p>(Required)</p>\n","type":"text"},{"key":"region","value":"west","description":"<p>(Required)</p>\n","type":"text"},{"key":"postal_code","value":"nnnn","description":"<p>(Required)</p>\n","type":"text"},{"key":"country","value":"Nigeria","description":"<p>(Required)</p>\n","type":"text"},{"key":"shipping_region_id","value":"2","description":"<p>(Required)</p>\n","type":"text"},{"key":"","value":"","type":"text","disabled":true}]},"url":"http://localhost:3000/customers/address","description":"<p>Endpoint to update customer address</p>\n<h3 id=\"responses\">Responses</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>200 Customer object\n</code></pre><ul>\n<li>Example Response</li>\n</ul>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n    \"customer_id\": 7,\n    \"name\": \"tony\",\n    \"email\": \"fish@gmail.com\",\n    \"credit_card\": \"gfcghvjbknlm9087\",\n    \"address_1\": \"abc\",\n    \"address_2\": \"zaf\",\n    \"city\": \"lagos\",\n    \"region\": \"west\",\n    \"postal_code\": \"nnnn\",\n    \"country\": \"Nigeria\",\n    \"shipping_region_id\": 2,\n    \"day_phone\": null,\n    \"eve_phone\": null,\n    \"mob_phone\": null\n}\n</code></pre><pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>401 Unauthorized\n</code></pre><ul>\n<li>Example response</li>\n</ul>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n    \"error\": {\n        \"status\": 401,\n        \"code\": \"AUT_02\",\n        \"message\": \"The userkey is invalid\",\n        \"field\": \"USER_KEY\"\n    }\n}\n</code></pre><pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>400 Return error object\n</code></pre><ul>\n<li>Example</li>\n</ul>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n    \"error\": {\n        \"status\": 400,\n        \"code\": \"USR_02\",\n        \"message\": \"email is not allowed to be empty\",\n        \"field\": \"email\"\n    }\n}\n</code></pre>","urlObject":{"protocol":"http","port":"3000","path":["customers","address"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"fff716d8-d847-4a12-82b3-93b008689305"},{"name":"Update credit card","id":"296e86ea-5bbd-4ab1-8359-8022b80ddad1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"USER-KEY","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjdXN0b21lcklkIjo3LCJuYW1lIjoidG9ueSIsImVtYWlsIjoidG9uZXJvQGdtYWlsLmNvbSIsImlhdCI6MTU1Njk3MDIzNSwiZXhwIjoxNTU3MDU2NjM1fQ.O32KtlE3TlXLZAOFHTQYurwIVe6AgvU0rjSQRU07Gzk","description":"<p>(Required)</p>\n","type":"text"},{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"credit_card","value":"gfcghvjbknlm9087","description":"<p>(Required)</p>\n","type":"text"}]},"url":"http://localhost:3000/customers/creditCard","description":"<p>Endpoint to update customer details</p>\n<h3 id=\"responses\">Responses</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>200 Customer object\n</code></pre><ul>\n<li>Example Response</li>\n</ul>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n    \"customer_id\": 7,\n    \"name\": \"tony\",\n    \"email\": \"fish@gmail.com\",\n    \"credit_card\": \"gfcghvjbknlm9087\",\n    \"address_1\": \"abc\",\n    \"address_2\": \"zaf\",\n    \"city\": \"lagos\",\n    \"region\": \"west\",\n    \"postal_code\": \"nnnn\",\n    \"country\": \"Nigeria\",\n    \"shipping_region_id\": 2,\n    \"day_phone\": null,\n    \"eve_phone\": null,\n    \"mob_phone\": null\n}\n</code></pre><pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>401 Unauthorized\n</code></pre><ul>\n<li>Example response</li>\n</ul>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n    \"error\": {\n        \"status\": 401,\n        \"code\": \"AUT_02\",\n        \"message\": \"The userkey is invalid\",\n        \"field\": \"USER_KEY\"\n    }\n}\n</code></pre><pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>400 Return error object\n</code></pre><ul>\n<li>Example</li>\n</ul>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n    \"error\": {\n        \"status\": 400,\n        \"code\": \"USR_02\",\n        \"message\": \"email is not allowed to be empty\",\n        \"field\": \"email\"\n    }\n}\n</code></pre>","urlObject":{"protocol":"http","port":"3000","path":["customers","creditCard"],"host":["localhost"],"query":[{"disabled":true,"key":"USER-KEY","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjdXN0b21lcklkIjo3LCJuYW1lIjoidG9ueSIsImVtYWlsIjoidG9uZXJvQGdtYWlsLmNvbSIsImlhdCI6MTU1Njk3MDIzNSwiZXhwIjoxNTU3MDU2NjM1fQ.O32KtlE3TlXLZAOFHTQYurwIVe6AgvU0rjSQRU07Gzk"}],"variable":[]}},"response":[],"_postman_id":"296e86ea-5bbd-4ab1-8359-8022b80ddad1"},{"name":"Update Customer details","id":"a7cd8d0e-3c24-44bc-a116-d3c577b61794","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"USER-KEY","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjdXN0b21lcklkIjoxNCwibmFtZSI6In","description":"<p>(Required)</p>\n","type":"text"},{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"email","value":"","description":"<p>(Required)</p>\n","type":"text"},{"key":"name","value":"","description":"<p>(Required)</p>\n","type":"text"}]},"url":"http://localhost:3000/customer","description":"<p>Endpoint to update customer details</p>\n<h3 id=\"responses\">Responses</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>200 Customer object\n</code></pre><ul>\n<li>Example Response</li>\n</ul>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n    \"customer_id\": 7,\n    \"name\": \"tony\",\n    \"email\": \"fish@gmail.com\",\n    \"credit_card\": \"gfcghvjbknlm9087\",\n    \"address_1\": \"abc\",\n    \"address_2\": \"zaf\",\n    \"city\": \"lagos\",\n    \"region\": \"west\",\n    \"postal_code\": \"nnnn\",\n    \"country\": \"Nigeria\",\n    \"shipping_region_id\": 2,\n    \"day_phone\": null,\n    \"eve_phone\": null,\n    \"mob_phone\": null\n}\n</code></pre><pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>401 Unauthorized\n</code></pre><ul>\n<li>Example response</li>\n</ul>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n    \"error\": {\n        \"status\": 401,\n        \"code\": \"AUT_02\",\n        \"message\": \"The userkey is invalid\",\n        \"field\": \"USER_KEY\"\n    }\n}\n</code></pre><pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>400 Return error object\n</code></pre><ul>\n<li>Example</li>\n</ul>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n    \"error\": {\n        \"status\": 400,\n        \"code\": \"USR_02\",\n        \"message\": \"email is not allowed to be empty\",\n        \"field\": \"email\"\n    }\n}\n</code></pre>","urlObject":{"protocol":"http","port":"3000","path":["customer"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"a7cd8d0e-3c24-44bc-a116-d3c577b61794"},{"name":"Get all products","id":"ad00a750-3ec1-48d9-aaca-75ec8b2d29a5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/products?page=2&description_length=3","urlObject":{"protocol":"http","port":"3000","path":["products"],"host":["localhost"],"query":[{"key":"page","value":"2"},{"key":"description_length","value":"3"}],"variable":[]}},"response":[],"_postman_id":"ad00a750-3ec1-48d9-aaca-75ec8b2d29a5"},{"name":"get a product","id":"f17aac2b-4b2c-4a6c-aace-7b45fa8ee5fc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/products/1","urlObject":{"protocol":"http","port":"3000","path":["products","1"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"f17aac2b-4b2c-4a6c-aace-7b45fa8ee5fc"},{"name":"search products","id":"a1f4d3d5-92be-4dc8-80b9-2a49263b2619","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/products/search?query_string=","urlObject":{"protocol":"http","port":"3000","path":["products","search"],"host":["localhost"],"query":[{"key":"query_string","value":""},{"disabled":true,"key":"all_words","value":"on"},{"disabled":true,"key":"description_length","value":"200"},{"disabled":true,"key":"page","value":"1"},{"disabled":true,"key":"limit","value":"10"}],"variable":[]}},"response":[],"_postman_id":"a1f4d3d5-92be-4dc8-80b9-2a49263b2619"},{"name":"get product in category","id":"3f189944-753e-4556-a40f-6f7f2a94b188","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/products/inCategory/1","urlObject":{"protocol":"http","port":"3000","path":["products","inCategory","1"],"host":["localhost"],"query":[{"disabled":true,"key":"limit","value":"10"},{"disabled":true,"key":"page","value":"2"}],"variable":[]}},"response":[],"_postman_id":"3f189944-753e-4556-a40f-6f7f2a94b188"},{"name":"get products in departments","id":"10ff29cf-970c-4975-b30e-1c728498ebc0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"","urlObject":{"query":[],"variable":[]}},"response":[],"_postman_id":"10ff29cf-970c-4975-b30e-1c728498ebc0"},{"name":"generate unigue shopping cart ID","id":"967336e6-e441-450a-8728-04e0c371063e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/shoppingcart/generateUniqueId","urlObject":{"protocol":"http","port":"3000","path":["shoppingcart","generateUniqueId"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"967336e6-e441-450a-8728-04e0c371063e"},{"name":"Add product to cart","id":"65424709-2bc0-446b-b821-843636851437","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"cart_id","value":"d88d73935d1ab237aa2140b893b718aa","type":"text"},{"key":"product_id","value":"1","type":"text"},{"key":"attributes","value":"green","type":"text"}]},"url":"http://localhost:3000/shoppingcart/add","urlObject":{"protocol":"http","port":"3000","path":["shoppingcart","add"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"65424709-2bc0-446b-b821-843636851437"},{"name":"get list of products in a cart","id":"ca029539-aef5-43a3-ab7b-04fb6a2176cb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"","urlObject":{"query":[],"variable":[]}},"response":[],"_postman_id":"ca029539-aef5-43a3-ab7b-04fb6a2176cb"},{"name":"empty cart","id":"a97eb7cb-24d8-4402-a8c1-d025eab6ca72","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{BASE_URL}}t/empty/d88d73935d1ab237aa2140b893b718aa","urlObject":{"path":["empty","d88d73935d1ab237aa2140b893b718aa"],"host":["{{BASE_URL}}t"],"query":[],"variable":[]}},"response":[],"_postman_id":"a97eb7cb-24d8-4402-a8c1-d025eab6ca72"},{"name":"get all taxes","id":"e650591a-6ea6-461f-9e8d-1542ffa77163","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/tax","urlObject":{"protocol":"http","port":"3000","path":["tax"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"e650591a-6ea6-461f-9e8d-1542ffa77163"},{"name":"get tax by id","id":"0186855b-f576-4fe7-8104-9799c9dfa32c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{BASE_URL}}/tax/2","urlObject":{"path":["tax","2"],"host":["{{BASE_URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"0186855b-f576-4fe7-8104-9799c9dfa32c"},{"name":"get shipping regions","id":"82717ed9-3cf7-4f07-8f0d-9ae5a41cf308","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{BASE_URL}}/shipping/regions","urlObject":{"path":["shipping","regions"],"host":["{{BASE_URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"82717ed9-3cf7-4f07-8f0d-9ae5a41cf308"},{"name":"get a shipping region","id":"223fa5f5-7b98-4b38-ac44-de8716da9c20","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{BASE_URL}}/shipping/regions/1","urlObject":{"path":["shipping","regions","1"],"host":["{{BASE_URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"223fa5f5-7b98-4b38-ac44-de8716da9c20"},{"name":"create an order","id":"24ac794f-bf12-4021-b190-0a2287e7212b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"USER-KEY","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjdXN0b21lcklkIjoxMywibmFtZSI6IkFudGhvbnkgVWd3dSIsImVtYWlsIjoiYW50aG9ueXU3M0B5YWhvby5jb20iLCJpYXQiOjE1NTc2OTMwMDcsImV4cCI6MTU1Nzc3OTQwN30._mGmJ88-A6LvBW3jISKcwSO2mpKTsopx-fZZ3O1qNZI","type":"text"},{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"cart_id","value":"d88d73935d1ab237aa2140b893b718aa","type":"text"},{"key":"shipping_id","value":"1","type":"text"},{"key":"tax_id","value":"1","type":"text"},{"key":"comments","value":"jjjjj","type":"text"},{"key":"shipped_on","value":"hhh","type":"text","disabled":true}]},"url":"{{BASE_URL}}/orders","urlObject":{"path":["orders"],"host":["{{BASE_URL}}"],"query":[{"disabled":true,"key":"USER-KEY","value":""}],"variable":[]}},"response":[],"_postman_id":"24ac794f-bf12-4021-b190-0a2287e7212b"},{"name":"get order info","id":"a191ee7b-597f-4110-8bd0-672ae33f9c4d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{BASE_URL}}/orders/1","urlObject":{"path":["orders","1"],"host":["{{BASE_URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"a191ee7b-597f-4110-8bd0-672ae33f9c4d"},{"name":"facebook login","id":"5cc12999-d0d3-4413-95c2-99b6d1ea5804","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"access_token","value":"EAAFoH1AlEc0BAMuZCsech1aAntLzafNShHfSMC69PTmNmLw6srZBChlzQ4TGsbF8ZCVLNWeUF2UXKYZCxiDcyo4AFFNndITjhWpHdmQZC6qxRCPVHchg1zjpjGO9KxDq94m4xx4ZBRgru178hSEKz9swGaY6c4KAKLVZC34iVJLuoaSgWuDBfF6zm5dhHb9aRSZB7nmUqrOr0AZDZD","type":"text"}]},"url":"http://localhost:3000/customers/facebook","urlObject":{"protocol":"http","port":"3000","path":["customers","facebook"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"5cc12999-d0d3-4413-95c2-99b6d1ea5804"},{"name":"payment","id":"c091cbf4-0469-4841-a667-5368e69d1e9e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"stripeToken","value":"tok_1EZhHkDWUXabn4gcPkMkXWCI","type":"text"}]},"url":"http://localhost:3000/stripe/charge","urlObject":{"protocol":"http","port":"3000","path":["stripe","charge"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"c091cbf4-0469-4841-a667-5368e69d1e9e"},{"name":"Remove product from shopping cart","id":"712a2dc0-f973-4b03-8836-411e855c4d8f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{BASE_URL}}/shoppingcart/removeProduct/3","urlObject":{"path":["shoppingcart","removeProduct","3"],"host":["{{BASE_URL}}"],"query":[{"disabled":true,"key":"item_id","value":"3"}],"variable":[]}},"response":[],"_postman_id":"712a2dc0-f973-4b03-8836-411e855c4d8f"}]}