{"info":{"_postman_id":"6338d5e9-4a93-4d32-b70c-58012c870065","name":"Demix","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"11088003","collectionId":"6338d5e9-4a93-4d32-b70c-58012c870065","publishedId":"TW74j5T3","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2021-03-16T07:52:17.000Z"},"item":[{"name":"Base User Requests","item":[{"name":"User Creation","id":"3ad84af1-6a91-4bed-ba26-bf0591ad3759","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"testuser@gmail.com\",\r\n    \"full_name\": \"Test User\",\r\n    \"password\": \"supersecretpassword\",\r\n    \"phone_number\": \"123123121312\",\r\n    \"is_kalafex_admin\": \"True\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/auth/users/","description":"<p>Set the role of the user to True.\nAvailable roles are 'is_kalafex_admin', 'is_artist', 'is_customer'.</p>\n","urlObject":{"protocol":"http","port":"8000","path":["auth","users",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"5fe04da3-2833-4c9f-b0a4-ee5b257f0d29","name":"User Creation","originalRequest":{"method":"POST","header":[{"key":"","value":"","type":"text","disabled":true}],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"testuser@gmail.com\",\r\n    \"full_name\": \"Test User\",\r\n    \"password\": \"supersecretpassword\",\r\n    \"phone_number\": \"123123121312\",\r\n    \"is_kalafex_admin\": \"True\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"BASE_URL/auth/users/"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 06 Feb 2021 22:08:35 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.4"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept"},{"key":"Allow","value":"GET, POST, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"40"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"email\": \"thewarhawk0@gmail.com\",\n    \"id\": 1\n}"}],"_postman_id":"3ad84af1-6a91-4bed-ba26-bf0591ad3759"},{"name":"User Verification","id":"5f97db27-f8ab-4c1c-950a-a8eef573434c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"uid\": \"MQ\",\r\n    \"token\": \"ahoks4-b2401c702cad87ecf48ebe902dd7c948\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/auth/users/activation/","description":"<p>The user will make a request to BASE_URL/activate/// from the verification email. Capture the uid and the token from the url and pass it to this endpoint.</p>\n","urlObject":{"protocol":"http","port":"8000","path":["auth","users","activation",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"bde8d8a3-98b9-4d53-bc10-47a5a2e758d6","name":"User Verification","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"uid\": \"MQ\",\r\n    \"token\": \"ahoks4-b2401c702cad87ecf48ebe902dd7c948\"\r\n}","options":{"raw":{"language":"json"}}},"url":"BASE_URL/auth/users/activation/"},"status":"No Content","code":204,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Sat, 06 Feb 2021 22:08:58 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.4"},{"key":"Vary","value":"Accept"},{"key":"Allow","value":"POST, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"0"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"5f97db27-f8ab-4c1c-950a-a8eef573434c"},{"name":"Login - Token Creation","id":"ce90fc41-0206-47db-8c39-2b404ce623a1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"testuser@gmail.com\",\r\n    \"password\": \"supersecretpassword\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/auth/token/login/","urlObject":{"protocol":"http","port":"8000","path":["auth","token","login",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"301c49fa-3f01-4681-8d49-b74cabc6614c","name":"Create Token","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"testuser@gmail.com\",\r\n    \"password\": \"supersecretpassword\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"BASE_URL/auth/token/login/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 06 Feb 2021 21:48:44 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.4"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept"},{"key":"Allow","value":"POST, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"57"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"auth_token\": \"8c28c1968bf063735cb09d661d0ada0748299c3d\"\n}"},{"id":"7368003b-6ca5-4ac0-a0fd-f2ab396ecaf9","name":"Token Creation","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"testuser@gmail.com\",\r\n    \"password\": \"supersecretpassword\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"BASE_URL/auth/token/login/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 06 Feb 2021 22:09:08 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.4"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept"},{"key":"Allow","value":"POST, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"57"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"auth_token\": \"996e68699400753201b7166583b5ab4bad1f14f0\"\n}"}],"_postman_id":"ce90fc41-0206-47db-8c39-2b404ce623a1"},{"name":"Logout","id":"73dc303f-df44-4fd1-b0d1-7beecddd87ae","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Token 5bd694f975180b512a6d96c0caf1625d947c1e4e","type":"text"}],"url":"http://127.0.0.1:8000/auth/token/logout/","urlObject":{"protocol":"http","port":"8000","path":["auth","token","logout",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"0f3c2b6a-6209-458b-84aa-714836896ccd","name":"Logout","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Token 5bd694f975180b512a6d96c0caf1625d947c1e4e","type":"text"}],"url":"http://127.0.0.1:8000/auth/token/logout/"},"status":"No Content","code":204,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Tue, 23 Mar 2021 20:27:47 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.4"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"POST, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"0"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"73dc303f-df44-4fd1-b0d1-7beecddd87ae"},{"name":"Logged in user's base details","id":"8f3cba57-43b6-4c87-8e0c-aadb0c2c1a16","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Token 9e2fa0419421cb9560b47662f4e475944610054f","type":"text"}],"url":"http://127.0.0.1:8000/auth/users/me/","urlObject":{"protocol":"http","port":"8000","path":["auth","users","me",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"8f3cba57-43b6-4c87-8e0c-aadb0c2c1a16"},{"name":"Change email for logged in user","id":"781d3c9f-4404-4cf5-a3e4-abc2647716ee","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Token 9e2fa0419421cb9560b47662f4e475944610054f","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"new_email\": \"hari@gmail.com\",\r\n    \"re_new_email\": \"hari@gmail.com\",\r\n    \"current_password\": \"supersecretpassword\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/auth/users/set_email/","urlObject":{"protocol":"http","port":"8000","path":["auth","users","set_email",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"701e1877-9014-45a4-abd9-9fb125b1c65d","name":"Change email for logged in user","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Token 9e2fa0419421cb9560b47662f4e475944610054f","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"new_email\": \"hari@gmail.com\",\r\n    \"re_new_email\": \"hari@gmail.com\",\r\n    \"current_password\": \"supersecretpassword\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/auth/users/set_email/"},"status":"No Content","code":204,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Thu, 08 Apr 2021 07:40:18 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.4"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"POST, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"0"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"781d3c9f-4404-4cf5-a3e4-abc2647716ee"},{"name":"Change password for logged in user","id":"b3d29001-2410-4adc-80e3-71f15c56a06b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Token 9e2fa0419421cb9560b47662f4e475944610054f","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"new_password\": \"moresupersecretpassword\",\r\n    \"re_new_password\": \"moresupersecretpassword\",\r\n    \"current_password\": \"supersecretpassword\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/auth/users/set_password/","urlObject":{"protocol":"http","port":"8000","path":["auth","users","set_password",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"de188db6-d088-4854-a598-6fa058ae33eb","name":"Change password for logged in user","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Token 9e2fa0419421cb9560b47662f4e475944610054f","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"new_password\": \"moresupersecretpassword\",\r\n    \"re_new_password\": \"moresupersecretpassword\",\r\n    \"current_password\": \"supersecretpassword\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/auth/users/set_password/"},"status":"No Content","code":204,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Thu, 08 Apr 2021 07:43:32 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.4"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"POST, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"0"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"b3d29001-2410-4adc-80e3-71f15c56a06b"},{"name":"Update user's details","id":"8075f180-57c3-4941-ac3c-460415735bc2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Authorization","value":"Token 9e2fa0419421cb9560b47662f4e475944610054f","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"is_first_login\": false\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/auth/users/me/","description":"<p>Update only full_name, phone_number and is_first_login fields.</p>\n","urlObject":{"protocol":"http","port":"8000","path":["auth","users","me",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"e7fe6753-286e-467e-b619-9cea8c64f680","name":"Update user's details","originalRequest":{"method":"PATCH","header":[{"key":"Authorization","value":"Token 9e2fa0419421cb9560b47662f4e475944610054f","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"is_first_login\": false\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/auth/users/me/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 23 Mar 2021 20:35:44 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.4"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"GET, PUT, PATCH, DELETE, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"149"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"full_name\": \"Test User\",\n    \"is_demix_admin\": false,\n    \"is_artist\": true,\n    \"is_customer\": false,\n    \"is_first_login\": false,\n    \"id\": 2,\n    \"email\": \"thewarhawk0@gmail.com\"\n}"}],"_postman_id":"8075f180-57c3-4941-ac3c-460415735bc2"},{"name":"Make user a Demix Admin","id":"e0917a13-2f9d-42eb-bc32-2b7e252ac54e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Token c69601a442445d5994a9451c07257ca50237cb86","type":"text"}],"body":{"mode":"formdata","formdata":[]},"url":"http://127.0.0.1:8000/accounts/demix_admin/","urlObject":{"protocol":"http","port":"8000","path":["accounts","demix_admin",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"cfeee6ef-3a5e-4943-8000-e01b4548993c","name":"Make user a Demix Admin","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Token c69601a442445d5994a9451c07257ca50237cb86","type":"text"}],"body":{"mode":"formdata","formdata":[]},"url":"http://127.0.0.1:8000/accounts/demix_admin/"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 23 Mar 2021 20:49:29 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.4"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"POST, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"41"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"details\": {\n        \"user\": 3\n    }\n}"}],"_postman_id":"e0917a13-2f9d-42eb-bc32-2b7e252ac54e"},{"name":"Make user a Customer","id":"e13aeb07-557a-4e37-8e90-3f11d7899eed","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Token c69601a442445d5994a9451c07257ca50237cb86","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"date_of_birth\": \"1980-12-11\",\r\n    \"address\": \"221B, Baker Street\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/accounts/customer/","urlObject":{"protocol":"http","port":"8000","path":["accounts","customer",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"ffd8b3dc-4e3c-4f74-a416-86849210d609","name":"Make user a Customer","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Token c69601a442445d5994a9451c07257ca50237cb86","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"date_of_birth\": \"1980-12-11\",\r\n    \"address\": \"221B, Baker Street\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/accounts/customer/"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 23 Mar 2021 20:49:57 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.4"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"POST, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"155"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"details\": {\n        \"user\": 3,\n        \"profile_picture\": \"http://127.0.0.1:8000/media/uploads/profile_pictures/default.png\",\n        \"date_of_birth\": \"1980-12-11\"\n    }\n}"}],"_postman_id":"e13aeb07-557a-4e37-8e90-3f11d7899eed"},{"name":"Modify Customer details","id":"8f6fb4ea-3c72-4726-bc48-481b1d08898c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"","urlObject":{"query":[],"variable":[]}},"response":[],"_postman_id":"8f6fb4ea-3c72-4726-bc48-481b1d08898c"},{"name":"Add address","id":"96a13741-9ddc-45de-9239-c1cc5e4c764a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Token c69601a442445d5994a9451c07257ca50237cb86","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"address_type\": \"Pickup\",\r\n    \"street\": \"221B Baker Street\",\r\n    \"city\": \"London\",\r\n    \"state\": \"something\",\r\n    \"pin_code\": \"100007\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/accounts/add_address/","description":"<p>Can be added for any role. Types available are \"Shipping\", \"Billing\" and \"Pickup\". Mention the type in the request for the variable 'address_type'.</p>\n","urlObject":{"protocol":"http","port":"8000","path":["accounts","add_address",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"18d25d65-9c73-4e90-87e8-ddd02bba96ad","name":"Add address","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Token c69601a442445d5994a9451c07257ca50237cb86","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"address_type\": \"Pickup\",\r\n    \"street\": \"221B Baker Street\",\r\n    \"city\": \"London\",\r\n    \"state\": \"something\",\r\n    \"pin_code\": \"100007\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/accounts/add_address/"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 23 Mar 2021 20:50:21 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.4"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"POST, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"196"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"details\": {\n        \"a_id\": \"d891d94a-0b59-4fe3-9192-3817b424d9a3\",\n        \"street\": \"221B Baker Street\",\n        \"city\": \"London\",\n        \"state\": \"something\",\n        \"pin_code\": \"100007\",\n        \"address_type\": \"Pickup\",\n        \"user\": 3\n    }\n}"}],"_postman_id":"96a13741-9ddc-45de-9239-c1cc5e4c764a"},{"name":"Get addresses of current user","id":"932400b9-c9e2-4850-93fd-2f38bc107560","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Token 9e2fa0419421cb9560b47662f4e475944610054f","type":"text"}],"url":"http://127.0.0.1:8000/accounts/view_addresses/","urlObject":{"protocol":"http","port":"8000","path":["accounts","view_addresses",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"4fb1a8fd-2150-4b08-bd2c-dbed137b2cde","name":"Get addresses of current user","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Token 9e2fa0419421cb9560b47662f4e475944610054f","type":"text"}],"url":"http://127.0.0.1:8000/accounts/view_addresses/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 16 Mar 2021 09:47:01 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.4"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"GET, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"167"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"a_id\": \"10979fb7-5f78-4853-85cb-18657b1dc9ff\",\n        \"street\": \"221B Baker Street\",\n        \"city\": \"London\",\n        \"state\": \"something\",\n        \"pin_code\": \"100007\",\n        \"address_type\": \"Pickup\",\n        \"user\": 2\n    }\n]"}],"_postman_id":"932400b9-c9e2-4850-93fd-2f38bc107560"},{"name":"Modify an address","id":"2053066b-5f0b-439c-83cf-c32f24f2e1d0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Authorization","value":"Token 9e2fa0419421cb9560b47662f4e475944610054f","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"street\": \"221B Baker Street, Beside Building A\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/accounts/modify_address/10979fb7-5f78-4853-85cb-18657b1dc9ff/","description":"<p>Add a_id (address id) to the URL.</p>\n","urlObject":{"protocol":"http","port":"8000","path":["accounts","modify_address","10979fb7-5f78-4853-85cb-18657b1dc9ff",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"659f5335-62b3-4f94-89a7-e5d8987a9fb5","name":"Update an address","originalRequest":{"method":"PATCH","header":[{"key":"Authorization","value":"Token 9e2fa0419421cb9560b47662f4e475944610054f","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"street\": \"221B Baker Street, Beside Building A\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/accounts/modify_address/10979fb7-5f78-4853-85cb-18657b1dc9ff/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 16 Mar 2021 09:50:13 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.4"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"GET, PUT, PATCH, DELETE, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"184"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"a_id\": \"10979fb7-5f78-4853-85cb-18657b1dc9ff\",\n    \"street\": \"221B Baker Street, Beside Building A\",\n    \"city\": \"London\",\n    \"state\": \"something\",\n    \"pin_code\": \"100007\",\n    \"address_type\": \"Pickup\",\n    \"user\": 2\n}"}],"_postman_id":"2053066b-5f0b-439c-83cf-c32f24f2e1d0"},{"name":"Delete address","id":"8ce70d98-688b-40cc-a887-d0b7e9c3b41c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"Token 9e2fa0419421cb9560b47662f4e475944610054f","type":"text"}],"url":"http://127.0.0.1:8000/accounts/modify_address/10979fb7-5f78-4853-85cb-18657b1dc9ff/","description":"<p>Add a_id (address id) to the URL.</p>\n","urlObject":{"protocol":"http","port":"8000","path":["accounts","modify_address","10979fb7-5f78-4853-85cb-18657b1dc9ff",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"86f3ffda-b4e3-4f5d-b622-fefbe514bcb3","name":"Delete address","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"Token 9e2fa0419421cb9560b47662f4e475944610054f","type":"text"}],"url":"http://127.0.0.1:8000/accounts/modify_address/10979fb7-5f78-4853-85cb-18657b1dc9ff/"},"status":"No Content","code":204,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Tue, 16 Mar 2021 09:53:24 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.4"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"GET, PUT, PATCH, DELETE, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"0"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"8ce70d98-688b-40cc-a887-d0b7e9c3b41c"}],"id":"a324e5c6-50e6-4584-813a-efbe89c83624","_postman_id":"a324e5c6-50e6-4584-813a-efbe89c83624","description":""},{"name":"Artist Requests","item":[{"name":"Make user an Artist","id":"93755ebc-3848-4433-9bf1-fea2cfb2f296","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Token c69601a442445d5994a9451c07257ca50237cb86","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"date_of_birth","value":"1980-12-11","type":"text"},{"key":"bio","value":"super cool bio","type":"text"},{"key":"custom_url","value":"normaldude","type":"text"},{"key":"aadhar_card_no","value":"1234-5678","type":"text"},{"key":"pan_card_no","value":"1234-5678","type":"text"},{"key":"gst_no","value":"1234-5678","type":"text"},{"key":"profile_picture","type":"file","src":"/C:/Users/Hari/Pictures/Saved Pictures/cc.jpg"}]},"url":"http://127.0.0.1:8000/accounts/artist/","urlObject":{"protocol":"http","port":"8000","path":["accounts","artist",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"4b832556-ca63-4884-af5d-6d5fe0752500","name":"Make user an Artist","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Token c69601a442445d5994a9451c07257ca50237cb86","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"date_of_birth","value":"1980-12-11","type":"text"},{"key":"bio","value":"super cool bio","type":"text"},{"key":"custom_url","value":"normaldude","type":"text"},{"key":"aadhar_card_no","value":"1234-5678","type":"text"},{"key":"pan_card_no","value":"1234-5678","type":"text"},{"key":"gst_no","value":"1234-5678","type":"text"},{"key":"profile_picture","type":"file","src":"/C:/Users/Hari/Pictures/Saved Pictures/cc.jpg"}],"options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/accounts/artist/"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 23 Mar 2021 20:49:03 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.4"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"POST, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"280"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"details\": {\n        \"user\": 3,\n        \"profile_picture\": \"http://127.0.0.1:8000/media/uploads/profile_pictures/default.png\",\n        \"bio\": \"super cool bio\",\n        \"custom_url\": \"normaldude\",\n        \"date_of_birth\": \"1980-12-11\",\n        \"aadhar_card_no\": \"1234-5678\",\n        \"pan_card_no\": \"1234-5678\",\n        \"gst_no\": \"1234-5678\"\n    }\n}"}],"_postman_id":"93755ebc-3848-4433-9bf1-fea2cfb2f296"},{"name":"Modify Artist details","id":"b61b8ed7-e936-4fea-897d-bd9e03570148","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Authorization","value":"Token 9e2fa0419421cb9560b47662f4e475944610054f","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"pan_card_no","value":"9876-5432","type":"text"}]},"url":"http://127.0.0.1:8000/accounts/modify_artist/","description":"<p>Update one or more fields of the Artist.</p>\n","urlObject":{"protocol":"http","port":"8000","path":["accounts","modify_artist",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"b91dd6b8-a14d-44a1-8d78-f4d9b656bb30","name":"Update Artist","originalRequest":{"method":"PATCH","header":[{"key":"Authorization","value":"Token 9e2fa0419421cb9560b47662f4e475944610054f","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"pan_card_no","value":"9876-5432","type":"text"}]},"url":"http://127.0.0.1:8000/accounts/modify_artist/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 16 Mar 2021 09:43:19 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.4"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"GET, PUT, PATCH, DELETE, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"243"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"user\": 2,\n    \"bio\": \"super cool bio\",\n    \"custom_url\": \"cooldudeshop\",\n    \"date_of_birth\": \"1980-12-11\",\n    \"aadhar_card_no\": \"1234-5678\",\n    \"pan_card_no\": \"9876-5432\",\n    \"gst_no\": \"1234-5678\",\n    \"profile_picture\": \"http://127.0.0.1:8000/media/users/profile_pictures/2.jpg\"\n}"}],"_postman_id":"b61b8ed7-e936-4fea-897d-bd9e03570148"},{"name":"Get an artist's personal profile and insights","id":"025b4f66-41c0-4ddb-9a1e-b3d3849f067f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Token 9e2fa0419421cb9560b47662f4e475944610054f","type":"text"}],"url":"http://127.0.0.1:8000/accounts/view/my_profile/","description":"<p>Needs to have artist permissions (is_artist = True).</p>\n","urlObject":{"protocol":"http","port":"8000","path":["accounts","view","my_profile",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"c2a98004-159f-4a39-8922-6e0637be0b45","name":"Get an artist's personal insights","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Token 9e2fa0419421cb9560b47662f4e475944610054f","type":"text"}],"url":"http://127.0.0.1:8000/accounts/view/my_profile/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 14 Apr 2021 23:09:06 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.4"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"GET, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"554"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"details\": {\n        \"user\": {\n            \"full_name\": \"Test User\",\n            \"is_demix_admin\": false,\n            \"is_artist\": true,\n            \"is_customer\": false,\n            \"is_first_login\": false,\n            \"date_of_birth\": \"2021-04-07\",\n            \"phone_number\": \"123\",\n            \"id\": 2,\n            \"email\": \"hari@gmail.com\"\n        },\n        \"total_views\": 0,\n        \"total_sales\": 0,\n        \"total_orders\": 0,\n        \"bio\": \"super cool bio\",\n        \"custom_url\": \"normaldude1\",\n        \"aadhar_card_no\": \"1234-5678\",\n        \"pan_card_no\": \"9876-5432\",\n        \"gst_no\": \"1234-5678\",\n        \"profile_picture\": \"https://kalafex-media.s3.amazonaws.com/media/users/profile_pictures/2_oQYlcf3.jpg\",\n        \"balance\": \"0.00\",\n        \"cashout_requested\": false\n    }\n}"}],"_postman_id":"025b4f66-41c0-4ddb-9a1e-b3d3849f067f"},{"name":"View a particular Artist","id":"420d2e2c-828b-4d03-ac08-733840c22423","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/accounts/view_particular_artist/normaldude1/","description":"<p>Anyone can view. Send the artist's custom_url in the URL.</p>\n","urlObject":{"protocol":"http","port":"8000","path":["accounts","view_particular_artist","normaldude1",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"8b882c14-b1f7-487a-8ba9-f1c077dc98f7","name":"View a particular Artist","originalRequest":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/accounts/view_particular_artist/normaldude1/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 14 Apr 2021 23:11:47 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.4"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"GET, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"164"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"user\": 2,\n        \"bio\": \"super cool bio\",\n        \"custom_url\": \"normaldude1\",\n        \"profile_picture\": \"https://kalafex-media.s3.amazonaws.com/media/users/profile_pictures/2_oQYlcf3.jpg\"\n    }\n]"}],"_postman_id":"420d2e2c-828b-4d03-ac08-733840c22423"},{"name":"Get artist's orders","id":"4cd61838-9ea9-4133-a7eb-44ce905e33ac","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Token 56d05e880a51096fddcb8a3ff665b909b09d9ed3","type":"text"}],"url":"http://127.0.0.1:8000/orders/view/orderproducts/artist/","urlObject":{"protocol":"http","port":"8000","path":["orders","view","orderproducts","artist",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"0d02e062-bf03-4e7c-a053-f52bf81a0db2","name":"Get artist's orders","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Token 56d05e880a51096fddcb8a3ff665b909b09d9ed3","type":"text"}],"url":"http://127.0.0.1:8000/orders/view/orderproducts/artist/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 04 May 2021 13:05:21 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.4"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"GET, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"451"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"count\": 1,\n    \"next\": null,\n    \"previous\": null,\n    \"results\": [\n        {\n            \"op_id\": \"b74c7e8b-24bf-4667-ab51-f0a2d9181737\",\n            \"product\": {\n                \"pid\": \"88d954eb-e8fb-46c7-abde-acbb7400d3c0\",\n                \"name\": \"cool gum\",\n                \"artist\": 1,\n                \"description\": \"well its cool gum\",\n                \"category\": \"gum\",\n                \"subcategory\": null,\n                \"original_price\": \"100.00\",\n                \"demix_price\": \"115.00\",\n                \"display_image\": \"https://demix-media.s3.amazonaws.com/media/products/image_unavailable.png\",\n                \"discount_price\": null,\n                \"stock_left\": 0\n            },\n            \"quantity\": 4\n        }\n    ]\n}"}],"_postman_id":"4cd61838-9ea9-4133-a7eb-44ce905e33ac"},{"name":"Set order product status as handed over","id":"5e1d943c-173d-4f50-9368-6c4b20cb62a2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Token 56d05e880a51096fddcb8a3ff665b909b09d9ed3","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"order_product\": \"b74c7e8b-24bf-4667-ab51-f0a2d9181737\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/orders/set_handover_status/","urlObject":{"protocol":"http","port":"8000","path":["orders","set_handover_status",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"21602c27-adb7-4221-844b-bebd3312165e","name":"Set order product status as handed over","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Token 56d05e880a51096fddcb8a3ff665b909b09d9ed3","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"order_product\": \"b74c7e8b-24bf-4667-ab51-f0a2d9181737\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/orders/set_handover_status/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 04 May 2021 13:30:50 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.4"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"POST, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"68"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"details\": \"Successfully stored as handed over.\"\n}"}],"_postman_id":"5e1d943c-173d-4f50-9368-6c4b20cb62a2"}],"id":"f87f1789-4df6-4bce-8b59-5ab5a689dcfc","_postman_id":"f87f1789-4df6-4bce-8b59-5ab5a689dcfc","description":""},{"name":"Category and Subcategory Requests","item":[{"name":"Create a category","id":"618823fa-55ee-4435-8093-2a9b296cfc0e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Token c69601a442445d5994a9451c07257ca50237cb86","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"prints\",\r\n    \"description\": \"Some amazing prints\",\r\n    \"commission\": \"10\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/store/create/category/","description":"<p>Kalafex admin only.</p>\n","urlObject":{"protocol":"http","port":"8000","path":["store","create","category",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"29d4c3dd-dca8-43c4-8177-02678fdaab95","name":"Create a category","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Token c69601a442445d5994a9451c07257ca50237cb86","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"prints\",\r\n    \"description\": \"Some amazing prints\",\r\n    \"commission\": \"10\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/store/create/category/"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 23 Mar 2021 20:37:36 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.4"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"POST, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"74"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"prints\",\n    \"description\": \"Some amazing prints\",\n    \"commission\": \"10.00\"\n}"}],"_postman_id":"618823fa-55ee-4435-8093-2a9b296cfc0e"},{"name":"Delete a category","id":"176b13bf-7bce-4cee-9eed-2d79299dd6ae","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"Token 36cf5ea51a070555cf8017440ed9ce0057c992a3","type":"text"}],"url":"http://127.0.0.1:8000/store/modify/category/paintings/","description":"<p>Kalafex admin only.</p>\n","urlObject":{"protocol":"http","port":"8000","path":["store","modify","category","paintings",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"ed7a38fb-81c7-4d0d-976f-30206388cca2","name":"Delete a Category","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"Token 36cf5ea51a070555cf8017440ed9ce0057c992a3","type":"text"}],"url":"http://127.0.0.1:8000/store/modify/category/paintings/"},"status":"No Content","code":204,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Tue, 23 Feb 2021 15:38:40 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.4"},{"key":"Vary","value":"Accept"},{"key":"Allow","value":"DELETE, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"0"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"176b13bf-7bce-4cee-9eed-2d79299dd6ae"},{"name":"View all categories","id":"926a2165-c709-4252-8399-d2f6b367b929","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/store/view/allcategories/","urlObject":{"protocol":"http","port":"8000","path":["store","view","allcategories",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"3cf05506-05f8-4331-b0d6-f27aaa8ba839","name":"View all categories","originalRequest":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/store/view/allcategories/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 23 Mar 2021 20:38:00 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.4"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"GET, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"235"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"name\": \"accessories\",\n        \"description\": \"Beautiful accessories.\",\n        \"commission\": \"5.00\"\n    },\n    {\n        \"name\": \"paintings\",\n        \"description\": \"Gorgeous paintings.\",\n        \"commission\": \"5.00\"\n    },\n    {\n        \"name\": \"prints\",\n        \"description\": \"Some amazing prints\",\n        \"commission\": \"10.00\"\n    }\n]"}],"_postman_id":"926a2165-c709-4252-8399-d2f6b367b929"},{"name":"Create a subcategory","id":"1baaaed1-fbbb-41f1-95dc-55ac06b06f7e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Token 36cf5ea51a070555cf8017440ed9ce0057c992a3","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"canvas\",\r\n    \"category\": \"paintings\",\r\n    \"description\": \"Exquisite canvas paitings.\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/store/create/subcategory/","description":"<p>Kalafex admin only.</p>\n","urlObject":{"protocol":"http","port":"8000","path":["store","create","subcategory",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"a85d71ca-f08c-4c97-a3c7-01b7bd1aac05","name":"Create a subcategory","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Token 36cf5ea51a070555cf8017440ed9ce0057c992a3","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"canvas\",\r\n    \"category\": \"paintings\",\r\n    \"description\": \"Exquisite canvas paitings.\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/store/create/subcategory/"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 23 Feb 2021 16:06:48 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.4"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept"},{"key":"Allow","value":"POST, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"83"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"canvas\",\n    \"description\": \"Exquisite canvas paitings.\",\n    \"category\": \"paintings\"\n}"}],"_postman_id":"1baaaed1-fbbb-41f1-95dc-55ac06b06f7e"},{"name":"Delete a subcategory","id":"73750d04-fc6e-4d0c-a86b-a0f0b3dd2cba","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"Token 36cf5ea51a070555cf8017440ed9ce0057c992a3","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/store/modify/subcategory/canvas/","description":"<p>Kalafex admin only.</p>\n","urlObject":{"protocol":"http","port":"8000","path":["store","modify","subcategory","canvas",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"404d40f8-82df-4991-9fe3-5624c502d613","name":"Delete a subcategory","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"Token 36cf5ea51a070555cf8017440ed9ce0057c992a3","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/store/modify/subcategory/canvas/"},"status":"No Content","code":204,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Tue, 23 Feb 2021 16:08:00 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.4"},{"key":"Vary","value":"Accept"},{"key":"Allow","value":"DELETE, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"0"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"73750d04-fc6e-4d0c-a86b-a0f0b3dd2cba"},{"name":"View all subcategories","id":"96190885-3c88-4c60-8d66-e3ba4c66fedd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/store/view/allsubcategories/accessories/","description":"<p>Under a particular category.</p>\n","urlObject":{"protocol":"http","port":"8000","path":["store","view","allsubcategories","accessories",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"d48a7a0d-c348-480f-9766-9dc4cd8fe5ee","name":"View all subcategories","originalRequest":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/store/view/allsubcategories/accessories/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 23 Feb 2021 16:10:45 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.4"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept"},{"key":"Allow","value":"GET, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"155"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"name\": \"bands\",\n        \"description\": \"Bands are amazing.\",\n        \"category\": \"accessories\"\n    },\n    {\n        \"name\": \"earrings\",\n        \"description\": \"Stuff for ears.\",\n        \"category\": \"accessories\"\n    }\n]"},{"id":"fcfd5dbc-42c1-40ef-b228-3c0109118163","name":"View all subcategories","originalRequest":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/store/allsubcategories/accessories/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 23 Feb 2021 16:10:45 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.4"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept"},{"key":"Allow","value":"GET, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"155"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"name\": \"bands\",\n        \"description\": \"Bands are amazing.\",\n        \"category\": \"accessories\"\n    },\n    {\n        \"name\": \"earrings\",\n        \"description\": \"Stuff for ears.\",\n        \"category\": \"accessories\"\n    }\n]"}],"_postman_id":"96190885-3c88-4c60-8d66-e3ba4c66fedd"}],"id":"15ed4792-a21e-409f-8193-bd0f9f0394d9","_postman_id":"15ed4792-a21e-409f-8193-bd0f9f0394d9","description":""},{"name":"Product Requests","item":[{"name":"Create a product","id":"fa777534-8613-45c4-ac0c-4db879e32bab","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Token 9e2fa0419421cb9560b47662f4e475944610054f","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"name","value":"Some random band","type":"text"},{"key":"category","value":"accessories","type":"text"},{"key":"subcategory","value":"bands","type":"text"},{"key":"description","value":"Super cool band","type":"text"},{"key":"display_image","type":"file","src":"/C:/Users/Hari/Pictures/Saved Pictures/cc.jpg"},{"key":"original_price","value":"500","type":"text"},{"key":"stock_left","value":"20","type":"text"}]},"url":"http://127.0.0.1:8000/store/create/product/","description":"<p>Artists only.</p>\n","urlObject":{"protocol":"http","port":"8000","path":["store","create","product",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"5e36e8ef-8ef5-4625-b5c1-43ea5fd9a980","name":"Create a product","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Token 9e2fa0419421cb9560b47662f4e475944610054f","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"name","value":"Some random band","type":"text"},{"key":"category","value":"accessories","type":"text"},{"key":"subcategory","value":"bands","type":"text"},{"key":"description","value":"Super cool band","type":"text"},{"key":"display_image","type":"file","src":"/C:/Users/Hari/Pictures/Saved Pictures/cc.jpg"},{"key":"original_price","value":"500","type":"text"},{"key":"stock_left","value":"20","type":"text"}],"options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/store/create/product/"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 07 Apr 2021 11:43:50 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.4"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"POST, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"302"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"pid\": \"60adf6b0-b1c7-4189-ad18-654c73bf4ae4\",\n    \"name\": \"Some random band\",\n    \"artist\": 2,\n    \"category\": \"accessories\",\n    \"subcategory\": \"bands\",\n    \"original_price\": \"500.00\",\n    \"demix_price\": \"525.00\",\n    \"display_image\": \"http://127.0.0.1:8000/media/products/60adf6b0-b1c7-4189-ad18-654c73bf4ae4/cc.jpg\",\n    \"discount_price\": null\n}"}],"_postman_id":"fa777534-8613-45c4-ac0c-4db879e32bab"},{"name":"Add additional product image","id":"b0eeae19-8471-4e65-b171-8f7173ff38eb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Token 2660025274972d6a6e523e481dafe3d6c551731f","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"product","value":"552066d7-2463-4d2a-907b-aaeb6005c9dc","type":"text"},{"key":"image","type":"file","src":"/C:/Users/Hari/Pictures/Saved Pictures/cc.jpg"}]},"url":"http://127.0.0.1:8000/store/create/product/add_image/","description":"<p>Send a request to this endpoint with the product images to add other than the main display one.</p>\n","urlObject":{"protocol":"http","port":"8000","path":["store","create","product","add_image",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"a4d185c2-c11e-47e9-963e-bddc30e7c7bb","name":"Add additional product image","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Token 2660025274972d6a6e523e481dafe3d6c551731f","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"product","value":"552066d7-2463-4d2a-907b-aaeb6005c9dc","type":"text"},{"key":"image","type":"file","src":"/C:/Users/Hari/Pictures/Saved Pictures/cc.jpg"}],"options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/store/create/product/add_image/"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 24 May 2021 14:54:11 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.4"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"POST, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"198"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 12,\n    \"image\": \"https://kalafex-media.s3.amazonaws.com/media/products/552066d7-2463-4d2a-907b-aaeb6005c9dc/cc_wmwigTO.jpg\",\n    \"mini_description\": null,\n    \"product\": \"552066d7-2463-4d2a-907b-aaeb6005c9dc\"\n}"}],"_postman_id":"b0eeae19-8471-4e65-b171-8f7173ff38eb"},{"name":"Delete product image","id":"891252e3-666f-4656-b42f-883b7693ded9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"Token 2660025274972d6a6e523e481dafe3d6c551731f","type":"text"}],"url":"http://127.0.0.1:8000/store/delete/product/delete_image/12/","description":"<p>Use the id (normal, not UUID) of the product-image in the url.</p>\n","urlObject":{"protocol":"http","port":"8000","path":["store","delete","product","delete_image","12",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"feb3ea15-c9e8-4ce4-a54e-84224d9e0916","name":"Delete product image","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"Token 2660025274972d6a6e523e481dafe3d6c551731f","type":"text"}],"url":"http://127.0.0.1:8000/store/delete/product/delete_image/12/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 24 May 2021 14:56:29 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.4"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"DELETE, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"68"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"details\": \"Successfully deleted product image.\"\n}"}],"_postman_id":"891252e3-666f-4656-b42f-883b7693ded9"},{"name":"Modify product details","id":"40963365-0f91-45b7-abf1-9513bee7edf0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Authorization","value":"Token 9e2fa0419421cb9560b47662f4e475944610054f","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Cool CodeChef Band\",\r\n    \"description\": \"It is what it is\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/store/modify/product/5f6b92be-ed0d-44cc-a328-560136d0e581/","description":"<p>Artists only.</p>\n","urlObject":{"protocol":"http","port":"8000","path":["store","modify","product","5f6b92be-ed0d-44cc-a328-560136d0e581",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"692df7b2-bf21-42f8-ac9a-903d37157f7c","name":"Modify product details","originalRequest":{"method":"PATCH","header":[{"key":"Authorization","value":"Token 9e2fa0419421cb9560b47662f4e475944610054f","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Cool CodeChef Band\",\r\n    \"description\": \"It is what it is\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/store/modify/product/5f6b92be-ed0d-44cc-a328-560136d0e581/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 23 Feb 2021 18:42:55 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.4"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept"},{"key":"Allow","value":"GET, PUT, PATCH, DELETE, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"309"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"pid\": \"5f6b92be-ed0d-44cc-a328-560136d0e581\",\n    \"name\": \"Cool CodeChef Band\",\n    \"description\": \"It is what it is\",\n    \"category\": \"accessories\",\n    \"subcategory\": \"bands\",\n    \"stock_left\": 0,\n    \"price\": \"500\",\n    \"artist\": 2,\n    \"display_image\": \"http://127.0.0.1:8000/media/products/5f6b92be-ed0d-44cc-a328-560136d0e581/cc.jpg\",\n    \"image_list\": []\n}"}],"_postman_id":"40963365-0f91-45b7-abf1-9513bee7edf0"},{"name":"Delete product","id":"f893cc4a-daa8-413a-821e-45fb0ef068a5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"Token 56d05e880a51096fddcb8a3ff665b909b09d9ed3","type":"text"}],"url":"http://127.0.0.1:8000/store/modify/product/5f6b92be-ed0d-44cc-a328-560136d0e581/","urlObject":{"protocol":"http","port":"8000","path":["store","modify","product","5f6b92be-ed0d-44cc-a328-560136d0e581",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"5290214f-89a5-4100-b4e7-5d716f870971","name":"Delete product","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"Token 56d05e880a51096fddcb8a3ff665b909b09d9ed3","type":"text"}],"url":"http://127.0.0.1:8000/store/modify/product/5f6b92be-ed0d-44cc-a328-560136d0e581/"},"status":"No Content","code":204,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Fri, 30 Apr 2021 22:25:58 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.4"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"GET, PUT, PATCH, DELETE, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"0"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"f893cc4a-daa8-413a-821e-45fb0ef068a5"},{"name":"View a particular product","id":"4e13d889-32f4-47ed-93f0-077271aed1e2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/store/view/product/5f6b92be-ed0d-44cc-a328-560136d0e581/","description":"<p>Anyone can view.</p>\n","urlObject":{"protocol":"http","port":"8000","path":["store","view","product","5f6b92be-ed0d-44cc-a328-560136d0e581",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"c263bb67-b243-4f0e-a1c9-23f6533a273e","name":"View a particular product","originalRequest":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/store/view/product/5f6b92be-ed0d-44cc-a328-560136d0e581/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 03 Apr 2021 08:19:54 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.4"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"GET, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"798"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"pid\": \"5f6b92be-ed0d-44cc-a328-560136d0e581\",\n        \"name\": \"Cool CodeChef Band\",\n        \"description\": \"It is what it is\",\n        \"category\": \"accessories\",\n        \"subcategory\": \"bands\",\n        \"stock_left\": 5,\n        \"demix_price\": \"525.00\",\n        \"artist\": {\n            \"user\": 2,\n            \"profile_picture\": \"http://127.0.0.1:8000/media/users/profile_pictures/2.jpg\",\n            \"bio\": \"super cool bio\",\n            \"custom_url\": \"cooldudeshop\",\n            \"date_of_birth\": \"1980-12-11\",\n            \"aadhar_card_no\": \"1234-5678\",\n            \"pan_card_no\": \"9876-5432\",\n            \"gst_no\": \"1234-5678\"\n        },\n        \"original_price\": \"500.00\",\n        \"discount_price\": null,\n        \"display_image\": \"http://127.0.0.1:8000/media/products/5f6b92be-ed0d-44cc-a328-560136d0e581/cc.jpg\",\n        \"image_list\": [\n            {\n                \"product\": \"5f6b92be-ed0d-44cc-a328-560136d0e581\",\n                \"image\": \"http://127.0.0.1:8000/media/products/5f6b92be-ed0d-44cc-a328-560136d0e581/cc_gS2pVIv.jpg\",\n                \"mini_description\": \"secondary image\"\n            }\n        ]\n    }\n]"}],"_postman_id":"4e13d889-32f4-47ed-93f0-077271aed1e2"},{"name":"View popular products","id":"5ae5c740-dae1-4c45-b03f-43cc1e36ae5c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/store/view/product/popular/","description":"<p>Can be viewed by anyone, no auth necessary.</p>\n","urlObject":{"protocol":"http","port":"8000","path":["store","view","product","popular",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"e866835a-4dbb-405a-b0eb-893a1bf3d234","name":"View popular products","originalRequest":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/store/view/product/popular/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 23 Mar 2021 20:43:28 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.4"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"GET, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"619"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"count\": 2,\n    \"next\": null,\n    \"previous\": null,\n    \"results\": [\n        {\n            \"pid\": \"5f6b92be-ed0d-44cc-a328-560136d0e581\",\n            \"name\": \"Cool CodeChef Band\",\n            \"artist\": 2,\n            \"category\": \"accessories\",\n            \"subcategory\": \"bands\",\n            \"original_price\": \"500.00\",\n            \"demix_price\": \"525.00\",\n            \"display_image\": \"http://127.0.0.1:8000/media/products/5f6b92be-ed0d-44cc-a328-560136d0e581/cc.jpg\"\n        },\n        {\n            \"pid\": \"45752f8c-4e5b-4fc7-abb1-c993fb6cc235\",\n            \"name\": \"Cooler CodeChef Band\",\n            \"artist\": 2,\n            \"category\": \"accessories\",\n            \"subcategory\": \"bands\",\n            \"original_price\": \"525.00\",\n            \"demix_price\": \"551.25\",\n            \"display_image\": \"http://127.0.0.1:8000/media/products/45752f8c-4e5b-4fc7-abb1-c993fb6cc235/cc.jpg\"\n        }\n    ]\n}"}],"_postman_id":"5ae5c740-dae1-4c45-b03f-43cc1e36ae5c"},{"name":"View product by category","id":"05bbd81a-d783-4c9b-89ca-f2cede2ea6d9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/store/view/product/category/accessories/","description":"<p>Can be viewed by anyone, no auth necessary.</p>\n","urlObject":{"protocol":"http","port":"8000","path":["store","view","product","category","accessories",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"94ec1985-4a16-418f-ab9d-291c5270dda2","name":"View product by category","originalRequest":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/store/view/product/category/accessories/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 23 Mar 2021 20:44:15 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.4"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"GET, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"619"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"count\": 2,\n    \"next\": null,\n    \"previous\": null,\n    \"results\": [\n        {\n            \"pid\": \"5f6b92be-ed0d-44cc-a328-560136d0e581\",\n            \"name\": \"Cool CodeChef Band\",\n            \"artist\": 2,\n            \"category\": \"accessories\",\n            \"subcategory\": \"bands\",\n            \"original_price\": \"500.00\",\n            \"demix_price\": \"525.00\",\n            \"display_image\": \"http://127.0.0.1:8000/media/products/5f6b92be-ed0d-44cc-a328-560136d0e581/cc.jpg\"\n        },\n        {\n            \"pid\": \"45752f8c-4e5b-4fc7-abb1-c993fb6cc235\",\n            \"name\": \"Cooler CodeChef Band\",\n            \"artist\": 2,\n            \"category\": \"accessories\",\n            \"subcategory\": \"bands\",\n            \"original_price\": \"525.00\",\n            \"demix_price\": \"551.25\",\n            \"display_image\": \"http://127.0.0.1:8000/media/products/45752f8c-4e5b-4fc7-abb1-c993fb6cc235/cc.jpg\"\n        }\n    ]\n}"}],"_postman_id":"05bbd81a-d783-4c9b-89ca-f2cede2ea6d9"},{"name":"View product by subcategory","id":"d6db6235-99dc-4ba7-9f22-bd7fc8df6aa1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/store/view/product/subcategory/bands/","description":"<p>Can be viewed by anyone, no auth necessary.</p>\n","urlObject":{"protocol":"http","port":"8000","path":["store","view","product","subcategory","bands",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"e194ce5b-9d9f-40f1-9db5-b81cfbfd188b","name":"View product by subcategory","originalRequest":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/store/view/product/subcategory/bands/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 23 Mar 2021 20:46:04 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.4"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"GET, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"619"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"count\": 2,\n    \"next\": null,\n    \"previous\": null,\n    \"results\": [\n        {\n            \"pid\": \"5f6b92be-ed0d-44cc-a328-560136d0e581\",\n            \"name\": \"Cool CodeChef Band\",\n            \"artist\": 2,\n            \"category\": \"accessories\",\n            \"subcategory\": \"bands\",\n            \"original_price\": \"500.00\",\n            \"demix_price\": \"525.00\",\n            \"display_image\": \"http://127.0.0.1:8000/media/products/5f6b92be-ed0d-44cc-a328-560136d0e581/cc.jpg\"\n        },\n        {\n            \"pid\": \"45752f8c-4e5b-4fc7-abb1-c993fb6cc235\",\n            \"name\": \"Cooler CodeChef Band\",\n            \"artist\": 2,\n            \"category\": \"accessories\",\n            \"subcategory\": \"bands\",\n            \"original_price\": \"525.00\",\n            \"demix_price\": \"551.25\",\n            \"display_image\": \"http://127.0.0.1:8000/media/products/45752f8c-4e5b-4fc7-abb1-c993fb6cc235/cc.jpg\"\n        }\n    ]\n}"}],"_postman_id":"d6db6235-99dc-4ba7-9f22-bd7fc8df6aa1"},{"name":"View product by artist","id":"cffab01f-ce89-4901-923a-b47deffeb311","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/store/view/product/artist/3/","description":"<p>Can be viewed by anyone, no auth necessary.</p>\n","urlObject":{"protocol":"http","port":"8000","path":["store","view","product","artist","3",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"40554b4c-e86e-4482-b7d6-59420be2e343","name":"View product by artist","originalRequest":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/store/view/product/artist/3/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 24 May 2021 15:06:08 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.4"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"GET, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"1026"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"count\": 2,\n    \"next\": null,\n    \"previous\": null,\n    \"results\": [\n        {\n            \"pid\": \"552066d7-2463-4d2a-907b-aaeb6005c9dc\",\n            \"name\": \"Brown Rug\",\n            \"description\": \"Well, it's a rug.\",\n            \"category\": \"Lifestyle & Home\",\n            \"subcategory\": null,\n            \"stock_left\": 4,\n            \"demix_price\": \"3060.00\",\n            \"artist\": 3,\n            \"original_price\": \"3000.00\",\n            \"discount_price\": null,\n            \"display_image\": \"https://kalafex-media.s3.amazonaws.com/media/products/552066d7-2463-4d2a-907b-aaeb6005c9dc/rug1.jpg\",\n            \"image_list\": [\n                {\n                    \"product\": \"552066d7-2463-4d2a-907b-aaeb6005c9dc\",\n                    \"image\": \"https://kalafex-media.s3.amazonaws.com/media/products/552066d7-2463-4d2a-907b-aaeb6005c9dc/cc_N5JPN9I.jpg\",\n                    \"mini_description\": null\n                }\n            ]\n        },\n        {\n            \"pid\": \"968501f7-776a-4d57-8e1a-9982edc6ec5d\",\n            \"name\": \"Plain T's\",\n            \"description\": \"A pack of 3 tees.\",\n            \"category\": \"Lifestyle & Home\",\n            \"subcategory\": null,\n            \"stock_left\": 20,\n            \"demix_price\": \"918.00\",\n            \"artist\": 3,\n            \"original_price\": \"900.00\",\n            \"discount_price\": null,\n            \"display_image\": \"https://kalafex-media.s3.amazonaws.com/media/products/968501f7-776a-4d57-8e1a-9982edc6ec5d/shirt1.jpg\",\n            \"image_list\": []\n        }\n    ],\n    \"total_pages\": 1\n}"}],"_postman_id":"cffab01f-ce89-4901-923a-b47deffeb311"},{"name":"Search for products","id":"421d0ce6-81bc-4a9a-90aa-7d3946726c97","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/store/search/product/?search=band codechef","urlObject":{"protocol":"http","port":"8000","path":["store","search","product",""],"host":["127","0","0","1"],"query":[{"key":"search","value":"band codechef"}],"variable":[]}},"response":[{"id":"8179fb2d-3fc8-4f5a-a31b-c310f87594d2","name":"Search for products","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://127.0.0.1:8000/store/search/product/?search=band codechef","protocol":"http","host":["127","0","0","1"],"port":"8000","path":["store","search","product",""],"query":[{"key":"search","value":"band codechef"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 07 Apr 2021 16:00:06 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.4"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"GET, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"713"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"count\": 2,\n    \"next\": null,\n    \"previous\": null,\n    \"results\": [\n        {\n            \"pid\": \"5f6b92be-ed0d-44cc-a328-560136d0e581\",\n            \"name\": \"Cool CodeChef Band\",\n            \"artist\": 2,\n            \"description\": \"It is what it is\",\n            \"category\": \"accessories\",\n            \"subcategory\": \"bands\",\n            \"original_price\": \"500.00\",\n            \"demix_price\": \"525.00\",\n            \"display_image\": \"http://127.0.0.1:8000/media/products/5f6b92be-ed0d-44cc-a328-560136d0e581/cc.jpg\",\n            \"discount_price\": null\n        },\n        {\n            \"pid\": \"45752f8c-4e5b-4fc7-abb1-c993fb6cc235\",\n            \"name\": \"Cooler CodeChef Band\",\n            \"artist\": 2,\n            \"description\": \"\",\n            \"category\": \"accessories\",\n            \"subcategory\": \"bands\",\n            \"original_price\": \"525.00\",\n            \"demix_price\": \"551.25\",\n            \"display_image\": \"http://127.0.0.1:8000/media/products/45752f8c-4e5b-4fc7-abb1-c993fb6cc235/cc.jpg\",\n            \"discount_price\": null\n        }\n    ]\n}"}],"_postman_id":"421d0ce6-81bc-4a9a-90aa-7d3946726c97"},{"name":"Add a review","id":"917b83ff-0de7-4bab-826f-ee69a7964249","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Token 0de72dfb6faa2ea628013867ed4f456b4ae49ed7","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"rating\": 3.5,\r\n    \"review\": \"It's good, but I'd have liked a little more from it. Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/store/review/552066d7-2463-4d2a-907b-aaeb6005c9dc/","urlObject":{"protocol":"http","port":"8000","path":["store","review","552066d7-2463-4d2a-907b-aaeb6005c9dc",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"99dff1d1-5d17-4dd9-bce5-a3c92ea713d0","name":"Add a review","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Token 0de72dfb6faa2ea628013867ed4f456b4ae49ed7","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"rating\": 3.5,\r\n    \"review\": \"It's good, but I'd have liked a little more from it. Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/store/review/552066d7-2463-4d2a-907b-aaeb6005c9dc/"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 22 May 2021 19:28:08 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.4"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"GET, POST, DELETE, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"774"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"details\": {\n        \"rid\": \"c6a45bfb-2c90-47e2-beb9-d6f31042b3bc\",\n        \"rating\": 3.5,\n        \"review\": \"It's good, but I'd have liked a little more from it. Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time\",\n        \"user\": 48,\n        \"product\": \"552066d7-2463-4d2a-907b-aaeb6005c9dc\"\n    }\n}"}],"_postman_id":"917b83ff-0de7-4bab-826f-ee69a7964249"},{"name":"Delete a review","id":"7f9d0972-bf30-41e5-b401-62430b637f1b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"Token 0de72dfb6faa2ea628013867ed4f456b4ae49ed7","type":"text"}],"url":"http://127.0.0.1:8000/store/review/552066d7-2463-4d2a-907b-aaeb6005c9dc/","urlObject":{"protocol":"http","port":"8000","path":["store","review","552066d7-2463-4d2a-907b-aaeb6005c9dc",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"fbe5d6ee-2688-4d04-8866-0f9af762d954","name":"Delete a review","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"Token 0de72dfb6faa2ea628013867ed4f456b4ae49ed7","type":"text"}],"url":"http://127.0.0.1:8000/store/review/552066d7-2463-4d2a-907b-aaeb6005c9dc/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 22 May 2021 19:29:01 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.4"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"GET, POST, DELETE, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"61"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"details\": \"Successfully deleted review.\"\n}"}],"_postman_id":"7f9d0972-bf30-41e5-b401-62430b637f1b"},{"name":"Get logged in user's review for a product","id":"3d8dd8e2-2eb5-4362-bd4e-a590073138b8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Token 0de72dfb6faa2ea628013867ed4f456b4ae49ed7","type":"text"}],"url":"http://127.0.0.1:8000/store/review/552066d7-2463-4d2a-907b-aaeb6005c9dc/","urlObject":{"protocol":"http","port":"8000","path":["store","review","552066d7-2463-4d2a-907b-aaeb6005c9dc",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"b0798fc4-8388-426d-add8-9f789d6183cf","name":"Get logged in user's review for a product","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Token 0de72dfb6faa2ea628013867ed4f456b4ae49ed7","type":"text"}],"url":"http://127.0.0.1:8000/store/review/552066d7-2463-4d2a-907b-aaeb6005c9dc/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 23 May 2021 17:54:48 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.4"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"GET, POST, DELETE, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"800"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"details\": {\n        \"rid\": \"b629b84c-2ef1-4af3-a5bc-08888cc0e651\",\n        \"user\": {\n            \"id\": 48,\n            \"full_name\": \"Hari\"\n        },\n        \"rating\": 3.5,\n        \"review\": \"It's good, but I'd have liked a little more from it. Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time\",\n        \"product\": \"552066d7-2463-4d2a-907b-aaeb6005c9dc\"\n    }\n}"}],"_postman_id":"3d8dd8e2-2eb5-4362-bd4e-a590073138b8"},{"name":"Auth - Get product views","id":"5a9f4640-511d-4e22-8bf4-afde530a900c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Token 0de72dfb6faa2ea628013867ed4f456b4ae49ed7","type":"text"}],"url":"http://127.0.0.1:8000/store/reviews/auth/552066d7-2463-4d2a-907b-aaeb6005c9dc/","urlObject":{"protocol":"http","port":"8000","path":["store","reviews","auth","552066d7-2463-4d2a-907b-aaeb6005c9dc",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"2bc25fdb-afe8-4d97-96a8-0d79d478281b","name":"Auth - Get product views","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Token 0de72dfb6faa2ea628013867ed4f456b4ae49ed7","type":"text"}],"url":"http://127.0.0.1:8000/store/reviews/auth/552066d7-2463-4d2a-907b-aaeb6005c9dc/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 23 May 2021 17:54:11 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.4"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"GET, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"997"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"results\": [\n        {\n            \"rid\": \"8e2c0a77-c617-4190-bd6c-bd50f0b3e60f\",\n            \"user\": {\n                \"id\": 4,\n                \"full_name\": \"shashwat gupta\"\n            },\n            \"rating\": 2.5,\n            \"review\": \"Mediocre\",\n            \"product\": \"552066d7-2463-4d2a-907b-aaeb6005c9dc\"\n        },\n        {\n            \"rid\": \"e68d8c15-f995-45b7-bc7b-c5ea8a208a97\",\n            \"user\": {\n                \"id\": 40,\n                \"full_name\": \"Shivam Mehta\"\n            },\n            \"rating\": 3.5,\n            \"review\": \"It's good, but I'd have liked a little more from it. Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time\",\n            \"product\": \"552066d7-2463-4d2a-907b-aaeb6005c9dc\"\n        }\n    ],\n    \"average_rating\": 3.17,\n    \"count\": 3\n}"}],"_postman_id":"5a9f4640-511d-4e22-8bf4-afde530a900c"},{"name":"No auth - Get product reviews","id":"3231159e-c75b-4621-8524-27329983453b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/store/reviews/noauth/552066d7-2463-4d2a-907b-aaeb6005c9dc/","urlObject":{"protocol":"http","port":"8000","path":["store","reviews","noauth","552066d7-2463-4d2a-907b-aaeb6005c9dc",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"ca0a29f3-3c71-41a4-a572-41c97861e8f4","name":"No auth - Get product reviews","originalRequest":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/store/reviews/noauth/552066d7-2463-4d2a-907b-aaeb6005c9dc/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 23 May 2021 17:54:38 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.4"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"GET, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"1767"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"results\": [\n        {\n            \"rid\": \"8e2c0a77-c617-4190-bd6c-bd50f0b3e60f\",\n            \"user\": {\n                \"id\": 4,\n                \"full_name\": \"shashwat gupta\"\n            },\n            \"rating\": 2.5,\n            \"review\": \"Mediocre\",\n            \"product\": \"552066d7-2463-4d2a-907b-aaeb6005c9dc\"\n        },\n        {\n            \"rid\": \"e68d8c15-f995-45b7-bc7b-c5ea8a208a97\",\n            \"user\": {\n                \"id\": 40,\n                \"full_name\": \"Shivam Mehta\"\n            },\n            \"rating\": 3.5,\n            \"review\": \"It's good, but I'd have liked a little more from it. Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time\",\n            \"product\": \"552066d7-2463-4d2a-907b-aaeb6005c9dc\"\n        },\n        {\n            \"rid\": \"b629b84c-2ef1-4af3-a5bc-08888cc0e651\",\n            \"user\": {\n                \"id\": 48,\n                \"full_name\": \"Hari\"\n            },\n            \"rating\": 3.5,\n            \"review\": \"It's good, but I'd have liked a little more from it. Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time Lorem ipsum time\",\n            \"product\": \"552066d7-2463-4d2a-907b-aaeb6005c9dc\"\n        }\n    ],\n    \"average_rating\": 3.17,\n    \"count\": 3\n}"}],"_postman_id":"3231159e-c75b-4621-8524-27329983453b"}],"id":"932bc077-d25c-4ce2-addf-be68e4d78194","_postman_id":"932bc077-d25c-4ce2-addf-be68e4d78194","description":""},{"name":"Orders Requests","item":[{"name":"Create Order Product","id":"b296d3c9-afeb-4756-8b58-4fb3249ff1e1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Token 9e2fa0419421cb9560b47662f4e475944610054f","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"product\": \"5f6b92be-ed0d-44cc-a328-560136d0e581\",\r\n    \"quantity\": \"2\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/orders/create/order_product/","description":"<p>Set \"ordered\": true if the OrderProduct is being ordered, otherwise it defaults to false, which just makes it a cart item.</p>\n","urlObject":{"protocol":"http","port":"8000","path":["orders","create","order_product",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"7091cffd-8960-4765-a1d0-ff7c0dead145","name":"Create Order Product","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Token 9e2fa0419421cb9560b47662f4e475944610054f","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"product\": \"5f6b92be-ed0d-44cc-a328-560136d0e581\",\r\n    \"quantity\": \"2\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/orders/create/order_product/"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 01 Apr 2021 15:19:49 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.4"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"POST, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"179"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"details\": {\n        \"op_id\": \"2c9600f5-2701-4232-89c3-1dd449683c5b\",\n        \"quantity\": 2,\n        \"ordered\": false,\n        \"user\": 2,\n        \"order\": null,\n        \"product\": \"5f6b92be-ed0d-44cc-a328-560136d0e581\"\n    }\n}"}],"_postman_id":"b296d3c9-afeb-4756-8b58-4fb3249ff1e1"},{"name":"Modify Order Product","id":"e6c15599-e3e0-41ee-8b76-7771a9cad5ee","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Authorization","value":"Token 9e2fa0419421cb9560b47662f4e475944610054f","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"quantity\": 3,\r\n    \"ordered\": true\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/orders/modify/order_product/2c9600f5-2701-4232-89c3-1dd449683c5b/","urlObject":{"protocol":"http","port":"8000","path":["orders","modify","order_product","2c9600f5-2701-4232-89c3-1dd449683c5b",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"7e8beb0c-0db0-4c05-93b0-d7a4793e3567","name":"Modify Order Product","originalRequest":{"method":"PATCH","header":[{"key":"Authorization","value":"Token 9e2fa0419421cb9560b47662f4e475944610054f","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"quantity\": 3,\r\n    \"ordered\": true\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/orders/modify/order_product/2c9600f5-2701-4232-89c3-1dd449683c5b/"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 01 Apr 2021 15:20:47 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.4"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"PATCH, DELETE, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"178"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"details\": {\n        \"op_id\": \"2c9600f5-2701-4232-89c3-1dd449683c5b\",\n        \"quantity\": 3,\n        \"ordered\": true,\n        \"user\": 2,\n        \"order\": null,\n        \"product\": \"5f6b92be-ed0d-44cc-a328-560136d0e581\"\n    }\n}"}],"_postman_id":"e6c15599-e3e0-41ee-8b76-7771a9cad5ee"},{"name":"Delete Order Product","id":"63f72403-cc85-441d-84f4-56e43b38159f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"Token 9e2fa0419421cb9560b47662f4e475944610054f","type":"text"}],"url":"http://127.0.0.1:8000/orders/modify/order_product/2c9600f5-2701-4232-89c3-1dd449683c5b/","urlObject":{"protocol":"http","port":"8000","path":["orders","modify","order_product","2c9600f5-2701-4232-89c3-1dd449683c5b",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"3f7d3431-7ea0-4713-bca3-c22cbab1e9ab","name":"Delete Order Product","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"Token 9e2fa0419421cb9560b47662f4e475944610054f","type":"text"}],"url":"http://127.0.0.1:8000/orders/modify/order_product/2c9600f5-2701-4232-89c3-1dd449683c5b/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 01 Apr 2021 15:21:05 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.4"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"PATCH, DELETE, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"20"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"deleted\"\n}"}],"_postman_id":"63f72403-cc85-441d-84f4-56e43b38159f"},{"name":"Create Order","id":"d773d35f-a65f-4620-9c96-ee3164cdbb08","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Token 9e2fa0419421cb9560b47662f4e475944610054f","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"shipping_address\": \"d891d94a-0b59-4fe3-9192-3817b424d9a3\",\r\n    \"billing_address\": \"d891d94a-0b59-4fe3-9192-3817b424d9a3\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/orders/create/order/","urlObject":{"protocol":"http","port":"8000","path":["orders","create","order",""],"host":["127","0","0","1"],"query":[{"disabled":true,"key":"","value":""}],"variable":[]}},"response":[{"id":"70e65949-abb5-464a-b3d7-fd87be27e0c9","name":"Create Order","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Token 9e2fa0419421cb9560b47662f4e475944610054f","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"shipping_address\": \"d891d94a-0b59-4fe3-9192-3817b424d9a3\",\r\n    \"billing_address\": \"d891d94a-0b59-4fe3-9192-3817b424d9a3\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"http://127.0.0.1:8000/orders/create/order/","protocol":"http","host":["127","0","0","1"],"port":"8000","path":["orders","create","order",""],"query":[{"key":"","value":"","type":"text","disabled":true}]}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 01 Apr 2021 15:23:18 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.4"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"POST, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"390"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"details\": {\n        \"o_id\": \"e98c5b5b-2f65-4b3b-8697-47bd10b8f260\",\n        \"user\": 2,\n        \"shipping_address\": \"d891d94a-0b59-4fe3-9192-3817b424d9a3\",\n        \"billing_address\": \"d891d94a-0b59-4fe3-9192-3817b424d9a3\",\n        \"coupon\": null,\n        \"start_date\": \"2021-04-01T15:23:18.426635Z\",\n        \"ordered_date\": null,\n        \"being_delivered\": false,\n        \"received\": false,\n        \"refund_requested\": false,\n        \"refund_granted\": false,\n        \"orderproduct_set\": []\n    }\n}"}],"_postman_id":"d773d35f-a65f-4620-9c96-ee3164cdbb08"},{"name":"Modify Order Details","id":"76fc3849-8cb8-4647-b771-b5155d0897db","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Authorization","value":"Token 9e2fa0419421cb9560b47662f4e475944610054f","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"being_delivered\": true\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/orders/modify/order/e98c5b5b-2f65-4b3b-8697-47bd10b8f260/","urlObject":{"protocol":"http","port":"8000","path":["orders","modify","order","e98c5b5b-2f65-4b3b-8697-47bd10b8f260",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"31842041-2eb1-4adf-a84f-87079d59fabe","name":"Modify Order Details","originalRequest":{"method":"PATCH","header":[{"key":"Authorization","value":"Token 9e2fa0419421cb9560b47662f4e475944610054f","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"being_delivered\": true\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/orders/modify/order/e98c5b5b-2f65-4b3b-8697-47bd10b8f260/"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 01 Apr 2021 15:34:42 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.4"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"PATCH, DELETE, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"571"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"details\": {\n        \"o_id\": \"e98c5b5b-2f65-4b3b-8697-47bd10b8f260\",\n        \"user\": 2,\n        \"shipping_address\": \"d891d94a-0b59-4fe3-9192-3817b424d9a3\",\n        \"billing_address\": \"d891d94a-0b59-4fe3-9192-3817b424d9a3\",\n        \"coupon\": null,\n        \"start_date\": \"2021-04-01T15:23:18.426635Z\",\n        \"ordered_date\": null,\n        \"being_delivered\": true,\n        \"received\": false,\n        \"refund_requested\": false,\n        \"refund_granted\": false,\n        \"orderproduct_set\": [\n            {\n                \"op_id\": \"b532465b-a4a2-4b3d-a0c4-bd9eac9e6ffc\",\n                \"quantity\": 2,\n                \"ordered\": false,\n                \"user\": 2,\n                \"order\": \"e98c5b5b-2f65-4b3b-8697-47bd10b8f260\",\n                \"product\": \"5f6b92be-ed0d-44cc-a328-560136d0e581\"\n            }\n        ]\n    }\n}"}],"_postman_id":"76fc3849-8cb8-4647-b771-b5155d0897db"},{"name":"Delete an Order","id":"51ea70b0-81ea-44b2-8da2-197aff91272c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"Token 9e2fa0419421cb9560b47662f4e475944610054f","type":"text"}],"url":"http://127.0.0.1:8000/orders/modify/order/dc103f41-b221-45a8-a97a-1ac83fdc8be0/","urlObject":{"protocol":"http","port":"8000","path":["orders","modify","order","dc103f41-b221-45a8-a97a-1ac83fdc8be0",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"61cb310c-8718-4c1c-bc92-ac4533e227b9","name":"Delete an Order","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"Token 9e2fa0419421cb9560b47662f4e475944610054f","type":"text"}],"url":"http://127.0.0.1:8000/orders/modify/order/dc103f41-b221-45a8-a97a-1ac83fdc8be0/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 01 Apr 2021 15:48:05 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.4"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"PATCH, DELETE, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"20"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"deleted\"\n}"}],"_postman_id":"51ea70b0-81ea-44b2-8da2-197aff91272c"},{"name":"Add Order Product to Order","id":"50644f68-4598-4489-a641-0b78e2c1d0f6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Authorization","value":"Token 9e2fa0419421cb9560b47662f4e475944610054f","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"order\": \"e98c5b5b-2f65-4b3b-8697-47bd10b8f260\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/orders/modify/order_product/b532465b-a4a2-4b3d-a0c4-bd9eac9e6ffc/","description":"<p>Create a new order and patch the order id (o_id) to the \"order\" field of order product.</p>\n","urlObject":{"protocol":"http","port":"8000","path":["orders","modify","order_product","b532465b-a4a2-4b3d-a0c4-bd9eac9e6ffc",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"3361084d-a8fe-4a69-8e68-ccf268a82578","name":"Add Order Product to Order","originalRequest":{"method":"PATCH","header":[{"key":"Authorization","value":"Token 9e2fa0419421cb9560b47662f4e475944610054f","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"order\": \"e98c5b5b-2f65-4b3b-8697-47bd10b8f260\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/orders/modify/order_product/b532465b-a4a2-4b3d-a0c4-bd9eac9e6ffc/"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 01 Apr 2021 15:29:40 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.4"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"PATCH, DELETE, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"213"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"details\": {\n        \"op_id\": \"b532465b-a4a2-4b3d-a0c4-bd9eac9e6ffc\",\n        \"quantity\": 2,\n        \"ordered\": false,\n        \"user\": 2,\n        \"order\": \"e98c5b5b-2f65-4b3b-8697-47bd10b8f260\",\n        \"product\": \"5f6b92be-ed0d-44cc-a328-560136d0e581\"\n    }\n}"}],"_postman_id":"50644f68-4598-4489-a641-0b78e2c1d0f6"},{"name":"View particular order","id":"f6ffec61-e4b3-4f8a-babf-9a16a9cb779c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Token 9e2fa0419421cb9560b47662f4e475944610054f","type":"text"}],"url":"http://127.0.0.1:8000/orders/view/order/e98c5b5b-2f65-4b3b-8697-47bd10b8f260/","urlObject":{"protocol":"http","port":"8000","path":["orders","view","order","e98c5b5b-2f65-4b3b-8697-47bd10b8f260",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"bfa9444a-2236-4aba-9993-54df9554db2c","name":"View particular order","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Token 9e2fa0419421cb9560b47662f4e475944610054f","type":"text"}],"url":"http://127.0.0.1:8000/orders/view/order/e98c5b5b-2f65-4b3b-8697-47bd10b8f260/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 13 Apr 2021 21:26:50 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.4"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"GET, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"692"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"o_id\": \"e98c5b5b-2f65-4b3b-8697-47bd10b8f260\",\n        \"user\": 2,\n        \"shipping_address\": \"d891d94a-0b59-4fe3-9192-3817b424d9a3\",\n        \"billing_address\": \"d891d94a-0b59-4fe3-9192-3817b424d9a3\",\n        \"coupon\": null,\n        \"start_date\": \"2021-04-01T15:23:18.426635Z\",\n        \"ordered_date\": null,\n        \"being_delivered\": true,\n        \"received\": false,\n        \"refund_requested\": true,\n        \"refund_granted\": false,\n        \"price\": 1050,\n        \"payment\": {\n            \"id\": 2,\n            \"razorpay_order_id\": \"order_GxeUoT7cG0gQhY\",\n            \"razorpay_payment_id\": \"\",\n            \"amount\": \"1000.00\",\n            \"timestamp\": \"2021-04-11T14:47:46.311309Z\",\n            \"paid_successfully\": true,\n            \"user\": 2,\n            \"order\": \"e98c5b5b-2f65-4b3b-8697-47bd10b8f260\"\n        },\n        \"refund\": {\n            \"id\": 1,\n            \"reasons\": \"Not satisfactory\",\n            \"accepted\": false,\n            \"order\": \"e98c5b5b-2f65-4b3b-8697-47bd10b8f260\"\n        }\n    }\n]"}],"_postman_id":"f6ffec61-e4b3-4f8a-babf-9a16a9cb779c"},{"name":"View all orders of the user","id":"b03dbad1-c322-4980-bb20-653cff8808b4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Token 9e2fa0419421cb9560b47662f4e475944610054f","type":"text"}],"url":"http://127.0.0.1:8000/orders/view/orders/","urlObject":{"protocol":"http","port":"8000","path":["orders","view","orders",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"3452e195-2a2f-4172-b769-816aa995c332","name":"View all orders of the user","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Token 9e2fa0419421cb9560b47662f4e475944610054f","type":"text"}],"url":"http://127.0.0.1:8000/orders/view/orders/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 06 Apr 2021 20:18:39 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.4"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"GET, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"749"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"count\": 2,\n    \"next\": null,\n    \"previous\": null,\n    \"results\": [\n        {\n            \"o_id\": \"e98c5b5b-2f65-4b3b-8697-47bd10b8f260\",\n            \"user\": 2,\n            \"shipping_address\": \"d891d94a-0b59-4fe3-9192-3817b424d9a3\",\n            \"billing_address\": \"d891d94a-0b59-4fe3-9192-3817b424d9a3\",\n            \"coupon\": null,\n            \"start_date\": \"2021-04-01T15:23:18.426635Z\",\n            \"ordered_date\": null,\n            \"being_delivered\": true,\n            \"received\": false,\n            \"refund_requested\": false,\n            \"refund_granted\": false,\n            \"price\": 1050\n        },\n        {\n            \"o_id\": \"bd254cf6-c388-4d85-b04c-2846a8b26781\",\n            \"user\": 2,\n            \"shipping_address\": \"d891d94a-0b59-4fe3-9192-3817b424d9a3\",\n            \"billing_address\": \"d891d94a-0b59-4fe3-9192-3817b424d9a3\",\n            \"coupon\": null,\n            \"start_date\": \"2021-04-01T15:50:21.188312Z\",\n            \"ordered_date\": null,\n            \"being_delivered\": true,\n            \"received\": true,\n            \"refund_requested\": false,\n            \"refund_granted\": false,\n            \"price\": 0\n        }\n    ]\n}"}],"_postman_id":"b03dbad1-c322-4980-bb20-653cff8808b4"},{"name":"View all previous orders of the user","id":"54e6a66a-c423-4999-b50f-fdc1cd579d46","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Token 9e2fa0419421cb9560b47662f4e475944610054f","type":"text"}],"url":"http://127.0.0.1:8000/orders/view/orders/","description":"<p>These are the orders that have been paid for successfully.</p>\n","urlObject":{"protocol":"http","port":"8000","path":["orders","view","orders",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"c16ace08-385c-418c-8bf9-51f646b621a9","name":"View all previous orders of the user","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Token 9e2fa0419421cb9560b47662f4e475944610054f","type":"text"}],"url":"http://127.0.0.1:8000/orders/view/orders/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 14 Apr 2021 21:35:27 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.4"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"GET, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"1117"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"count\": 2,\n    \"next\": null,\n    \"previous\": null,\n    \"results\": [\n        {\n            \"o_id\": \"e98c5b5b-2f65-4b3b-8697-47bd10b8f260\",\n            \"user\": 2,\n            \"shipping_address\": \"d891d94a-0b59-4fe3-9192-3817b424d9a3\",\n            \"billing_address\": \"d891d94a-0b59-4fe3-9192-3817b424d9a3\",\n            \"coupon\": null,\n            \"start_date\": \"2021-04-01T15:23:18.426635Z\",\n            \"ordered_date\": null,\n            \"being_delivered\": true,\n            \"received\": false,\n            \"refund_requested\": true,\n            \"refund_granted\": false,\n            \"price\": 1050,\n            \"payment\": {\n                \"id\": 2,\n                \"razorpay_order_id\": \"order_GxeUoT7cG0gQhY\",\n                \"razorpay_payment_id\": \"\",\n                \"amount\": \"1000.00\",\n                \"timestamp\": \"2021-04-11T14:47:46.311309Z\",\n                \"paid_successfully\": true,\n                \"user\": 2,\n                \"order\": \"e98c5b5b-2f65-4b3b-8697-47bd10b8f260\"\n            },\n            \"refund\": {\n                \"id\": 1,\n                \"reasons\": \"Not satisfactory\",\n                \"accepted\": false,\n                \"order\": \"e98c5b5b-2f65-4b3b-8697-47bd10b8f260\"\n            }\n        },\n        {\n            \"o_id\": \"bd254cf6-c388-4d85-b04c-2846a8b26781\",\n            \"user\": 2,\n            \"shipping_address\": \"d891d94a-0b59-4fe3-9192-3817b424d9a3\",\n            \"billing_address\": \"d891d94a-0b59-4fe3-9192-3817b424d9a3\",\n            \"coupon\": null,\n            \"start_date\": \"2021-04-01T15:50:21.188312Z\",\n            \"ordered_date\": null,\n            \"being_delivered\": true,\n            \"received\": true,\n            \"refund_requested\": false,\n            \"refund_granted\": false,\n            \"price\": 0,\n            \"payment\": null,\n            \"refund\": null\n        }\n    ]\n}"}],"_postman_id":"54e6a66a-c423-4999-b50f-fdc1cd579d46"},{"name":"View products in Cart","id":"e4bfda6c-e260-425e-832c-d9a5cf85b807","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Token 9e2fa0419421cb9560b47662f4e475944610054f","type":"text"}],"url":"http://127.0.0.1:8000/orders/view/cart/","urlObject":{"protocol":"http","port":"8000","path":["orders","view","cart",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"3f72bbcf-714a-47c6-b7ed-550de5534165","name":"View products in Cart","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Token 9e2fa0419421cb9560b47662f4e475944610054f","type":"text"}],"url":"http://127.0.0.1:8000/orders/view/cart/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 30 Apr 2021 12:23:39 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.4"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"GET, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"1660"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"count\": 3,\n    \"next\": null,\n    \"previous\": null,\n    \"results\": [\n        {\n            \"op_id\": \"eef49ec7-77bd-4e7f-9733-b7118fb4bf0e\",\n            \"product\": {\n                \"pid\": \"5f6b92be-ed0d-44cc-a328-560136d0e581\",\n                \"name\": \"Cool CodeChef Band\",\n                \"artist\": 1,\n                \"description\": \"It is what it is\",\n                \"category\": \"accessories\",\n                \"subcategory\": \"bands\",\n                \"original_price\": \"500.00\",\n                \"kalafex_price\": \"525.00\",\n                \"display_image\": \"https://kalafex-media.s3.amazonaws.com/media/products/5f6b92be-ed0d-44cc-a328-560136d0e581/cc.jpg\",\n                \"discount_price\": null,\n                \"stock_left\": 5\n            },\n            \"quantity\": 2,\n            \"ordered\": false,\n            \"date_created\": \"2021-04-25T17:06:54.365737Z\",\n            \"user\": 2,\n            \"order\": null\n        },\n        {\n            \"op_id\": \"438d80ad-a529-4bb4-a89f-260754ae84a5\",\n            \"product\": {\n                \"pid\": \"5f6b92be-ed0d-44cc-a328-560136d0e581\",\n                \"name\": \"Cool CodeChef Band\",\n                \"artist\": 1,\n                \"description\": \"It is what it is\",\n                \"category\": \"accessories\",\n                \"subcategory\": \"bands\",\n                \"original_price\": \"500.00\",\n                \"kalafex_price\": \"525.00\",\n                \"display_image\": \"https://kalafex-media.s3.amazonaws.com/media/products/5f6b92be-ed0d-44cc-a328-560136d0e581/cc.jpg\",\n                \"discount_price\": null,\n                \"stock_left\": 5\n            },\n            \"quantity\": 2,\n            \"ordered\": false,\n            \"date_created\": \"2021-04-25T17:06:52.659730Z\",\n            \"user\": 2,\n            \"order\": null\n        },\n        {\n            \"op_id\": \"b532465b-a4a2-4b3d-a0c4-bd9eac9e6ffc\",\n            \"product\": {\n                \"pid\": \"5f6b92be-ed0d-44cc-a328-560136d0e581\",\n                \"name\": \"Cool CodeChef Band\",\n                \"artist\": 1,\n                \"description\": \"It is what it is\",\n                \"category\": \"accessories\",\n                \"subcategory\": \"bands\",\n                \"original_price\": \"500.00\",\n                \"kalafex_price\": \"525.00\",\n                \"display_image\": \"https://kalafex-media.s3.amazonaws.com/media/products/5f6b92be-ed0d-44cc-a328-560136d0e581/cc.jpg\",\n                \"discount_price\": null,\n                \"stock_left\": 5\n            },\n            \"quantity\": 2,\n            \"ordered\": false,\n            \"date_created\": \"2021-04-03T13:31:40.822395Z\",\n            \"user\": 2,\n            \"order\": \"e98c5b5b-2f65-4b3b-8697-47bd10b8f260\"\n        }\n    ]\n}"}],"_postman_id":"e4bfda6c-e260-425e-832c-d9a5cf85b807"},{"name":"View previous and current orders","id":"0f6b1039-1176-45e3-84dc-d9c83073f511","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Token 9e2fa0419421cb9560b47662f4e475944610054f","type":"text"}],"url":"http://127.0.0.1:8000/orders/view/previous_orders/","urlObject":{"protocol":"http","port":"8000","path":["orders","view","previous_orders",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"deef1bc5-a452-4121-9bc8-a00347a8a8fc","name":"View previous and current orders","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Token 9e2fa0419421cb9560b47662f4e475944610054f","type":"text"}],"url":"http://127.0.0.1:8000/orders/view/previous_orders/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 30 Apr 2021 22:35:37 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.4"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"GET, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"1323"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"count\": 2,\n    \"next\": null,\n    \"previous\": null,\n    \"results\": [\n        {\n            \"o_id\": \"bd254cf6-c388-4d85-b04c-2846a8b26781\",\n            \"user\": 2,\n            \"shipping_address\": \"d891d94a-0b59-4fe3-9192-3817b424d9a3\",\n            \"billing_address\": \"d891d94a-0b59-4fe3-9192-3817b424d9a3\",\n            \"coupon\": null,\n            \"start_date\": \"2021-04-01T15:50:21.188312Z\",\n            \"ordered_date\": null,\n            \"being_delivered\": true,\n            \"received\": true,\n            \"refund_requested\": false,\n            \"refund_granted\": false,\n            \"price\": 0,\n            \"payment\": {\n                \"id\": 4,\n                \"razorpay_order_id\": \"order_H58FECm4jrPjvB\",\n                \"razorpay_payment_id\": \"\",\n                \"amount\": \"1575.00\",\n                \"timestamp\": \"2021-04-30T12:26:50.530139Z\",\n                \"paid_successfully\": true,\n                \"user\": 2,\n                \"order\": \"bd254cf6-c388-4d85-b04c-2846a8b26781\"\n            },\n            \"refund\": null\n        },\n        {\n            \"o_id\": \"e98c5b5b-2f65-4b3b-8697-47bd10b8f260\",\n            \"user\": 2,\n            \"shipping_address\": \"d891d94a-0b59-4fe3-9192-3817b424d9a3\",\n            \"billing_address\": \"d891d94a-0b59-4fe3-9192-3817b424d9a3\",\n            \"coupon\": null,\n            \"start_date\": \"2021-04-01T15:23:18.426635Z\",\n            \"ordered_date\": null,\n            \"being_delivered\": true,\n            \"received\": false,\n            \"refund_requested\": true,\n            \"refund_granted\": true,\n            \"price\": 0,\n            \"payment\": {\n                \"id\": 1,\n                \"razorpay_order_id\": \"order_Gvh6Jh02wHOBTd\",\n                \"razorpay_payment_id\": \"\",\n                \"amount\": \"100.00\",\n                \"timestamp\": \"2021-04-06T16:02:38.648282Z\",\n                \"paid_successfully\": true,\n                \"user\": 2,\n                \"order\": \"e98c5b5b-2f65-4b3b-8697-47bd10b8f260\"\n            },\n            \"refund\": {\n                \"id\": 1,\n                \"reasons\": \"Not satisfactory\",\n                \"accepted\": true,\n                \"order\": \"e98c5b5b-2f65-4b3b-8697-47bd10b8f260\"\n            }\n        }\n    ]\n}"}],"_postman_id":"0f6b1039-1176-45e3-84dc-d9c83073f511"},{"name":"Download today's orders (.xlsx)","id":"539e3d6f-7ce1-4f5c-9a10-a159e9ae8401","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Token 56d05e880a51096fddcb8a3ff665b909b09d9ed3","type":"text"}],"url":"http://127.0.0.1:8000/orders/download/","description":"<p>Needs Kalafex admin permissions.</p>\n","urlObject":{"protocol":"http","port":"8000","path":["orders","download",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"739268ed-5224-46e2-a94e-0b7f4b8cfa80","name":"Download today's orders (.xlsx)","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Token 56d05e880a51096fddcb8a3ff665b909b09d9ed3","type":"text"}],"url":"http://127.0.0.1:8000/orders/download/"},"status":"OK","code":200,"_postman_previewlanguage":"xml","header":[{"key":"Date","value":"Mon, 03 May 2021 07:19:42 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.4"},{"key":"Content-Type","value":"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet; charset=utf-8"},{"key":"Content-Disposition","value":"attachment; filename=\"2021-05-03-orders.xlsx\""},{"key":"Allow","value":"GET, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"5101"},{"key":"Vary","value":"Origin"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"539e3d6f-7ce1-4f5c-9a10-a159e9ae8401"},{"name":"View delivery - pending orders","id":"f59f93fe-1eac-4984-9ae0-05bac6eaf9cc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Token 56d05e880a51096fddcb8a3ff665b909b09d9ed3","type":"text"}],"url":"http://127.0.0.1:8000/orders/view/orders/pending/","description":"<p>Needs Kalafex admin permissions</p>\n","urlObject":{"protocol":"http","port":"8000","path":["orders","view","orders","pending",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"70e90757-c3a2-431b-88a9-48415ec453c1","name":"View delivery - pending orders","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Token 56d05e880a51096fddcb8a3ff665b909b09d9ed3","type":"text"}],"url":"http://127.0.0.1:8000/orders/view/orders/pending/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 06 May 2021 10:39:11 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.4"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"GET, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"1714"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"count\": 2,\n    \"next\": null,\n    \"previous\": null,\n    \"results\": [\n        {\n            \"o_id\": \"df3bae92-0f84-49f1-8194-fa371cfba7e2\",\n            \"user\": 3,\n            \"being_delivered\": true,\n            \"received\": false,\n            \"payment\": null,\n            \"orderproduct_set\": [\n                {\n                    \"op_id\": \"b74c7e8b-24bf-4667-ab51-f0a2d9181737\",\n                    \"product\": {\n                        \"pid\": \"88d954eb-e8fb-46c7-abde-acbb7400d3c0\",\n                        \"name\": \"cool gum\",\n                        \"artist\": {\n                            \"full_name\": \"admin\",\n                            \"is_kalafex_admin\": true,\n                            \"is_artist\": true,\n                            \"is_customer\": false,\n                            \"is_first_login\": true,\n                            \"date_of_birth\": \"2021-04-07\",\n                            \"phone_number\": \"12345\",\n                            \"id\": 1,\n                            \"email\": \"admin@admin.com\"\n                        },\n                        \"display_image\": \"https://kalafex-media.s3.amazonaws.com/media/products/image_unavailable.png\"\n                    },\n                    \"quantity\": 4,\n                    \"ordered\": false,\n                    \"date_created\": \"2021-05-03T19:51:37.077311+05:30\",\n                    \"handed_over\": true,\n                    \"user\": 3,\n                    \"order\": \"df3bae92-0f84-49f1-8194-fa371cfba7e2\"\n                }\n            ]\n        },\n        {\n            \"o_id\": \"e98c5b5b-2f65-4b3b-8697-47bd10b8f260\",\n            \"user\": 2,\n            \"being_delivered\": true,\n            \"received\": false,\n            \"payment\": {\n                \"id\": 1,\n                \"razorpay_order_id\": \"order_Gvh6Jh02wHOBTd\",\n                \"razorpay_payment_id\": \"\",\n                \"amount\": \"100.00\",\n                \"timestamp\": \"2021-04-06T21:32:38.648282+05:30\",\n                \"paid_successfully\": true,\n                \"user\": 2,\n                \"order\": \"e98c5b5b-2f65-4b3b-8697-47bd10b8f260\"\n            },\n            \"orderproduct_set\": [\n                {\n                    \"op_id\": \"aa65f289-b4ee-424e-9b86-3c7118a81760\",\n                    \"product\": {\n                        \"pid\": \"45752f8c-4e5b-4fc7-abb1-c993fb6cc235\",\n                        \"name\": \"Cooler CodeChef Band\",\n                        \"artist\": {\n                            \"full_name\": \"Test User\",\n                            \"is_kalafex_admin\": false,\n                            \"is_artist\": true,\n                            \"is_customer\": false,\n                            \"is_first_login\": false,\n                            \"date_of_birth\": \"2021-04-07\",\n                            \"phone_number\": \"123\",\n                            \"id\": 2,\n                            \"email\": \"hari@gmail.com\"\n                        },\n                        \"display_image\": \"https://kalafex-media.s3.amazonaws.com/media/products/45752f8c-4e5b-4fc7-abb1-c993fb6cc235/cc.jpg\"\n                    },\n                    \"quantity\": 3,\n                    \"ordered\": true,\n                    \"date_created\": \"2021-05-03T01:28:49.520851+05:30\",\n                    \"handed_over\": false,\n                    \"user\": 2,\n                    \"order\": \"e98c5b5b-2f65-4b3b-8697-47bd10b8f260\"\n                }\n            ]\n        }\n    ]\n}"}],"_postman_id":"f59f93fe-1eac-4984-9ae0-05bac6eaf9cc"},{"name":"Set delivery status as received for an order","id":"a278581a-186b-44db-b1c9-0e8e0656b4f5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Token 56d05e880a51096fddcb8a3ff665b909b09d9ed3","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"order\": \"e98c5b5b-2f65-4b3b-8697-47bd10b8f260\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/orders/set_delivery_status/","description":"<p>Needs Kalafex admin permissions.</p>\n","urlObject":{"protocol":"http","port":"8000","path":["orders","set_delivery_status",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"d885c383-0fb4-4744-bb9a-e06c5c919495","name":"Set delivery status as received for an order","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Token 56d05e880a51096fddcb8a3ff665b909b09d9ed3","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"order\": \"e98c5b5b-2f65-4b3b-8697-47bd10b8f260\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/orders/set_delivery_status/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 03 May 2021 17:08:52 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.4"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"POST, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"75"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"details\": \"Successfully updated status to 'received'.\"\n}"}],"_postman_id":"a278581a-186b-44db-b1c9-0e8e0656b4f5"}],"id":"8f1d1277-b861-455e-ac9e-130441583e9e","_postman_id":"8f1d1277-b861-455e-ac9e-130441583e9e","description":""},{"name":"Payments, Refunds and Cashouts Requests","item":[{"name":"Create a Razorpay payment","id":"94522f71-067e-4cdb-be6b-84e33fe24244","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Token 9e2fa0419421cb9560b47662f4e475944610054f","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"order\": \"bd254cf6-c388-4d85-b04c-2846a8b26781\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/orders/create/payment/","urlObject":{"protocol":"http","port":"8000","path":["orders","create","payment",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"7cc66fde-6821-4df7-9ba1-df32452b80ee","name":"Create a Razorpay payment","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Token 9e2fa0419421cb9560b47662f4e475944610054f","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"order\": \"bd254cf6-c388-4d85-b04c-2846a8b26781\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/orders/create/payment/"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 30 Apr 2021 12:26:51 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.4"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"POST, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"663"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"razorpay_details\": {\n        \"id\": \"order_H58FECm4jrPjvB\",\n        \"entity\": \"order\",\n        \"amount\": 157500,\n        \"amount_paid\": 0,\n        \"amount_due\": 157500,\n        \"currency\": \"INR\",\n        \"receipt\": \"bd254cf6-c388-4d85-b04c-2846a8b26781\",\n        \"offer_id\": null,\n        \"status\": \"created\",\n        \"attempts\": 0,\n        \"notes\": {\n            \"user_id\": 2,\n            \"name\": \"Test User\",\n            \"email\": \"hari@gmail.com\",\n            \"phone_number\": \"123\",\n            \"internal_order_id\": \"bd254cf6-c388-4d85-b04c-2846a8b26781\"\n        },\n        \"created_at\": 1619785609\n    },\n    \"internal_details\": {\n        \"id\": 4,\n        \"razorpay_order_id\": \"order_H58FECm4jrPjvB\",\n        \"razorpay_payment_id\": null,\n        \"amount\": \"1575.00\",\n        \"timestamp\": \"2021-04-30T12:26:50.530139Z\",\n        \"paid_successfully\": false,\n        \"user\": 2,\n        \"order\": \"bd254cf6-c388-4d85-b04c-2846a8b26781\"\n    }\n}"}],"_postman_id":"94522f71-067e-4cdb-be6b-84e33fe24244"},{"name":"Request Refund","id":"da587dd3-f4c4-4883-8720-8782f3f290c1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Token 9e2fa0419421cb9560b47662f4e475944610054f","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"order\": \"e98c5b5b-2f65-4b3b-8697-47bd10b8f260\",\r\n    \"reasons\": \"Not satisfactory\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/orders/request_refund/","description":"<p>Only for orders that have been successfully paid for.</p>\n","urlObject":{"protocol":"http","port":"8000","path":["orders","request_refund",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"87b7fea6-be2a-4af3-9ad7-b4709814ef70","name":"Request Refund","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Token 9e2fa0419421cb9560b47662f4e475944610054f","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"order\": \"e98c5b5b-2f65-4b3b-8697-47bd10b8f260\",\r\n    \"reasons\": \"Not satisfactory\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/orders/request_refund/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 13 Apr 2021 21:13:28 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.4"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"POST, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"735"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"order_details\": {\n        \"o_id\": \"e98c5b5b-2f65-4b3b-8697-47bd10b8f260\",\n        \"user\": 2,\n        \"shipping_address\": \"d891d94a-0b59-4fe3-9192-3817b424d9a3\",\n        \"billing_address\": \"d891d94a-0b59-4fe3-9192-3817b424d9a3\",\n        \"coupon\": null,\n        \"start_date\": \"2021-04-01T15:23:18.426635Z\",\n        \"ordered_date\": null,\n        \"being_delivered\": true,\n        \"received\": false,\n        \"refund_requested\": true,\n        \"refund_granted\": false,\n        \"price\": 1050,\n        \"payment\": {\n            \"id\": 2,\n            \"razorpay_order_id\": \"order_GxeUoT7cG0gQhY\",\n            \"razorpay_payment_id\": \"\",\n            \"amount\": \"1000.00\",\n            \"timestamp\": \"2021-04-11T14:47:46.311309Z\",\n            \"paid_successfully\": true,\n            \"user\": 2,\n            \"order\": \"e98c5b5b-2f65-4b3b-8697-47bd10b8f260\"\n        }\n    },\n    \"refund_details\": {\n        \"id\": 1,\n        \"reasons\": \"Not satisfactory\",\n        \"accepted\": false,\n        \"order\": \"e98c5b5b-2f65-4b3b-8697-47bd10b8f260\"\n    }\n}"}],"_postman_id":"da587dd3-f4c4-4883-8720-8782f3f290c1"},{"name":"View orders that need refund","id":"0fd4b868-bf33-4f5e-86cd-8b7db23119f2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Token c69601a442445d5994a9451c07257ca50237cb86"}],"url":"http://127.0.0.1:8000/orders/view/refund_requests/","description":"<p>Can only be accessed by users that have \"is_kalafex_admin\" set to True.</p>\n","urlObject":{"protocol":"http","port":"8000","path":["orders","view","refund_requests",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"b8029a42-e596-48c7-9e30-abf2c8830493","name":"View orders that need refund","originalRequest":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Token c69601a442445d5994a9451c07257ca50237cb86"}],"url":"http://127.0.0.1:8000/orders/view/refund_requests/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 03 May 2021 17:35:50 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.4"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"GET, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"583"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"count\": 1,\n    \"next\": null,\n    \"previous\": null,\n    \"results\": [\n        {\n            \"o_id\": \"e98c5b5b-2f65-4b3b-8697-47bd10b8f260\",\n            \"user\": 2,\n            \"refund_requested\": true,\n            \"refund_granted\": false,\n            \"payment\": {\n                \"id\": 1,\n                \"razorpay_order_id\": \"order_Gvh6Jh02wHOBTd\",\n                \"razorpay_payment_id\": \"\",\n                \"amount\": \"100.00\",\n                \"timestamp\": \"2021-04-06T21:32:38.648282+05:30\",\n                \"paid_successfully\": true,\n                \"user\": 2,\n                \"order\": \"e98c5b5b-2f65-4b3b-8697-47bd10b8f260\"\n            },\n            \"refund\": {\n                \"id\": 1,\n                \"reasons\": \"Not satisfactory\",\n                \"accepted\": true,\n                \"order\": \"e98c5b5b-2f65-4b3b-8697-47bd10b8f260\"\n            },\n            \"shipping_address\": \"221B Baker Street, Beside Building B, London, something, 100007\"\n        }\n    ]\n}"}],"_postman_id":"0fd4b868-bf33-4f5e-86cd-8b7db23119f2"},{"name":"Grant Refund","id":"e5d1bd39-178b-4f58-b4ca-3eae64389be4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Token c69601a442445d5994a9451c07257ca50237cb86","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"order\": \"e98c5b5b-2f65-4b3b-8697-47bd10b8f260\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/orders/grant/refund/","description":"<p>The payment is made by the Kalafex admin on the Razorpay portal, they have to choose this option once their payment is successful so we can store the confirmation in the backend.</p>\n","urlObject":{"protocol":"http","port":"8000","path":["orders","grant","refund",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"d6295e1d-e890-4122-8108-a6770a0b138b","name":"Grant Refund","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Token c69601a442445d5994a9451c07257ca50237cb86","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"order\": \"e98c5b5b-2f65-4b3b-8697-47bd10b8f260\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/orders/grant/refund/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 14 Apr 2021 21:38:24 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.4"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"POST, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"64"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"details\": \"Stored successful refund grant.\"\n}"}],"_postman_id":"e5d1bd39-178b-4f58-b4ca-3eae64389be4"},{"name":"Request Cashout","id":"c2b7de8b-9bc3-40b0-adf3-b9bb67b9aa19","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Token 9e2fa0419421cb9560b47662f4e475944610054f","type":"text"}],"url":"http://127.0.0.1:8000/accounts/request/cashout/","description":"<p>Only artists can request this.</p>\n","urlObject":{"protocol":"http","port":"8000","path":["accounts","request","cashout",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"120be671-8353-4f13-abf1-8cbf4788e1da","name":"Request Cashout","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Token 9e2fa0419421cb9560b47662f4e475944610054f","type":"text"}],"url":"http://127.0.0.1:8000/accounts/request/cashout/"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 14 Apr 2021 23:32:33 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.4"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"POST, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"65"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"details\": \"Successfully requested cash-out.\"\n}"}],"_postman_id":"c2b7de8b-9bc3-40b0-adf3-b9bb67b9aa19"},{"name":"View all cashout requests","id":"d8fbe4c6-bf03-4b85-a336-d6d130087d46","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Token c69601a442445d5994a9451c07257ca50237cb86","type":"text"}],"url":"http://127.0.0.1:8000/accounts/view/cashout_requests/","description":"<p>Needs Kalafex admin permissions (is_kalafex_admin = True).</p>\n","urlObject":{"protocol":"http","port":"8000","path":["accounts","view","cashout_requests",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"2a917ee9-95ee-4bae-bf92-6fd1db8e78d6","name":"View all cashout requests","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Token c69601a442445d5994a9451c07257ca50237cb86","type":"text"}],"url":"http://127.0.0.1:8000/accounts/view/cashout_requests/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 14 Apr 2021 23:33:56 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.4"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"GET, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"578"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"count\": 1,\n    \"next\": null,\n    \"previous\": null,\n    \"results\": [\n        {\n            \"user\": {\n                \"full_name\": \"Test User\",\n                \"is_demix_admin\": false,\n                \"is_artist\": true,\n                \"is_customer\": false,\n                \"is_first_login\": false,\n                \"date_of_birth\": \"2021-04-07\",\n                \"phone_number\": \"123\",\n                \"id\": 2,\n                \"email\": \"hari@gmail.com\"\n            },\n            \"total_views\": 0,\n            \"total_sales\": 6300,\n            \"total_orders\": 12,\n            \"bio\": \"super cool bio\",\n            \"custom_url\": \"normaldude1\",\n            \"aadhar_card_no\": \"1234-5678\",\n            \"pan_card_no\": \"9876-5432\",\n            \"gst_no\": \"1234-5678\",\n            \"profile_picture\": \"https://kalafex-media.s3.amazonaws.com/media/users/profile_pictures/2_oQYlcf3.jpg\",\n            \"balance\": \"0.00\",\n            \"cashout_requested\": true\n        }\n    ]\n}"}],"_postman_id":"d8fbe4c6-bf03-4b85-a336-d6d130087d46"},{"name":"Grant cashout","id":"b295de92-0e1d-48b3-81ec-1bd8955d0309","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Token c69601a442445d5994a9451c07257ca50237cb86","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"user\": 2\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/accounts/grant/cashout/","description":"<p>Cashout will have to be granted by the Kalafex admin through Razorpay/Bank, and then will have to be granted to update in the backend.</p>\n","urlObject":{"protocol":"http","port":"8000","path":["accounts","grant","cashout",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"7d6909fb-ca9a-4f55-b612-697d131e64ea","name":"Grant cashout","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Token c69601a442445d5994a9451c07257ca50237cb86","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"user\": 2\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/accounts/grant/cashout/"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 14 Apr 2021 23:37:36 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.4"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"POST, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"50"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"details\": \"Cash-out granted.\"\n}"}],"_postman_id":"b295de92-0e1d-48b3-81ec-1bd8955d0309"}],"id":"1f431117-1362-45bd-924e-8c8eca39e3f4","_postman_id":"1f431117-1362-45bd-924e-8c8eca39e3f4","description":""}]}