{"info":{"_postman_id":"2ec882d8-1672-4962-89a5-f94ef366f537","name":"Store Management Api","description":"<html><head></head><body><p>Store Manager is a web application that helps store owners manage sales and product inventory records. This application is meant for use in a single store. This is the documentation for the API endpoints.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"5265531","collectionId":"2ec882d8-1672-4962-89a5-f94ef366f537","publishedId":"RWguxwzy","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2018-10-23T09:45:30.000Z"},"item":[{"name":"CREATE A NEW USER","id":"be21b916-bf2b-4000-a310-1bc9ce299e2a","request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE1NDAxOTcxMDksIm5iZiI6MTU0MDE5NzEwOSwianRpIjoiNDM5NGNmZjQtYTBmNi00YzNhLTg2OWEtODRmNmY2YWNlZmZlIiwiZXhwIjoxNTQwMTk4OTA5LCJpZGVudGl0eSI6ImNhbGVicm90aWNoMTBAZ21haWwuY29tIiwiZnJlc2giOmZhbHNlLCJ0eXBlIjoiYWNjZXNzIn0.UXdZSJMkAOrO3DDWzn8YkzPzG8N-SMpqlwPcTjKbBB8"}],"body":{"mode":"raw","raw":"{\n\t\"email\":\"calebrotich10@gmail.com\",\n\t\"role\":\"Admin\",\n\t\"password\":\"Password12#\"\n}"},"url":"https://store-manager-api.herokuapp.com/api/v1/auth/signup","description":"<p>This is used to create new user accounts</p>\n","urlObject":{"protocol":"https","path":["api","v1","auth","signup"],"host":["store-manager-api","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"0a6d99a3-5eef-40ee-b2be-91ed18c48cf0","name":"CREATE A NEW USER","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE1NDAxOTcxMDksIm5iZiI6MTU0MDE5NzEwOSwianRpIjoiNDM5NGNmZjQtYTBmNi00YzNhLTg2OWEtODRmNmY2YWNlZmZlIiwiZXhwIjoxNTQwMTk4OTA5LCJpZGVudGl0eSI6ImNhbGVicm90aWNoMTBAZ21haWwuY29tIiwiZnJlc2giOmZhbHNlLCJ0eXBlIjoiYWNjZXNzIn0.UXdZSJMkAOrO3DDWzn8YkzPzG8N-SMpqlwPcTjKbBB8"}],"body":{"mode":"raw","raw":"{\n\t\"email\":\"calebrotich10@gmail.com\",\n\t\"role\":\"Admin\",\n\t\"password\":\"Password12#\"\n}"},"url":"https://store-manager-api.herokuapp.com/api/v1/auth/signup"},"status":"ACCEPTED","code":202,"_postman_previewlanguage":"json","header":[{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"gunicorn/19.9.0"},{"key":"Date","value":"Tue, 23 Oct 2018 09:10:32 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"152"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"email\": \"calebrotich10@gmail.com\",\n    \"id\": 1,\n    \"password\": \"sha256$KjTD5i02$4f3fe35aa82ab03acafd69082f0c0b87a7f4ecc13377dbdc26156781af37e61c\",\n    \"role\": \"Admin\"\n}"}],"_postman_id":"be21b916-bf2b-4000-a310-1bc9ce299e2a"},{"name":"LOGIN USER","id":"221f181d-81b9-4004-984b-c65b97c8d4a0","request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE1NDAxOTcxMDksIm5iZiI6MTU0MDE5NzEwOSwianRpIjoiNDM5NGNmZjQtYTBmNi00YzNhLTg2OWEtODRmNmY2YWNlZmZlIiwiZXhwIjoxNTQwMTk4OTA5LCJpZGVudGl0eSI6ImNhbGVicm90aWNoMTBAZ21haWwuY29tIiwiZnJlc2giOmZhbHNlLCJ0eXBlIjoiYWNjZXNzIn0.UXdZSJMkAOrO3DDWzn8YkzPzG8N-SMpqlwPcTjKbBB8"}],"body":{"mode":"raw","raw":"{\n\t\"email\":\"calebrotich10@gmail.com\",\n\t\"password\":\"Password12#\"\n}"},"url":"https://store-manager-api.herokuapp.com/api/v1/auth/login","description":"<p>A user is verified and authenticated. A token is then returned to be used for subsequent requests.</p>\n","urlObject":{"protocol":"https","path":["api","v1","auth","login"],"host":["store-manager-api","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"f8a85337-0d5c-4573-9ba0-236ea6e36535","name":"LOGIN USER","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJlbWFpbCI6ImNhbGVicm90aWNoMTBAZ21haWwuY29tIiwiZXhwIjoxNTQwMjg2MzU3fQ.vsNac5gtAd6LPV7ZW3rnU_hB81haS02Poe3xGeBEDVg","disabled":true}],"body":{"mode":"raw","raw":"{\n\t\"email\":\"calebrotich10@gmail.com\",\n\t\"password\":\"Password12#\"\n}"},"url":"https://store-manager-api.herokuapp.com/api/v1/auth/login"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"gunicorn/19.9.0"},{"key":"Date","value":"Tue, 23 Oct 2018 09:20:31 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"207"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"You are successfully logged in\",\n    \"token\": \"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJlbWFpbCI6ImNhbGVicm90aWNoMTBAZ21haWwuY29tIiwiZXhwIjoxNTQwMjg2NzMxfQ.nq_JYeI-e8G94O1m1vB5YA3BVdX4yyqmtBzXct7EXuA\"\n}"}],"_postman_id":"221f181d-81b9-4004-984b-c65b97c8d4a0"},{"name":"ADMIN ADD NEW PRODUCT","id":"fb354ab7-8969-48e4-a4ab-fc5a556654fa","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJlbWFpbCI6ImNhbGVicm90aWNoMTBAZ21haWwuY29tIiwiZXhwIjoxNTQwMjg2NzMxfQ.nq_JYeI-e8G94O1m1vB5YA3BVdX4yyqmtBzXct7EXuA","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"product_name\": \"Hammer\",\n\t\"product_price\": 300,\n\t\"category\": \"Tools\"\n}"},"url":"https://store-manager-api.herokuapp.com/api/v1/products","description":"<p>An admin adds a new product to the store</p>\n","urlObject":{"protocol":"https","path":["api","v1","products"],"host":["store-manager-api","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"69bb9b43-3e57-4166-9ade-0281670690d3","name":"ADMIN ADD NEW PRODUCT - Second","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJlbWFpbCI6ImNhbGVicm90aWNoMTBAZ21haWwuY29tIiwiZXhwIjoxNTQwMjg3MTUyfQ.ZrSXIxwBkmvrANxzP-iCGd_kyIygr1UIuwFxI8josBs","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"product_name\": \"Panga\",\n\t\"product_price\": 250,\n\t\"category\": \"Tools\"\n}"},"url":"https://store-manager-api.herokuapp.com/api/v1/products"},"status":"CREATED","code":201,"_postman_previewlanguage":"json","header":[{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"gunicorn/19.9.0"},{"key":"Date","value":"Tue, 23 Oct 2018 09:28:44 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"130"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Product added successfully\",\n    \"product\": {\n        \"category\": \"Tools\",\n        \"product_id\": 2,\n        \"product_name\": \"Panga\",\n        \"product_price\": 250\n    }\n}"},{"id":"dedc1c99-e423-4268-8f47-de0ab771fe08","name":"ADMIN ADD NEW PRODUCT","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJlbWFpbCI6ImNhbGVicm90aWNoMTBAZ21haWwuY29tIiwiZXhwIjoxNTQwMjg3MTUyfQ.ZrSXIxwBkmvrANxzP-iCGd_kyIygr1UIuwFxI8josBs","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"product_name\": \"Jembe\",\n\t\"product_price\": 400,\n\t\"category\": \"Tools\"\n}"},"url":"https://store-manager-api.herokuapp.com/api/v1/products"},"status":"CREATED","code":201,"_postman_previewlanguage":"json","header":[{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"gunicorn/19.9.0"},{"key":"Date","value":"Tue, 23 Oct 2018 09:27:50 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"130"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Product added successfully\",\n    \"product\": {\n        \"category\": \"Tools\",\n        \"product_id\": 1,\n        \"product_name\": \"Jembe\",\n        \"product_price\": 400\n    }\n}"}],"_postman_id":"fb354ab7-8969-48e4-a4ab-fc5a556654fa"},{"name":"FETCH ALL PRODUCTS","id":"22519ae3-9628-4e14-aa14-92c5bbb06ad8","request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJlbWFpbCI6ImNhbGVicm90aWNoMTBAZ21haWwuY29tIiwiZXhwIjoxNTQwMjg3MTUyfQ.ZrSXIxwBkmvrANxzP-iCGd_kyIygr1UIuwFxI8josBs","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"product_name\": \"Panga\",\n\t\"product_price\": 250,\n\t\"category\": \"Tools\"\n}"},"url":"https://store-manager-api.herokuapp.com/api/v1/products","description":"<p>Users can view all the products available in the store</p>\n","urlObject":{"protocol":"https","path":["api","v1","products"],"host":["store-manager-api","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"19e788bb-31ce-4b8c-bd09-c30c12f35fac","name":"FETCH ALL PRODUCTS","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJlbWFpbCI6ImNhbGVicm90aWNoMTBAZ21haWwuY29tIiwiZXhwIjoxNTQwMjg3MTUyfQ.ZrSXIxwBkmvrANxzP-iCGd_kyIygr1UIuwFxI8josBs","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"product_name\": \"Panga\",\n\t\"product_price\": 250,\n\t\"category\": \"Tools\"\n}"},"url":"https://store-manager-api.herokuapp.com/api/v1/products"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"gunicorn/19.9.0"},{"key":"Date","value":"Tue, 23 Oct 2018 09:30:22 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"224"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Successfully fetched all the products\",\n    \"products\": [\n        {\n            \"category\": \"Tools\",\n            \"product_id\": 1,\n            \"product_name\": \"Hammer\",\n            \"product_price\": 300\n        },\n        {\n            \"category\": \"Tools\",\n            \"product_id\": 2,\n            \"product_name\": \"Panga\",\n            \"product_price\": 250\n        }\n    ]\n}"}],"_postman_id":"22519ae3-9628-4e14-aa14-92c5bbb06ad8"},{"name":"FETCH SPECIFIC PRODUCT","id":"3c5ad1e6-d09e-4e95-b524-551e5849e1af","request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJlbWFpbCI6ImNhbGVicm90aWNoMTBAZ21haWwuY29tIiwiZXhwIjoxNTQwMjg3MTUyfQ.ZrSXIxwBkmvrANxzP-iCGd_kyIygr1UIuwFxI8josBs","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"product_name\": \"Panga\",\n\t\"product_price\": 250,\n\t\"category\": \"Tools\"\n}"},"url":"https://store-manager-api.herokuapp.com/api/v1/products/1","description":"<p>A specific product is fetched using it's id</p>\n","urlObject":{"protocol":"https","path":["api","v1","products","1"],"host":["store-manager-api","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"04cc4f99-da7e-4bbe-940e-497e2c788bcf","name":"FETCH SPECIFIC PRODUCTS","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJlbWFpbCI6ImNhbGVicm90aWNoMTBAZ21haWwuY29tIiwiZXhwIjoxNTQwMjg3MTUyfQ.ZrSXIxwBkmvrANxzP-iCGd_kyIygr1UIuwFxI8josBs","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"product_name\": \"Panga\",\n\t\"product_price\": 250,\n\t\"category\": \"Tools\"\n}"},"url":"https://store-manager-api.herokuapp.com/api/v1/products/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"gunicorn/19.9.0"},{"key":"Date","value":"Tue, 23 Oct 2018 09:32:13 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"63"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Hammer retrieved successfully\",\n    \"product\": \"Hammer\"\n}"}],"_postman_id":"3c5ad1e6-d09e-4e95-b524-551e5849e1af"},{"name":"STORE ATTENDANT CREATE A SALE ORDER","id":"4570738e-3b62-4a64-8720-a4b349970a0d","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJlbWFpbCI6ImNhbGVicm90aWNoMTBAZ21haWwuY29tIiwiZXhwIjoxNTQwMjg3NjcyfQ.LHxLND95YN5Wjs2KWnloQCms5HHhAE6COOo9IPylP1Q","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"product_name\":\"Hammer\",\n\t\"product_price\": 300,\n\t\"quantity\": 3\n}"},"url":"https://store-manager-api.herokuapp.com/api/v1/saleorder","description":"<p>A store attendant creates a new sale order</p>\n","urlObject":{"protocol":"https","path":["api","v1","saleorder"],"host":["store-manager-api","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"417a1a0c-304e-4f2f-88b3-161fbdc0dd29","name":"STORE ATTENDANT CREATE A SALE ORDER - Second","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJlbWFpbCI6ImNhbGVicm90aWNoMTBAZ21haWwuY29tIiwiZXhwIjoxNTQwMjg3NjcyfQ.LHxLND95YN5Wjs2KWnloQCms5HHhAE6COOo9IPylP1Q","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"product_name\":\"Jembe\",\n\t\"product_price\": 200,\n\t\"quantity\": 2\n}"},"url":"https://store-manager-api.herokuapp.com/api/v1/saleorder"},"status":"CREATED","code":201,"_postman_previewlanguage":"json","header":[{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"gunicorn/19.9.0"},{"key":"Date","value":"Tue, 23 Oct 2018 09:38:04 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"133"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Checkout complete\",\n    \"saleorder\": {\n        \"amount\": 400,\n        \"product_name\": \"Jembe\",\n        \"product_price\": 200,\n        \"quantity\": 2,\n        \"sale_order_id\": 1\n    }\n}"},{"id":"8f6853d2-903a-4344-9868-c5026a089b94","name":"STORE ATTENDANT CREATE A SALE ORDER","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJlbWFpbCI6ImNhbGVicm90aWNoMTBAZ21haWwuY29tIiwiZXhwIjoxNTQwMjg3NjcyfQ.LHxLND95YN5Wjs2KWnloQCms5HHhAE6COOo9IPylP1Q","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"product_name\":\"Hammer\",\n\t\"product_price\": 300,\n\t\"quantity\": 3\n}"},"url":"https://store-manager-api.herokuapp.com/api/v1/saleorder"},"status":"CREATED","code":201,"_postman_previewlanguage":"json","header":[{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"gunicorn/19.9.0"},{"key":"Date","value":"Tue, 23 Oct 2018 09:36:30 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"134"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Checkout complete\",\n    \"saleorder\": {\n        \"amount\": 900,\n        \"product_name\": \"Hammer\",\n        \"product_price\": 300,\n        \"quantity\": 3,\n        \"sale_order_id\": 1\n    }\n}"}],"_postman_id":"4570738e-3b62-4a64-8720-a4b349970a0d"},{"name":"FETCH ALL SALE ORDERS","id":"7b2aaf67-f9ec-40a9-98f4-138c2210c15c","request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJlbWFpbCI6ImNhbGVicm90aWNoMTBAZ21haWwuY29tIiwiZXhwIjoxNTQwMjg3NjcyfQ.LHxLND95YN5Wjs2KWnloQCms5HHhAE6COOo9IPylP1Q","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"product_name\":\"Hammer\",\n\t\"product_price\": 300,\n\t\"quantity\": 4\n}"},"url":"https://store-manager-api.herokuapp.com/api/v1/saleorder","description":"<p>Endpoint fetches all the sale orders available</p>\n","urlObject":{"protocol":"https","path":["api","v1","saleorder"],"host":["store-manager-api","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"2be2f2f4-6aa9-46c2-8b91-392267e7e147","name":"FETCH ALL SALE ORDERS","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJlbWFpbCI6ImNhbGVicm90aWNoMTBAZ21haWwuY29tIiwiZXhwIjoxNTQwMjg3NjcyfQ.LHxLND95YN5Wjs2KWnloQCms5HHhAE6COOo9IPylP1Q","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"product_name\":\"Hammer\",\n\t\"product_price\": 300,\n\t\"quantity\": 4\n}"},"url":"https://store-manager-api.herokuapp.com/api/v1/saleorder"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"gunicorn/19.9.0"},{"key":"Date","value":"Tue, 23 Oct 2018 09:39:56 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"341"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Successfully fetched all the sale orders\",\n    \"sale_orders\": [\n        {\n            \"amount\": 900,\n            \"product_name\": \"Hammer\",\n            \"product_price\": 300,\n            \"quantity\": 3,\n            \"sale_order_id\": 1\n        },\n        {\n            \"amount\": 400,\n            \"product_name\": \"Jembe\",\n            \"product_price\": 200,\n            \"quantity\": 2,\n            \"sale_order_id\": 2\n        },\n        {\n            \"amount\": 1200,\n            \"product_name\": \"Hammer\",\n            \"product_price\": 300,\n            \"quantity\": 4,\n            \"sale_order_id\": 3\n        }\n    ]\n}"}],"_postman_id":"7b2aaf67-f9ec-40a9-98f4-138c2210c15c"},{"name":"FETCH A SPECIFIC SALE ORDER","id":"c66a6ec2-9341-48e3-9f3b-a47c58c4288b","request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJlbWFpbCI6ImNhbGVicm90aWNoMTBAZ21haWwuY29tIiwiZXhwIjoxNTQwMjg3OTg1fQ.cIZFtiNIcSeRXEykRd5VqcsVLrfa_iyXtMUhnMDtijQ","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"product_name\":\"Hammer\",\n\t\"product_price\": 300,\n\t\"quantity\": 4\n}"},"url":"https://store-manager-api.herokuapp.com/api/v1/saleorder/1","description":"<p>Fetches a sale order based on its ID</p>\n","urlObject":{"protocol":"https","path":["api","v1","saleorder","1"],"host":["store-manager-api","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"ac3e15e8-7c0b-4952-9a93-50d7e6cdee7f","name":"FETCH A SPECIFIC SALE ORDER","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJlbWFpbCI6ImNhbGVicm90aWNoMTBAZ21haWwuY29tIiwiZXhwIjoxNTQwMjg3OTg1fQ.cIZFtiNIcSeRXEykRd5VqcsVLrfa_iyXtMUhnMDtijQ","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"product_name\":\"Hammer\",\n\t\"product_price\": 300,\n\t\"quantity\": 4\n}"},"url":"https://store-manager-api.herokuapp.com/api/v1/saleorder/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"gunicorn/19.9.0"},{"key":"Date","value":"Tue, 23 Oct 2018 09:43:28 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"63"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Hammer retrieved successfully\",\n    \"product\": \"Hammer\"\n}"}],"_postman_id":"c66a6ec2-9341-48e3-9f3b-a47c58c4288b"}]}