{"info":{"_postman_id":"73fa4835-f5fe-4047-be3b-6ad81efa5518","name":"ACTGrants","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"11883658","collectionId":"73fa4835-f5fe-4047-be3b-6ad81efa5518","publishedId":"TzRSfnKA","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2021-05-10T08:11:57.000Z"},"item":[{"name":"Authentication","item":[{"name":"Login","id":"2173d740-7486-41f2-b8db-94f4136e19a5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":""},{"key":"value","value":"<value>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"username","value":"ypo","type":"text"},{"key":"password","value":"50L^#5X1HSF76Rlr","type":"text"}]},"url":"http://localhost:8000/rest-auth/login/","description":"<p>You can send either one of username or email.\nAfter correct creds are verified the server will send a token back to the client. Please put this token in the Headers of each request from the authenticated user after login. With the following key and value. </p>\n<p>Key: Authorization<br />Value: Token &lt;token string, eg: 9611e98cb7f2740ab40cf267611c40f705b2cebd&gt; </p>\n","urlObject":{"path":["rest-auth","login",""],"host":["http://localhost:8000"],"query":[],"variable":[]}},"response":[{"id":"4c38b7c8-8978-4c39-bd1c-e4d7cfbf60db","name":"Login - Incorrect Credentials","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"username","value":"par","type":"text"},{"key":"password","value":"asdasdas","type":"text"}]},"url":{"raw":"http://localhost:8000/rest-auth/login/","host":["http://localhost:8000"],"path":["rest-auth","login",""],"query":[{"key":"username","value":"par","type":"text","disabled":true},{"key":"password","value":"Reet2010!","type":"text","disabled":true}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Cookie"},{"key":"Allow","value":"POST, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"68"},{"key":"Referrer-Policy","value":"same-origin"},{"key":"Server","value":"Werkzeug/1.0.1 Python/3.8.2"},{"key":"Date","value":"Sat, 29 Aug 2020 08:41:54 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"non_field_errors\": [\n        \"Unable to log in with provided credentials.\"\n    ]\n}"},{"id":"fcc2f56c-ad06-4794-a5e5-d3a64f2ef8ce","name":"Login - Correct","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"username","value":"par","type":"text"},{"key":"password","value":"Reet2010","type":"text"}]},"url":{"raw":"http://localhost:8000/rest-auth/login/","host":["http://localhost:8000"],"path":["rest-auth","login",""],"query":[{"key":"username","value":"par","type":"text","disabled":true},{"key":"password","value":"Reet2010!","type":"text","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Cookie"},{"key":"Allow","value":"POST, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"50"},{"key":"Referrer-Policy","value":"same-origin"},{"key":"Set-Cookie","value":"sessionid=.eJxVjEEOwiAQRe_C2pBC22Fw6d4zkIEBqRraQLsy3l2bdKHb_977L-FoW7PbWqxuYnEWC1Vx-l09hUcsO-I7ldssw1zWOnm5K_KgTV5njs_L4f4dZGr5W6MKYGyKJpFibRUieBpsAtAere1SYBjYIingxDQaiF1Qpkf0HPpRi_cHmFQ5DA:1kBwRD:jCUtz3PBltP21kiT5Lw-j6Hd8qs0MD6gc_2GUsCZGeU; expires=Sat, 12 Sep 2020 08:42:15 GMT; HttpOnly; Max-Age=1209600; Path=/; SameSite=Lax"},{"key":"Server","value":"Werkzeug/1.0.1 Python/3.8.2"},{"key":"Date","value":"Sat, 29 Aug 2020 08:42:15 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"key\": \"9611e98cb7f2740ab40cf267611c40f705b2cebd\"\n}"}],"_postman_id":"2173d740-7486-41f2-b8db-94f4136e19a5"},{"name":"Password Reset","id":"70cbc1f6-c75b-48df-8366-8ece2cb4dcc7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"email","value":"paramkapur2002@gmail.com","type":"text"}]},"url":"http://localhost:8000/rest-auth/password/reset/","description":"<p>This will send an email to the user so that they can reset their password. They will reset the password on the webapp itself. \nThe email looks like:</p>\n<p><img src=\"https://lh5.googleusercontent.com/07uBempdgpQ7EKHz-DEiJUIeg7Xb6jsB2mtAcBxK-iNr20l4EamqK9ZHZq1qXmwGiaLHjw7uiGx7GN9DIWc=w1920-h979\" alt=\"email\" /></p>\n","urlObject":{"path":["rest-auth","password","reset",""],"host":["http://localhost:8000"],"query":[],"variable":[]}},"response":[{"id":"689ddb49-88a6-437c-9427-1bae515da790","name":"Password Reset","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"email","value":"paramkapur2002@gmail.com","type":"text"}]},"url":"http://localhost:8000/rest-auth/password/reset/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Cookie"},{"key":"Allow","value":"POST, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"49"},{"key":"Referrer-Policy","value":"same-origin"},{"key":"Server","value":"Werkzeug/1.0.1 Python/3.8.2"},{"key":"Date","value":"Sat, 29 Aug 2020 08:51:46 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"detail\": \"Password reset e-mail has been sent.\"\n}"}],"_postman_id":"70cbc1f6-c75b-48df-8366-8ece2cb4dcc7"},{"name":"Change Password","id":"f8476693-08a9-46eb-a469-8485dd854b78","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"<value>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"new_password1","value":"abcde1234!","type":"text"},{"key":"new_password2","value":"abcde1234!","type":"text"},{"key":"old_password","value":"Reet2010","type":"text"}]},"url":"http://localhost:8000/rest-auth/password/change/","description":"<p>This allows a user who is already logged in to change their password. </p>\n","urlObject":{"path":["rest-auth","password","change",""],"host":["http://localhost:8000"],"query":[],"variable":[]}},"response":[{"id":"ea1c55e6-d0a9-4781-b055-803a56085ecd","name":"Change Password","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"new_password1","value":"abcde1234!","type":"text"},{"key":"new_password2","value":"abcde1234!","type":"text"},{"key":"old_password","value":"Reet2010","type":"text"}]},"url":"http://localhost:8000/rest-auth/password/change/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Cookie"},{"key":"Allow","value":"POST, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"41"},{"key":"Referrer-Policy","value":"same-origin"},{"key":"Set-Cookie","value":"sessionid=.eJxVjEEOwiAQRe_C2hChTKEu3XsGMsNMpWqogXZlvLs26UK3_733XyriuuS4NqlxYnVST6zq8LsSpruUDfENy3XWaS5LnUhvit5p05eZ5XHe3b-DjC1_ayJnybIEGNGx62Ew1qBgBz54PDJ0YFNiJOeY0PuRgHtrfEKQISSv3h-qYTmb:1kBwhJ:RxwrkSSNbD6jsjd9A-P6joNBZPjVszJ6FGNr9cYWS88; expires=Sat, 12 Sep 2020 08:58:53 GMT; HttpOnly; Max-Age=1209600; Path=/; SameSite=Lax"},{"key":"Server","value":"Werkzeug/1.0.1 Python/3.8.2"},{"key":"Date","value":"Sat, 29 Aug 2020 08:58:53 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"detail\": \"New password has been saved.\"\n}"}],"_postman_id":"f8476693-08a9-46eb-a469-8485dd854b78"},{"name":"User Detail","id":"c95a76a5-8866-4aed-8970-1aa30f19e30c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"<value>"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"first_name","value":"rohit","type":"text","disabled":true},{"key":"username","value":"tester","type":"text"},{"key":"pk","value":"par","type":"text","disabled":true}]},"url":"https://act-grants-crm.herokuapp.com/rest-auth/user/","description":"<p>Gets details of the current logged in user</p>\n","urlObject":{"protocol":"https","path":["rest-auth","user",""],"host":["act-grants-crm","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"f0d18909-16da-4440-aee2-4db7bad4f551","name":"User Detail","originalRequest":{"method":"GET","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"first_name","value":"rohit","type":"text","disabled":true},{"key":"username","value":"tester","type":"text"},{"key":"pk","value":"par","type":"text","disabled":true}]},"url":"https://act-grants-crm.herokuapp.com/rest-auth/user/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"gunicorn/20.0.4"},{"key":"Date","value":"Thu, 20 May 2021 06:39:32 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"GET, PUT, PATCH, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"675"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains; preload"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Referrer-Policy","value":"same-origin"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"username\": \"tester\",\n    \"email\": \"tester@yopmail.com\",\n    \"phone\": \"+919871587593\",\n    \"avatar\": \"https://s3.ap-south-1.amazonaws.com/act-grants-assets/media/private/user_data/avatars/alok_AfV44nK.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIA2BUOWC5BIG7OCZPH%2F20210520%2Fap-south-1%2Fs3%2Faws4_request&X-Amz-Date=20210520T063932Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=dccf9ab08a91e770fcf42378e5a25fad6895fa2778982c71204ae089484fdf02\",\n    \"name\": \"Tester Testman\",\n    \"first_name\": \"Tester\",\n    \"last_name\": \"Testman\",\n    \"company\": {\n        \"name\": \"The Orange Yak Co.\",\n        \"goal\": 3000000,\n        \"logo\": \"https://i.imgur.com/xkzfPfh.jpg\",\n        \"active\": true,\n        \"created_at\": \"2021-05-10T13:49:07+05:30\"\n    }\n}"}],"_postman_id":"c95a76a5-8866-4aed-8970-1aa30f19e30c"},{"name":"Register","id":"d607467d-a54a-41fb-963a-685fea767e16","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"username","value":"tester","type":"text"},{"key":"password1","value":"abcd1234!","type":"text"},{"key":"password2","value":"abcd1234!","type":"text"},{"key":"email","value":"tester@yopmail.com","type":"text"}]},"url":"https://act-grants-crm.herokuapp.com/rest-auth/registration/","description":"<p>This request allows a user to register for an account and then sends them an registration email. They will click on the registration link and confirm thier account from the web app itself. Optionally the webapp can open as a webview in the native app so that the flow is all in one place. </p>\n<p>The email looks like:</p>\n<p><img src=\"https://lh3.googleusercontent.com/HTttm6Vhhrc-5GKg_GtX9tdIRnJ8Xgt_Tmv71KJYrUddiRr9MJKNKiVRn5BPNwjOVoNfsYlazXyFKIuYU5g=w1919-h979-rw\" alt=\"email\" /></p>\n","urlObject":{"protocol":"https","path":["rest-auth","registration",""],"host":["act-grants-crm","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"9de9b5ea-1671-4663-a2c7-7a7bdadbf840","name":"Register","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"username","value":"tester","type":"text"},{"key":"password1","value":"abcd1234!","type":"text"},{"key":"password2","value":"abcd1234!","type":"text"},{"key":"email","value":"tester@yopmail.com","type":"text"}]},"url":"http://localhost:8000/rest-auth/registration/"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Cookie"},{"key":"Allow","value":"POST, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"38"},{"key":"Referrer-Policy","value":"same-origin"},{"key":"Set-Cookie","value":"messages=\"[[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to tester@yopmail.com.\\\"]]:1kBwnt:8wsd3EnPFNein_nfeK5sFoWIfYs0Z9P__B1JJ-ecbiE\"; HttpOnly; Path=/; SameSite=Lax"},{"key":"Set-Cookie","value":"sessionid=.eJxVjU0OgjAQhe_StSFSWgos3XuGZjozSBVb0xY3xrsLCYm6e3nf-3kJC0uZ7JI5WU9iEA9I4vDrOsAbhw3RFcIlVhhDSd5VW6Taaa7OkXg-7dm_gQnytLadU9JJ4k6PoEi1uq9lDQyNNp2BI-lGS0QCpxQ5MGZ0mlpZGwTNfYdmHQXEuIRin5z86Jks38HPYgjLPH_pdrr-Fc5lFe8P9H5NkQ:1kBwnt:UPEVD2yko_ZI3DQVe-spTQ9ifSTNy4x7eOzZE8-4Rvg; expires=Sat, 12 Sep 2020 09:05:41 GMT; HttpOnly; Max-Age=1209600; Path=/; SameSite=Lax"},{"key":"Server","value":"Werkzeug/1.0.1 Python/3.8.2"},{"key":"Date","value":"Sat, 29 Aug 2020 09:05:41 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"detail\": \"Verification e-mail sent.\"\n}"}],"_postman_id":"d607467d-a54a-41fb-963a-685fea767e16"}],"id":"23639baa-adf9-407d-9cc1-c7e52c3f1688","description":"<p>Here lie all the endpoints related to Users, Authentication, Registration, and Social Authentication </p>\n","_postman_id":"23639baa-adf9-407d-9cc1-c7e52c3f1688"},{"name":"AcceptWebhook","id":"249fe1f1-b536-4a36-981c-2af6a9eb8308","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-Razorpay-Signature","value":"e6724c10abf32c7a13b8d5a04c3dcb03a4c47a7f0535388c04c3d1eb8a172ae0","type":"text"}],"body":{"mode":"raw","raw":"{\r\n   \"entity\":\"event\",\r\n   \"account_id\":\"acc_H2msCcifNMf8tC\",\r\n   \"event\":\"payment.captured\",\r\n   \"contains\":[\r\n      \"payment\"\r\n   ],\r\n   \"payload\":{\r\n      \"payment\":{\r\n         \"entity\":{\r\n            \"id\":\"pay_H5PK377pwN2l0f\",\r\n            \"entity\":\"payment\",\r\n            \"amount\":1030000,\r\n            \"currency\":\"USD\",\r\n            \"status\":\"captured\",\r\n            \"order_id\":\"order_H5PJl2AbdC0kPs\",\r\n            \"invoice_id\":\"None\",\r\n            \"international\":false,\r\n            \"method\":\"netbanking\",\r\n            \"amount_refunded\":0,\r\n            \"refund_status\":\"None\",\r\n            \"captured\":true,\r\n            \"description\":\"None\",\r\n            \"card_id\":\"None\",\r\n            \"bank\":\"SBIN\",\r\n            \"wallet\":\"None\",\r\n            \"vpa\":\"None\",\r\n            \"email\":\"jitusharma007@rediffmail.com\",\r\n            \"contact\":\"+917795855715\",\r\n            \"notes\":{\r\n               \"donor_name\":\"Parth Sharma\",\r\n               \"phone\":\"7735855725\",\r\n               \"email_address\":\"parth@gmail.com\",\r\n               \"pan_number\":\"DJWPS1322D\",\r\n               \"address\":\"HOUSE NO. 154/26 NEW COLONY RAMGANJ AJMER\",\r\n               \"nationality_or_domicile\": \"USA\",\r\n               \"zipcode\": \"97202\",\r\n               \"ypo_member_reference_name\": \"Param Kapur\",\r\n               \"ypo_region\": \"Pacific U.S.\",\r\n               \"ypo_chapter_name\": \"Portland\",\r\n               \"i_agree_to_the_terms_and_conditions\": \"Yes\"\r\n            },\r\n            \"fee\":2360,\r\n            \"tax\":360,\r\n            \"error_code\":\"None\",\r\n            \"error_description\":\"None\",\r\n            \"error_source\":\"None\",\r\n            \"error_step\":\"None\",\r\n            \"error_reason\":\"None\",\r\n            \"acquirer_data\":{\r\n               \"bank_transaction_id\":\"IGALBBCTN4\"\r\n            },\r\n            \"created_at\":1621258437\r\n         }\r\n      }\r\n   },\r\n   \"created_at\":1621258437\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/donation/payment_international/new","urlObject":{"path":["donation","payment_international","new"],"host":["http://localhost:8000"],"query":[],"variable":[]}},"response":[],"_postman_id":"249fe1f1-b536-4a36-981c-2af6a9eb8308"},{"name":"Get All Donations","id":"a6b0df77-daa9-499b-99d0-a6fed59d5a94","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"<value>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:8000/donation/get_all_donations/","urlObject":{"path":["donation","get_all_donations",""],"host":["http://localhost:8000"],"query":[{"disabled":true,"key":"limit","value":"2"},{"disabled":true,"key":"domestic","value":"true"},{"disabled":true,"key":"offset","value":"0"},{"disabled":true,"key":"international","value":"false"},{"disabled":true,"key":"search","value":"Param"},{"disabled":true,"key":"currency","value":"INR"}],"variable":[]}},"response":[{"id":"91556735-d561-44f1-a725-0bbb13e11c6b","name":"Get All Donations - With Filters","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:8000/donation/get_all_donations/?limit=2&domestic=true&offset=0&international=false&search=Param&currency=INR","host":["http://localhost:8000"],"path":["donation","get_all_donations",""],"query":[{"key":"limit","value":"2"},{"key":"domestic","value":"true"},{"key":"offset","value":"0"},{"key":"international","value":"false"},{"key":"search","value":"Param"},{"key":"currency","value":"INR"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 20 May 2021 05:22:04 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.8.2"},{"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":"898"},{"key":"Referrer-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"count\": 4,\n    \"next\": \"http://localhost:8000/donation/get_all_donations/?currency=INR&domestic=true&international=false&limit=2&offset=2&search=Param\",\n    \"previous\": null,\n    \"results\": [\n        {\n            \"amount\": 1000,\n            \"domestic\": true,\n            \"international\": false,\n            \"donor_name\": \"Param \",\n            \"donor_email\": \"paramkapur2002@gmail.com\",\n            \"donor_phone\": \"7795855715\",\n            \"donor_pan\": \"DJWPS1322D\",\n            \"donor_country\": \"India\",\n            \"donor_address\": \"HOUSE NO. 154/26 NEW COLONY RAMGANJ AJMER\",\n            \"donor_zipcode\": null,\n            \"payment_time\": \"2021-05-01T10:39:11+05:30\",\n            \"currency\": \"INR\",\n            \"meta\": {\n                \"organisation\": \"The Orange Yak Co.\"\n            }\n        },\n        {\n            \"amount\": 1000,\n            \"domestic\": true,\n            \"international\": false,\n            \"donor_name\": \"Param \",\n            \"donor_email\": \"paramkapur2002@gmail.com\",\n            \"donor_phone\": \"7795855715\",\n            \"donor_pan\": \"DJWPS1322D\",\n            \"donor_country\": \"India\",\n            \"donor_address\": \"HOUSE NO. 154/26 NEW COLONY RAMGANJ AJMER\",\n            \"donor_zipcode\": null,\n            \"payment_time\": \"2021-05-01T10:39:11+05:30\",\n            \"currency\": \"INR\",\n            \"meta\": {}\n        }\n    ]\n}"}],"_postman_id":"a6b0df77-daa9-499b-99d0-a6fed59d5a94"},{"name":"Get Statistics","id":"f2f5cf4e-ff5e-4ee1-9b6e-1e44dd1a3a8f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"<value>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:8000/donation/get_statistics/","urlObject":{"path":["donation","get_statistics",""],"host":["http://localhost:8000"],"query":[],"variable":[]}},"response":[{"id":"92b767c8-cf0a-43e1-9276-c666acc23960","name":"Get Statistics - With International","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8000/donation/get_statistics/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 20 May 2021 05:28:36 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.8.2"},{"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":"394"},{"key":"Referrer-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"domestic\": {\n        \"total\": {\n            \"amount__sum\": 114000\n        },\n        \"daily\": {\n            \"day\": [\n                \"04/05/21\",\n                \"05/05/21\",\n                \"06/05/21\",\n                \"07/05/21\",\n                \"08/05/21\",\n                \"09/05/21\",\n                \"10/05/21\"\n            ],\n            \"values\": [\n                0,\n                0,\n                0,\n                0,\n                0,\n                0,\n                1000\n            ]\n        },\n        \"count\": {\n            \"amount__count\": 5\n        }\n    },\n    \"international\": {\n        \"total\": {\n            \"amount__sum\": 2000\n        },\n        \"daily\": {\n            \"day\": [\n                \"25/04/21\",\n                \"26/04/21\",\n                \"27/04/21\",\n                \"28/04/21\",\n                \"29/04/21\",\n                \"30/04/21\",\n                \"01/05/21\"\n            ],\n            \"values\": [\n                0,\n                0,\n                0,\n                0,\n                0,\n                0,\n                2000\n            ]\n        },\n        \"count\": {\n            \"amount__count\": 2\n        }\n    }\n}"}],"_postman_id":"f2f5cf4e-ff5e-4ee1-9b6e-1e44dd1a3a8f"},{"name":"Export to CSV","id":"63d2f26f-152d-4d84-8f2c-fa528cbecc48","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"<value>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:8000/donation/export_to_csv/false/","description":"<p>This request will return a CSV file to the user with all the donations data. \nThe url pattern is as follows:\n<code>/donation/export_to_csv/&lt;true|false:domestic&gt;/</code>\nThe domestic and international flag changes depending on which interface the user clicks the download button.</p>\n","urlObject":{"path":["donation","export_to_csv","false",""],"host":["http://localhost:8000"],"query":[],"variable":[]}},"response":[{"id":"15906d23-c153-482d-b327-758c47e56780","name":"Export to CSV - Domestic","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8000/donation/export_to_csv/true/"},"status":"OK","code":200,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Sat, 05 Jun 2021 23:30:21 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.8.2"},{"key":"Content-Type","value":"text/csv"},{"key":"Content-Disposition","value":"attachment; filename=\"donor_data_export.csv\""},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"GET, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"541"},{"key":"Referrer-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"Source,Name,Email,Phone,Country,Amount,Currency,Date,organisation\r\nRazorpay Domestic,Param ,paramkapur2002@gmail.com,7795855715,India,1000,INR,01/05/21,The Orange Yak Co.\r\nRazorpay Domestic,Param ,paramkapur2002@gmail.com,7795855715,India,1000,INR,01/05/21\r\nRazorpay Domestic,Jitendra Sharma,paramkapur2002@gmail.com,7795855715,India,1000,INR,10/05/21\r\nRazorpay Domestic,Jitendra Sharma,param@theorangeyak.co,7795855715,India,1000,INR,01/05/21\r\nRazorpay Domestic,Niyati Nathani,Niyati_nathani@yahoo.com,9819418661,India,110000,INR,01/05/21\r\n"},{"id":"9a5bc690-50af-4585-8273-81a3789e9283","name":"Export to CSV - International","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8000/donation/export_to_csv/false/"},"status":"OK","code":200,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Sat, 05 Jun 2021 23:30:45 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.8.2"},{"key":"Content-Type","value":"text/csv"},{"key":"Content-Disposition","value":"attachment; filename=\"donor_data_export.csv\""},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"GET, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"308"},{"key":"Referrer-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"Source,Name,Email,Phone,Country,Amount,Currency,Date,pan_number,organisation\r\nRazorpay Domestic,Param ,paramkapur20021@gmail.com,7795855725,usa,1000,USD,01/05/21,DJWPS1322D,The Orange Yak Co.\r\nRazorpay Domestic,Param ,paramkapur20021@gmail.com,7795855725,usa,1000,USD,01/05/21,DJWPS1322D,The Orange Yak Co.\r\n"}],"_postman_id":"63d2f26f-152d-4d84-8f2c-fa528cbecc48"}],"event":[{"listen":"prerequest","script":{"id":"14fbe650-9c1b-48a3-ac77-f4b4a4a2a3ac","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"3e89d972-9f6f-42fb-8213-26cbd6c6da8c","type":"text/javascript","exec":[""]}}],"variable":[{"key":"baseUrl","value":"http://localhost:8000"}]}