{"info":{"_postman_id":"3b1f05c7-ee60-4e6d-b852-9a539b3d7370","name":"BeEvent API","description":"**Testsystem**: {{url}}\n\nAn *uuid* is always a standard guid.\n\nAn *id* is always a 10-digit number stored as a string.\n\n# Test accounts\n\n## Customer\n\nThis API documentation will this test account:\n\n|attribute|value|\n|----|----|\n|e-mail|test@beevent-api.de|\n|password|123456|\n|first_name|Ticketsystem|\n|last_name|Testkunde|\n|street|Teststraße|\n|street_number|12|\n|zip_code|12345|\n|city|Testort|\n\nYou can use this account to issue your requests. A valid JWT token for that account is:\n*eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJERkNFRTU5Qy05MjMxLTQzMjktOUVDQy1DRDI0OEUzQTcxNEQifQ.QPNS0kHnP6O2khCeyDYZgnCOBjd1Eb5BWlnDmnp-Kmw*\nIf you're using Postman, this token is already set for all requests by default!\n\n## User\n\n|attribute|value|\n|----|----|\n|user_name|TestB|\n|password|123456|\n|real_name|API Testbenutzer|\n\nYou can use this account to issue your requests. A valid JWT token for that account is:\n*eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIzNDJCNDZCMi00NEFGLTQ0QzMtQTgxNS00N0FBNjhENEQ3M0IifQ.kyskx7E8eO_y7TXEEMqog86EBwhfew2qdg1RKsCuRdg*\nYou have to set it on your own for each request, even when using Postman, because the default token refers to a customer.","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json"},"item":[{"name":"events","item":[{"name":"/events/","event":[{"listen":"test","script":{"id":"2d166506-86dd-4c91-8660-bd8d09cd74ca","type":"text/javascript","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});"]}}],"id":"c87030e5-7e19-45c8-8845-dcbbf5d3a372","request":{"auth":{"type":"noauth"},"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":"{{url}}/events/","description":"Returns a list of all event which are in future. (see */events/:id*)"},"response":[{"id":"8ba3b455-60db-48fa-a99d-23422d16131c","name":"List of all events","originalRequest":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":"localhost:3000/events/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"max-age=0, private, must-revalidate","name":"Cache-Control","description":"Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"ETag","value":"W/\"60f0a7b90bb502183bd05c4ed831f6ca\"","name":"ETag","description":"An identifier for a specific version of a resource, often a message digest"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"Vary","value":"Origin","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-Request-Id","value":"90b11acb-2a78-4c1d-bb54-5f80991f13df","name":"X-Request-Id","description":"Custom header"},{"key":"X-Runtime","value":"0.537692","name":"X-Runtime","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": \"0000003556\",\n        \"name\": \"Grüner Campus Malchow\",\n        \"date\": \"2018-06-28\",\n        \"isProm\": true,\n        \"description\": \"ABV\",\n        \"availableTickets\": 87,\n        \"location\": {\n            \"id\": \"0000000618\",\n            \"name\": \"Columbia Theater Berlin\",\n            \"mapsLink\": \"https://www.google.de/maps/place/Columbia+Theater/@52.484733,13.3892373,17z/data=!3m1!4b1!4m5!3m4!1s0x47a84fdf33f3e9f7:0xf4125695f37c582a!8m2!3d52.484733!4d13.391426\",\n            \"web\": \"http://columbia-theater.de/\",\n            \"titleImage\": \"C5D18619-8D17-41AA-9235-1C5E7D20029C\",\n            \"address\": {\n                \"street\": \"Columbiadamm 09-11\",\n                \"zip\": \"12101\",\n                \"city\": \"Berlin\",\n                \"district\": null\n            }\n        }\n    },\n    {\n        \"id\": \"0000003872\",\n        \"name\": \"Gebrüder-Montgolfier-Gymnasium\",\n        \"date\": \"2018-06-23\",\n        \"isProm\": true,\n        \"description\": \"Abiball des Gebrüder-Montgolfier-Gymnasiums am 23.06.2018 ab 19:00 Uhr bis 04:00 Uhr in der Columbiahalle, Columbiadamm 13-21, 10965 Berlin.\\r\\nIm Kartenpreis inbegriffen sind unter anderem folgende Bestandteile:\\r\\n\\r\\nEin Gala-Buffet, Getränkepauschale (Softgetränke, Bier vom Fass, Prosecco, Rotwein und Weißwein je lieblich und trocken) ein Live-DJ der  für tolle Musik sorgt und natürlich ein tolles Ambiente für euren Ball. \\r\\n\",\n        \"availableTickets\": 0,\n        \"location\": {\n            \"id\": \"0000000146\",\n            \"name\": \"Columbiahalle\",\n            \"mapsLink\": \"https://www.google.de/maps/place/Columbiahalle/@52.4845171,13.3905217,17z/data=!4m12!1m6!3m5!1s0x47a84e327048c063:0x9d8a0ce49e5ab00c!2sColumbiahalle!8m2!3d52.4845171!4d13.3927104!3m4!1s0x47a84e327048c063:0x9d8a0ce49e5ab00c!8m2!3d52.4845171!4d13.3927104\",\n            \"web\": \"www.columbiahalle.de\",\n            \"titleImage\": \"5E268595-D797-4EEA-9796-3AFE72CC6137\",\n            \"address\": {\n                \"street\": \"Columbiadamm 13-21\",\n                \"zip\": \"12101\",\n                \"city\": \"Berlin\",\n                \"district\": null\n            }\n        }\n    }\n]"}],"_postman_id":"c87030e5-7e19-45c8-8845-dcbbf5d3a372"},{"name":"/events/:id/","id":"a8650cc8-24ca-4de3-84fb-6cf36f049fc8","request":{"auth":{"type":"noauth"},"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"{{url}}/events/:id","host":["{{url}}"],"path":["events",":id"],"variable":[{"key":"id","value":"{{event_id}}","description":"10-digit id of event which should be displayed"}]},"description":"Returns the event object for the event with the specified id.\n\n# Response \n**id** : 10-digit *id* of event\n\n**name** : *string* with name of event\n\n**date** : *date* of event in format *YYYY-MM-DD*\n\n**description** : *string* with description of event\n\n**location** : *json* with location information"},"response":[{"id":"9974fb83-b513-48d8-87a0-08c5147cb8f7","name":"Event information with valid id","originalRequest":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":"localhost:3000/events/0000003556"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"max-age=0, private, must-revalidate","name":"Cache-Control","description":"Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"ETag","value":"W/\"f178ea015bbe08aae632ca02e311bc7d\"","name":"ETag","description":"An identifier for a specific version of a resource, often a message digest"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"Vary","value":"Origin","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-Request-Id","value":"4a6f70a6-79d2-4ee8-b95e-10a9321946a6","name":"X-Request-Id","description":"Custom header"},{"key":"X-Runtime","value":"0.014168","name":"X-Runtime","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"0000003556\",\n    \"name\": \"Grüner Campus Malchow\",\n    \"date\": \"2018-06-28\",\n    \"isProm\": true,\n    \"description\": \"ABV\",\n    \"availableTickets\": 87,\n    \"location\": {\n        \"id\": \"0000000618\",\n        \"name\": \"Columbia Theater Berlin\",\n        \"mapsLink\": \"https://www.google.de/maps/place/Columbia+Theater/@52.484733,13.3892373,17z/data=!3m1!4b1!4m5!3m4!1s0x47a84fdf33f3e9f7:0xf4125695f37c582a!8m2!3d52.484733!4d13.391426\",\n        \"web\": \"http://columbia-theater.de/\",\n        \"titleImage\": \"C5D18619-8D17-41AA-9235-1C5E7D20029C\",\n        \"address\": {\n            \"street\": \"Columbiadamm 09-11\",\n            \"zip\": \"12101\",\n            \"city\": \"Berlin\",\n            \"district\": null\n        }\n    }\n}"}],"_postman_id":"a8650cc8-24ca-4de3-84fb-6cf36f049fc8"},{"name":"/events/:id/details/","id":"2265ac44-758a-49ea-bb86-2461ffa764c9","request":{"auth":{"type":"noauth"},"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":"{{url}}/events/{{event_id}}/details","description":"Returns the information for an event with more details.\n\n# Response (additional to standard event information)\n\n\n**details** : *json* with following information:\n\n- **available** : *int* with number of available tickets\n- **headline** : *string* with event headline\n- **begin** : *string* with begin time in format *HH:MM*\n- **end** : *string* with end time in format *HH:MM*\n- **doorsOpen** : *string* with doors open time in format *HH:MM*\n- **organizer** : *json* with information about the organize\n    - **firstName** : *string* with first name of organizer\n    - **lastName** : *string* with last name of organizer\n    - **text** : *string* with organizer info text\n    - **image** : *string* with organizer image\n- **printTicketImage** : *boolean*, whether event has a print card\n- **agenda** : *json* with information about agenda\n    - **buzzwords** : *list* with *strings* of agenda buzzwords\n    - **descriptions** : *list* with *strings* of agenda point descriptions (formatted as html)\n"},"response":[{"id":"4a089873-eafb-48cf-a8f2-34aaec4377bf","name":"Event with details with valid id","originalRequest":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":"localhost:3000/events/0000003556/details"},"status":"OK","code":200,"_postman_previewlanguage":"","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"2265ac44-758a-49ea-bb86-2461ffa764c9"},{"name":"/events/:id/articles/","id":"a30fe7bb-fae0-40fd-8ddd-c49aba359509","request":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"{{url}}/events/:id/articles","host":["{{url}}"],"path":["events",":id","articles"],"variable":[{"key":"id","value":"{{event_id}}","description":"10-digit id of event"}]},"description":"Returns the information for an event including articles which can be purchased.\n\n# Response\n\n**articles** : *array* of *json*-objects :\n- **article** : *json* with information about the article which can be purchased\n    - **id** : *uuid* of article\n    - **name** : *string* with name of article\n    - **description** : *string* with description of article\n    - **netPrice** : *float* with net price in euros\n    - **grossPrice** : *float* with gross price in euros\n    - **tax** : *float* with tax for article in percent\n    - **maxQuantity** : *int* with max quantity of article\n    - **maxQuantityPerOrder** : *int* with max quantity of article per order\n    - **validFrom** : *string* with the date when article can be first purchased\n    - **validTo** : *string* with date when article can be last purchased\n    - **shipmentType** : *json* with shipment information for article\n        - **id** : *uuid* of shipment type\n        - **name** : *string* with name of shipment type\n        - **description** : *string* with description of shipment type\n        - **price** : *float* with net price of shipment type in euros\n        - **tax** : *float* with tax for shipment in percent\n- **options** : *array* consisting of *json* objects with bookable options for this article\n    - **id** : *uuid* of bookable option\n    - **name** : *string* with name of bookable option\n    - **description** : *string* with description of bookable option\n    - **netPrice** : *float* with net price of option in euros\n    - **grossPrice** : *float* with gross price of option in euros\n    - **tax** : *float* with tax for option in percent\n    - **maxQuantity** : *int* with max quantity of option\n    - **maxQuantityPerOrder** : *int* with max quantity per order\n    - **validFrom** : *string* with date when option can first be purchased\n    - **validTo** : *string* with date when option can last be purchased\n    - **shipmentType** : *json* with information about shipment type\n    \n**paymentMethod** : *array* of *json* objects with available payment methods for event\n- **id** : *string* with 10 digit id of payment method\n- **name** : *string* with name of payment method\n- **description** : *string* with description of payment method"},"response":[{"id":"1ee0ad4d-fa9e-44ce-9e2f-d1e0e4cf8ed6","name":"Event with articles with valid id","originalRequest":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":"localhost:3000/events/0000003556/articles"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"max-age=0, private, must-revalidate","name":"Cache-Control","description":"Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"ETag","value":"W/\"8158fa4332bd79219eab218bc0fb9fc0\"","name":"ETag","description":"An identifier for a specific version of a resource, often a message digest"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"Vary","value":"Origin","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-Request-Id","value":"8c1f0639-00ff-4b7a-9816-6a2913d30645","name":"X-Request-Id","description":"Custom header"},{"key":"X-Runtime","value":"0.036771","name":"X-Runtime","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"0000003556\",\n    \"name\": \"Grüner Campus Malchow\",\n    \"date\": \"2018-06-28\",\n    \"isProm\": true,\n    \"description\": \"ABV\",\n    \"availableTickets\": 87,\n    \"location\": {\n        \"id\": \"0000000618\",\n        \"name\": \"Columbia Theater Berlin\",\n        \"mapsLink\": \"https://www.google.de/maps/place/Columbia+Theater/@52.484733,13.3892373,17z/data=!3m1!4b1!4m5!3m4!1s0x47a84fdf33f3e9f7:0xf4125695f37c582a!8m2!3d52.484733!4d13.391426\",\n        \"web\": \"http://columbia-theater.de/\",\n        \"titleImage\": \"C5D18619-8D17-41AA-9235-1C5E7D20029C\",\n        \"address\": {\n            \"street\": \"Columbiadamm 09-11\",\n            \"zip\": \"12101\",\n            \"city\": \"Berlin\",\n            \"district\": null\n        }\n    },\n    \"articles\": [\n        {\n            \"article\": {\n                \"id\": \"DE6F26ED-A349-4EA1-8769-3517E5BF1466\",\n                \"name\": \"Abiballticket\",\n                \"description\": \"Eintrittskarte für den Abiball vom Grünen Campus Malchow \",\n                \"netPrice\": 54.62,\n                \"grossPrice\": 65,\n                \"tax\": 19,\n                \"maxQuantity\": 300,\n                \"maxQuantityPerOrder\": 15,\n                \"validFrom\": null,\n                \"validTo\": null,\n                \"shipmentType\": {\n                    \"id\": \"14C5B812-F707-432E-A6F5-39130A563E67\",\n                    \"name\": \"E-Mail\",\n                    \"description\": \"Selbstdruckticket\",\n                    \"price\": 0,\n                    \"tax\": 19\n                },\n                \"available\": 87\n            },\n            \"options\": [\n                [\n                    {\n                        \"id\": \"B3844FB8-786C-48E8-8537-ED8EF29CE5E1\",\n                        \"name\": \"als Motivticket\",\n                        \"description\": \"Sie bekommen eine gedruckte Eintrittskarte zugeschickt.\",\n                        \"netPrice\": 2.1,\n                        \"grossPrice\": 2.5,\n                        \"tax\": 19,\n                        \"maxQuantity\": 300,\n                        \"maxQuantityPerOrder\": 15,\n                        \"validFrom\": null,\n                        \"validTo\": null,\n                        \"shipmentType\": {\n                            \"id\": \"91780714-5CD0-4FE5-AC1B-1E749CDD39AC\",\n                            \"name\": \"Versandkosten\",\n                            \"description\": \"Postalischer Versand\",\n                            \"price\": 2.5,\n                            \"tax\": 19\n                        }\n                    },\n                    {\n                        \"id\": \"F5B82D18-D0E4-4851-AD51-42AAF287CF45\",\n                        \"name\": \"als Systemticket zum Selbstausdrucken\",\n                        \"description\": \"Eintrittskarte zum selber ausdrucken\",\n                        \"netPrice\": 0,\n                        \"grossPrice\": 0,\n                        \"tax\": 19,\n                        \"maxQuantity\": 300,\n                        \"maxQuantityPerOrder\": 15,\n                        \"validFrom\": null,\n                        \"validTo\": null,\n                        \"shipmentType\": {\n                            \"id\": \"14C5B812-F707-432E-A6F5-39130A563E67\",\n                            \"name\": \"E-Mail\",\n                            \"description\": \"Selbstdruckticket\",\n                            \"price\": 0,\n                            \"tax\": 19\n                        }\n                    }\n                ]\n            ]\n        }\n    ],\n    \"paymentMethods\": [\n        {\n            \"id\": \"0000000001\",\n            \"name\": \"Vorkasse\",\n            \"description\": \"Bezahlung per Vorkasse\"\n        },\n        {\n            \"id\": \"0000000002\",\n            \"name\": \"Sofort-Überweisung\",\n            \"description\": \"Schnell und einfach per Sofort-Überweisung bezahlen\"\n        },\n        {\n            \"id\": \"0000000004\",\n            \"name\": \"PayPal\",\n            \"description\": \"Bezahlung mit PayPal\"\n        },\n        {\n            \"id\": \"0000000005\",\n            \"name\": \"Braintree\",\n            \"description\": \"Bezahlung mit Braintree\"\n        }\n    ]\n}"}],"_postman_id":"a30fe7bb-fae0-40fd-8ddd-c49aba359509"},{"name":"/events/:id/statistics","id":"8092ef11-c0cf-49e3-bac5-cf53c4a9089e","request":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":"{{url}}/events/{{event_id}}/statistics","description":"Returns the statistics for an event.\n\n# Response\n**availableTickets** : *integer* with number of available tickets for event\n\n**soldTickets** : *integer* with number of sold tickets\n\n**daysLeft** : *integer* with number of days left until the event starts\n\n**soldAmount** : *float* with price how much was already collected by selling tickets\n\n**openAmount** : *float* with how price much has to be collected to reach the total amount\n\n**totalAmount** : *float* with price how muchthe event costs\n\n**ticketHistory** : *json* with how many tickets were sold on each day"},"response":[{"id":"0597f85b-c2ff-4ec0-8aed-94d64bdeacf6","name":"Statistics for valid event","originalRequest":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":"{{url}}/events/{{event_id}}/statistics"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"max-age=0, private, must-revalidate","name":"Cache-Control","description":"Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"ETag","value":"W/\"4cc8b9de129494db86feb17b47934127\"","name":"ETag","description":"An identifier for a specific version of a resource, often a message digest"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"Vary","value":"Origin","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-Request-Id","value":"dbe86e12-ae17-4453-afe5-9ba2478f4bd0","name":"X-Request-Id","description":"Custom header"},{"key":"X-Runtime","value":"0.343171","name":"X-Runtime","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"availableTickets\":87,\"soldTickets\":213,\"daysLeft\":0,\"soldAmount\":\"13845.0\",\"openAmount\":0,\"totalAmount\":\"11955.33\",\"ticketHistory\":{\"2018-06-15\":0,\"2018-06-16\":0,\"2018-06-17\":0,\"2018-06-18\":0,\"2018-06-19\":0,\"2018-06-20\":0,\"2018-06-21\":0,\"2018-06-22\":0,\"2018-06-23\":0,\"2018-06-24\":0,\"2018-06-25\":0,\"2018-06-26\":0,\"2018-06-27\":0,\"2018-06-28\":0}}"}],"_postman_id":"8092ef11-c0cf-49e3-bac5-cf53c4a9089e"},{"name":"/events/:id/surveys","id":"e722a287-4f12-4ff1-9f63-833237d7a586","request":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"{{url}}/events/:id/surveys","host":["{{url}}"],"path":["events",":id","surveys"],"variable":[{"key":"id","value":"{{event_id}}","description":"the id of the event"}]},"description":"Returns a list of all surveys for this event for committee members. Otherwise it returns 401 Unauthorized."},"response":[{"id":"5641624d-5398-400b-877c-ab0a88a1d1da","name":"Surveys for event","originalRequest":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"{{url}}/events/:id/surveys","host":["{{url}}"],"path":["events",":id","surveys"],"variable":[{"key":"id","value":"{{event_id}}","description":"the id of the event"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"max-age=0, private, must-revalidate","name":"Cache-Control","description":"Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"ETag","value":"W/\"ddd6e037924410cd8564c6e91978e84c\"","name":"ETag","description":"An identifier for a specific version of a resource, often a message digest"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"Vary","value":"Origin","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-Request-Id","value":"01557039-9b05-4b96-b878-e0ad4e35a252","name":"X-Request-Id","description":"Custom header"},{"key":"X-Runtime","value":"0.023213","name":"X-Runtime","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"surveys\":[{\"uuid\":\"8EABAA61-8EED-4F3D-97F2-EE674EB6F52B\",\"pin\":\"1234\"},{\"uuid\":\"9DD331E2-3DA3-4DA1-AC44-279FB244EA56\",\"pin\":null},{\"uuid\":\"AFD46D16-735A-4DC1-8853-1B2BB85855C2\",\"pin\":null},{\"uuid\":\"DA0872F5-A465-49A5-ADAE-94A43A3FEB3A\",\"pin\":\"123256\"},{\"uuid\":\"C58588C5-E2D2-4E2E-971C-0A716F8E0C7B\",\"pin\":\"123256\"},{\"uuid\":\"6CBD6F80-3469-4917-B8A1-461E96B6EE73\",\"pin\":null}]}"}],"_postman_id":"e722a287-4f12-4ff1-9f63-833237d7a586"},{"name":"/events/:id/possible_locations","id":"026d1fb5-a4cb-4162-99d5-6e07551c7d71","request":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"{{url}}/events/:id/possible_locations","host":["{{url}}"],"path":["events",":id","possible_locations"],"variable":[{"key":"id","value":"{{event_id}}"}]},"description":"Returns all days on which a location is available for an event."},"response":[{"id":"c0b31a87-d133-4122-8226-010c4d593e67","name":"Possible locations","originalRequest":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"{{url}}/events/:id/possible_locations","host":["{{url}}"],"path":["events",":id","possible_locations"],"variable":[{"key":"id","value":"{{event_id}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"max-age=0, private, must-revalidate","name":"Cache-Control","description":"Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"ETag","value":"W/\"388a7a1cab5d0e113be27d4f9f479b65\"","name":"ETag","description":"An identifier for a specific version of a resource, often a message digest"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"Vary","value":"Origin","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-Request-Id","value":"2349a755-c467-4cc7-9b45-dd215f8ff176","name":"X-Request-Id","description":"Custom header"},{"key":"X-Runtime","value":"0.061593","name":"X-Runtime","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"[{\"location_id\":\"0000000640\",\"location_name\":\"Wasserturm Eufre Campus\",\"images\":[],\"dates\":[\"2018-09-17\",\"2018-09-18\",\"2018-09-19\",\"2018-09-20\",\"2018-09-21\",\"2018-09-22\",\"2018-09-23\",\"2018-09-24\",\"2018-09-25\",\"2018-09-26\",\"2018-09-27\"]}]"}],"_postman_id":"026d1fb5-a4cb-4162-99d5-6e07551c7d71"},{"name":"/events/:id/send_email_to_organizer","event":[{"listen":"test","script":{"id":"78f04a54-47f9-48ec-b259-206c32ca1c6b","type":"text/javascript","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});"]}}],"id":"8da8bb24-568b-4fb3-9b58-873c5050069c","request":{"auth":{"type":"noauth"},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"email","value":"{{error_email}}","description":"The email of the sender","type":"text"},{"key":"name","value":"Postman","description":"The name of the sender","type":"text"},{"key":"message","value":"Sieht gut aus und läuft!","description":"The message to be sent to the organizers","type":"text"},{"key":"subject","value":"API-Test","type":"text"}]},"url":"{{url}}/events/{{event_id}}/send_email_to_organizer","description":"Sends an email to the organizer of an event and a copy to the sender of the message\n\n# Return value\n\n- with valid parameters: HTTP status 200\n```\n{\n\t\"status\": \"success\"\n}\n```\n- with missing parameters: HTTP status 400\n```\n{\n\t\"error\": \"missing parameter parameter_name\"\n}\n```\n- with invalid parameters(email): HTTP status 422\n```\n{\n\t\"error\": \"invalid parameter\"\n}\n```"},"response":[{"id":"0bfa8df8-ad56-41b2-a71d-d4ec9f02788c","name":"With valid parameters","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"email","value":"sender@example.com","description":"The email of the sender","type":"text"},{"key":"name","value":"Example Sender","description":"The name of the sender","type":"text"},{"key":"message","value":"Hi, this is an example message for event 0000003556.","description":"The message to be sent to the organizers","type":"text"}]},"url":{"raw":"localhost:3000/events/:id/send_email_to_organizer","host":["localhost"],"port":"3000","path":["events",":id","send_email_to_organizer"],"variable":[{"key":"id","value":"0000003556","description":"The id of the event"}]}},"status":"OK","code":200,"_postman_previewlanguage":"","header":[],"cookie":[],"responseTime":null,"body":"{\n\t\"status\": \"success\"\n}"},{"id":"3dccbb5f-77d0-4d4d-9e0b-409b027b3ed4","name":"With invalid email","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"email","value":"sender@example@example.com","description":"The email of the sender","type":"text"},{"key":"name","value":"Example Sender","description":"The name of the sender","type":"text"},{"key":"message","value":"Example message","description":"The message to be sent to the organizers","type":"text"}]},"url":{"raw":"localhost:3000/events/:id/send_email_to_organizer","host":["localhost"],"port":"3000","path":["events",":id","send_email_to_organizer"],"variable":[{"key":"id","value":"0000003556","description":"The id of the event"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Invalid sender email address\"\n}"},{"id":"cabbd2ff-c769-4201-b509-9526136245f1","name":"With missing parameters","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"email","value":"sender@example.com","description":"The email of the sender","type":"text"},{"key":"name","value":"Sender name","description":"The name of the sender","type":"text"},{"key":"message","value":"","description":"The message to be sent to the organizers","type":"text"}]},"url":{"raw":"localhost:3000/events/:id/send_email_to_organizer","host":["localhost"],"port":"3000","path":["events",":id","send_email_to_organizer"],"variable":[{"key":"id","value":"0000003556","description":"The id of the event"}]}},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Missing parameter message\"\n}"}],"_postman_id":"8da8bb24-568b-4fb3-9b58-873c5050069c"}],"id":"da8d08ae-85cc-4abb-9bef-d4bcb6aaf8cb","description":"Requests for events controller","_postman_id":"da8d08ae-85cc-4abb-9bef-d4bcb6aaf8cb"},{"name":"transactions","item":[{"name":"/transactions/","event":[{"listen":"test","script":{"id":"5dec46ff-fef3-4db3-a101-c5ea216e9c43","type":"text/javascript","exec":[""]}}],"id":"6f93c833-c876-4376-b25f-9b65173199d9","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"eventId\": \"{{event_id}}\",\n  \"paymentMethodId\": \"0000000001\",\n  \"positions\": [\n    {\n      \"baseTicketTypeId\": \"{{event_base_ticket_uuid}}\",\n      \"options\": [\"{{event_option_ticket_uuid}}\"]  \n    },\n    {\n      \"baseTicketTypeId\": \"{{event_base_ticket_uuid}}\",\n      \"options\": [\"{{event_system_ticket_uuid}}\"]  \n    }\n  ]\n}"},"url":"{{url}}/transactions","description":"Create a new transaction (purchase a ticket).\n\nAll tickets are generated when this url is called (with state invalid), a transaction object is created.\n\nWhen sofort payment is selected, the transaction will be started with sofort payment selected. When sofort payment is finished successfully, the invoice is set to *valid* and the tickets become *valid*. E-Mails are sent both to Berlin Event and the customer.\n\nWhen on site payment is selected, invoice and tickets are generated. Invoice is set to *paid* and tickets are set to *valid*. E-Mails are not sent, not to Berlin Event neither to the customer.\n\nWhen payment in advance is selected, invoice and tickets are generated. Invoice ist set to *not paid* and tickets are set to *invalid*. E-Mails are sent both to Berlin Event and the customer.\n\n# Body \n\n**eventId**: *id* of the event the items should be purchased for (normal 10-digit id)\n\n**paymentMethodId**: *id* of the selected payment method (single number)\n\n**customerId**: *id* (_optional_) of the customer for which the transaction should be created. This is only supported when authorized as an BeEvent user.\n\n**positions**: *array* of positions which should be booked for this transaction. Each position represents one ticket.\n\n* **baseTicketTypeId**: *uuid* of the base ticket type for this position (e.g. *Abiballticket*)\n* **options**: *array* of *uuids* with the options booked for this ticket\n\n# Response \n\n**status**: *string* indicating the status of the transaction, currently only *success*\n\n**redirect**: *string* which contains the sofort redirect link\n\n**id**: *string* which contains the id of the transaction\n\n**invoice_uuid**: *uuid* which contains the unique identifier of the created invoice"},"response":[{"id":"4f94c837-e6bf-4bc8-b300-c2d0e7114eca","name":"Creating a valid transaction","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","disabled":false}],"body":{"mode":"raw","raw":"{\n  \"eventId\": \"0000003556\",\n  \"paymentMethodId\": \"2\",\n  \"positions\": [\n    {\n      \"baseTicketTypeId\": \"DE6F26ED-A349-4EA1-8769-3517E5BF1466\",\n      \"options\": [\"F5B82D18-D0E4-4851-AD51-42AAF287CF45\"]  \n    },\n        {\n      \"baseTicketTypeId\": \"DE6F26ED-A349-4EA1-8769-3517E5BF1466\",\n      \"options\": [\"F5B82D18-D0E4-4851-AD51-42AAF287CF45\"]  \n    },\n        {\n      \"baseTicketTypeId\": \"DE6F26ED-A349-4EA1-8769-3517E5BF1466\",\n      \"options\": [\"F5B82D18-D0E4-4851-AD51-42AAF287CF45\"]  \n    },\n    {\n      \"baseTicketTypeId\": \"DE6F26ED-A349-4EA1-8769-3517E5BF1466\",\n      \"options\": [\"B3844FB8-786C-48E8-8537-ED8EF29CE5E1\"]  \n    }\n  ]\n}"},"url":"localhost:3000/transactions"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"max-age=0, private, must-revalidate","name":"Cache-Control","description":"Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"ETag","value":"W/\"63b78842dd598660b1b319c25e7525c6\"","name":"ETag","description":"An identifier for a specific version of a resource, often a message digest"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"Vary","value":"Origin","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-Request-Id","value":"eb6263d9-bab6-4196-ad0a-43d754971c0b","name":"X-Request-Id","description":"Custom header"},{"key":"X-Runtime","value":"0.612618","name":"X-Runtime","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"status\":\"success\",\"redirect\":\"https://www.sofort.com/payment/go/0083c59b5aa811d8c66021e69ed7ce8ef01a8658\",\"id\":\"127981-413972-5ACA4F4D-5213\"}"},{"id":"626dd29d-c9a2-406a-a241-ac470b5241f6","name":"Non-authorized call with customer ID","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"eventId\": \"0000003556\",\n  \"paymentMethodId\": \"0000000003\",\n  \"customerId\": \"0000028563\",\n  \"positions\": [\n    {\n      \"baseTicketTypeId\": \"DE6F26ED-A349-4EA1-8769-3517E5BF1466\",\n      \"options\": [\"B3844FB8-786C-48E8-8537-ED8EF29CE5E1\"]  \n    },\n        {\n      \"baseTicketTypeId\": \"DE6F26ED-A349-4EA1-8769-3517E5BF1466\",\n      \"options\": [\"B3844FB8-786C-48E8-8537-ED8EF29CE5E1\"]  \n    }\n  ]\n}"},"url":"{{url}}/transactions"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"","header":[],"cookie":[],"responseTime":null,"body":"{\n\t\"status\": \"error\",\n\t\"message\": \"You are not allowed to set customer id.\"\n}"},{"id":"90df5669-dbec-43d4-a30e-28dc03046bb6","name":"Valid request as BeEvent user","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"eventId\": \"0000003556\",\n  \"paymentMethodId\": \"0000000003\",\n  \"customerId\": \"0000028553\",\n  \"positions\": [\n    {\n      \"baseTicketTypeId\": \"DE6F26ED-A349-4EA1-8769-3517E5BF1466\",\n      \"options\": [\"B3844FB8-786C-48E8-8537-ED8EF29CE5E1\"]\n    },\n        {\n      \"baseTicketTypeId\": \"DE6F26ED-A349-4EA1-8769-3517E5BF1466\",\n      \"options\": [\"B3844FB8-786C-48E8-8537-ED8EF29CE5E1\"]\n    }\n  ]\n}"},"url":"{{url}}/transactions"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"max-age=0, private, must-revalidate","name":"Cache-Control","description":"Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds"},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Mon, 04 Jun 2018 15:33:01 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"ETag","value":"W/\"555fbbe6f8b54447396a5ed8e1400216\"","name":"ETag","description":"An identifier for a specific version of a resource, often a message digest"},{"key":"Server","value":"nginx/1.13.12","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"Vary","value":"Origin","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-Request-Id","value":"a9d16cf9-33fd-4fd9-a35d-b56577f08101","name":"X-Request-Id","description":"Custom header"},{"key":"X-Runtime","value":"14.559967","name":"X-Runtime","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"transaction_id\": \"NWJz2T7+jAQtcI8Xxe2niFFmwsaqGqyoBvFRvQcD0nE=\",\n    \"invoice_id\": \"6EF5F1D3-E192-464E-84B3-49DBA83E4B24\"\n}"},{"id":"bd4c3ea5-8e5f-4ec4-bf09-6d0408515fff","name":"Event not found","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","disabled":false}],"body":{"mode":"raw","raw":"{\n  \"eventId\": \"9876543210\",\n  \"paymentMethodId\": \"0000000003\",\n  \"customerId\": \"00000028553\",\n  \"positions\": [\n    {\n      \"baseTicketTypeId\": \"DE6F26ED-A349-4EA1-8769-3517E5BF1466\",\n      \"options\": [\"B3844FB8-786C-48E8-8537-ED8EF29CE5E1\"]  \n    },\n        {\n      \"baseTicketTypeId\": \"DE6F26ED-A349-4EA1-8769-3517E5BF1466\",\n      \"options\": [\"B3844FB8-786C-48E8-8537-ED8EF29CE5E1\"]  \n    }\n  ]\n}"},"url":"{{url}}/transactions"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache","name":"Cache-Control","description":"Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds"},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Mon, 04 Jun 2018 15:40:23 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx/1.13.12","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"Vary","value":"Origin","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-Request-Id","value":"b142b87c-0d90-4bdc-b600-5d68d5f54d2c","name":"X-Request-Id","description":"Custom header"},{"key":"X-Runtime","value":"0.355575","name":"X-Runtime","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"status\":\"error\",\"message\":\"Could not initiate transaction\"}"},{"id":"f03bab96-d14f-4d40-af36-32fbd547850b","name":"Customer not found","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","disabled":false}],"body":{"mode":"raw","raw":"{\n  \"eventId\": \"0000003556\",\n  \"paymentMethodId\": \"0000000003\",\n  \"customerId\": \"9876543210\",\n  \"positions\": [\n    {\n      \"baseTicketTypeId\": \"DE6F26ED-A349-4EA1-8769-3517E5BF1466\",\n      \"options\": [\"B3844FB8-786C-48E8-8537-ED8EF29CE5E1\"]  \n    },\n        {\n      \"baseTicketTypeId\": \"DE6F26ED-A349-4EA1-8769-3517E5BF1466\",\n      \"options\": [\"B3844FB8-786C-48E8-8537-ED8EF29CE5E1\"]  \n    }\n  ]\n}"},"url":"{{url}}/transactions"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache","name":"Cache-Control","description":"Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds"},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Mon, 04 Jun 2018 15:38:36 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx/1.13.12","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"Vary","value":"Origin","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-Request-Id","value":"ef31fffb-dd99-4a2d-b0da-7d76701dd28a","name":"X-Request-Id","description":"Custom header"},{"key":"X-Runtime","value":"0.403709","name":"X-Runtime","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"error\",\n    \"message\": \"Customer not found.\"\n}"},{"id":"f058a19e-0eae-49b4-95a6-a4ffaf81a898","name":"Generic error","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","disabled":false}],"body":{"mode":"raw","raw":"{\n  \"eventId\": \"0000003556\",\n  \"paymentMethodId\": \"9876543210\",\n  \"customerId\": \"00000028553\",\n  \"positions\": [\n    {\n      \"baseTicketTypeId\": \"DE6F26ED-A349-4EA1-8769-3517E5BF1466\",\n      \"options\": [\"B3844FB8-786C-48E8-8537-ED8EF29CE5E1\"]  \n    },\n        {\n      \"baseTicketTypeId\": \"DE6F26ED-A349-4EA1-8769-3517E5BF1466\",\n      \"options\": [\"B3844FB8-786C-48E8-8537-ED8EF29CE5E1\"]  \n    }\n  ]\n}"},"url":"{{url}}/transactions"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache","name":"Cache-Control","description":"Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds"},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Mon, 04 Jun 2018 15:39:40 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx/1.13.12","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"Vary","value":"Origin","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-Request-Id","value":"b0318f6b-95bb-447c-93ad-15f8afe8d320","name":"X-Request-Id","description":"Custom header"},{"key":"X-Runtime","value":"0.400972","name":"X-Runtime","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"status\":\"error\",\"message\":\"Could not initiate transaction\"}"}],"_postman_id":"6f93c833-c876-4376-b25f-9b65173199d9"},{"name":"/transactions/braintree/execute","id":"f228b666-db56-4b38-ae47-8da7b1aed1fc","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"id\":\"zYQ5C+9ZPaQPL/AhxmJf0J8Sf7sCW2X0YObWU5/0xCJ=\",\n\t\"nonce\":\"fake-valid-nonce\"\n}"},"url":"{{url}}/transactions/braintree/client_token","description":"# Body\n\n**id** : *string* with generated transaction id\n**nonce** : *string* with the nonce received from braintree"},"response":[],"_postman_id":"f228b666-db56-4b38-ae47-8da7b1aed1fc"},{"name":"/transactions/cancel","id":"fd570fa6-07fb-48ea-92f4-2171c0e38b80","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"transactionId\": null\n}"},"url":"{{url}}/transactions/cancel","description":"Cancel a transaction (set tickets and invoice to invalid), can be used when user cancels payment.\n\n# Body\n\n**transactionId** : *string* with id of transaction\n"},"response":[],"_postman_id":"fd570fa6-07fb-48ea-92f4-2171c0e38b80"}],"id":"d5e21dc0-fe7b-49e7-a0f2-a4180a4f2061","description":"Requests for transactions controller","_postman_id":"d5e21dc0-fe7b-49e7-a0f2-a4180a4f2061"},{"name":"shipment_types","item":[{"name":"/shipment_types/","event":[{"listen":"test","script":{"id":"592f9ffb-a61e-41e8-9993-de17736a9511","type":"text/javascript","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});"]}}],"id":"2f4d3b0d-4732-4399-ac0f-8e8d1611269d","request":{"auth":{"type":"noauth"},"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":"{{url}}/shipment_types","description":"Returns a list of all shipment types."},"response":[{"id":"1b41563d-319e-46f5-900e-d206568eb9c8","name":"List of all shipment types","originalRequest":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":"localhost:3000/shipment_types"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"max-age=0, private, must-revalidate","name":"Cache-Control","description":"Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"ETag","value":"W/\"0ad7b10df34f06d689f46cce841636b1\"","name":"ETag","description":"An identifier for a specific version of a resource, often a message digest"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"Vary","value":"Origin","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-Request-Id","value":"de3b4bba-7647-4915-b7d1-56496dfc1767","name":"X-Request-Id","description":"Custom header"},{"key":"X-Runtime","value":"0.014128","name":"X-Runtime","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": \"91780714-5CD0-4FE5-AC1B-1E749CDD39AC\",\n        \"name\": \"Standard/Vorkasse \",\n        \"description\": \"Rechnung kommt nach Bestellvorgang per E-Mail. Nach Zahlungseingang wird das Ticket versendet.\",\n        \"price\": 2.5,\n        \"tax\": 19,\n        \"vat\": 19\n    },\n    {\n        \"id\": \"14C5B812-F707-432E-A6F5-39130A563E67\",\n        \"name\": \"E-Mail\",\n        \"description\": \"Selbstdruckticket\",\n        \"price\": 0,\n        \"tax\": 19,\n        \"vat\": 19\n    }\n]"}],"_postman_id":"2f4d3b0d-4732-4399-ac0f-8e8d1611269d"},{"name":"/shipment_types/:uuid/","event":[{"listen":"test","script":{"id":"aff89ed4-9800-48d0-b57f-cbbe830ea039","type":"text/javascript","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});"]}}],"id":"121289c9-65bc-4cef-aa09-d9615b8aec5f","request":{"auth":{"type":"noauth"},"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":"{{url}}/shipment_types/{{shipment_type_uuid}}/","description":"Returns information for the shipment type with the given uuid."},"response":[{"id":"cd9c5840-feb9-40c1-827b-8b99432000b3","name":"Shipment type information with valid uuid","originalRequest":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":"localhost:3000/shipment_types/91780714-5CD0-4FE5-AC1B-1E749CDD39AC"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"max-age=0, private, must-revalidate","name":"Cache-Control","description":"Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"ETag","value":"W/\"a7319aee772d66acc8072ccc20d976a5\"","name":"ETag","description":"An identifier for a specific version of a resource, often a message digest"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"Vary","value":"Origin","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-Request-Id","value":"3a0c7b47-f7fb-482f-8dd6-6d02aef6b988","name":"X-Request-Id","description":"Custom header"},{"key":"X-Runtime","value":"0.011926","name":"X-Runtime","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"91780714-5CD0-4FE5-AC1B-1E749CDD39AC\",\n    \"name\": \"Standard/Vorkasse \",\n    \"description\": \"Rechnung kommt nach Bestellvorgang per E-Mail. Nach Zahlungseingang wird das Ticket versendet.\",\n    \"price\": 2.5,\n    \"tax\": 19,\n    \"vat\": 19\n}"}],"_postman_id":"121289c9-65bc-4cef-aa09-d9615b8aec5f"}],"id":"4da026fe-1d33-44d9-806a-7c2f459f02ff","_postman_id":"4da026fe-1d33-44d9-806a-7c2f459f02ff"},{"name":"invoices","item":[{"name":"/invoices/","id":"5c914a7a-e74f-4e5e-8d66-d155bb927eb6","request":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":"{{url}}/invoices","description":"Returns the invoices for the user currently logged in."},"response":[{"id":"95612b18-2b0b-4bd6-8a68-d0adc8b2cb3e","name":"Invoices","originalRequest":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":"localhost:3000/invoices/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"max-age=0, private, must-revalidate","name":"Cache-Control","description":"Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"ETag","value":"W/\"c65ad2f0089d628eb0809506d857bf4f\"","name":"ETag","description":"An identifier for a specific version of a resource, often a message digest"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"Vary","value":"Origin","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-Request-Id","value":"54767c69-77ed-4b06-9355-8fa59dd6428c","name":"X-Request-Id","description":"Custom header"},{"key":"X-Runtime","value":"0.042393","name":"X-Runtime","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"[{\n    \"id\": \"A97645A3-EF79-4AEF-8205-76860E9C7630\",\n    \"event\": {\n        \"id\": \"0000003556\",\n        \"name\": \"3556\",\n        \"date\": \"2018-06-28\",\n        \"description\": \"Abiball vom Grünen Campus Malchow am 28.06.2018 ab 19:00 Uhr im Columbia Theater 9-11, 10965 Berlin.\\r\\n\\r\\nIm Kartenpreis inbegriffen sind unter anderem folgende Bestandteile:\\r\\n\\r\\nEin Gala-Buffet, limitierte Getränkepauschale (Softgetränke, Bier vom Fass, Prosecco, Rotwein und Weißwein je lieblich und trocken, diverse Säfte und Granini- Limos), ein Live-DJ der  für super coole Musik sorgt und natürlich ein tolles Ambiente für euren Ball. \\r\\n\\r\\n(Änderungen vom Veranstalter vorbehalten)\\r\\n\",\n        \"location\": {\n            \"id\": \"0000000618\",\n            \"name\": \"Columbia Theater Berlin\",\n            \"mapsLink\": null,\n            \"web\": \"http://columbia-theater.de/\",\n            \"address\": {\n                \"street\": \"Columbiadamm 09-11\",\n                \"zip\": \"12101\",\n                \"city\": \"Berlin\",\n                \"district\": null\n            }\n        }\n    },\n    \"date\": \"2018-04-09\",\n    \"amount\": 265.47,\n    \"numTickets\": 4\n}]"}],"_postman_id":"5c914a7a-e74f-4e5e-8d66-d155bb927eb6"},{"name":"/invoices/:uuid/","id":"a32503e3-2b1b-44ea-bbcc-b085d98ab48a","request":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"{{url}}/invoices/:uuid/","host":["{{url}}"],"path":["invoices",":uuid",""],"variable":[{"key":"uuid","value":"","description":"The uuid of the invoice"}]},"description":"Show a single invoice with uuid uuid."},"response":[{"id":"7ad3dbe4-b87a-48f3-a60f-3ab9930842d0","name":"Single invoice","originalRequest":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":"localhost:3000/invoices/A97645A3-EF79-4AEF-8205-76860E9C7630"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"max-age=0, private, must-revalidate","name":"Cache-Control","description":"Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"ETag","value":"W/\"21b4a40e0d921c31f095a6a8ed983e2a\"","name":"ETag","description":"An identifier for a specific version of a resource, often a message digest"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"Vary","value":"Origin","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-Request-Id","value":"c90ed0da-cf9f-48d6-a5c9-380119deba52","name":"X-Request-Id","description":"Custom header"},{"key":"X-Runtime","value":"0.036170","name":"X-Runtime","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"id\":\"A97645A3-EF79-4AEF-8205-76860E9C7630\",\"event\":{\"id\":\"0000003556\",\"name\":\"3556\",\"date\":\"2018-06-28\",\"description\":\"Abiball vom Grünen Campus Malchow am 28.06.2018 ab 19:00 Uhr im Columbia Theater 9-11, 10965 Berlin.\\r\\n\\r\\nIm Kartenpreis inbegriffen sind unter anderem folgende Bestandteile:\\r\\n\\r\\nEin Gala-Buffet, limitierte Getränkepauschale (Softgetränke, Bier vom Fass, Prosecco, Rotwein und Weißwein je lieblich und trocken, diverse Säfte und Granini- Limos), ein Live-DJ der  für super coole Musik sorgt und natürlich ein tolles Ambiente für euren Ball. \\r\\n\\r\\n(Änderungen vom Veranstalter vorbehalten)\\r\\n\",\"location\":{\"id\":\"0000000618\",\"name\":\"Columbia Theater Berlin\",\"mapsLink\":null,\"web\":\"http://columbia-theater.de/\",\"address\":{\"street\":\"Columbiadamm 09-11\",\"zip\":\"12101\",\"city\":\"Berlin\",\"district\":null}}},\"date\":\"2018-04-09\",\"amount\":265.47,\"numTickets\":4}"}],"_postman_id":"a32503e3-2b1b-44ea-bbcc-b085d98ab48a"},{"name":"/invoices/:uuid/pdf","id":"e2b59e49-6bd6-4797-9b02-ea7668af38f5","request":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"{{url}}/invoices/:uuid/pdf","host":["{{url}}"],"path":["invoices",":uuid","pdf"],"variable":[{"key":"uuid","value":""}]},"description":"PDF document of the invoice.\n\n# Parameters\n\n**uuid** of the invoice.\n\n# Authorization\n\nYou must be authorized as a customer (can only access it's own invoices) or as a BeEvent user (can access all invoices)."},"response":[],"_postman_id":"e2b59e49-6bd6-4797-9b02-ea7668af38f5"},{"name":"/invoices/active","id":"14b43335-6c47-4d82-9e43-26c192a599b9","request":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":"{{url}}/invoices/active","description":"Returns the invoices of the currently logged in user which are active (so not paid invoices which are too old are excluded)."},"response":[],"_postman_id":"14b43335-6c47-4d82-9e43-26c192a599b9"}],"id":"0b27779e-03f5-4181-a935-4581beaa0d1a","description":"Requests for invoice controller.\n","_postman_id":"0b27779e-03f5-4181-a935-4581beaa0d1a"},{"name":"tickets","item":[{"name":"/tickets/:uuid/pdf","id":"e1ff4a41-9b4c-4c9b-8dd7-3837fe0a60b5","request":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"{{url}}/tickets/:id/pdf","host":["{{url}}"],"path":["tickets",":id","pdf"],"variable":[{"key":"id","value":""}]},"description":"PDF document containing all electronic tickets. Please be aware that there could be orders without an electronic ticket.\n\n# Parameters\n\n**uuid** has to be the unique identifier of the corresponding invoice.\n\n# Authorization\n\nYou must be authorized as a customer (can only access it's own tickets) or as a BeEvent user (can access tickets of all customers)."},"response":[],"_postman_id":"e1ff4a41-9b4c-4c9b-8dd7-3837fe0a60b5"}],"id":"5fc2553b-fc04-4cca-adfe-e9b527f66184","description":"Requests for ticket controller","_postman_id":"5fc2553b-fc04-4cca-adfe-e9b527f66184"},{"name":"users","item":[{"name":"/users/resend_email_verification","id":"a111cfc2-5866-4624-8cc7-da2462eadbbb","request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"email","value":"{{customer_username}}","description":"Email of the user which requests a new verification email","type":"text"}]},"url":"{{url}}/users/resend_email_verification","description":"Resends the verification email to the user with the sent email.\n\n# Return value\n- when parameters are missing: HTTP status 400\n```\n{\n\t\"error\": \"Missing parameter parameter_name\"\n}\n```\n- when user is already confirmed: HTTP status 404\n```\n{\n\t\"error\": \"User already confirmed\"\n}\n```\n- when user with given email does not exist: HTTP status 404\n```\n{\n\t\"error\": \"User not found\"\n}\n```\n- when email was successfully resent: HTTP status 200\n```\n{\n\t\"status\": \"success\"\n}\n```"},"response":[{"id":"00913985-8f45-4521-afd8-b03b2e9599fe","name":"With valid parameters and existing, not confirmed user","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"email","value":"user@example.com","description":"Email of the user which requests a new verification email","type":"text"},{"key":"","value":"","type":"text"}]},"url":"localhost:3000/resend_email_verification"},"status":"OK","code":200,"_postman_previewlanguage":"","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"ok\",\n    \"message\": \"success\n}"},{"id":"401cafb1-09a7-411b-80f0-475f3052d34b","name":"With invalid parameters or non existing user","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"email","value":"non_existing_user@example.com","description":"Email of the user which requests a new verification email","type":"text"}]},"url":"localhost:3000/resend_email_verification"},"status":"Not Found","code":404,"_postman_previewlanguage":"","header":[],"cookie":[],"responseTime":null,"body":"{\n\t\"status\": \"error\",\n    \"error\": \"User not found\"\n}"},{"id":"41bf31b8-75ad-412e-b4b1-01e69d30495c","name":"With valid parameters and confirmed user","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"email","value":"confirmed_user@example.com","description":"Email of the user which requests a new verification email","type":"text"}]},"url":"localhost:3000/resend_email_verification"},"status":"Not Found","code":404,"_postman_previewlanguage":"","header":[],"cookie":[],"responseTime":null,"body":"{\n\t\"status\": \"error\",\n    \"error\": \"User already confirmed\"\n}"},{"id":"84775adc-85f5-4df7-b3ce-685b27a8bdb8","name":"With missing parameters","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"mail","value":"","description":"Email of the user which requests a new verification email","type":"text"}]},"url":"localhost:3000/resend_email_verification"},"status":"Bad Request","code":400,"_postman_previewlanguage":"","header":[],"cookie":[],"responseTime":null,"body":"{\n\t\"status\": \"error\",\n    \"error\": \"Missing parameter email\"\n}"}],"_postman_id":"a111cfc2-5866-4624-8cc7-da2462eadbbb"},{"name":"/users/request_new_password","event":[{"listen":"test","script":{"id":"47a4a961-d18c-46cc-a2a1-340d8132bc66","type":"text/javascript","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});"]}}],"id":"d17e783c-b4ca-4dd7-8a0a-314950337efd","request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"mail","value":"{{customer_username}}","description":"The mail of the user who requests a new password","type":"text"}]},"url":"{{url}}/request_new_password"},"response":[{"id":"36d59843-c07d-44e5-9cc3-c9b6817e10ef","name":"With non existing email","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"mail","value":"user@example.co","description":"The mail of the user who requests a new password","type":"text"}]},"url":"localhost:3000/request_new_password"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache","name":"Cache-Control","description":"Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"Vary","value":"Origin","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-Request-Id","value":"43b3623e-e6f3-4006-9b89-b1a55c3d85dc","name":"X-Request-Id","description":"Custom header"},{"key":"X-Runtime","value":"0.012466","name":"X-Runtime","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"status\":\"error\",\"message\":\"email account not found\"}"},{"id":"941543a9-50de-4385-b869-e9f9e286a1ec","name":"With valid email when token exists or new token is generated","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"mail","value":"user@example.com","description":"The mail of the user who requests a new password","type":"text"}]},"url":"localhost:3000/request_new_password"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"max-age=0, private, must-revalidate","name":"Cache-Control","description":"Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"ETag","value":"W/\"d567d72b3da0d82ccf234eaa4aa6b590\"","name":"ETag","description":"An identifier for a specific version of a resource, often a message digest"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"Vary","value":"Origin","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-Request-Id","value":"117479e1-eaa7-43fd-991b-13ef05e7b358","name":"X-Request-Id","description":"Custom header"},{"key":"X-Runtime","value":"0.018459","name":"X-Runtime","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"status\":\"ok\",\"message\":\"success\"}"}],"_postman_id":"d17e783c-b4ca-4dd7-8a0a-314950337efd"}],"id":"3cd96444-31d4-432e-8cb0-442dd137de4b","_postman_id":"3cd96444-31d4-432e-8cb0-442dd137de4b"},{"name":"authorization","item":[{"name":"/authenticate/customer","event":[{"listen":"test","script":{"id":"1587e2d3-6508-4388-bde3-e25bcc3ab778","type":"text/javascript","exec":["pm.test(\"Status code is 201\", function () {","    pm.response.to.have.status(201);","});","","// Set jwt token for validated customer","var jsonData = pm.response.json();","pm.environment.set(\"customer_token\", jsonData.jwt);"]}}],"id":"2cd6612c-fc72-4781-938d-3bb1f8af2193","request":{"auth":{"type":"noauth"},"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\"auth\": {\"email\": \"{{customer_username}}\", \"password\": \"{{customer_password}}\"}}"},"url":"{{url}}/authenticate/customer","description":"Authorizes a customer and returns a jwt token for further requests."},"response":[{"id":"20a9b187-816e-4484-b17e-4995c7be2c9c","name":"Valid request","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","disabled":false}],"body":{"mode":"raw","raw":"{\"auth\": {\"email\": \"test@beevent-api.de\", \"password\": \"123456\"}}"},"url":"{{url}}/authenticate/customer"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"max-age=0, private, must-revalidate","name":"Cache-Control","description":"Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"ETag","value":"W/\"6a2de935dee9a80a70279ed72e848316\"","name":"ETag","description":"An identifier for a specific version of a resource, often a message digest"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"Vary","value":"Origin","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-Content-Type-Options","value":"nosniff","name":"X-Content-Type-Options","description":"The only defined value, \"nosniff\", prevents Internet Explorer from MIME-sniffing a response away from the declared content-type"},{"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"},{"key":"X-Request-Id","value":"08abc930-eccb-4187-8d40-58bb6e6e0ce3","name":"X-Request-Id","description":"Custom header"},{"key":"X-Runtime","value":"0.117008","name":"X-Runtime","description":"Custom header"},{"key":"X-XSS-Protection","value":"1; mode=block","name":"X-XSS-Protection","description":"Cross-site scripting (XSS) filter"}],"cookie":[],"responseTime":null,"body":"{\"jwt\":\"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiI0REY1MjM2RS1GRjM1LTQyMkItOUVCNS05QzQ2Mjk1M0VEMEQifQ.EmVMA3UHLV_f8rG05k9-naYPCwqskKNFLRj9v1yN7x0\"}"},{"id":"2ba5ddaf-27e3-48a5-8eb6-32b19bdbbc1e","name":"Invalid e-mail address","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\"auth\": {\"email\": \"that@does-not.exist\", \"password\": \"123456\"}}"},"url":"{{url}}/authenticate/customer"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Invalid password\"\n}"},{"id":"a4adc220-6d28-4ff8-ae1c-44187b948221","name":"Invalid password","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\"auth\": {\"email\": \"test@beevent-api.de\", \"password\": \"thatiswrong\"}}"},"url":"{{url}}/authenticate/customer"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Invalid password\"\n}"}],"_postman_id":"2cd6612c-fc72-4781-938d-3bb1f8af2193"},{"name":"/authenticate/user","event":[{"listen":"test","script":{"id":"ad46acbb-97cc-4df2-a969-9ebcafc12eaf","type":"text/javascript","exec":["pm.test(\"Status code is 201\", function () {","    pm.response.to.have.status(201);","});","","// Set jwt token for validated user","var jsonData = pm.response.json();","pm.environment.set(\"user_token\", jsonData.jwt);"]}},{"listen":"prerequest","script":{"id":"42af5d7c-52ab-41e4-9ce4-c4c061da874d","type":"text/javascript","exec":[""]}}],"id":"8e419de7-714d-4845-8dca-152f315e0742","request":{"auth":{"type":"noauth"},"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\"auth\": {\"username\": \"{{user_username}}\", \"password\": \"{{user_password}}\"}}"},"url":"{{url}}/authenticate/user"},"response":[{"id":"3489b0b2-56ed-4b1b-a36e-9361f6f06432","name":"Valid Request","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","disabled":false}],"body":{"mode":"raw","raw":"{\"auth\": {\"username\": \"TestB\", \"password\": \"123456\"}}"},"url":"{{url}}/authenticate/user"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"max-age=0, private, must-revalidate","name":"Cache-Control","description":"Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"ETag","value":"W/\"540c66091b1c78cef5fa9e6fe5796197\"","name":"ETag","description":"An identifier for a specific version of a resource, often a message digest"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"Vary","value":"Origin","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-Content-Type-Options","value":"nosniff","name":"X-Content-Type-Options","description":"The only defined value, \"nosniff\", prevents Internet Explorer from MIME-sniffing a response away from the declared content-type"},{"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"},{"key":"X-Request-Id","value":"4ad1d8eb-f477-4f6f-98db-12eadd1775ea","name":"X-Request-Id","description":"Custom header"},{"key":"X-Runtime","value":"0.173398","name":"X-Runtime","description":"Custom header"},{"key":"X-XSS-Protection","value":"1; mode=block","name":"X-XSS-Protection","description":"Cross-site scripting (XSS) filter"}],"cookie":[],"responseTime":null,"body":"{\"jwt\":\"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiI1RDQ4NkYxMy1GMkMzLTRCQzQtODcwOS0yMDQ1MkZGNTgxRUUifQ.VnUIfNKW5UdhaGUy3Fh3xbuVAhXuKWf5ixraXAQ9QQQ\"}"},{"id":"8987045b-adf5-4d3b-9e00-834163deeb03","name":"Invalid e-mail address","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\"auth\": {\"username\": \"ExampleU\", \"password\": \"pw\"}}"},"url":"{{url}}/authenticate/user"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Invalid password\"\n}"},{"id":"b2ccc9b3-58cd-4c55-822c-49fe5cf81cc3","name":"Invalid password","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\"auth\": {\"username\": \"TestB\", \"password\": \"thatiswrong\"}}"},"url":"{{url}}/authenticate/user"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Invalid password\"\n}"}],"_postman_id":"8e419de7-714d-4845-8dca-152f315e0742"}],"id":"18e4adaf-4d71-43e6-b279-c3adc92a0608","_postman_id":"18e4adaf-4d71-43e6-b279-c3adc92a0608"},{"name":"surveys","item":[{"name":"surveys","item":[{"name":"/surveys/surveys","id":"f9de5fc3-c120-4166-b0a7-da8c08ff1247","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"survey\": {\n\t\t\"name\": \"Survey\",\n\t\t\"startDate\": \"2018-08-20\",\n\t\t\"endDate\": \"2018-08-22\",\n\t\t\"surveyTemplateUuid\": \"{{survey_template_uuid}}\",\n\t\t\"eventId\": \"{{event_id}}\",\n\t\t\"open\": false\n\t}\n}"},"url":"{{url}}/surveys/surveys"},"response":[{"id":"ee59bde6-b6d1-4f4b-b4b3-12994dfb4392","name":"Create survey","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","disabled":false}],"body":{"mode":"raw","raw":"{\n\t\"survey\": {\n\t\t\"name\": \"Survey\",\n\t\t\"startDate\": \"2018-08-20\",\n\t\t\"endDate\": \"2018-08-22\",\n\t\t\"surveyTemplateUuid\": \"{{survey_template_uuid}}\",\n\t\t\"eventId\": \"{{event_id}}\"\n\t}\n}"},"url":"{{url}}/surveys/surveys"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"max-age=0, private, must-revalidate","name":"Cache-Control","description":"Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"ETag","value":"W/\"2002f2e2a246ec9cd197d71e81f4c52a\"","name":"ETag","description":"An identifier for a specific version of a resource, often a message digest"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"Vary","value":"Origin","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-Request-Id","value":"e7ead69a-3c72-48d1-a1b9-d804d530376e","name":"X-Request-Id","description":"Custom header"},{"key":"X-Runtime","value":"0.248197","name":"X-Runtime","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"uuid\":\"8876aaee-ebac-48f2-89ce-cf039d439800\",\"name\":\"Survey\",\"startDate\":\"2018-08-20T00:00:00.000Z\",\"endDate\":\"2018-08-22T00:00:00.000Z\",\"eventId\":\"0000003556\",\"surveyTemplateUuid\":\"20E24977-520B-44B9-8D90-A926332A4956\"}"}],"_postman_id":"f9de5fc3-c120-4166-b0a7-da8c08ff1247"},{"name":"/surveys/surveys/:uuid","id":"dc1ead2c-14fc-414c-9c71-5a57739c0dd6","request":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"{{url}}/surveys/surveys/:uuid","host":["{{url}}"],"path":["surveys","surveys",":uuid"],"variable":[{"key":"uuid","value":"{{survey_uuid}}"}]},"description":"Returns information about a given survey.\n\n# Response\n\n**uuid** : *uuid* of survey\n**name** : *string* with name of survey\n**startDate** : *string* with date time when survey begins in format *YYYY-MM-DDThh:mm:ss.sssZ* (see ISO 8601)\n**endDate** : *string* with end time in same format\n**eventId** : *string* with 10 digit id of the event the survey belongs to\n**surveyTemplateUuid** : *uuid* of the template for the survey"},"response":[{"id":"0796d153-13be-4bc2-a87d-d5181c6ed1f9","name":"Valid survey","originalRequest":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"{{url}}/surveys/surveys/:uuid","host":["{{url}}"],"path":["surveys","surveys",":uuid"],"variable":[{"key":"uuid","value":"{{survey_uuid}}","description":"uuid of the survey"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"max-age=0, private, must-revalidate","name":"Cache-Control","description":"Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"ETag","value":"W/\"559da0f90d2e82952d7eb707ce36d827\"","name":"ETag","description":"An identifier for a specific version of a resource, often a message digest"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"Vary","value":"Origin","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-Request-Id","value":"ec1afea9-1d77-4fbd-980e-6c1a1802691d","name":"X-Request-Id","description":"Custom header"},{"key":"X-Runtime","value":"0.069342","name":"X-Runtime","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\n    \"uuid\": \"8EABAA61-8EED-4F3D-97F2-EE674EB6F52B\",\n    \"name\": \"Test Survey\",\n    \"startDate\": \"2018-09-11T00:00:00.000Z\",\n    \"endDate\": \"2018-09-12T00:00:00.000Z\",\n    \"eventId\": \"0000003556\",\n    \"surveyTemplateUuid\": \"20E24977-520B-44B9-8D90-A926332A4956\",\n    \"visible\": true\n}"}],"_postman_id":"dc1ead2c-14fc-414c-9c71-5a57739c0dd6"},{"name":"/surveys/surveys/:uuid/details","id":"2f5d8d67-b1cf-4c65-803c-19ec717f8672","request":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"{{url}}/surveys/surveys/:uuid/details","host":["{{url}}"],"path":["surveys","surveys",":uuid","details"],"variable":[{"key":"uuid","value":"{{survey_uuid}}"}]}},"response":[],"_postman_id":"2f5d8d67-b1cf-4c65-803c-19ec717f8672"},{"name":"/surveys/surveys/:uuid","id":"7d21245b-d4d0-494e-b1a0-f514e76e5465","request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"survey\": {\n\t\t\"endDate\": \"2018-08-08\",\n\t\t\"open\": true\n\t}\n}"},"url":{"raw":"{{url}}/surveys/surveys/:uuid","host":["{{url}}"],"path":["surveys","surveys",":uuid"],"variable":[{"key":"uuid","value":"{{survey_uuid}}"}]},"description":"Update the attributes of a survey. Currently, only the pin can be updated."},"response":[],"_postman_id":"7d21245b-d4d0-494e-b1a0-f514e76e5465"},{"name":"/surveys/surveys/:uuid/results","id":"a5a40820-86ea-4dc3-b927-e064181948b5","request":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"{{url}}/surveys/surveys/:uuid/results","host":["{{url}}"],"path":["surveys","surveys",":uuid","results"],"variable":[{"key":"uuid","value":"{{survey_uuid}}"}]},"description":"This returns the result for a survey. \n\n# Response\n\n**uuid** : *uuid* of survey\n**name** : *string* with name of survey\n**questions** : *array* with results for each question\n- **questioUuid** : *uuid* of question\n- **questionOrder** : *int* with order of question\n- **questionType** : *string* with 10-digit type of question\n- **results** : *json* with results for this question\n\n\nThe results have the following format:\n\n**Multiple choice questions**\n\nFor each offered answer exists a key with the *uuid* of the offered answer. The corresponding value is an *int* with the number of votes for this offered answer.\n\n"},"response":[{"id":"42024d80-0597-4aa4-8850-b8b144251f88","name":"Results page","originalRequest":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"{{url}}/surveys/surveys/:uuid/results","host":["{{url}}"],"path":["surveys","surveys",":uuid","results"],"variable":[{"key":"uuid","value":"{{survey_uuid}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"max-age=0, private, must-revalidate","name":"Cache-Control","description":"Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"ETag","value":"W/\"e7a5503cc52685417c6817cfa2dad2b5\"","name":"ETag","description":"An identifier for a specific version of a resource, often a message digest"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"Vary","value":"Origin","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-Request-Id","value":"a1c9b5d1-dcb9-4cc9-9239-de2393aa6527","name":"X-Request-Id","description":"Custom header"},{"key":"X-Runtime","value":"0.341620","name":"X-Runtime","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\n    \"uuid\": \"8EABAA61-8EED-4F3D-97F2-EE674EB6F52B\",\n    \"name\": \"Test Survey\",\n    \"questions\": [\n        {\n            \"questionUuid\": \"025858F0-9EE4-44B8-BEE0-66058A23EE51\",\n            \"questionOrder\": 1,\n            \"questionText\": \"How is the weather?\",\n            \"questionType\": \"0000000001\",\n            \"results\": [\n                {\n                    \"offeredAnswerUuid\": \"035858F0-9EE4-44B8-BEE0-66058A23EE52\",\n                    \"offeredAnswerText\": \"Good\",\n                    \"value\": 2\n                },\n                {\n                    \"offeredAnswerUuid\": \"035858F0-9EE4-44B8-BEE0-66058A23EE53\",\n                    \"offeredAnswerText\": \"Bad\",\n                    \"value\": 0\n                }\n            ]\n        },\n        {\n            \"questionUuid\": \"4787E887-0CDD-4A3A-84E2-95FA13CDC35D\",\n            \"questionOrder\": 1,\n            \"questionText\": \"Which location do you prefer?\",\n            \"questionType\": \"0000000002\",\n            \"results\": [\n                {\n                    \"offeredAnswerUuid\": \"5B0067D8-C03D-472E-A32B-3B11BCB9240A\",\n                    \"offeredAnswerLocation\": \"0000000001\",\n                    \"offeredAnswerDate\": \"2019-01-01T00:00:00.000Z\",\n                    \"value\": 0\n                }\n            ]\n        }\n    ]\n}"}],"_postman_id":"a5a40820-86ea-4dc3-b927-e064181948b5"},{"name":"/surveys/surveys/:uuid/check_pin","id":"a5254e8c-211f-4097-b681-5981ce1e6f23","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"pin\": \"1234\"\n}"},"url":{"raw":"{{url}}/surveys/surveys/:uuid/check_pin","host":["{{url}}"],"path":["surveys","surveys",":uuid","check_pin"],"variable":[{"key":"uuid","value":"{{survey_uuid}}"}]},"description":"Checks a pin for a survey. When the pin is correct, it returns status 200. When the pin is incorrect, it returns status 401. \n\nWhen the event has no pin, it returns status 200."},"response":[],"_postman_id":"a5254e8c-211f-4097-b681-5981ce1e6f23"},{"name":"/surveys/surveys/:uuid","id":"27696c20-b1a7-4c84-a42e-cc67bf4757e6","request":{"method":"DELETE","header":[],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"{{url}}/surveys/surveys/:uuid","host":["{{url}}"],"path":["surveys","surveys",":uuid"],"variable":[{"key":"uuid","value":"{{survey_uuid}}"}]},"description":"Makes a survey invisible (soft delete). The record persists, but it is not displayed on the survey list of an event any longer."},"response":[],"_postman_id":"27696c20-b1a7-4c84-a42e-cc67bf4757e6"},{"name":"/surveys/surveys/:uuid/public","id":"cdac9b0a-3463-4089-bdf0-d9482b00e32c","request":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"{{url}}/surveys/surveys/:uuid/public","host":["{{url}}"],"path":["surveys","surveys",":uuid","public"],"variable":[{"key":"uuid","value":"{{survey_uuid}}"}]}},"response":[],"_postman_id":"cdac9b0a-3463-4089-bdf0-d9482b00e32c"}],"id":"65e7b6d2-f5a6-4402-a7ed-1c10d5598024","description":"A survey is a collection of questions which can be answered.\nIt is connected to a survey template which stores all information about the questions which are assigned to this survey.","event":[{"listen":"prerequest","script":{"id":"5401dfe9-ef42-4948-bd9c-102e9a3b83f8","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"66b26e02-5383-4fe6-a549-3043df88e738","type":"text/javascript","exec":[""]}}],"_postman_id":"65e7b6d2-f5a6-4402-a7ed-1c10d5598024"},{"name":"survey_templates","item":[{"name":"/surveys/survey_templates","id":"2d621096-dfd7-4a9c-85f0-5751e7d558f9","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"surveyTemplate\" : {\n\t\t\"name\": \"Cool, a new survey template!\",\n\t\t\"public\": true\n\t}\n}"},"url":"{{url}}/surveys/survey_templates","description":"Create a new survey template\n"},"response":[{"id":"df309e52-93a3-43ec-beba-1e62f84cefca","name":"Create survey template","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","disabled":false}],"body":{"mode":"raw","raw":"{\n\t\"surveyTemplate\" : {\n\t\t\"name\": \"Cool, a new survey template!\",\n\t\t\"public\": true\n\t}\n}"},"url":"{{url}}/surveys/survey_templates"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"max-age=0, private, must-revalidate","name":"Cache-Control","description":"Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"ETag","value":"W/\"0a6041dd788b478e779610541b3e9ed8\"","name":"ETag","description":"An identifier for a specific version of a resource, often a message digest"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"Vary","value":"Origin","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-Request-Id","value":"e69095d9-fd88-444f-b5dc-de4f71b4f13e","name":"X-Request-Id","description":"Custom header"},{"key":"X-Runtime","value":"0.049830","name":"X-Runtime","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"uuid\":\"b64b44d0-8403-4559-a639-e243fc52517f\",\"name\":\"Cool, a new survey template!\",\"questions\":[]}"}],"_postman_id":"2d621096-dfd7-4a9c-85f0-5751e7d558f9"},{"name":"/surveys/survey_templates/complete","id":"4de0b5dc-cf83-4226-a166-17e72a2f4311","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"survey_template\": {\n    \"name\": \"Survey Name\",\n    \"public\": true\n  },\n  \"questions\": [\n    {\n      \"text\": \"Q1\",\n      \"questionType\": \"0000000002\",\n      \"order\": 0,\n      \"numberOfAnswers\": 1,\n      \"offeredAnswers\": [\n        {\n          \"offeredAnswerType\": \"0000000002\",\n          \"order\": 0,\n          \"date\": \"2018-09-13T08:46:27.902Z\",\n          \"text\": \"Option 1\",\n          \"locationId\": \"{{location_id}}\"\n        },\n        {\n          \"offeredAnswerType\": \"0000000002\",\n          \"order\": 1,\n          \"date\": \"2018-09-13T08:46:27.902Z\",\n          \"text\": \"Option 2\",\n          \"locationId\": \"{{location_id}}\"\n        }\n      ]\n    }\n  ]\n}"},"url":"{{url}}/surveys/survey_templates/complete"},"response":[{"id":"3a9c1b3a-9d64-40ea-b131-5eb3e1b1c64d","name":"Create complete survey template","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","disabled":false}],"body":{"mode":"raw","raw":"{\n\t\"survey_template\": {\n\t\t\"name\": \"Template name\", \n\t\t\"public\": true\n\t},\n\t\"questions\": [\n\t\t{\n\t\t\t\"text\": \"Which location do you prefer?\",\n\t\t\t\"questionType\": \"0000000002\",\n\t\t\t\"order\": 0,\n\t\t\t\"numberOfAnswers\": 2,\t\n\t\t\t\"offeredAnswers\": [\n\t\t\t\t{\n\t\t\t\t\t\"offeredAnswerType\": \"0000000002\",\n\t\t\t\t\t\"order\": 0,\n\t\t\t\t\t\"locationId\": \"0000000002\",\n\t\t\t\t\t\"date\": \"2019-01-01\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"offeredAnswerType\": \"0000000002\",\n\t\t\t\t\t\"order\": 1,\n\t\t\t\t\t\"locationId\": \"0000000002\",\n\t\t\t\t\t\"date\": \"2019-01-02\"\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t]\n}"},"url":"{{url}}/surveys/survey_templates/complete"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"max-age=0, private, must-revalidate","name":"Cache-Control","description":"Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"ETag","value":"W/\"82bf0179bfa45965bf9b015e412c8eb2\"","name":"ETag","description":"An identifier for a specific version of a resource, often a message digest"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"Vary","value":"Origin","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-Request-Id","value":"76240dbd-973b-4d0e-b347-b947101fa330","name":"X-Request-Id","description":"Custom header"},{"key":"X-Runtime","value":"0.398544","name":"X-Runtime","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"survey_template\":{\"uuid\":\"c1bc0bda-b054-4265-abc7-e4c6b3217b54\",\"name\":\"Template name\",\"public\":true},\"questions\":[{\"uuid\":\"BC2E177E-77DE-4FEF-8FE7-784747480A4F\",\"text\":\"Which location do you prefer?\",\"numberOfAnswers\":2,\"order\":0,\"offeredAnswers\":[{\"uuid\":\"0DF3C277-95CB-49B5-B01D-8AEB2060C2F8\",\"text\":null,\"locationId\":\"0000000002\",\"date\":\"2019-01-01T00:00:00.000Z\"},{\"uuid\":\"62D18DB0-8D16-4E55-A664-60CCAB25516F\",\"text\":null,\"locationId\":\"0000000002\",\"date\":\"2019-01-02T00:00:00.000Z\"}]}]}"}],"_postman_id":"4de0b5dc-cf83-4226-a166-17e72a2f4311"},{"name":"/surveys/survey_templates","id":"bd950208-79e3-4c4f-ac73-4f9c496324ef","request":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":"{{url}}/surveys/survey_templates","description":"Returns a list of all public survey templates.\n\n# Response\n\n**array** of json objects\n- **uuid** : *uuid* of survey template\n- **name** : *string* with name of survey template\n- **questions** : *array* of *uuids* of the questions which belong to the template"},"response":[{"id":"92750287-16da-41ae-9145-16c7f8f2ad57","name":"Survey template list","originalRequest":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":"{{url}}/surveys/survey_templates"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"max-age=0, private, must-revalidate","name":"Cache-Control","description":"Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"ETag","value":"W/\"8f4593fbc8e5e3aedf8e92e50639645f\"","name":"ETag","description":"An identifier for a specific version of a resource, often a message digest"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"Vary","value":"Origin","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-Request-Id","value":"8ddd3913-4b17-4cdf-bf8e-bfd8d6434bba","name":"X-Request-Id","description":"Custom header"},{"key":"X-Runtime","value":"0.130345","name":"X-Runtime","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"[{\"uuid\":\"20E24977-520B-44B9-8D90-A926332A4956\",\"name\":\"Basic survey template\",\"questions\":[\"025858F0-9EE4-44B8-BEE0-66058A23EE51\"]}]"}],"_postman_id":"bd950208-79e3-4c4f-ac73-4f9c496324ef"},{"name":"/surveys/survey_templates/:uuid","id":"7d30a1e6-a6ac-4676-a032-26f1b11eef4f","request":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"{{url}}/surveys/survey_templates/:uuid","host":["{{url}}"],"path":["surveys","survey_templates",":uuid"],"variable":[{"key":"uuid","value":"{{survey_template_uuid}}","description":"uuid of the survey template"}]},"description":"Returns information about a specific survey template\n"},"response":[{"id":"86cbfaa4-219a-445c-b9ab-8653e5b6e8bd","name":"Survey template","originalRequest":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"{{url}}/surveys/survey_templates/:uuid","host":["{{url}}"],"path":["surveys","survey_templates",":uuid"],"variable":[{"key":"uuid","value":"{{survey_template_uuid}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"max-age=0, private, must-revalidate","name":"Cache-Control","description":"Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"ETag","value":"W/\"b7aaab84be1973b582aebca44fab59cc\"","name":"ETag","description":"An identifier for a specific version of a resource, often a message digest"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"Vary","value":"Origin","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-Request-Id","value":"b366a934-f67d-4190-8081-ce0ad1eccf41","name":"X-Request-Id","description":"Custom header"},{"key":"X-Runtime","value":"0.018051","name":"X-Runtime","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\n    \"uuid\": \"20E24977-520B-44B9-8D90-A926332A4956\",\n    \"name\": \"Basic survey template\",\n    \"survey_questions\": [\n        \"025858F0-9EE4-44B8-BEE0-66058A23EE52\"\n    ]\n}"}],"_postman_id":"7d30a1e6-a6ac-4676-a032-26f1b11eef4f"}],"id":"2a8b868c-2e2e-41fe-a581-9300f3e4f30f","_postman_id":"2a8b868c-2e2e-41fe-a581-9300f3e4f30f"},{"name":"questions","item":[{"name":"/surveys/questions","id":"70f9d346-0fed-4e28-bd3a-3b9694586ef7","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"question\": {\n\t\t\"text\": \"Which location do you prefer?\",\n\t\t\"questionType\": \"0000000002\",\n\t\t\"order\": 1,\n\t\t\"numberOfAnswers\": 2\n\t}\n}"},"url":"{{url}}/surveys/questions","description":"Create a new question. "},"response":[],"_postman_id":"70f9d346-0fed-4e28-bd3a-3b9694586ef7"},{"name":"/surveys/questions/:uuid","id":"a4751ae8-55eb-406d-ad77-ef31b2dd0d0e","request":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"{{url}}/surveys/questions/:uuid","host":["{{url}}"],"path":["surveys","questions",":uuid"],"variable":[{"key":"uuid","value":"{{question_uuid}}"}]},"description":"Returns a question.\n\n# Response\n\n**uuid** : *uuid* of the question\n\n**text** : *string* with text of question\n\n**type** : *string* with 10-digit id with type of question\n\n**order** : *int* with order of question"},"response":[{"id":"536db2e6-8125-4585-aa48-dae761d97a65","name":"Question","originalRequest":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"{{url}}/surveys/questions/:uuid","host":["{{url}}"],"path":["surveys","questions",":uuid"],"variable":[{"key":"uuid","value":"{{question_uuid}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"max-age=0, private, must-revalidate","name":"Cache-Control","description":"Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"ETag","value":"W/\"81671bc2b29cdccbc3e7810eff4167db\"","name":"ETag","description":"An identifier for a specific version of a resource, often a message digest"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"Vary","value":"Origin","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-Request-Id","value":"c65a3f82-ee6f-41d7-8655-20b595eb01a0","name":"X-Request-Id","description":"Custom header"},{"key":"X-Runtime","value":"0.092731","name":"X-Runtime","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"uuid\":\"025858F0-9EE4-44B8-BEE0-66058A23EE51\",\"text\":\"This is a question. What is the answer?\",\"type\":\"0000000001\",\"order\":1}"}],"_postman_id":"a4751ae8-55eb-406d-ad77-ef31b2dd0d0e"}],"id":"69ec7d20-cc7a-45bb-92fd-afaf4d77787c","description":"A question is used to provide reusable questions, which can be used in multiple classes.\nIt stores information such as a type and a text about what will be asked. By creating a survey question, it can be connected with a survey template, so it can be used in multiple surveys.","event":[{"listen":"prerequest","script":{"id":"bf0b6e6d-a617-446a-90c1-22c95612c1a3","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"c76b35a1-2694-44d5-b541-423f83204d34","type":"text/javascript","exec":[""]}}],"_postman_id":"69ec7d20-cc7a-45bb-92fd-afaf4d77787c"},{"name":"survey_questions","item":[{"name":"/surveys/survey_questions","id":"73b5ae0b-f7ae-42a3-a93a-616ecc7e3f7d","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"surveyQuestion\": {\n\t\t\"surveyTemplateUuid\": \"{{survey_template_uuid}}\",\n\t\t\"questionUuid\": \"{{question_uuid}}\"\n\t}\n}"},"url":"{{url}}/surveys/survey_questions"},"response":[{"id":"d80d315e-6510-450e-bfa6-1c52f23ce9dc","name":"Create survey question","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","disabled":false}],"body":{"mode":"raw","raw":"{\n\t\"surveyQuestion\": {\n\t\t\"surveyTemplateUuid\": \"{{survey_template_uuid}}\",\n\t\t\"questionUuid\": \"{{question_uuid}}\"\n\t}\n}"},"url":"{{url}}/surveys/survey_questions"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"max-age=0, private, must-revalidate","name":"Cache-Control","description":"Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"ETag","value":"W/\"567966cdc28ee87dead38eee7c07a3f1\"","name":"ETag","description":"An identifier for a specific version of a resource, often a message digest"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"Vary","value":"Origin","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-Request-Id","value":"eda723f3-77eb-4a8c-b06a-6d9373a62669","name":"X-Request-Id","description":"Custom header"},{"key":"X-Runtime","value":"0.029483","name":"X-Runtime","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"uuid\":\"abb958f9-bb66-4c9e-b38e-9cb5f8a545f7\",\"surveyTemplateUuid\":\"20E24977-520B-44B9-8D90-A926332A4956\",\"questionUuid\":\"025858F0-9EE4-44B8-BEE0-66058A23EE51\"}"}],"_postman_id":"73b5ae0b-f7ae-42a3-a93a-616ecc7e3f7d"},{"name":"/surveys/survey_questions/:uuid","id":"8f11c08f-c7e8-4e9c-910f-603d986df7ba","request":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"{{url}}/surveys/survey_questions/:uuid","host":["{{url}}"],"path":["surveys","survey_questions",":uuid"],"variable":[{"key":"uuid","value":"{{survey_question_uuid}}"}]},"description":"Get a survey question.\n\n# Response\n\n**uuid** : *uuid* of survey question\n**surveyTemplateUuid** : *uuid* of the survey template\n**questionUuid** : *uuid* of the question"},"response":[{"id":"e29d3435-c720-4e34-9550-c8041bb36325","name":"Survey question","originalRequest":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"{{url}}/surveys/survey_questions/:uuid","host":["{{url}}"],"path":["surveys","survey_questions",":uuid"],"variable":[{"key":"uuid","value":"{{survey_question_uuid}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"max-age=0, private, must-revalidate","name":"Cache-Control","description":"Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"ETag","value":"W/\"3c762be984c89236459ccd28ae4f92d4\"","name":"ETag","description":"An identifier for a specific version of a resource, often a message digest"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"Vary","value":"Origin","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-Request-Id","value":"48860373-35c5-421a-ae17-748c3d53f460","name":"X-Request-Id","description":"Custom header"},{"key":"X-Runtime","value":"0.048319","name":"X-Runtime","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\n    \"uuid\": \"025858F0-9EE4-44B8-BEE0-66058A23EE52\",\n    \"surveyTemplateUuid\": \"20E24977-520B-44B9-8D90-A926332A4956\",\n    \"questionUuid\": \"025858F0-9EE4-44B8-BEE0-66058A23EE51\",\n    \"surveyAnswers\": [\n        \"025858F0-9EE4-44B8-BEE0-66058A23EE53\",\n        \"025858F0-9EE4-44B8-BEE0-66058A23EE59\"\n    ]\n}"}],"_postman_id":"8f11c08f-c7e8-4e9c-910f-603d986df7ba"}],"id":"9448c59a-c888-4509-ad2f-b2671ead3133","description":"Survey questions add a question to a survey template. When a survey questions exists with a question and a survey template, the question will be displayed in surveys which use this template.","event":[{"listen":"prerequest","script":{"id":"3331948d-5332-46a2-a172-b6a3f276d5cd","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"ab8464e6-6c26-4873-af2e-5f3613dac30c","type":"text/javascript","exec":[""]}}],"_postman_id":"9448c59a-c888-4509-ad2f-b2671ead3133"},{"name":"survey_answers","item":[{"name":"/surveys/survey_answers","id":"f7d0b1c7-f214-4696-b34a-adfc9f5b2b6f","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"surveyAnswer\": {\n\t\t\"surveyQuestionUuid\": \"{{survey_question_uuid}}\",\n\t\t\"offeredAnswerUuid\": \"{{location_answer_uuid}}\"\n\t}\n}"},"url":"{{url}}/surveys/survey_answers","description":"Create a survey answer."},"response":[{"id":"95d4ca2c-c226-49c9-bf3a-5c6e2bf64fcd","name":"Create survey answer","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","disabled":false}],"body":{"mode":"raw","raw":"{\n\t\"surveyAnswer\": {\n\t\t\"surveyQuestionUuid\": \"{{survey_question_uuid}}\"\n\t}\n}"},"url":"{{url}}/surveys/survey_answers"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"max-age=0, private, must-revalidate","name":"Cache-Control","description":"Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"ETag","value":"W/\"5a5505fc71b04664ae6b2c534d4064f3\"","name":"ETag","description":"An identifier for a specific version of a resource, often a message digest"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"Vary","value":"Origin","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-Request-Id","value":"964508e1-b9c4-4cf1-8edd-0007658bb2aa","name":"X-Request-Id","description":"Custom header"},{"key":"X-Runtime","value":"0.020470","name":"X-Runtime","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"uuid\":\"9018cf89-1b30-4008-81c4-5fad7436db78\",\"surveyQuestionUuid\":\"025858F0-9EE4-44B8-BEE0-66058A23EE52\",\"offeredAnswerUuid\":null}"}],"_postman_id":"f7d0b1c7-f214-4696-b34a-adfc9f5b2b6f"},{"name":"/surveys/survey_answers/:uuid","id":"dd625091-11d3-4b48-a1d0-04196270e2da","request":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"{{url}}/surveys/survey_answers/:uuid","host":["{{url}}"],"path":["surveys","survey_answers",":uuid"],"variable":[{"key":"uuid","value":"{{survey_answer_uuid}}"}]},"description":"Get a survey answer.\n\n# Response\n\n**uuid** : *uuid* of survey answer\n\n**surveyQuestionUUid** : *uuid* of survey question which the answer should belong to\n\n**offeredAnswerUuid** : *uuid* of offered answer"},"response":[{"id":"14e16e3c-c044-408a-8206-e01e524cb2ba","name":"Survey answer","originalRequest":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"{{url}}/surveys/survey_answers/:uuid","host":["{{url}}"],"path":["surveys","survey_answers",":uuid"],"variable":[{"key":"uuid","value":"{{survey_answer_uuid}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"max-age=0, private, must-revalidate","name":"Cache-Control","description":"Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"ETag","value":"W/\"aae2dc27c0b0aca716abbafd7824e5bc\"","name":"ETag","description":"An identifier for a specific version of a resource, often a message digest"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"Vary","value":"Origin","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-Request-Id","value":"0a66139c-e4a5-4657-a695-e821ad8f2c53","name":"X-Request-Id","description":"Custom header"},{"key":"X-Runtime","value":"0.016046","name":"X-Runtime","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"uuid\":\"025858F0-9EE4-44B8-BEE0-66058A23EE53\",\"surveyQuestionUuid\":\"025858F0-9EE4-44B8-BEE0-66058A23EE52\",\"offeredAnswerUuid\":null}"}],"_postman_id":"dd625091-11d3-4b48-a1d0-04196270e2da"}],"id":"894a8fe6-b7d6-4684-b716-67f32a76ebd3","description":"Survey answers map between offered answers and survey question. If a survey question needs to provide some answers (for example for a multiple choice question), a survey answer is created with the corresponding survey question and the offered answer which should be displayed under this question.","event":[{"listen":"prerequest","script":{"id":"11a8380a-76ef-4f34-87f9-c0ec327e1e17","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"f2d934f5-59d8-4977-9c8f-a696c097d459","type":"text/javascript","exec":[""]}}],"_postman_id":"894a8fe6-b7d6-4684-b716-67f32a76ebd3"},{"name":"offered_answers","item":[{"name":"/surveys/offered_answers","id":"56a7665f-ff8a-4cf6-b636-73f473b96ba6","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"offeredAnswer\": {\n\t\t\"offeredAnswerType\": \"0000000002\",\n\t\t\"order\": 0,\n\t\t\"locationId\": \"0000000364\",\n\t\t\"date\": \"2019-01-01\"\n\t}\n}"},"url":"{{url}}/surveys/offered_answers","description":"Create an offered answer."},"response":[{"id":"d8864fe5-b338-4c2c-859a-a54fe578ee4c","name":"Create offered answer","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","disabled":false}],"body":{"mode":"raw","raw":"{\n\t\"offeredAnswer\": {\n\t\t\"offeredAnswerType\": \"0000000002\",\n\t\t\"order\": 1,\n\t\t\"text\": \"Answer text!\"\n\t}\n}"},"url":"{{url}}/surveys/offered_answers"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"max-age=0, private, must-revalidate","name":"Cache-Control","description":"Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"ETag","value":"W/\"e849b3051614f0e4e99fdd72103c3161\"","name":"ETag","description":"An identifier for a specific version of a resource, often a message digest"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"Vary","value":"Origin","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-Request-Id","value":"fb5ea53c-4bd0-41d8-8031-578341e26e25","name":"X-Request-Id","description":"Custom header"},{"key":"X-Runtime","value":"0.078265","name":"X-Runtime","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"uuid\":\"fd701b6d-d766-4e90-857e-b88fa1d23c32\",\"offeredAnswerType\":\"0000000002\",\"order\":1,\"text\":\"Answer text!\",\"locationId\":null,\"date\":null}"}],"_postman_id":"56a7665f-ff8a-4cf6-b636-73f473b96ba6"},{"name":"/surveys/offered_answers/:uuid","id":"347ef11e-760d-4db5-8cee-e73e9654773b","request":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"{{url}}/surveys/offered_answers/:uuid","host":["{{url}}"],"path":["surveys","offered_answers",":uuid"],"variable":[{"key":"uuid","value":"{{offered_answer_uuid}}"}]},"description":"Get an offered answer.\n\n# Response \n\n**uuid** : *uuid* of offered answer\n\n**offeredAnswerType** : *string* with 10 digit id of offered answer type\n\n**order** : *int* with order of answer\n\n**text** : *string* with text of answer (for multiple choice questions)\n\n**locationId** : *string* with 10 digit id of location (for location questions)\n\n**date** : *string* with date for location questions"},"response":[{"id":"f2b76b83-d2c2-4fa6-acea-ad8041963396","name":"Offered answer","originalRequest":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"{{url}}/surveys/offered_answers/:uuid","host":["{{url}}"],"path":["surveys","offered_answers",":uuid"],"variable":[{"key":"uuid","value":"{{offered_answer_uuid}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"max-age=0, private, must-revalidate","name":"Cache-Control","description":"Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"ETag","value":"W/\"c215c80710b1b0f70019790a961b2d4c\"","name":"ETag","description":"An identifier for a specific version of a resource, often a message digest"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"Vary","value":"Origin","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-Request-Id","value":"5423f7f1-40b7-45cb-ad0b-aaf026777a87","name":"X-Request-Id","description":"Custom header"},{"key":"X-Runtime","value":"0.034316","name":"X-Runtime","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"uuid\":\"035858F0-9EE4-44B8-BEE0-66058A23EE52\",\"offeredAnswerType\":\"0000000001\",\"order\":0,\"text\":\"Hi! I am a multiple choice answer!\",\"locationId\":null,\"date\":null}"}],"_postman_id":"347ef11e-760d-4db5-8cee-e73e9654773b"}],"id":"b91e7895-f52c-4a37-b0b8-88046e2d7d21","description":"Offered answers provide possible answers for questions.","event":[{"listen":"prerequest","script":{"id":"d7820f8f-6708-4c89-8cae-c2b606f43301","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"7476239b-9c0b-44af-b011-551d23a671b2","type":"text/javascript","exec":[""]}}],"_postman_id":"b91e7895-f52c-4a37-b0b8-88046e2d7d21"},{"name":"submissions","item":[{"name":"/surveys/submissions","id":"10cd05a6-d3ed-4efe-b414-d6724a92478d","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"","value":"","disabled":true}],"body":{"mode":"raw","raw":"{\n\t\"submission\": {\n\t\t\"customerId\": \"{{customer_id}}\",\n\t\t\"surveyUuid\": \"{{survey_uuid}}\",\n\t\t\"answers\": [{\n\t\t\t\"answerType\": \"0000000001\", \n\t\t\t\"surveyQuestionUuid\": \"{{survey_question_uuid}}\",\n\t\t\t\"surveyAnswerUuid\": \"{{survey_answer_uuid}}\"\n\t\t},\n\t\t{\n\t\t\t\"answerType\": \"0000000001\",\n\t\t\t\"surveyQuestionUuid\":\n\t\t\t\"{{survey_question_uuid}}\",\n\t\t\t\"surveyAnswerUuid\": \"{{survey_answer_uuid}}\"\n\t\t}]\n\t}\n}"},"url":"{{url}}/surveys/submissions/","description":"# Body\n\n**customer_id**: *id* of customer\n\n**survey_uuid**: *uuid* of survey which should be answered\n\n**answers**: *array* of answer objects with the answer data of the user\n\n- **answer_type** : *string* with 10 digit id of answer type\n- **survey_question_uuid** : *uuid* of survey question for this answer\n- **survey_answer_uuid** : *uuid* of survey answer if necessary\n\n# Response\n\n## On success\n**status** : 200\n\n## On error\n**status** : 404 when customer or survey is not found\n**status** : 401 when customer has already voted for survey\n**status** : 500 on other errors\n"},"response":[],"_postman_id":"10cd05a6-d3ed-4efe-b414-d6724a92478d"}],"id":"5345eb94-dc57-40b5-955f-d8ba1369bd71","description":"When a user answers a survey, a submission is created.","event":[{"listen":"prerequest","script":{"id":"d3ad3f01-686e-49fd-a655-b913f296d657","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"a6d223e5-131e-4141-af23-158903537e04","type":"text/javascript","exec":[""]}}],"_postman_id":"5345eb94-dc57-40b5-955f-d8ba1369bd71"}],"id":"dc86eb5d-be92-47dd-a641-27b1f9538480","description":"# How to create a survey\n\nOur test survey should look the following:\n    \n1. How is the weather? (Multiple choice)\n    - good\n    - bad\n    - i don't know\n2. Which location do you prefer? (Location question)\n    - TestLocation, 01.01.2019\n    - TestLocation, 01.01.2020\n    - OtherTestLocation, 01.01.2019\n\n## Create the questions\n\nFirst, all questions need to be created. Questions are not directly assigned to a survey, we will do this later, they are just templates and can be reused in multiple surveys.\n\n`questionType` defines the type of the question. In the local environment, `0000000001` stands for Multiple choice questions and `0000000002` for location questions.\n\n`order` defines the display order of the questions. Questions with a lower order should be displayed before questions with a higher order. This has to be handled in the frontend.\n\n**POST** to `api_url/surveys/questions` with\n```json \n{\n    \"question\": {\n        \"text\": \"How is the weather?\",\n        \"questionType\": \"0000000001\",\n        \"order\": 0\n    }\n}\n```\n\nThis should return a similar json (I left out the uuids for better readability):\n\n```json\n{\n    \"uuid\": \"uuid_question_1\",\n    \"text\": \"How is the weather?\",\n    \"type\": \"0000000001\",\n    \"order\": 0\n}\n```\n\n**POST** to `api_url/surveys/questions` with\n```json \n{\n    \"question\": {\n        \"text\": \"Which location do you prefer?\",\n        \"questionType\": \"0000000002\",\n        \"order\": 1\n    }\n}\n```\n\nResponse:\n\n```json\n{\n    \"uuid\": \"uuid_question_2\",\n    \"text\": \"Which location do you prefer?\",\n    \"type\": \"0000000002\",\n    \"order\": 1\n}\n```\n\n## Creating the offered answers\n\nNext we will create the answer possiblities. They also can be reused, so they are not directly associated with a survey.\n\n`offeredAnswerType` describes the type of the answer, `0000000001` for multiple choice answers and `0000000002` for location answers.\n\nEach offered answer gets a uuid  (from `uuid_offered_answer_1` for good, `uuid_offered_answer_2` for bad, `uuid_offered_answer_3` for I dont't know, `uuid_offered_answer_4`, to 6 for the location answers).\n\n**POST** to `api_url/surveys/offered_answers`\n\n```json\n{\n\t\"offeredAnswer\": {\n\t\t\"offeredAnswerType\": \"0000000001\",\n\t\t\"order\": 0,\n\t\t\"text\": \"Good\"\n\t}\n}\n```\n\nResponse:\n\n```json\n{\n    \"uuid\": \"uuid_offered_answer_1\",\n    \"offeredAnswerType\": \"0000000001\",\n    \"order\": 0,\n    \"text\": \"Good\",\n    \"locationId\": null,\n    \"date\": null\n}\n```\n\nDo the same for the other multiple choice answers with different order and text. For the location answer it looks the following:\n\n```json\n{\n\t\"offeredAnswer\": {\n\t\t\"offeredAnswerType\": \"0000000001\",\n\t\t\"order\": 0,\n\t\t\"locationId\": \"test_location_id\",\n\t\t\"date\": \"2019-01-01\"\n\t}\n}\n```\n\nResponse:\n\n```json\n{\n    \"uuid\": \"uuid_offered_answer_4\",\n    \"offeredAnswerType\": \"0000000002\",\n    \"order\": 0,\n    \"text\": null,\n    \"locationId\": \"test_location_id\",\n    \"date\": \"2019-01-01T00:00:00.000Z\"\n}\n```\n\nRepeat this for the other answers with the other location id and date.\n\n\n## Creating the survey template\n\nNext we have to create a survey template. A survey template saves a set of questions and offered answers, which can be answered in a survey. Survey templates can be used in multiple surveys.\n\n**POST** to `api_url/surveys/survey_templates` \n\n```json\n{\n\t\"surveyTemplate\" : {\n\t\t\"name\": \"Test survey template\",\n\t\t\"public\": true\n\t}\n}\n```\n\nResponse\n\n```json\n{\n    \"uuid\": \"uuid_survey_template\",\n    \"name\": \"Test survey template\",\n    \"questions\": []\n}\n```\n\n### Connecting the questions with the template\n\nTo assign a question to a survey template, we connect it by creating a survey question. \n\n**POST** to `api_url/surveys/survey_questions`\n\n```json\n{\n\t\"surveyQuestion\": {\n\t\t\"surveyTemplateUuid\": \"{{uuid_survey_template}}\",\n\t\t\"questionUuid\": \"{{uuid_question_1}}\"\n\t}\n}\n```\n\nResponse: \n\n```json\n{\n    \"uuid\": \"uuid_survey_question_1\",\n    \"surveyTemplateUuid\": \"uuid_survey_template\",\n    \"questionUuid\": \"uuid_survey_question_1\"\n}\n```\n\nRepeat this for the second question:\n\n**POST** to `api_url/surveys/survey_questions`\n\n```json\n{\n\t\"surveyQuestion\": {\n\t\t\"surveyTemplateUuid\": \"{{uuid_survey_template}}\",\n\t\t\"questionUuid\": \"{{uuid_question_2}}\"\n\t}\n}\n```\n\nResponse: \n\n```json\n{\n    \"uuid\": \"uuid_survey_question_2\",\n    \"surveyTemplateUuid\": \"uuid_survey_template\",\n    \"questionUuid\": \"uuid_survey_question_2\"\n}\n```\n\n\n### Connecting the offered answers with the questions\n\nNext, we need to connect the offered answers with the survey questions.\nFirst we add the three multiple choice answers to `survey_question_1`.\n\n**POST** to `api_url/surveys/survey_answers`\n\n```json\n{\n\t\"surveyAnswer\": {\n\t\t\"surveyQuestionUuid\": \"{{uuid_survey_question_1}}\",\n\t\t\"offeredAnswerUuid\": \"{{uuid_offered_answer_1}}\"\n\t}\n}\n```\n\nResponse:\n\n```json\n{\n    \"uuid\": \"uuid_survey_answer_1\",\n    \"surveyQuestionUuid\": \"uuid_survey_question_1\",\n    \"offeredAnswerUuid\": \"uuid_offered_answer_1\"\n}\n```\n\nRepeat this for `survey_question_1` with `offered_answer_2` and `offered_answer_3`.\nWe also have to do this for the location question:\n\n```json\n{\n\t\"surveyAnswer\": {\n\t\t\"surveyQuestionUuid\": \"{{uuid_survey_question_2}}\",\n\t\t\"offeredAnswerUuid\": \"{{uuid_offered_answer_4}}\"\n\t}\n}\n```\n\nResponse:\n\n```json\n{\n    \"uuid\": \"uuid_survey_answer_4\",\n    \"surveyQuestionUuid\": \"uuid_survey_question_2\",\n    \"offeredAnswerUuid\": \"uuid_offered_answer_4\"\n}\n```\n\nRepeat this step for all other answers.\n\nNow, the survey template is finished. We have created the questions and the offered answers, we have created a survey template, we have linked the questions with the survey template by creating survey questions and the offered answers with the survey questions.\n\n## Creating a survey\n\nNext, we will create a survey. A survey uses a survey template that defines its set of questions and answers. So templates can be created and reused for other surveys. \n\n**POST** to `api_url/surveys/surveys`\n\n```json\n{\n\t\"survey\": {\n\t\t\"name\": \"Test Surveys\",\n\t\t\"startDate\": \"2018-08-20\",\n\t\t\"endDate\": \"2018-08-22\",\n\t\t\"surveyTemplateUuid\": \"{{uuid_survey_template}}\",\n\t\t\"eventId\": \"{{event_id}}\"\n\t}\n}\n```\n\nResponse: \n\n```json\n{\n    \"uuid\": \"uuid_survey\",\n    \"name\": \"Survey\",\n    \"startDate\": \"2018-08-20T00:00:00.000Z\",\n    \"endDate\": \"2018-08-22T00:00:00.000Z\",\n    \"eventId\": \"event_id\",\n    \"surveyTemplateUuid\": \"uuid_survey_template\"\n}\n```\n\n## Answering a survey\n\nWhen a user answers a survey, we need to create a submission which contains all information about the users votes.\nFor example, the customer chooses answer I don't know for question 1 and answer TestLocation, 01.01.2019 for question 2. We need to provide the uuids for the corresponding survey answers in the submission.\n\n**POST** to `api_url/surveys/submissions`\n\n```json\n{\n\t\"submission\": {\n\t\t\"customerId\": \"{{customer_id}}\",\n\t\t\"surveyUuid\": \"{{uuid_survey}}\",\n\t\t\"answers\": [{\n\t\t\t\"answerType\": \"0000000001\", \n\t\t\t\"surveyQuestionUuid\": \"{{uuid_survey_question_1}}\",\n\t\t\t\"surveyAnswerUuid\": \"{{uuid_survey_answer_3}}\"\n\t\t},\n\t\t{\n\t\t\t\"answerType\": \"0000000002\",\n\t\t\t\"surveyQuestionUuid\": \"{{uuid_survey_question_2}}\",\n\t\t\t\"surveyAnswerUuid\": \"{{uuid_survey_answer_4}}\"\n\t\t}]\n\t}\n}\n```\nResponse:\n\n```json\n{\n\t\"status\": \"success\"\n}\n```\n\n## Retrieving results for a survey\n\nFor retrieving results for a survey, call \n\n**GET** to `api_url/surveys/uuid_survey/results`\n\nResponse \n```json\n{\n    \"uuid\": \"uuid_survey\",\n    \"name\": \"Survey\",\n    \"questions\": [\n        {\n            \"questionUuid\": \"uuid_question_1\",\n            \"questionOrder\": 0,\n            \"questionType\": \"0000000001\",\n            \"results\": {\n                \"uuid_offered_answer_1\": 0,\n                \"uuid_offered_answer_3\": 1,\n                \"uuid_offered_answer_2\": 0\n            }\n        },\n        {\n            \"questionUuid\": \"uuid_question_2\",\n            \"questionOrder\": 1,\n            \"questionType\": \"0000000002\",\n            \"results\": {\n                \"uuid_offered_answer_4\": 1,\n                \"uuid_offered_answer_5\": 0,\n                \"uuid_offered_answer_6\": 0\n            }\n        }\n    ]\n}\n```\n\nIf you want to retrieve information about the offered answers etc., see api docs below.\n\n## Get the surveys for an event\n\n**GET** to `api_url/events/:id/surveys`","event":[{"listen":"prerequest","script":{"id":"15282760-ebb3-4e1e-82f0-54ee1006f197","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"7ffac370-8b55-4404-be58-e7feb753379c","type":"text/javascript","exec":[""]}}],"_postman_id":"dc86eb5d-be92-47dd-a641-27b1f9538480"},{"name":"locations","item":[{"name":"/locations/:id","id":"930b6084-cef0-491e-bcae-9f94cb7a152d","request":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"{{url}}/locations/:id","host":["{{url}}"],"path":["locations",":id"],"variable":[{"key":"id","value":""}]}},"response":[],"_postman_id":"930b6084-cef0-491e-bcae-9f94cb7a152d"},{"name":"/locations/:id/details","id":"cdd77f63-4aef-4215-aa81-7682018d35ee","request":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"{{url}}/locations/:id/details","host":["{{url}}"],"path":["locations",":id","details"],"variable":[{"key":"id","value":"0000000006"}]}},"response":[],"_postman_id":"cdd77f63-4aef-4215-aa81-7682018d35ee"}],"id":"7fea2aac-61ca-41be-acf0-90d1e34ad089","_postman_id":"7fea2aac-61ca-41be-acf0-90d1e34ad089"}],"auth":{"type":"bearer","bearer":{"token":"{{customer_token}}"}},"event":[{"listen":"prerequest","script":{"id":"58222d85-aff6-4088-8aac-a281af86be41","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"f3e8acd1-d39c-48dd-a01f-774e885a19a8","type":"text/javascript","exec":[""]}}]}