{"info":{"_postman_id":"47a3e890-2c79-41ca-9fd2-5b482c6ca57c","name":"McDonald's Spain Promotion","description":"# Access\nAccess is restricted to whitelisted IP addresses only.\n\n# Authentication\nEach request will require basic 'Authorization' header to be present.\n\n**Syntax**\n\n`Authorization: <type\\> <credentials\\>`\n\n**Directives**\n\n`<type\\>`\n    Authentication type. In this case 'Basic'.\n\n`<credentials\\>`\n    The credentials are constructed like this:\n\n        The username and the password are combined with a colon (client_id:client_secret).\n        The resulting string is base64 encoded (Y2xpZW50X2lkOmNsaWVudF9zZWNyZXQ=).\n\n\n**Example header**\n`Authorization: Basic Y2xpZW50X2lkOmNsaWVudF9zZWNyZXQ=`\n\n\n# Error Codes\n\n\n<table>\n\t<tr>\n\t\t<td>**error_code**</td>\n\t\t<td>**detail**</td>\n\t\t<td>**notes**</td>\n\t</tr>\n\t<tr>\n\t\t<td>4000</td>\n\t\t<td>field errors</td>\n\t\t<td>Indicates an input parameter error. Details provided in the `fields` dictionary.</td>\n\t</tr>\n\t<tr>\n\t\t<td>4001</td>\n\t\t<td>The code is not valid.</td>\n\t\t<td>The code is not a valid code.</td>\n\t</tr>\n\t<tr>\n\t\t<td>4002</td>\n\t\t<td>The code has already been used.</td>\n\t\t<td>This code has already been redeemed by a user.</td>\n\t</tr>\n\t<tr>\n\t\t<td>4003</td>\n\t\t<td>This prize has already been redeemed.</td>\n\t\t<td>This code has already been redeemed by a user.</td>\n\t</tr>\n\t<tr>\n\t\t<td>4004</td>\n\t\t<td>The prize has expired.</td>\n\t\t<td>This prize has been redeemed and has now expired.</td>\n\t</tr>\n\t<tr>\n\t\t<td>4005</td>\n\t\t<td>The prize was not found.</td>\n\t\t<td>The prize with the requested id was not found.</td>\n\t</tr>\n\t<tr>\n\t\t<td>4006</td>\n\t\t<td>The prize has already been claimed.</td>\n\t\t<td>The prize has already been claimed.</td>\n\t</tr>\n\t<tr>\n\t\t<td>4007</td>\n\t\t<td>The prize does not belong to this user.</td>\n\t\t<td>The user id sent to claim does not match the one used at time of redemption.</td>\n\t</tr>\n\t<tr>\n\t\t<td>4008</td>\n\t\t<td>The prize has not yet been redeemed.</td>\n\t\t<td>Prizes must be first redeemed before they can be claimed.</td>\n\t</tr>\n\t<tr>\n\t\t<td>4009</td>\n\t\t<td>There was a problem redeeming your prize, please try again later.</td>\n\t\t<td>This error could occur when two users try to redeem the same prize at the same time.</td>\n\t</tr>\n\t<tr>\n\t\t<td>4010</td>\n\t\t<td>The limit of 15 unclaimed prizes has been reached.</td>\n\t\t<td>The user must claim some of their unclaimed prizes in order to redeem any more prizes.</td>\n\t</tr>\n</table>\n\n# Flow examples\n\nTypical user journey would start with a code.\n1. Code is passed to the `draw` enpoint. A prize is returned if code is valid.\n2. Prize ID and User ID are passed to the `redeem` endpoint. User is awared the prize and expire time starts.\n3. Prize ID and User ID are passed to the `claim` endpoint to claim the prize.\n\nAlternatively for minor prizes they have redeemed a code previously and have not claimed their minor prize.\n1. Redeemed unclaimed prizes are retrieved from the `inbox` endpoint.\n2. Prize ID and User ID are passed to the `claim` endpoint to start the timed burn process.\n\nAlternatively for major prizes they have redeemed a code previously and have not claimed their major prize.\n1. Redeemed unclaimed prizes are retrieved from the `inbox` endpoint.\n2. Prize ID, User ID and User claim information are passed to the `claim` endpoint to claim the major prize.","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json"},"item":[{"name":"inbox","event":[{"listen":"test","script":{"id":"1440c499-a99b-4977-a1eb-97576e194934","type":"text/javascript","exec":["tests[\"Response\"] = responseCode.code === 200;","","if (responseCode.code === 200) {","    var jsonData = JSON.parse(responseBody);","    for( var i = 0; i < jsonData.length; i++) {","        obj = jsonData[i];","        if (obj.claim === null) {","            postman.setEnvironmentVariable(\"prize_id\", obj.prize_id);","            break;","        }","    }","    ","}"]}}],"id":"5a87d287-3331-45ed-94bb-b5c2c1dbd1f8","request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"{{url}}/users/{{user_id}}/inbox","description":"Get all prizes that a user has redeemed.\n\n** NOTE: ** unix timestamps are in UTC"},"response":[{"id":"0f2b33f5-f36a-450c-a93c-57e3e6fbb5d2","name":"inbox","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","disabled":false}],"body":{"mode":"raw","raw":""},"url":"{{url}}/users/{{user_id}}/inbox"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Allow","value":"GET, HEAD, OPTIONS","name":"Allow","description":"Valid actions for a specified resource. To be used for a 405 Method not allowed"},{"key":"Content-Length","value":"2513","name":"Content-Length","description":"The length of the response body in octets (8-bit bytes)"},{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Wed, 15 Aug 2018 11:18:25 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.6.5","name":"Server","description":"A name for the server"},{"key":"Vary","value":"Cookie","name":"Vary","description":"Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server."},{"key":"X-Frame-Options","value":"SAMEORIGIN","name":"X-Frame-Options","description":"Clickjacking protection: \"deny\" - no rendering within a frame, \"sameorigin\" - no rendering if origin mismatch"}],"cookie":[{"expires":"Thu Aug 08 2019 02:29:12 GMT+0000 (Coordinated Universal Time)","httpOnly":false,"domain":"localhost","path":"/","secure":false,"value":"ysizC72sj5Gr0Uxpv3CjthB8vZFlwEXLdtVqeT7docuaOS6CttcJ6Iw0SCwqq65v","key":"csrftoken"},{"expires":"Tue Jan 19 2038 03:14:07 GMT+0000 (Coordinated Universal Time)","httpOnly":true,"domain":"localhost","path":"/","secure":false,"value":"\"6874acaac288027702c7accb798649ef7880ee1b$[[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054\\\"__messagesnotfinished__\\\"]\"","key":"messages"}],"responseTime":null,"body":"[\n    {\n        \"prize_id\": 6560,\n        \"prize_type_id\": 2,\n        \"prize_type_name\": \"Dinero (50€)\",\n        \"is_major\": true,\n        \"user_id\": \"1\",\n        \"seconds_to_claim\": 0,\n        \"prize_expires\": \"1534320195\",\n        \"redeemed_on\": \"1534320195\",\n        \"claim\": {\n            \"first_name\": \"James\",\n            \"last_name\": \"Kirk\",\n            \"dni\": \"99999999999R\",\n            \"address\": \"Captains cabin, USS Enterprise\",\n            \"city\": \"Urquat\",\n            \"post_code\": \"9999\",\n            \"date_of_birth\": \"2000-01-29\",\n            \"email\": \"jamestkirk@enterprise.com\",\n            \"phone\": \"0123456789\",\n            \"claimed_on\": \"1534320222\"\n        }\n    },\n    {\n        \"prize_id\": 6561,\n        \"prize_type_id\": 6,\n        \"prize_type_name\": \"Salsa BM (Botella)\",\n        \"is_major\": false,\n        \"user_id\": \"1\",\n        \"seconds_to_claim\": 86400,\n        \"prize_expires\": \"1534407880\",\n        \"redeemed_on\": \"1534321480\",\n        \"claim\": {\n            \"claimed_on\": \"1534321484\"\n        }\n    },\n    {\n        \"prize_id\": 6563,\n        \"prize_type_id\": 6,\n        \"prize_type_name\": \"Salsa BM (Botella)\",\n        \"is_major\": false,\n        \"user_id\": \"1\",\n        \"seconds_to_claim\": 86400,\n        \"prize_expires\": \"1534411250\",\n        \"redeemed_on\": \"1534324850\",\n        \"claim\": {\n            \"claimed_on\": \"1534324889\"\n        }\n    },\n    {\n        \"prize_id\": 6569,\n        \"prize_type_id\": 1,\n        \"prize_type_name\": \"Dinero (50.000€)\",\n        \"is_major\": true,\n        \"user_id\": \"1\",\n        \"seconds_to_claim\": 0,\n        \"prize_expires\": \"1534325034\",\n        \"redeemed_on\": \"1534325034\",\n        \"claim\": {\n            \"first_name\": \"James\",\n            \"last_name\": \"Kirk\",\n            \"dni\": \"99999999999R\",\n            \"address\": \"Captains cabin, USS Enterprise\",\n            \"city\": \"Urquat\",\n            \"post_code\": \"9999\",\n            \"date_of_birth\": \"2000-01-29\",\n            \"email\": \"jamestkirk@enterprise.com\",\n            \"phone\": \"0123456789\",\n            \"claimed_on\": \"1534325378\"\n        }\n    },\n    {\n        \"prize_id\": 6562,\n        \"prize_type_id\": 7,\n        \"prize_type_name\": \"BM gratis\",\n        \"is_major\": false,\n        \"user_id\": \"1\",\n        \"seconds_to_claim\": 86400,\n        \"prize_expires\": \"1534410739\",\n        \"redeemed_on\": \"1534324339\",\n        \"claim\": {\n            \"claimed_on\": \"1534325499\"\n        }\n    },\n    {\n        \"prize_id\": 6570,\n        \"prize_type_id\": 10,\n        \"prize_type_name\": \"Cono\",\n        \"is_major\": false,\n        \"user_id\": \"1\",\n        \"seconds_to_claim\": 86400,\n        \"prize_expires\": \"1534411968\",\n        \"redeemed_on\": \"1534325568\",\n        \"claim\": {\n            \"claimed_on\": \"1534327923\"\n        }\n    },\n    {\n        \"prize_id\": 6571,\n        \"prize_type_id\": 3,\n        \"prize_type_name\": \"Regalo físico (Notebook)\",\n        \"is_major\": false,\n        \"user_id\": \"1\",\n        \"seconds_to_claim\": 86400,\n        \"prize_expires\": \"1534414367\",\n        \"redeemed_on\": \"1534327967\",\n        \"claim\": {\n            \"claimed_on\": \"1534328142\"\n        }\n    },\n    {\n        \"prize_id\": 6572,\n        \"prize_type_id\": 5,\n        \"prize_type_name\": \"Salsa BM (Dip)\",\n        \"is_major\": false,\n        \"user_id\": \"1\",\n        \"seconds_to_claim\": 86400,\n        \"prize_expires\": \"1534414847\",\n        \"redeemed_on\": \"1534328447\",\n        \"claim\": null\n    },\n    {\n        \"prize_id\": 6573,\n        \"prize_type_id\": 2,\n        \"prize_type_name\": \"Dinero (50€)\",\n        \"is_major\": true,\n        \"user_id\": \"1\",\n        \"seconds_to_claim\": 0,\n        \"prize_expires\": \"1534331687\",\n        \"redeemed_on\": \"1534331687\",\n        \"claim\": {\n            \"first_name\": \"James\",\n            \"last_name\": \"Kirk\",\n            \"dni\": \"99999999999R\",\n            \"address\": \"Captains cabin, USS Enterprise\",\n            \"city\": \"Urquat\",\n            \"post_code\": \"9999\",\n            \"date_of_birth\": \"2000-01-29\",\n            \"email\": \"jamestkirk@enterprise.com\",\n            \"phone\": \"0123456789\",\n            \"claimed_on\": \"1534331877\"\n        }\n    }\n]"}],"_postman_id":"5a87d287-3331-45ed-94bb-b5c2c1dbd1f8"},{"name":"draw","event":[{"listen":"test","script":{"id":"59656a70-f4b1-4a8b-a23d-60c9c184f895","type":"text/javascript","exec":["tests[\"Response\"] = responseCode.code === 200;","","if (responseCode.code === 200) {","    var jsonData = JSON.parse(responseBody);","    postman.setEnvironmentVariable(\"prize_id\", jsonData[\"prize_id\"]);","    ","    // For testing","    // var code_suffix = Number(pm.globals.get('code_suffix', 1)) || 1;","    // code_suffix++;","    // pm.globals.set('code_suffix', code_suffix)","    // pm.environment.set('code', 'TEST'+code_suffix)","}"]}}],"id":"031cfb0e-e9ef-4138-985b-a4d09cea8e37","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"code\": \"{{code}}\"\n}"},"url":"{{url}}/draw","description":"Draw a prize with a code.\n\nThis endpoint will allocate a prize to a code."},"response":[{"id":"124421a9-f456-401c-85cb-f9f090d07d72","name":"draw minor","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","disabled":false}],"body":{"mode":"raw","raw":"{\n\t\"code\": \"{{code}}\"\n}"},"url":"{{url}}/draw"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Allow","value":"POST, OPTIONS","name":"Allow","description":"Valid actions for a specified resource. To be used for a 405 Method not allowed"},{"key":"Content-Length","value":"98","name":"Content-Length","description":"The length of the response body in octets (8-bit bytes)"},{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Wed, 15 Aug 2018 10:12:42 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.6.5","name":"Server","description":"A name for the server"},{"key":"Vary","value":"Cookie","name":"Vary","description":"Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server."},{"key":"X-Frame-Options","value":"SAMEORIGIN","name":"X-Frame-Options","description":"Clickjacking protection: \"deny\" - no rendering within a frame, \"sameorigin\" - no rendering if origin mismatch"}],"cookie":[{"expires":"Thu Aug 08 2019 02:29:12 GMT+0000 (Coordinated Universal Time)","httpOnly":false,"domain":"localhost","path":"/","secure":false,"value":"ysizC72sj5Gr0Uxpv3CjthB8vZFlwEXLdtVqeT7docuaOS6CttcJ6Iw0SCwqq65v","key":"csrftoken"},{"expires":"Tue Jan 19 2038 03:14:07 GMT+0000 (Coordinated Universal Time)","httpOnly":true,"domain":"localhost","path":"/","secure":false,"value":"\"6874acaac288027702c7accb798649ef7880ee1b$[[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054\\\"__messagesnotfinished__\\\"]\"","key":"messages"}],"responseTime":null,"body":"{\"prize_id\":6571,\"prize_type_id\":3,\"prize_type_name\":\"Regalo físico (Notebook)\",\"is_major\":false}"},{"id":"2d7919a6-31ab-445b-ac16-395928a90d4a","name":"draw e4002","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","disabled":false}],"body":{"mode":"raw","raw":"{\n\t\"code\": \"{{code}}\"\n}"},"url":"{{url}}/draw"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Allow","value":"POST, OPTIONS","name":"Allow","description":"Valid actions for a specified resource. To be used for a 405 Method not allowed"},{"key":"Content-Length","value":"75","name":"Content-Length","description":"The length of the response body in octets (8-bit bytes)"},{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Wed, 15 Aug 2018 10:17:31 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.6.5","name":"Server","description":"A name for the server"},{"key":"Vary","value":"Cookie","name":"Vary","description":"Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server."},{"key":"X-Frame-Options","value":"SAMEORIGIN","name":"X-Frame-Options","description":"Clickjacking protection: \"deny\" - no rendering within a frame, \"sameorigin\" - no rendering if origin mismatch"}],"cookie":[{"expires":"Thu Aug 08 2019 02:29:12 GMT+0000 (Coordinated Universal Time)","httpOnly":false,"domain":"localhost","path":"/","secure":false,"value":"ysizC72sj5Gr0Uxpv3CjthB8vZFlwEXLdtVqeT7docuaOS6CttcJ6Iw0SCwqq65v","key":"csrftoken"},{"expires":"Tue Jan 19 2038 03:14:07 GMT+0000 (Coordinated Universal Time)","httpOnly":true,"domain":"localhost","path":"/","secure":false,"value":"\"6874acaac288027702c7accb798649ef7880ee1b$[[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054\\\"__messagesnotfinished__\\\"]\"","key":"messages"}],"responseTime":null,"body":"{\n    \"error_code\": 4002,\n    \"detail\": \"The code has already been used.\"\n}"},{"id":"3bb7f5f0-bc0e-4b52-ba31-09fe0dd78207","name":"draw e4000","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","disabled":false}],"body":{"mode":"raw","raw":""},"url":"{{url}}/draw"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Allow","value":"POST, OPTIONS","name":"Allow","description":"Valid actions for a specified resource. To be used for a 405 Method not allowed"},{"key":"Content-Length","value":"100","name":"Content-Length","description":"The length of the response body in octets (8-bit bytes)"},{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Wed, 15 Aug 2018 10:18:24 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.6.5","name":"Server","description":"A name for the server"},{"key":"Vary","value":"Cookie","name":"Vary","description":"Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server."},{"key":"X-Frame-Options","value":"SAMEORIGIN","name":"X-Frame-Options","description":"Clickjacking protection: \"deny\" - no rendering within a frame, \"sameorigin\" - no rendering if origin mismatch"}],"cookie":[{"expires":"Thu Aug 08 2019 02:29:12 GMT+0000 (Coordinated Universal Time)","httpOnly":false,"domain":"localhost","path":"/","secure":false,"value":"ysizC72sj5Gr0Uxpv3CjthB8vZFlwEXLdtVqeT7docuaOS6CttcJ6Iw0SCwqq65v","key":"csrftoken"},{"expires":"Tue Jan 19 2038 03:14:07 GMT+0000 (Coordinated Universal Time)","httpOnly":true,"domain":"localhost","path":"/","secure":false,"value":"\"6874acaac288027702c7accb798649ef7880ee1b$[[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054\\\"__messagesnotfinished__\\\"]\"","key":"messages"}],"responseTime":null,"body":"{\n    \"error_code\": 4000,\n    \"detail\": \"field errors\",\n    \"fields\": {\n        \"code\": [\n            \"This field is required.\"\n        ]\n    }\n}"},{"id":"6fca04d3-fabb-468a-b3cc-3605e6f92ff3","name":"draw e4001","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","disabled":false}],"body":{"mode":"raw","raw":"{\n\t\"code\": \"INVALID CODE\"\n}"},"url":"{{url}}/draw"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Allow","value":"POST, OPTIONS","name":"Allow","description":"Valid actions for a specified resource. To be used for a 405 Method not allowed"},{"key":"Content-Length","value":"66","name":"Content-Length","description":"The length of the response body in octets (8-bit bytes)"},{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Wed, 15 Aug 2018 10:19:10 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.6.5","name":"Server","description":"A name for the server"},{"key":"Vary","value":"Cookie","name":"Vary","description":"Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server."},{"key":"X-Frame-Options","value":"SAMEORIGIN","name":"X-Frame-Options","description":"Clickjacking protection: \"deny\" - no rendering within a frame, \"sameorigin\" - no rendering if origin mismatch"}],"cookie":[{"expires":"Thu Aug 08 2019 02:29:12 GMT+0000 (Coordinated Universal Time)","httpOnly":false,"domain":"localhost","path":"/","secure":false,"value":"ysizC72sj5Gr0Uxpv3CjthB8vZFlwEXLdtVqeT7docuaOS6CttcJ6Iw0SCwqq65v","key":"csrftoken"},{"expires":"Tue Jan 19 2038 03:14:07 GMT+0000 (Coordinated Universal Time)","httpOnly":true,"domain":"localhost","path":"/","secure":false,"value":"\"6874acaac288027702c7accb798649ef7880ee1b$[[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054\\\"__messagesnotfinished__\\\"]\"","key":"messages"}],"responseTime":null,"body":"{\n    \"error_code\": 4001,\n    \"detail\": \"The code is not valid.\"\n}\n"},{"id":"7b0f2286-caa9-41bf-a103-bda21d70a448","name":"draw major","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","disabled":false}],"body":{"mode":"raw","raw":"{\n\t\"code\": \"{{code}}\"\n}"},"url":"{{url}}/draw"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Allow","value":"POST, OPTIONS","name":"Allow","description":"Valid actions for a specified resource. To be used for a 405 Method not allowed"},{"key":"Content-Length","value":"86","name":"Content-Length","description":"The length of the response body in octets (8-bit bytes)"},{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Wed, 15 Aug 2018 11:14:16 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.6.5","name":"Server","description":"A name for the server"},{"key":"Vary","value":"Cookie","name":"Vary","description":"Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server."},{"key":"X-Frame-Options","value":"SAMEORIGIN","name":"X-Frame-Options","description":"Clickjacking protection: \"deny\" - no rendering within a frame, \"sameorigin\" - no rendering if origin mismatch"}],"cookie":[{"expires":"Thu Aug 08 2019 02:29:12 GMT+0000 (Coordinated Universal Time)","httpOnly":false,"domain":"localhost","path":"/","secure":false,"value":"ysizC72sj5Gr0Uxpv3CjthB8vZFlwEXLdtVqeT7docuaOS6CttcJ6Iw0SCwqq65v","key":"csrftoken"},{"expires":"Tue Jan 19 2038 03:14:07 GMT+0000 (Coordinated Universal Time)","httpOnly":true,"domain":"localhost","path":"/","secure":false,"value":"\"6874acaac288027702c7accb798649ef7880ee1b$[[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054\\\"__messagesnotfinished__\\\"]\"","key":"messages"}],"responseTime":null,"body":"{\"prize_id\":6573,\"prize_type_id\":2,\"prize_type_name\":\"Dinero (50€)\",\"is_major\":true}"}],"_postman_id":"031cfb0e-e9ef-4138-985b-a4d09cea8e37"},{"name":"redeem","event":[{"listen":"test","script":{"id":"280c45a5-98c1-4579-b50e-17c5bd678f91","type":"text/javascript","exec":["tests[\"Response\"] = responseCode.code === 200;","","if (responseCode.code === 200) {","    var jsonData = JSON.parse(responseBody);","    postman.setEnvironmentVariable(\"prize_id\", jsonData[\"prize_id\"]);","    ","    // For testing","    // var code_suffix = Number(pm.globals.get('code_suffix', 1)) || 1;","    // code_suffix++;","    // pm.globals.set('code_suffix', code_suffix)","    // pm.environment.set('code', 'TEST'+code_suffix)","}"]}},{"listen":"prerequest","script":{"id":"6dd129ab-05ee-4850-9058-7ef9c49a4747","type":"text/javascript","exec":[""]}}],"id":"67710d57-8d52-4f60-82d6-c75a4808d892","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"user_id\": \"{{user_id}}\",\n\t\"prize_id\": \"{{prize_id}}\"\n}"},"url":"{{url}}/redeem","description":"Redeem a prize and assign it to the specified user.\n\n** NOTE: ** unix timestamps are in UTC"},"response":[{"id":"6f1d5b1f-e498-4e68-ad71-72ec693e434b","name":"redeem e4010","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","disabled":false}],"body":{"mode":"raw","raw":"{\n\t\"user_id\": \"{{user_id}}\",\n\t\"prize_id\": \"{{prize_id}}\"\n}"},"url":"{{url}}/redeem"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Allow","value":"POST, OPTIONS","name":"Allow","description":"Valid actions for a specified resource. To be used for a 405 Method not allowed"},{"key":"Content-Length","value":"81","name":"Content-Length","description":"The length of the response body in octets (8-bit bytes)"},{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Thu, 16 Aug 2018 01:58:27 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.6.5","name":"Server","description":"A name for the server"},{"key":"Vary","value":"Cookie","name":"Vary","description":"Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server."},{"key":"X-Frame-Options","value":"SAMEORIGIN","name":"X-Frame-Options","description":"Clickjacking protection: \"deny\" - no rendering within a frame, \"sameorigin\" - no rendering if origin mismatch"}],"cookie":[{"expires":"Thu Aug 08 2019 02:29:12 GMT+0000 (Coordinated Universal Time)","httpOnly":false,"domain":"localhost","path":"/","secure":false,"value":"ysizC72sj5Gr0Uxpv3CjthB8vZFlwEXLdtVqeT7docuaOS6CttcJ6Iw0SCwqq65v","key":"csrftoken"},{"expires":"Tue Jan 19 2038 03:14:07 GMT+0000 (Coordinated Universal Time)","httpOnly":true,"domain":"localhost","path":"/","secure":false,"value":"\"6874acaac288027702c7accb798649ef7880ee1b$[[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054\\\"__messagesnotfinished__\\\"]\"","key":"messages"}],"responseTime":null,"body":"{\"error_code\":4010,\"detail\":\"The limit of 15 unclaimed prizes has been reached.\"}"},{"id":"845b775f-613f-4d49-a353-6bcba58155d7","name":"redeem e4000","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","disabled":false}],"body":{"mode":"raw","raw":""},"url":"{{url}}/redeem"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Allow","value":"POST, OPTIONS","name":"Allow","description":"Valid actions for a specified resource. To be used for a 405 Method not allowed"},{"key":"Content-Length","value":"142","name":"Content-Length","description":"The length of the response body in octets (8-bit bytes)"},{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Wed, 15 Aug 2018 10:21:44 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.6.5","name":"Server","description":"A name for the server"},{"key":"Vary","value":"Cookie","name":"Vary","description":"Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server."},{"key":"X-Frame-Options","value":"SAMEORIGIN","name":"X-Frame-Options","description":"Clickjacking protection: \"deny\" - no rendering within a frame, \"sameorigin\" - no rendering if origin mismatch"}],"cookie":[{"expires":"Thu Aug 08 2019 02:29:12 GMT+0000 (Coordinated Universal Time)","httpOnly":false,"domain":"localhost","path":"/","secure":false,"value":"ysizC72sj5Gr0Uxpv3CjthB8vZFlwEXLdtVqeT7docuaOS6CttcJ6Iw0SCwqq65v","key":"csrftoken"},{"expires":"Tue Jan 19 2038 03:14:07 GMT+0000 (Coordinated Universal Time)","httpOnly":true,"domain":"localhost","path":"/","secure":false,"value":"\"6874acaac288027702c7accb798649ef7880ee1b$[[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054\\\"__messagesnotfinished__\\\"]\"","key":"messages"}],"responseTime":null,"body":"{\n    \"error_code\": 4000,\n    \"detail\": \"field errors\",\n    \"fields\": {\n        \"prize_id\": [\n            \"This field is required.\"\n        ],\n        \"user_id\": [\n            \"This field is required.\"\n        ]\n    }\n}"},{"id":"a413fbb3-a7e8-4b5d-98db-c8d250d182e6","name":"redeem minor","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","disabled":false}],"body":{"mode":"raw","raw":"{\n\t\"user_id\": \"{{user_id}}\",\n\t\"prize_id\": \"{{prize_id}}\"\n}"},"url":"{{url}}/redeem"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Allow","value":"POST, OPTIONS","name":"Allow","description":"Valid actions for a specified resource. To be used for a 405 Method not allowed"},{"key":"Content-Length","value":"182","name":"Content-Length","description":"The length of the response body in octets (8-bit bytes)"},{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Wed, 15 Aug 2018 10:20:47 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.6.5","name":"Server","description":"A name for the server"},{"key":"Vary","value":"Cookie","name":"Vary","description":"Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server."},{"key":"X-Frame-Options","value":"SAMEORIGIN","name":"X-Frame-Options","description":"Clickjacking protection: \"deny\" - no rendering within a frame, \"sameorigin\" - no rendering if origin mismatch"}],"cookie":[{"expires":"Thu Aug 08 2019 02:29:12 GMT+0000 (Coordinated Universal Time)","httpOnly":false,"domain":"localhost","path":"/","secure":false,"value":"ysizC72sj5Gr0Uxpv3CjthB8vZFlwEXLdtVqeT7docuaOS6CttcJ6Iw0SCwqq65v","key":"csrftoken"},{"expires":"Tue Jan 19 2038 03:14:07 GMT+0000 (Coordinated Universal Time)","httpOnly":true,"domain":"localhost","path":"/","secure":false,"value":"\"6874acaac288027702c7accb798649ef7880ee1b$[[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054\\\"__messagesnotfinished__\\\"]\"","key":"messages"}],"responseTime":null,"body":"{\"prize_id\":6572,\"prize_type_id\":5,\"prize_type_name\":\"Salsa BM (Dip)\",\"is_major\":false,\"user_id\":\"1\",\"seconds_to_claim\":86400,\"prize_expires\":\"1534414847\",\"redeemed_on\":\"1534328447\"}"},{"id":"b2b8b3d2-abf2-48d6-b198-1fbd96b3e277","name":"redeem major","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","disabled":false}],"body":{"mode":"raw","raw":"{\n\t\"user_id\": \"{{user_id}}\",\n\t\"prize_id\": \"{{prize_id}}\"\n}"},"url":"{{url}}/redeem"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Allow","value":"POST, OPTIONS","name":"Allow","description":"Valid actions for a specified resource. To be used for a 405 Method not allowed"},{"key":"Content-Length","value":"177","name":"Content-Length","description":"The length of the response body in octets (8-bit bytes)"},{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Wed, 15 Aug 2018 11:14:47 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.6.5","name":"Server","description":"A name for the server"},{"key":"Vary","value":"Cookie","name":"Vary","description":"Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server."},{"key":"X-Frame-Options","value":"SAMEORIGIN","name":"X-Frame-Options","description":"Clickjacking protection: \"deny\" - no rendering within a frame, \"sameorigin\" - no rendering if origin mismatch"}],"cookie":[{"expires":"Thu Aug 08 2019 02:29:12 GMT+0000 (Coordinated Universal Time)","httpOnly":false,"domain":"localhost","path":"/","secure":false,"value":"ysizC72sj5Gr0Uxpv3CjthB8vZFlwEXLdtVqeT7docuaOS6CttcJ6Iw0SCwqq65v","key":"csrftoken"},{"expires":"Tue Jan 19 2038 03:14:07 GMT+0000 (Coordinated Universal Time)","httpOnly":true,"domain":"localhost","path":"/","secure":false,"value":"\"6874acaac288027702c7accb798649ef7880ee1b$[[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054\\\"__messagesnotfinished__\\\"]\"","key":"messages"}],"responseTime":null,"body":"{\"prize_id\":6573,\"prize_type_id\":2,\"prize_type_name\":\"Dinero (50€)\",\"is_major\":true,\"user_id\":\"1\",\"seconds_to_claim\":0,\"prize_expires\":\"1534331687\",\"redeemed_on\":\"1534331687\"}"},{"id":"d9bf80f2-512e-4f56-b656-bd4690ae9903","name":"redeem e4003","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","disabled":false}],"body":{"mode":"raw","raw":"{\n\t\"user_id\": \"{{user_id}}\",\n\t\"prize_id\": \"{{prize_id}}\"\n}"},"url":"{{url}}/redeem"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Allow","value":"POST, OPTIONS","name":"Allow","description":"Valid actions for a specified resource. To be used for a 405 Method not allowed"},{"key":"Content-Length","value":"81","name":"Content-Length","description":"The length of the response body in octets (8-bit bytes)"},{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Wed, 15 Aug 2018 10:21:08 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.6.5","name":"Server","description":"A name for the server"},{"key":"Vary","value":"Cookie","name":"Vary","description":"Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server."},{"key":"X-Frame-Options","value":"SAMEORIGIN","name":"X-Frame-Options","description":"Clickjacking protection: \"deny\" - no rendering within a frame, \"sameorigin\" - no rendering if origin mismatch"}],"cookie":[{"expires":"Thu Aug 08 2019 02:29:12 GMT+0000 (Coordinated Universal Time)","httpOnly":false,"domain":"localhost","path":"/","secure":false,"value":"ysizC72sj5Gr0Uxpv3CjthB8vZFlwEXLdtVqeT7docuaOS6CttcJ6Iw0SCwqq65v","key":"csrftoken"},{"expires":"Tue Jan 19 2038 03:14:07 GMT+0000 (Coordinated Universal Time)","httpOnly":true,"domain":"localhost","path":"/","secure":false,"value":"\"6874acaac288027702c7accb798649ef7880ee1b$[[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054\\\"__messagesnotfinished__\\\"]\"","key":"messages"}],"responseTime":null,"body":"{\n    \"error_code\": 4003,\n    \"detail\": \"This prize has already been redeemed.\"\n}"}],"_postman_id":"67710d57-8d52-4f60-82d6-c75a4808d892"},{"name":"claim","id":"a27ff3a7-2479-4b0a-8939-8bd40d447e60","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"prize_id\": \"{{prize_id}}\",\n\t\"user_id\": \"{{user_id}}\",\n\t\"first_name\": \"{{first_name}}\",\n\t\"last_name\": \"{{last_name}}\",\n\t\"address\": \"{{address}}\",\n\t\"city\": \"{{city}}\",\n\t\"post_code\": \"{{post_code}}\",\n\t\"dni\": \"{{dni}}\",\n\t\"date_of_birth\": \"{{date_of_birth}}\",\n\t\"email\": \"{{email}}\",\n\t\"phone\": \"{{phone}}\"\n}"},"url":"{{url}}/claim","description":"Claim a prize.\n\n**NOTE:**\n- date format is YYYY-MM-DD\n- if the prize has not been redeemed this endpoint will automatcially redeem it and bypass the unclaimed prize limitation of redeem"},"response":[{"id":"00e63991-3d65-4444-bd86-fbff3e208d0f","name":"claim e4007","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","disabled":false}],"body":{"mode":"raw","raw":"{\n\t\"prize_id\": \"{{prize_id}}\",\n\t\"user_id\": \"WRONG USER\"\n}"},"url":"{{url}}/claim"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Allow","value":"POST, OPTIONS","name":"Allow","description":"Valid actions for a specified resource. To be used for a 405 Method not allowed"},{"key":"Content-Length","value":"83","name":"Content-Length","description":"The length of the response body in octets (8-bit bytes)"},{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Wed, 15 Aug 2018 10:22:54 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.6.5","name":"Server","description":"A name for the server"},{"key":"Vary","value":"Cookie","name":"Vary","description":"Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server."},{"key":"X-Frame-Options","value":"SAMEORIGIN","name":"X-Frame-Options","description":"Clickjacking protection: \"deny\" - no rendering within a frame, \"sameorigin\" - no rendering if origin mismatch"}],"cookie":[{"expires":"Thu Aug 08 2019 02:29:12 GMT+0000 (Coordinated Universal Time)","httpOnly":false,"domain":"localhost","path":"/","secure":false,"value":"ysizC72sj5Gr0Uxpv3CjthB8vZFlwEXLdtVqeT7docuaOS6CttcJ6Iw0SCwqq65v","key":"csrftoken"},{"expires":"Tue Jan 19 2038 03:14:07 GMT+0000 (Coordinated Universal Time)","httpOnly":true,"domain":"localhost","path":"/","secure":false,"value":"\"6874acaac288027702c7accb798649ef7880ee1b$[[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054\\\"__messagesnotfinished__\\\"]\"","key":"messages"}],"responseTime":null,"body":"{\n    \"error_code\": 4007,\n    \"detail\": \"The prize does not belong to this user.\"\n}"},{"id":"10d530e7-6ea9-454b-862e-4714840813f2","name":"claim multiple","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","disabled":false}],"body":{"mode":"raw","raw":"[\n\t{\n\t\t\"prize_id\": \"{{prize_id_1}}\",\n\t\t\"user_id\": \"{{user_id}}\"\n\t},\n\t{\n\t\t\"prize_id\": \"{{prize_id_2}}\",\n\t\t\"user_id\": \"{{user_id}}\"\n\t},\n\t{\n\t\t\"prize_id\": \"{{prize_id_3}}\",\n\t\t\"user_id\": \"{{user_id}}\"\n\t}\n]"},"url":"{{url}}/claim"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Allow","value":"POST, OPTIONS","name":"Allow","description":"Valid actions for a specified resource. To be used for a 405 Method not allowed"},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Encoding","value":"gzip","name":"Content-Encoding","description":"The type of encoding used on the data."},{"key":"Content-Length","value":"260","name":"Content-Length","description":"The length of the response body in octets (8-bit bytes)"},{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Thu, 23 Aug 2018 23:28:58 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx/1.12.1","name":"Server","description":"A name for the server"},{"key":"Vary","value":"Cookie","name":"Vary","description":"Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server."},{"key":"X-Frame-Options","value":"SAMEORIGIN","name":"X-Frame-Options","description":"Clickjacking protection: \"deny\" - no rendering within a frame, \"sameorigin\" - no rendering if origin mismatch"}],"cookie":[],"responseTime":null,"body":"[{\"prize_id\":24,\"prize_type_id\":4,\"prize_type_name\":\"Regalo físico (Calcetines)\",\"is_major\":false,\"user_id\":\"jamestkirk@enterprise.com\",\"seconds_to_claim\":604800,\"prize_expires\":\"1535671374\",\"redeemed_on\":\"1535066574\",\"claim\":{\"claimed_on\":\"1535066938\"}},{\"prize_id\":34,\"prize_type_id\":5,\"prize_type_name\":\"Salsa BM (Dip)\",\"is_major\":false,\"user_id\":\"jamestkirk@enterprise.com\",\"seconds_to_claim\":604800,\"prize_expires\":\"1535671417\",\"redeemed_on\":\"1535066617\",\"claim\":{\"claimed_on\":\"1535066938\"}},{\"prize_id\":35,\"prize_type_id\":7,\"prize_type_name\":\"BM gratis\",\"is_major\":false,\"user_id\":\"jamestkirk@enterprise.com\",\"seconds_to_claim\":604800,\"prize_expires\":\"1535671442\",\"redeemed_on\":\"1535066642\",\"claim\":{\"claimed_on\":\"1535066938\"}}]"},{"id":"20d13c60-d18a-42e6-97a8-9a92c3f73c0a","name":"claim major","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","disabled":false}],"body":{"mode":"raw","raw":"{\n\t\"prize_id\": \"{{prize_id}}\",\n\t\"user_id\": \"{{user_id}}\",\n\t\"first_name\": \"{{first_name}}\",\n\t\"last_name\": \"{{last_name}}\",\n\t\"address\": \"{{address}}\",\n\t\"dni\": \"{{dni}}\",\n\t\"date_of_birth\": \"{{date_of_birth}}\",\n\t\"email\": \"{{email}}\",\n\t\"phone\": \"{{phone}}\"\n}"},"url":"{{url}}/claim"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Allow","value":"POST, OPTIONS","name":"Allow","description":"Valid actions for a specified resource. To be used for a 405 Method not allowed"},{"key":"Content-Length","value":"403","name":"Content-Length","description":"The length of the response body in octets (8-bit bytes)"},{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Wed, 15 Aug 2018 11:17:57 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.6.5","name":"Server","description":"A name for the server"},{"key":"Vary","value":"Cookie","name":"Vary","description":"Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server."},{"key":"X-Frame-Options","value":"SAMEORIGIN","name":"X-Frame-Options","description":"Clickjacking protection: \"deny\" - no rendering within a frame, \"sameorigin\" - no rendering if origin mismatch"}],"cookie":[{"expires":"Thu Aug 08 2019 02:29:12 GMT+0000 (Coordinated Universal Time)","httpOnly":false,"domain":"localhost","path":"/","secure":false,"value":"ysizC72sj5Gr0Uxpv3CjthB8vZFlwEXLdtVqeT7docuaOS6CttcJ6Iw0SCwqq65v","key":"csrftoken"},{"expires":"Tue Jan 19 2038 03:14:07 GMT+0000 (Coordinated Universal Time)","httpOnly":true,"domain":"localhost","path":"/","secure":false,"value":"\"6874acaac288027702c7accb798649ef7880ee1b$[[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054\\\"__messagesnotfinished__\\\"]\"","key":"messages"}],"responseTime":null,"body":"{\n    \"prize_id\": 6573,\n    \"prize_type_id\": 2,\n    \"prize_type_name\": \"Dinero (50€)\",\n    \"is_major\": true,\n    \"user_id\": \"1\",\n    \"seconds_to_claim\": 0,\n    \"prize_expires\": \"1534331687\",\n    \"redeemed_on\": \"1534331687\",\n    \"claim\": {\n        \"first_name\": \"James\",\n        \"last_name\": \"Kirk\",\n        \"dni\": \"99999999999R\",\n        \"address\": \"Captains cabin, USS Enterprise\",\n        \"city\": \"Urquat\",\n        \"post_code\": \"9999\",\n        \"date_of_birth\": \"2000-01-29\",\n        \"email\": \"jamestkirk@enterprise.com\",\n        \"phone\": \"0123456789\",\n        \"claimed_on\": \"1534331877\"\n    }\n}"},{"id":"471738a0-e28c-4134-9d8b-3e626952513d","name":"claim e4000 minor","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","disabled":false}],"body":{"mode":"raw","raw":""},"url":"{{url}}/claim"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Allow","value":"POST, OPTIONS","name":"Allow","description":"Valid actions for a specified resource. To be used for a 405 Method not allowed"},{"key":"Content-Length","value":"142","name":"Content-Length","description":"The length of the response body in octets (8-bit bytes)"},{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Wed, 15 Aug 2018 11:09:03 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.6.5","name":"Server","description":"A name for the server"},{"key":"Vary","value":"Cookie","name":"Vary","description":"Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server."},{"key":"X-Frame-Options","value":"SAMEORIGIN","name":"X-Frame-Options","description":"Clickjacking protection: \"deny\" - no rendering within a frame, \"sameorigin\" - no rendering if origin mismatch"}],"cookie":[{"expires":"Thu Aug 08 2019 02:29:12 GMT+0000 (Coordinated Universal Time)","httpOnly":false,"domain":"localhost","path":"/","secure":false,"value":"ysizC72sj5Gr0Uxpv3CjthB8vZFlwEXLdtVqeT7docuaOS6CttcJ6Iw0SCwqq65v","key":"csrftoken"},{"expires":"Tue Jan 19 2038 03:14:07 GMT+0000 (Coordinated Universal Time)","httpOnly":true,"domain":"localhost","path":"/","secure":false,"value":"\"6874acaac288027702c7accb798649ef7880ee1b$[[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054\\\"__messagesnotfinished__\\\"]\"","key":"messages"}],"responseTime":null,"body":"{\n    \"error_code\": 4000,\n    \"detail\": \"field errors\",\n    \"fields\": {\n        \"prize_id\": [\n            \"This field is required.\"\n        ],\n        \"user_id\": [\n            \"This field is required.\"\n        ]\n    }\n}"},{"id":"71a23dbf-46d4-4eb2-8216-9c7ddee10d8f","name":"claim e4000 major","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","disabled":false}],"body":{"mode":"raw","raw":"{\n\t\"prize_id\": \"{{prize_id}}\",\n\t\"user_id\": \"{{user_id}}\"\n}"},"url":"{{url}}/claim"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Allow","value":"POST, OPTIONS","name":"Allow","description":"Valid actions for a specified resource. To be used for a 405 Method not allowed"},{"key":"Content-Length","value":"334","name":"Content-Length","description":"The length of the response body in octets (8-bit bytes)"},{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Wed, 15 Aug 2018 11:17:18 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.6.5","name":"Server","description":"A name for the server"},{"key":"Vary","value":"Cookie","name":"Vary","description":"Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server."},{"key":"X-Frame-Options","value":"SAMEORIGIN","name":"X-Frame-Options","description":"Clickjacking protection: \"deny\" - no rendering within a frame, \"sameorigin\" - no rendering if origin mismatch"}],"cookie":[{"expires":"Thu Aug 08 2019 02:29:12 GMT+0000 (Coordinated Universal Time)","httpOnly":false,"domain":"localhost","path":"/","secure":false,"value":"ysizC72sj5Gr0Uxpv3CjthB8vZFlwEXLdtVqeT7docuaOS6CttcJ6Iw0SCwqq65v","key":"csrftoken"},{"expires":"Tue Jan 19 2038 03:14:07 GMT+0000 (Coordinated Universal Time)","httpOnly":true,"domain":"localhost","path":"/","secure":false,"value":"\"6874acaac288027702c7accb798649ef7880ee1b$[[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054\\\"__messagesnotfinished__\\\"]\"","key":"messages"}],"responseTime":null,"body":"{\n    \"error_code\": 4000,\n    \"detail\": \"field errors\",\n    \"fields\": {\n        \"first_name\": [\n            \"This field is required.\"\n        ],\n        \"last_name\": [\n            \"This field is required.\"\n        ],\n        \"dni\": [\n            \"This field is required.\"\n        ],\n        \"address\": [\n            \"This field is required.\"\n        ],\n        \"city\": [\n            \"This field is required.\"\n        ],\n        \"post_code\": [\n            \"This field is required.\"\n        ],\n        \"date_of_birth\": [\n            \"This field is required.\"\n        ],\n        \"email\": [\n            \"This field is required.\"\n        ],\n        \"phone\": [\n            \"This field is required.\"\n        ]\n    }\n}"},{"id":"e7e182e3-fe3d-4807-aa19-78cf965fb9d7","name":"claim minor","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","disabled":false}],"body":{"mode":"raw","raw":"{\n\t\"prize_id\": \"{{prize_id}}\",\n\t\"user_id\": \"{{user_id}}\",\n\t\"first_name\": \"{{first_name}}\",\n\t\"last_name\": \"{{last_name}}\",\n\t\"address\": \"{{address}}\",\n\t\"dni\": \"{{dni}}\",\n\t\"date_of_birth\": \"{{date_of_birth}}\",\n\t\"email\": \"{{email}}\",\n\t\"phone\": \"{{phone}}\"\n}"},"url":"{{url}}/claim"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Allow","value":"POST, OPTIONS","name":"Allow","description":"Valid actions for a specified resource. To be used for a 405 Method not allowed"},{"key":"Content-Length","value":"229","name":"Content-Length","description":"The length of the response body in octets (8-bit bytes)"},{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Wed, 15 Aug 2018 10:15:42 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.6.5","name":"Server","description":"A name for the server"},{"key":"Vary","value":"Cookie","name":"Vary","description":"Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server."},{"key":"X-Frame-Options","value":"SAMEORIGIN","name":"X-Frame-Options","description":"Clickjacking protection: \"deny\" - no rendering within a frame, \"sameorigin\" - no rendering if origin mismatch"}],"cookie":[{"expires":"Thu Aug 08 2019 02:29:12 GMT+0000 (Coordinated Universal Time)","httpOnly":false,"domain":"localhost","path":"/","secure":false,"value":"ysizC72sj5Gr0Uxpv3CjthB8vZFlwEXLdtVqeT7docuaOS6CttcJ6Iw0SCwqq65v","key":"csrftoken"},{"expires":"Tue Jan 19 2038 03:14:07 GMT+0000 (Coordinated Universal Time)","httpOnly":true,"domain":"localhost","path":"/","secure":false,"value":"\"6874acaac288027702c7accb798649ef7880ee1b$[[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054\\\"__messagesnotfinished__\\\"]\"","key":"messages"}],"responseTime":null,"body":"{\"prize_id\":6571,\"prize_type_id\":3,\"prize_type_name\":\"Regalo físico (Notebook)\",\"is_major\":false,\"user_id\":\"1\",\"seconds_to_claim\":86400,\"prize_expires\":\"1534414367\",\"redeemed_on\":\"1534327967\",\"claim\":{\"claimed_on\":\"1534328142\"}}"}],"_postman_id":"a27ff3a7-2479-4b0a-8939-8bd40d447e60"},{"name":"validate","id":"69938934-2f0d-46ae-89db-72c36823bcab","request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":{"raw":"{{url}}/validate?code={{code}}","host":["{{url}}"],"path":["validate"],"query":[{"key":"code","value":"{{code}}"}]},"description":"Check the status of a code without performing any actions.\n\n** NOTE: ** unix timestamps are in UTC"},"response":[{"id":"240227ca-6d4b-4731-bb0e-03b64cc96dab","name":"validate (valid but not drawm, redeemed or claimed)","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","disabled":false}],"body":{"mode":"raw","raw":""},"url":{"raw":"{{url}}/validate?code={{code}}","host":["{{url}}"],"path":["validate"],"query":[{"key":"code","value":"{{code}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Allow","value":"GET, HEAD, OPTIONS","name":"Allow","description":"Valid actions for a specified resource. To be used for a 405 Method not allowed"},{"key":"Content-Length","value":"62","name":"Content-Length","description":"The length of the response body in octets (8-bit bytes)"},{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Mon, 20 Aug 2018 10:27:33 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.6.5","name":"Server","description":"A name for the server"},{"key":"Vary","value":"Cookie","name":"Vary","description":"Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server."},{"key":"X-Frame-Options","value":"SAMEORIGIN","name":"X-Frame-Options","description":"Clickjacking protection: \"deny\" - no rendering within a frame, \"sameorigin\" - no rendering if origin mismatch"}],"cookie":[{"expires":"Thu Aug 08 2019 02:29:12 GMT+0000 (Coordinated Universal Time)","httpOnly":false,"domain":"localhost","path":"/","secure":false,"value":"ysizC72sj5Gr0Uxpv3CjthB8vZFlwEXLdtVqeT7docuaOS6CttcJ6Iw0SCwqq65v","key":"csrftoken"},{"expires":"Tue Jan 19 2038 03:14:07 GMT+0000 (Coordinated Universal Time)","httpOnly":true,"domain":"localhost","path":"/","secure":false,"value":"\"6874acaac288027702c7accb798649ef7880ee1b$[[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054\\\"__messagesnotfinished__\\\"]\"","key":"messages"}],"responseTime":null,"body":"{\"valid\":true,\"redeemed\":false,\"claimed\":false,\"user_id\":null}"},{"id":"5ed45c36-5a4d-47d3-ad66-1df3b4cf3b25","name":"validate (claimed)","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","disabled":false}],"body":{"mode":"raw","raw":""},"url":{"raw":"{{url}}/validate?code={{code}}","host":["{{url}}"],"path":["validate"],"query":[{"key":"code","value":"{{code}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Allow","value":"GET, HEAD, OPTIONS","name":"Allow","description":"Valid actions for a specified resource. To be used for a 405 Method not allowed"},{"key":"Content-Length","value":"296","name":"Content-Length","description":"The length of the response body in octets (8-bit bytes)"},{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Mon, 20 Aug 2018 10:35:59 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.6.5","name":"Server","description":"A name for the server"},{"key":"Vary","value":"Cookie","name":"Vary","description":"Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server."},{"key":"X-Frame-Options","value":"SAMEORIGIN","name":"X-Frame-Options","description":"Clickjacking protection: \"deny\" - no rendering within a frame, \"sameorigin\" - no rendering if origin mismatch"}],"cookie":[{"expires":"Thu Aug 08 2019 02:29:12 GMT+0000 (Coordinated Universal Time)","httpOnly":false,"domain":"localhost","path":"/","secure":false,"value":"ysizC72sj5Gr0Uxpv3CjthB8vZFlwEXLdtVqeT7docuaOS6CttcJ6Iw0SCwqq65v","key":"csrftoken"},{"expires":"Tue Jan 19 2038 03:14:07 GMT+0000 (Coordinated Universal Time)","httpOnly":true,"domain":"localhost","path":"/","secure":false,"value":"\"6874acaac288027702c7accb798649ef7880ee1b$[[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054\\\"__messagesnotfinished__\\\"]\"","key":"messages"}],"responseTime":null,"body":"{\"valid\":true,\"redeemed\":true,\"claimed\":true,\"user_id\":\"1\",\"prize\":{\"prize_id\":6592,\"prize_type_id\":9,\"prize_type_name\":\"Patatas pequeñas gratis\",\"is_major\":false,\"user_id\":\"1\",\"seconds_to_claim\":86400,\"prize_expires\":\"1534847688\",\"redeemed_on\":\"1534761288\",\"claim\":{\"claimed_on\":\"1534761354\"}}}"},{"id":"61970907-e80a-4a77-87eb-319216cc58e7","name":"validate (redeemd, but not claimed)","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","disabled":false}],"body":{"mode":"raw","raw":""},"url":{"raw":"{{url}}/validate?code={{code}}","host":["{{url}}"],"path":["validate"],"query":[{"key":"code","value":"{{code}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Allow","value":"GET, HEAD, OPTIONS","name":"Allow","description":"Valid actions for a specified resource. To be used for a 405 Method not allowed"},{"key":"Content-Length","value":"261","name":"Content-Length","description":"The length of the response body in octets (8-bit bytes)"},{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Mon, 20 Aug 2018 10:34:57 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.6.5","name":"Server","description":"A name for the server"},{"key":"Vary","value":"Cookie","name":"Vary","description":"Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server."},{"key":"X-Frame-Options","value":"SAMEORIGIN","name":"X-Frame-Options","description":"Clickjacking protection: \"deny\" - no rendering within a frame, \"sameorigin\" - no rendering if origin mismatch"}],"cookie":[{"expires":"Thu Aug 08 2019 02:29:12 GMT+0000 (Coordinated Universal Time)","httpOnly":false,"domain":"localhost","path":"/","secure":false,"value":"ysizC72sj5Gr0Uxpv3CjthB8vZFlwEXLdtVqeT7docuaOS6CttcJ6Iw0SCwqq65v","key":"csrftoken"},{"expires":"Tue Jan 19 2038 03:14:07 GMT+0000 (Coordinated Universal Time)","httpOnly":true,"domain":"localhost","path":"/","secure":false,"value":"\"6874acaac288027702c7accb798649ef7880ee1b$[[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054\\\"__messagesnotfinished__\\\"]\"","key":"messages"}],"responseTime":null,"body":"{\"valid\":true,\"redeemed\":true,\"claimed\":false,\"user_id\":\"1\",\"prize\":{\"prize_id\":6592,\"prize_type_id\":9,\"prize_type_name\":\"Patatas pequeñas gratis\",\"is_major\":false,\"user_id\":\"1\",\"seconds_to_claim\":86400,\"prize_expires\":\"1534847688\",\"redeemed_on\":\"1534761288\"}}"},{"id":"79056176-a8e3-4545-8724-4d1514eb751c","name":"validate (drawn but not redeemed or claimed)","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","disabled":false}],"body":{"mode":"raw","raw":""},"url":{"raw":"{{url}}/validate?code={{code}}","host":["{{url}}"],"path":["validate"],"query":[{"key":"code","value":"{{code}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Allow","value":"GET, HEAD, OPTIONS","name":"Allow","description":"Valid actions for a specified resource. To be used for a 405 Method not allowed"},{"key":"Content-Length","value":"168","name":"Content-Length","description":"The length of the response body in octets (8-bit bytes)"},{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Mon, 20 Aug 2018 10:33:13 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.6.5","name":"Server","description":"A name for the server"},{"key":"Vary","value":"Cookie","name":"Vary","description":"Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server."},{"key":"X-Frame-Options","value":"SAMEORIGIN","name":"X-Frame-Options","description":"Clickjacking protection: \"deny\" - no rendering within a frame, \"sameorigin\" - no rendering if origin mismatch"}],"cookie":[{"expires":"Thu Aug 08 2019 02:29:12 GMT+0000 (Coordinated Universal Time)","httpOnly":false,"domain":"localhost","path":"/","secure":false,"value":"ysizC72sj5Gr0Uxpv3CjthB8vZFlwEXLdtVqeT7docuaOS6CttcJ6Iw0SCwqq65v","key":"csrftoken"},{"expires":"Tue Jan 19 2038 03:14:07 GMT+0000 (Coordinated Universal Time)","httpOnly":true,"domain":"localhost","path":"/","secure":false,"value":"\"6874acaac288027702c7accb798649ef7880ee1b$[[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054\\\"__messagesnotfinished__\\\"]\"","key":"messages"}],"responseTime":null,"body":"{\"valid\":true,\"redeemed\":false,\"claimed\":false,\"user_id\":null,\"prize\":{\"prize_id\":6592,\"prize_type_id\":9,\"prize_type_name\":\"Patatas pequeñas gratis\",\"is_major\":false}}"}],"_postman_id":"69938934-2f0d-46ae-89db-72c36823bcab"},{"name":"prizetypes","event":[{"listen":"test","script":{"id":"e3efc27e-1628-4bbe-91ec-2e0658be94d4","type":"text/javascript","exec":["tests[\"Response\"] = responseCode.code === 200;","","// if (responseCode.code === 200) {","//     var jsonData = JSON.parse(responseBody);","//     for( var i = 0; i < jsonData.length; i++) {","//         obj = jsonData[i];","//         if (obj.claim === null) {","//             postman.setEnvironmentVariable(\"prize_id\", obj.id);","//             break;","//         }","//     }","    ","// }"]}}],"id":"1734ae72-1753-443c-8c81-95d22e8c8b19","request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"{{url}}/prizetypes","description":"Get the list of prize types and their ids for the promotion."},"response":[{"id":"442245e8-1182-4540-bbdd-20ccadd71e08","name":"prizetypes","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","disabled":false}],"body":{"mode":"raw","raw":""},"url":"{{url}}/prizetypes"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Allow","value":"GET, HEAD, OPTIONS","name":"Allow","description":"Valid actions for a specified resource. To be used for a 405 Method not allowed"},{"key":"Content-Length","value":"777","name":"Content-Length","description":"The length of the response body in octets (8-bit bytes)"},{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Wed, 15 Aug 2018 11:27:33 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.6.5","name":"Server","description":"A name for the server"},{"key":"Vary","value":"Cookie","name":"Vary","description":"Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server."},{"key":"X-Frame-Options","value":"SAMEORIGIN","name":"X-Frame-Options","description":"Clickjacking protection: \"deny\" - no rendering within a frame, \"sameorigin\" - no rendering if origin mismatch"}],"cookie":[{"expires":"Thu Aug 08 2019 02:29:12 GMT+0000 (Coordinated Universal Time)","httpOnly":false,"domain":"localhost","path":"/","secure":false,"value":"ysizC72sj5Gr0Uxpv3CjthB8vZFlwEXLdtVqeT7docuaOS6CttcJ6Iw0SCwqq65v","key":"csrftoken"},{"expires":"Tue Jan 19 2038 03:14:07 GMT+0000 (Coordinated Universal Time)","httpOnly":true,"domain":"localhost","path":"/","secure":false,"value":"\"6874acaac288027702c7accb798649ef7880ee1b$[[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054\\\"__messagesnotfinished__\\\"]\"","key":"messages"}],"responseTime":null,"body":"[{\"id\":9,\"name\":\"Patatas pequeñas gratis\",\"seconds_to_claim\":86400,\"is_major\":false},{\"id\":4,\"name\":\"Regalo físico (Calcetines)\",\"seconds_to_claim\":86400,\"is_major\":false},{\"id\":7,\"name\":\"BM gratis\",\"seconds_to_claim\":86400,\"is_major\":false},{\"id\":6,\"name\":\"Salsa BM (Botella)\",\"seconds_to_claim\":86400,\"is_major\":false},{\"id\":8,\"name\":\"Bebida pequeña gratis\",\"seconds_to_claim\":86400,\"is_major\":false},{\"id\":1,\"name\":\"Dinero (50.000€)\",\"seconds_to_claim\":0,\"is_major\":true},{\"id\":10,\"name\":\"Cono\",\"seconds_to_claim\":86400,\"is_major\":false},{\"id\":3,\"name\":\"Regalo físico (Notebook)\",\"seconds_to_claim\":86400,\"is_major\":false},{\"id\":5,\"name\":\"Salsa BM (Dip)\",\"seconds_to_claim\":86400,\"is_major\":false},{\"id\":2,\"name\":\"Dinero (50€)\",\"seconds_to_claim\":0,\"is_major\":true}]"}],"_postman_id":"1734ae72-1753-443c-8c81-95d22e8c8b19"},{"name":"health","id":"d8257a5f-f192-4361-af7e-155de55a4b4d","request":{"auth":{"type":"noauth"},"method":"GET","header":[],"body":{"mode":"raw","raw":""},"url":"{{url}}/health","description":"Simple API health check endpoint."},"response":[{"id":"ffb3ba38-4d64-445b-a968-09263247107f","name":"health","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":""},"url":"{{url}}/health"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Allow","value":"GET, HEAD, OPTIONS","name":"Allow","description":"Valid actions for a specified resource. To be used for a 405 Method not allowed"},{"key":"Content-Length","value":"4","name":"Content-Length","description":"The length of the response body in octets (8-bit bytes)"},{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Wed, 15 Aug 2018 11:28:50 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.6.5","name":"Server","description":"A name for the server"},{"key":"X-Frame-Options","value":"SAMEORIGIN","name":"X-Frame-Options","description":"Clickjacking protection: \"deny\" - no rendering within a frame, \"sameorigin\" - no rendering if origin mismatch"}],"cookie":[{"expires":"Thu Aug 08 2019 02:29:12 GMT+0000 (Coordinated Universal Time)","httpOnly":false,"domain":"localhost","path":"/","secure":false,"value":"ysizC72sj5Gr0Uxpv3CjthB8vZFlwEXLdtVqeT7docuaOS6CttcJ6Iw0SCwqq65v","key":"csrftoken"},{"expires":"Tue Jan 19 2038 03:14:07 GMT+0000 (Coordinated Universal Time)","httpOnly":true,"domain":"localhost","path":"/","secure":false,"value":"\"6874acaac288027702c7accb798649ef7880ee1b$[[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05420\\054\\\"Confirmation e-mail sent to mr.babic@gmail.com.\\\"]\\054[\\\"__json_message\\\"\\0540\\05425\\054\\\"Successfully signed in as mr.babic@gmail.com.\\\"]\\054\\\"__messagesnotfinished__\\\"]\"","key":"messages"}],"responseTime":null,"body":"\"OK\""}],"_postman_id":"d8257a5f-f192-4361-af7e-155de55a4b4d"}],"auth":{"type":"basic","basic":{"username":"{{client_id}}","password":"{{client_secret}}","showPassword":false}},"event":[{"listen":"prerequest","script":{"id":"b90e91c4-b973-4027-8e79-1de16382c0e7","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"65ee1dfa-7127-448e-97d5-3c1027659e26","type":"text/javascript","exec":[""]}}]}