{"info":{"_postman_id":"3d124b42-5830-4486-a365-607c50f14560","name":"EC API","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"13583599","collectionId":"3d124b42-5830-4486-a365-607c50f14560","publishedId":"UzQuP5yZ","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"4d0b3a"},"publishDate":"2022-07-21T13:06:58.000Z"},"item":[{"name":"Ticket","item":[{"name":"Update ticket","id":"d0d3664e-559b-4eba-90d5-cee630206b3e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"title\": \"Updated ticket title\",\n    \"price\": 10\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/events/{{event_id}}/tickets/{{ticket_id}}","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"3d124b42-5830-4486-a365-607c50f14560","id":"3d124b42-5830-4486-a365-607c50f14560","name":"EC API","type":"collection"}},"urlObject":{"path":["events","{{event_id}}","tickets","{{ticket_id}}"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"d0d3664e-559b-4eba-90d5-cee630206b3e"},{"name":"Delete ticket","id":"3e9fae9a-7be8-47f9-b0ea-b8fadfddfb61","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{base_url}}/events/{{event_id}}/tickets/{{ticket_id}}","description":"<p>Deletes the ticket, note we do not is check if this ticket does not have orders attached. If you delete a ticket with orders in it, it will remove that ticket from the orders.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"3d124b42-5830-4486-a365-607c50f14560","id":"3d124b42-5830-4486-a365-607c50f14560","name":"EC API","type":"collection"}},"urlObject":{"path":["events","{{event_id}}","tickets","{{ticket_id}}"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"3e9fae9a-7be8-47f9-b0ea-b8fadfddfb61"},{"name":"Create event ticket","id":"4bad5438-edf9-444a-a643-c61e094ae279","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"title\": \"Test ticket API\",\n    \"description\": \"This is a test ticket created though the API\",\n    \"price\": 10.5,\n    \"type\": \"barcode\",\n    \"quantity\": 20\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/events/{{event_id}}/tickets","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"3d124b42-5830-4486-a365-607c50f14560","id":"3d124b42-5830-4486-a365-607c50f14560","name":"EC API","type":"collection"}},"urlObject":{"path":["events","{{event_id}}","tickets"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"4bad5438-edf9-444a-a643-c61e094ae279"},{"name":"List event tickets","id":"46f17938-85cc-4905-95cf-f8994f468788","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{base_url}}/events/{{event_id}}/tickets","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"3d124b42-5830-4486-a365-607c50f14560","id":"3d124b42-5830-4486-a365-607c50f14560","name":"EC API","type":"collection"}},"urlObject":{"path":["events","{{event_id}}","tickets"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"46f17938-85cc-4905-95cf-f8994f468788"},{"name":"Ticket detail","id":"7ad6fff8-9755-41be-9723-93b698cd611a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{base_url}}/events/{{event_id}}/tickets/{{ticket_id}}","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"3d124b42-5830-4486-a365-607c50f14560","id":"3d124b42-5830-4486-a365-607c50f14560","name":"EC API","type":"collection"}},"urlObject":{"path":["events","{{event_id}}","tickets","{{ticket_id}}"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"7ad6fff8-9755-41be-9723-93b698cd611a"}],"id":"593a532a-e7ba-4842-9d23-3e18adc728f3","_postman_id":"593a532a-e7ba-4842-9d23-3e18adc728f3","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"3d124b42-5830-4486-a365-607c50f14560","id":"3d124b42-5830-4486-a365-607c50f14560","name":"EC API","type":"collection"}}},{"name":"Event","item":[{"name":"Artists","item":[{"name":"List artists","id":"7861a0d5-d31a-4adb-a05e-22938d141e2e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"3d124b42-5830-4486-a365-607c50f14560","id":"3d124b42-5830-4486-a365-607c50f14560","name":"EC API","type":"collection"}},"urlObject":{"query":[],"variable":[]},"url":""},"response":[],"_postman_id":"7861a0d5-d31a-4adb-a05e-22938d141e2e"},{"name":"Create Artist","id":"080e38ba-7387-49f0-b8a5-1615ea9d90d9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"title\": \"Test Artist\"\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/artists","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"3d124b42-5830-4486-a365-607c50f14560","id":"3d124b42-5830-4486-a365-607c50f14560","name":"EC API","type":"collection"}},"urlObject":{"path":["artists"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"080e38ba-7387-49f0-b8a5-1615ea9d90d9"},{"name":"Update Artist","id":"c7621015-417f-4571-b05f-e9c56a796c7d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"title\": \"Test Artist Updated\"\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/artists/{{artist_id}}","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"3d124b42-5830-4486-a365-607c50f14560","id":"3d124b42-5830-4486-a365-607c50f14560","name":"EC API","type":"collection"}},"urlObject":{"path":["artists","{{artist_id}}"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"c7621015-417f-4571-b05f-e9c56a796c7d"}],"id":"7d0d5cba-cab5-499b-8fda-a859e5bebbd6","_postman_id":"7d0d5cba-cab5-499b-8fda-a859e5bebbd6","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"3d124b42-5830-4486-a365-607c50f14560","id":"3d124b42-5830-4486-a365-607c50f14560","name":"EC API","type":"collection"}}},{"name":"Categories","item":[{"name":"List categories","id":"0401a83d-de06-47d6-a973-a9eb6ad6191a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{base_url}}/categories","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"3d124b42-5830-4486-a365-607c50f14560","id":"3d124b42-5830-4486-a365-607c50f14560","name":"EC API","type":"collection"}},"urlObject":{"path":["categories"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"0401a83d-de06-47d6-a973-a9eb6ad6191a"},{"name":"Create category","id":"78a2dd14-35e4-4fb4-a8b7-6491d22102e0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Test category\",\n    \"description\": \"An optional description\"\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/categories","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"3d124b42-5830-4486-a365-607c50f14560","id":"3d124b42-5830-4486-a365-607c50f14560","name":"EC API","type":"collection"}},"urlObject":{"path":["categories"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"78a2dd14-35e4-4fb4-a8b7-6491d22102e0"}],"id":"aec08469-a5ec-45a0-91ee-2e5ab368b395","_postman_id":"aec08469-a5ec-45a0-91ee-2e5ab368b395","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"3d124b42-5830-4486-a365-607c50f14560","id":"3d124b42-5830-4486-a365-607c50f14560","name":"EC API","type":"collection"}}},{"name":"Venues","item":[{"name":"List venues","id":"9515ce8b-cbf3-4ad6-9a66-56a9f105591c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{base_url}}/venues","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"3d124b42-5830-4486-a365-607c50f14560","id":"3d124b42-5830-4486-a365-607c50f14560","name":"EC API","type":"collection"}},"urlObject":{"path":["venues"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"9515ce8b-cbf3-4ad6-9a66-56a9f105591c"},{"name":"Create venue","id":"83edcafb-e7c8-47d6-b6d9-b249f22a85d3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"title\": \"Venue Test Address 1\",\n    \"address\": {\n        \"address_1\": \"Test rd, 1\",\n        \"address_2\": \"\",\n        \"city\": \"London\",\n        \"country\": \"UK\",\n        \"county\": \"Greater London\",\n        \"postcode\": \"ABC 123\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/venues","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"3d124b42-5830-4486-a365-607c50f14560","id":"3d124b42-5830-4486-a365-607c50f14560","name":"EC API","type":"collection"}},"urlObject":{"path":["venues"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"83edcafb-e7c8-47d6-b6d9-b249f22a85d3"},{"name":"Update venue","id":"bf8817a8-b83c-430f-95a5-6075d06c63cb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"title\": \"Venue 1 Updated\",\n    \"address\": {\n        \"address_1\": \"Test rd, 1\",\n        \"address_2\": \"\",\n        \"city\": \"Liverpool\",\n        \"country\": \"UK\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/venues/{{venue_id}}","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"3d124b42-5830-4486-a365-607c50f14560","id":"3d124b42-5830-4486-a365-607c50f14560","name":"EC API","type":"collection"}},"urlObject":{"path":["venues","{{venue_id}}"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"bf8817a8-b83c-430f-95a5-6075d06c63cb"}],"id":"2c6809ad-399d-4b6a-b6dd-4f7fec57d699","_postman_id":"2c6809ad-399d-4b6a-b6dd-4f7fec57d699","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"3d124b42-5830-4486-a365-607c50f14560","id":"3d124b42-5830-4486-a365-607c50f14560","name":"EC API","type":"collection"}}},{"name":"List events","event":[{"listen":"test","script":{"id":"bf67ba36-2e20-42be-b395-97b99b304c6f","exec":["pm.test(\"Event list contains expected number of events\", function () {","    // pm.expect(pm.response.json()).to.include(\"string_you_want_to_search\");","","    let results = pm.response.json().results;","    // console.log(results);","    pm.expect(results).to.length(10);","","    let firstEvent = results[0];","","    pm.expect(firstEvent.title).to.eq(\"Test GBP Vat Region\");","","","","});"],"type":"text/javascript","packages":{}}}],"id":"d31a9cfb-2e28-49fe-8e5f-69add98e6c79","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{base_url}}/events?promoter_id&category_id&category_slug&status&only_listable","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"3d124b42-5830-4486-a365-607c50f14560","id":"3d124b42-5830-4486-a365-607c50f14560","name":"EC API","type":"collection"}},"urlObject":{"path":["events"],"host":["{{base_url}}"],"query":[{"description":{"content":"<p>Filter events by Promoter ID</p>\n","type":"text/plain"},"key":"promoter_id","value":null},{"description":{"content":"<p>Filter events by Category ID</p>\n","type":"text/plain"},"key":"category_id","value":null},{"description":{"content":"<p>Filter events by Category slug</p>\n","type":"text/plain"},"key":"category_slug","value":null},{"description":{"content":"<p>Filter events by status</p>\n","type":"text/plain"},"key":"status","value":null},{"description":{"content":"<p>Filter out events marked as non-listable</p>\n","type":"text/plain"},"key":"only_listable","value":null}],"variable":[]}},"response":[{"id":"b0be9d5c-46f1-41dc-93ee-9b1e2f5d9944","name":"List events","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{base_url}}/events?promoter_id&category_id&category_slug&status=all&only_listable","host":["{{base_url}}"],"path":["events"],"query":[{"key":"promoter_id","value":null,"description":"Filter events by Promoter"},{"key":"category_id","value":null,"description":"Filter events by Category id"},{"key":"category_slug","value":null,"description":"Filter events by Category slug"},{"key":"status","value":"all","description":"Filter events by status"},{"key":"only_listable","value":null,"description":"Filter out events marked as non-listable","type":"text"}]}},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"d31a9cfb-2e28-49fe-8e5f-69add98e6c79"},{"name":"Event detail","id":"e77d6f86-2247-4dab-a079-ce6280dc698d","protocolProfileBehavior":{"disabledSystemHeaders":{},"disableCookies":true,"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{base_url}}/events/{{event_id}}","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"3d124b42-5830-4486-a365-607c50f14560","id":"3d124b42-5830-4486-a365-607c50f14560","name":"EC API","type":"collection"}},"urlObject":{"path":["events","{{event_id}}"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[{"id":"2d44a43d-eaa9-4591-9882-173f7ee32cca","name":"Event detail","originalRequest":{"method":"GET","header":[],"url":"{{base_url}}/events/68271"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 01 Jul 2025 10:30:25 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"nginx/1.24.0 (Ubuntu)"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Security-Policy","value":"frame-ancestors 'self' https://manage.eventcube.io https://main-staging-manage.eventcu.be https://mrp-manage.eventcu.be https://laravel8-manage.eventcu.be; upgrade-insecure-requests"},{"key":"X-EC-Served-By","value":"ip-10-0-0-41-L74"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-XSS-Protection","value":"1"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Set-Cookie","value":"ec_session=eyJpdiI6IkowMFFUUXdqSnFqRHpJMWl5R0lmZFE9PSIsInZhbHVlIjoiamtycGF1RHROSC9vZmlnNi9Ob0NxVHZ3Q1dMVWVMLzRjNU5KWHR6bStGbU10Z0E4RlI3anlJWCswYnd4TU1oMlc5NUxBOGhTNXEvZ3RXeElmQm5CRGovVERyRERheFk3dVgrMFIzd1lGRGRXZWlhMzRrQVRvUVRzRExPbG1wT00iLCJtYWMiOiI1YzU1MzYzMzU1MmVlODc4MDhlZWU1OGZhMDJkM2IzNjRjMThkNDA2Y2Y5YjZiODE3NTkxOTkzYTA0OWYzMTllIiwidGFnIjoiIn0%3D; expires=Tue, 01 Jul 2025 12:30:25 GMT; Max-Age=7200; path=/; secure; httponly; samesite=none"},{"key":"X-Content-Type-Options","value":"nosniff"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 68271,\n    \"title\": \"Event Test\",\n    \"type\": \"standard\",\n    \"description\": \"\",\n    \"image\": \"https://d2ahjhf73t7qu6.cloudfront.net/eyJidWNrZXQiOiJldmVudGN1YmUtZmlsZXMtcHJldmlldy1zdGFnaW5nIiwia2V5IjoidXBsb2Fkc1wvZmx5ZXJcLzJkZjA4MjJhMmNmNzU2MDAwZjAwNDMyZjlkZTEyMGQyNDgxYjU4MDkucG5nIiwiZWRpdHMiOnsicmVzaXplIjp7IndpZHRoIjozMDAsImhlaWdodCI6NDIzLCJmaXQiOiJjb3ZlciJ9fX0=\",\n    \"external_url\": null,\n    \"external_image_url\": null,\n    \"start\": 1761145200,\n    \"end\": 1761163200,\n    \"timezone\": \"Europe/London\",\n    \"seatsio_event_key\": null,\n    \"created_at\": \"2024-10-22T11:43:03.000000Z\",\n    \"updated_at\": \"2024-10-22T11:43:10.000000Z\",\n    \"url\": \"https://livetest123-preview-staging.eventcu.be/events/68271/event-test\",\n    \"tickets\": [\n        {\n            \"id\": 179850,\n            \"event_id\": 68271,\n            \"title\": \"Ten Pounds\",\n            \"description\": \"\",\n            \"quantity\": 100,\n            \"price\": 10,\n            \"booking_fee\": 1,\n            \"currency\": \"GBP\",\n            \"timeslot_start\": null,\n            \"timeslot_end\": null,\n            \"includes\": [],\n            \"type\": \"barcode\",\n            \"event\": {\n                \"id\": 68271,\n                \"title\": \"Event Test\",\n                \"description\": \"\"\n            },\n            \"is_secret\": false,\n            \"created_at\": \"2025-04-11T08:58:15.000000Z\",\n            \"updated_at\": \"2025-07-01T10:30:08.000000Z\",\n            \"available\": 88,\n            \"sales\": {\n                \"sold\": 12\n            },\n            \"seatsio_category_key\": null,\n            \"secret_ticket_password\": null,\n            \"sale_schedule\": null,\n            \"upsell_item\": null\n        },\n        {\n            \"id\": 176287,\n            \"event_id\": 68271,\n            \"title\": \"Resale: Paid\",\n            \"description\": \"\",\n            \"quantity\": 1,\n            \"price\": 10,\n            \"booking_fee\": 1,\n            \"currency\": \"GBP\",\n            \"timeslot_start\": null,\n            \"timeslot_end\": null,\n            \"includes\": [],\n            \"type\": \"barcode\",\n            \"event\": {\n                \"id\": 68271,\n                \"title\": \"Event Test\",\n                \"description\": \"\"\n            },\n            \"is_secret\": false,\n            \"created_at\": \"2025-02-18T10:46:51.000000Z\",\n            \"updated_at\": \"2025-07-01T10:30:08.000000Z\",\n            \"available\": 1,\n            \"sales\": {\n                \"sold\": 0\n            },\n            \"seatsio_category_key\": null,\n            \"secret_ticket_password\": null,\n            \"sale_schedule\": null,\n            \"upsell_item\": null\n        },\n        {\n            \"id\": 175628,\n            \"event_id\": 68271,\n            \"title\": \"Test Instalment\",\n            \"description\": \"\",\n            \"quantity\": 100,\n            \"price\": 10000,\n            \"booking_fee\": 1000,\n            \"currency\": \"GBP\",\n            \"timeslot_start\": null,\n            \"timeslot_end\": null,\n            \"includes\": [],\n            \"type\": \"barcode\",\n            \"event\": {\n                \"id\": 68271,\n                \"title\": \"Event Test\",\n                \"description\": \"\"\n            },\n            \"is_secret\": false,\n            \"created_at\": \"2025-02-06T11:52:23.000000Z\",\n            \"updated_at\": \"2025-07-01T10:30:08.000000Z\",\n            \"available\": 100,\n            \"sales\": {\n                \"sold\": 0\n            },\n            \"seatsio_category_key\": null,\n            \"secret_ticket_password\": null,\n            \"sale_schedule\": null,\n            \"upsell_item\": null\n        },\n        {\n            \"id\": 172635,\n            \"event_id\": 68271,\n            \"title\": \"Ticket Test\",\n            \"description\": \"\",\n            \"quantity\": 100,\n            \"price\": 0,\n            \"booking_fee\": 0,\n            \"currency\": \"GBP\",\n            \"timeslot_start\": null,\n            \"timeslot_end\": null,\n            \"includes\": [],\n            \"type\": \"barcode\",\n            \"event\": {\n                \"id\": 68271,\n                \"title\": \"Event Test\",\n                \"description\": \"\"\n            },\n            \"is_secret\": false,\n            \"created_at\": \"2025-01-07T11:08:43.000000Z\",\n            \"updated_at\": \"2025-07-01T10:30:08.000000Z\",\n            \"available\": 91,\n            \"sales\": {\n                \"sold\": 8\n            },\n            \"seatsio_category_key\": null,\n            \"secret_ticket_password\": null,\n            \"sale_schedule\": null,\n            \"upsell_item\": null\n        },\n        {\n            \"id\": 176113,\n            \"event_id\": 68271,\n            \"title\": \"Friday\",\n            \"description\": \"\",\n            \"quantity\": 100,\n            \"price\": 0,\n            \"booking_fee\": 0,\n            \"currency\": \"GBP\",\n            \"timeslot_start\": null,\n            \"timeslot_end\": null,\n            \"includes\": [],\n            \"type\": \"barcode\",\n            \"event\": {\n                \"id\": 68271,\n                \"title\": \"Event Test\",\n                \"description\": \"\"\n            },\n            \"is_secret\": false,\n            \"created_at\": \"2025-02-14T15:06:33.000000Z\",\n            \"updated_at\": \"2025-07-01T10:30:08.000000Z\",\n            \"available\": 96,\n            \"sales\": {\n                \"sold\": 4\n            },\n            \"seatsio_category_key\": null,\n            \"secret_ticket_password\": null,\n            \"sale_schedule\": null,\n            \"upsell_item\": null\n        },\n        {\n            \"id\": 176114,\n            \"event_id\": 68271,\n            \"title\": \"Saturday\",\n            \"description\": \"\",\n            \"quantity\": 100,\n            \"price\": 0,\n            \"booking_fee\": 0,\n            \"currency\": \"GBP\",\n            \"timeslot_start\": null,\n            \"timeslot_end\": null,\n            \"includes\": [],\n            \"type\": \"barcode\",\n            \"event\": {\n                \"id\": 68271,\n                \"title\": \"Event Test\",\n                \"description\": \"\"\n            },\n            \"is_secret\": false,\n            \"created_at\": \"2025-02-14T15:06:38.000000Z\",\n            \"updated_at\": \"2025-07-01T10:30:08.000000Z\",\n            \"available\": 100,\n            \"sales\": {\n                \"sold\": 0\n            },\n            \"seatsio_category_key\": null,\n            \"secret_ticket_password\": null,\n            \"sale_schedule\": null,\n            \"upsell_item\": null\n        },\n        {\n            \"id\": 176115,\n            \"event_id\": 68271,\n            \"title\": \"Sunday\",\n            \"description\": \"\",\n            \"quantity\": 100,\n            \"price\": 0,\n            \"booking_fee\": 0,\n            \"currency\": \"GBP\",\n            \"timeslot_start\": null,\n            \"timeslot_end\": null,\n            \"includes\": [],\n            \"type\": \"barcode\",\n            \"event\": {\n                \"id\": 68271,\n                \"title\": \"Event Test\",\n                \"description\": \"\"\n            },\n            \"is_secret\": false,\n            \"created_at\": \"2025-02-14T15:06:45.000000Z\",\n            \"updated_at\": \"2025-07-01T10:30:08.000000Z\",\n            \"available\": 100,\n            \"sales\": {\n                \"sold\": 0\n            },\n            \"seatsio_category_key\": null,\n            \"secret_ticket_password\": null,\n            \"sale_schedule\": null,\n            \"upsell_item\": null\n        },\n        {\n            \"id\": 176116,\n            \"event_id\": 68271,\n            \"title\": \"Weekend\",\n            \"description\": \"\",\n            \"quantity\": 150,\n            \"price\": 0,\n            \"booking_fee\": 0,\n            \"currency\": \"GBP\",\n            \"timeslot_start\": null,\n            \"timeslot_end\": null,\n            \"includes\": [],\n            \"type\": \"barcode\",\n            \"event\": {\n                \"id\": 68271,\n                \"title\": \"Event Test\",\n                \"description\": \"\"\n            },\n            \"is_secret\": false,\n            \"created_at\": \"2025-02-14T15:06:54.000000Z\",\n            \"updated_at\": \"2025-07-01T10:30:08.000000Z\",\n            \"available\": 150,\n            \"sales\": {\n                \"sold\": 0\n            },\n            \"seatsio_category_key\": null,\n            \"secret_ticket_password\": null,\n            \"sale_schedule\": null,\n            \"upsell_item\": null\n        },\n        {\n            \"id\": 164496,\n            \"event_id\": 68271,\n            \"title\": \"Paid\",\n            \"description\": \"\",\n            \"quantity\": 100,\n            \"price\": 1,\n            \"booking_fee\": 0.6,\n            \"currency\": \"GBP\",\n            \"timeslot_start\": null,\n            \"timeslot_end\": null,\n            \"includes\": [],\n            \"type\": \"barcode\",\n            \"event\": {\n                \"id\": 68271,\n                \"title\": \"Event Test\",\n                \"description\": \"\"\n            },\n            \"is_secret\": false,\n            \"created_at\": \"2024-10-22T11:43:10.000000Z\",\n            \"updated_at\": \"2025-07-01T10:30:08.000000Z\",\n            \"available\": 95,\n            \"sales\": {\n                \"sold\": 5\n            },\n            \"seatsio_category_key\": null,\n            \"secret_ticket_password\": null,\n            \"sale_schedule\": null,\n            \"upsell_item\": null\n        }\n    ],\n    \"categories\": [],\n    \"venue\": {\n        \"id\": 1,\n        \"title\": \"TBC\",\n        \"address\": {\n            \"address_1\": \"\",\n            \"address_2\": \"\",\n            \"city\": \"\",\n            \"county\": \"\",\n            \"postcode\": \"\",\n            \"country\": \"\",\n            \"country_short\": \"\",\n            \"tel\": \"\",\n            \"social\": {\n                \"twitter\": \"\",\n                \"facebook\": \"\",\n                \"website\": \"\"\n            },\n            \"legacy\": \"\"\n        },\n        \"address_formatted\": \"\"\n    },\n    \"artists\": [],\n    \"promoter\": {\n        \"id\": 5497,\n        \"name\": \"TST\",\n        \"website\": \"https://www.eventcube.io/\",\n        \"image\": \"uploads/promoter/images (3).jpeg\"\n    }\n}"}],"_postman_id":"e77d6f86-2247-4dab-a079-ce6280dc698d"},{"name":"Create event","id":"91e31177-81cc-49f9-b340-8938e54e3599","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"title\": \"Test event\",\n    \"description\": \"This is a test description\",\n    \"start\": \"2025-12-01 10:00:00\",\n    \"end\": \"2025-12-01 15:00:00\",\n    \"external_image_url\": \"https://foo.bar/my-image-1.jpg\",\n    \"categories\": [],\n    \"artists\": [],\n    \"venue\": null\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/events","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"3d124b42-5830-4486-a365-607c50f14560","id":"3d124b42-5830-4486-a365-607c50f14560","name":"EC API","type":"collection"}},"urlObject":{"path":["events"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"91e31177-81cc-49f9-b340-8938e54e3599"},{"name":"Update event","id":"5762696b-3f31-485f-a4a4-9fc2158afcb9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"title\": \"Test event 2\",\n    \"artists\": [8387],\n    \"categories\": [14986],\n    \"venue\": 4528\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/events/{{event_id}}","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"3d124b42-5830-4486-a365-607c50f14560","id":"3d124b42-5830-4486-a365-607c50f14560","name":"EC API","type":"collection"}},"urlObject":{"path":["events","{{event_id}}"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"5762696b-3f31-485f-a4a4-9fc2158afcb9"}],"id":"8379cb57-04a1-4a20-872c-e68b24be2962","_postman_id":"8379cb57-04a1-4a20-872c-e68b24be2962","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"3d124b42-5830-4486-a365-607c50f14560","id":"3d124b42-5830-4486-a365-607c50f14560","name":"EC API","type":"collection"}}},{"name":"Promoter","item":[{"name":"List Promoters","event":[{"listen":"test","script":{"id":"b585ca9a-1a1b-4d6c-a113-dba014e53325","exec":["// extract the list of promoter from the response","","","// assert that the promoters list is not empty","pm.test(\"Promoters list should not be empty\", function() {","    const promoterList = pm.response.json().results;","    pm.expect(promoterList.length).to.be.greaterThan(0);","});","","// assert that the promoters list is an array","pm.test(\"Promoters list should be an array\", function() {","    const promoterList = pm.response.json().results;","  pm.expect(promoterList).to.be.an(\"array\");","});","","// assert that the first promoter in the list has a name","pm.test(\"First promoter in the list should have a name\", function() {","    const promoterList = pm.response.json().results;","  pm.expect(promoterList[0]).to.have.property(\"name\");","});",""],"type":"text/javascript"}}],"id":"9c1596d6-3942-4c67-811a-e1d2220dc2ab","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{base_url}}/promoters","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"3d124b42-5830-4486-a365-607c50f14560","id":"3d124b42-5830-4486-a365-607c50f14560","name":"EC API","type":"collection"}},"urlObject":{"path":["promoters"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"9c1596d6-3942-4c67-811a-e1d2220dc2ab"},{"name":"List promoter_id events","event":[{"listen":"test","script":{"id":"b585ca9a-1a1b-4d6c-a113-dba014e53325","exec":["pm.test(\"List all events linked to Promoter with a title\", function() {","    const eventList = pm.response.json().results;","    ","    pm.expect(eventList).to.have.length.above(0); // add initial assertion","","    const promoterEvents = eventList.filter(function(event) {","        return event.promoter_id === \"Promoter_5534\";","    });","","    console.log(promoterEvents)","    const hasTitle = promoterEvents.every(function(event) {","        return event.hasOwnProperty(\"title\");","    });","","    pm.expect(hasTitle).to.be.true;","});","","","// assert that all events linked to Promoter in the list have a title","pm.test(\"List all events linked to Promoter with a title\", function() {","const eventList = pm.response.json().results;","const promoterEvents = eventList.filter(function(event) {","return event.promoter_id === \"Promoter_5534\";","});","promoterEvents.forEach(function(event) {","pm.expect(event).to.have.property(\"title\");","});","});"],"type":"text/javascript","packages":{}}}],"id":"d3f2b203-0437-498f-b9e7-007c1c8f79ce","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":""},"url":"{{base_url}}/promoters/promoter_id/","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"3d124b42-5830-4486-a365-607c50f14560","id":"3d124b42-5830-4486-a365-607c50f14560","name":"EC API","type":"collection"}},"urlObject":{"path":["promoters","promoter_id",""],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"d3f2b203-0437-498f-b9e7-007c1c8f79ce"},{"name":"Create Promoter","id":"79f71f1f-e7ac-4406-a9b8-b83c62cf29d8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Test Promoter\",\n    \"bio\": \"This is a test bio for this promoter\",\n    \"image\": \"https://url-to-external.img/test.jpg\",\n    \"website\": \"https://optional-promoter-website.com\"\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/promoters","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"3d124b42-5830-4486-a365-607c50f14560","id":"3d124b42-5830-4486-a365-607c50f14560","name":"EC API","type":"collection"}},"urlObject":{"path":["promoters"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"79f71f1f-e7ac-4406-a9b8-b83c62cf29d8"},{"name":"Update Promoter","id":"e589744d-1914-4e98-b50c-ff697e19ce8f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Test Promoter\",\n    \"bio\": \"This is a test bio for this promoter\",\n    \"image\": \"https://url-to-external.img/test.jpg\",\n    \"website\": \"https://optional-promoter-website.com\"\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/promoters/promoter_id/","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"3d124b42-5830-4486-a365-607c50f14560","id":"3d124b42-5830-4486-a365-607c50f14560","name":"EC API","type":"collection"}},"urlObject":{"path":["promoters","promoter_id",""],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"e589744d-1914-4e98-b50c-ff697e19ce8f"},{"name":"Delete Promoter","id":"a72ab483-2706-4497-854e-98ba8772851d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{base_url}}/promoters/promoter_id/","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"3d124b42-5830-4486-a365-607c50f14560","id":"3d124b42-5830-4486-a365-607c50f14560","name":"EC API","type":"collection"}},"urlObject":{"path":["promoters","promoter_id",""],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"a72ab483-2706-4497-854e-98ba8772851d"}],"id":"b0448674-fcef-49c1-918b-b688015d49aa","_postman_id":"b0448674-fcef-49c1-918b-b688015d49aa","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"3d124b42-5830-4486-a365-607c50f14560","id":"3d124b42-5830-4486-a365-607c50f14560","name":"EC API","type":"collection"}}},{"name":"Basket","item":[{"name":"Add ticket to basket","id":"fadd2e9e-cde7-4bca-bd59-7697aa900422","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"items\": [\n    \t{\n    \t\t\"ticket_id\": {{ticket_id}},\n    \t\t\"quantity\": 1\n    \t}\n   ],\n   \"discount_code\": \"TEST\"\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/carts","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"3d124b42-5830-4486-a365-607c50f14560","id":"3d124b42-5830-4486-a365-607c50f14560","name":"EC API","type":"collection"}},"urlObject":{"path":["carts"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"fadd2e9e-cde7-4bca-bd59-7697aa900422"},{"name":"Finalize order","id":"6d8d323d-0a09-4bef-a0a0-3b400e36e7d6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"cart_token\": \"{{cart_token_id}}\",\n    \"customer\": {\n        \"email\": \"foo@bar.com\",\n        \"first_name\": \"Anne\",\n        \"last_name\": \"Green\",\n        \"address_1\": \"...\",\n        \"address_2\": \"...\",\n        \"city\": \"London\",\n        \"postcode\": \"ABC 123\",\n        \"country\": \"UK\",\n        \"phone\": \"1234 56789\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/orders","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"3d124b42-5830-4486-a365-607c50f14560","id":"3d124b42-5830-4486-a365-607c50f14560","name":"EC API","type":"collection"}},"urlObject":{"path":["orders"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"6d8d323d-0a09-4bef-a0a0-3b400e36e7d6"},{"name":"Cart detail","id":"ef60ab3b-0520-44c0-83a9-e68554623e79","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{base_url}}/carts/{{cart_id}}","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"3d124b42-5830-4486-a365-607c50f14560","id":"3d124b42-5830-4486-a365-607c50f14560","name":"EC API","type":"collection"}},"urlObject":{"path":["carts","{{cart_id}}"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"ef60ab3b-0520-44c0-83a9-e68554623e79"}],"id":"7509da6f-1eb6-4bd5-b9df-952b8c70cf5f","_postman_id":"7509da6f-1eb6-4bd5-b9df-952b8c70cf5f","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"3d124b42-5830-4486-a365-607c50f14560","id":"3d124b42-5830-4486-a365-607c50f14560","name":"EC API","type":"collection"}}},{"name":"Order","item":[{"name":"List orders","id":"2546da1f-7c63-4472-8612-f7bc526c6ba8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{base_url}}/orders?event","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"3d124b42-5830-4486-a365-607c50f14560","id":"3d124b42-5830-4486-a365-607c50f14560","name":"EC API","type":"collection"}},"urlObject":{"path":["orders"],"host":["{{base_url}}"],"query":[{"description":{"content":"<p>filter orders containing tickets for given event ids (comma separated list of event ids)</p>\n","type":"text/plain"},"key":"event","value":null}],"variable":[]}},"response":[],"_postman_id":"2546da1f-7c63-4472-8612-f7bc526c6ba8"},{"name":"Order detail","id":"78257f8b-450d-41e1-9b39-53fdceceb683","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{base_url}}/orders/{{order_id_or_reference}}","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"3d124b42-5830-4486-a365-607c50f14560","id":"3d124b42-5830-4486-a365-607c50f14560","name":"EC API","type":"collection"}},"urlObject":{"path":["orders","{{order_id_or_reference}}"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[{"id":"7ed76fe5-db30-4242-b8ae-2c9ebd259d7b","name":"Order detail","originalRequest":{"method":"GET","header":[],"url":"{{base_url}}/orders/{{order_id_or_reference}}"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n    \"id\": 1021,\n    \"reference\": \"TS-ABCD-1234556789\",\n    \"status\": \"ok\",\n    \"billing\": {\n        \"title\": null,\n        \"name\": \"...\",\n        \"email\": \"...\",\n        \"phone\": null,\n        \"address\": {\n            \"address_1\": \"\",\n            \"address_2\": \"\",\n            \"city\": \"\",\n            \"county\": \"\",\n            \"postcode\": \"\"\n        },\n        \"first_name\": \"...\",\n        \"last_name\": \"...\"\n    },\n    \"shipping\": {\n        \"title\": null,\n        \"name\": \"...\",\n        \"email\": \"...\",\n        \"address\": {\n            \"address_1\": \"\",\n            \"address_2\": \"\",\n            \"city\": \"\",\n            \"county\": \"\",\n            \"postcode\": \"\"\n        },\n        \"first_name\": \"...\",\n        \"last_name\": \"...\"\n    },\n    \"items\": [\n        {\n            \"id\": 1,\n            \"ticket_id\": 1,\n            \"barcode\": \"ABCD123456\",\n            \"status\": \"ok\",\n            \"ticket\": {\n                \"id\": 1,\n                \"event_id\": 1,\n                \"title\": \"Test Ticket 1\",\n                \"description\": \"\",\n                \"price\": 10,\n                \"timeslot_start\": null,\n                \"timeslot_end\": null,\n                \"type\": \"barcode\",\n                \"event\": {\n                    \"id\": 1,\n                    \"title\": \"Test event 1\",\n                    \"description\": \"<p>Test description</p>\"\n                },\n                \"available\": 50,\n                \"seatsio_category_key\": null\n            }\n        },\n        {\n            \"id\": 2,\n            \"ticket_id\": 2,\n            \"barcode\": \"ABCD123457\",\n            \"status\": \"ok\",\n            \"ticket\": {\n                \"id\": 2,\n                \"event_id\": 2,\n                \"title\": \"Test Ticket 2\",\n                \"description\": \"\",\n                \"price\": 0,\n                \"timeslot_start\": null,\n                \"timeslot_end\": null,\n                \"type\": \"barcode\",\n                \"event\": {\n                    \"id\": 2,\n                    \"title\": \"Test event 2\",\n                    \"description\": \"...\"\n                },\n                \"available\": 98,\n                \"seatsio_category_key\": null\n            }\n        }\n    ],\n    \"custom_checkout_fields\": [\n        {\n            \"id\": 1,\n            \"name\": \"Type\",\n            \"value\": \"Manager\"\n        }\n    ]\n}"}],"_postman_id":"78257f8b-450d-41e1-9b39-53fdceceb683"}],"id":"82f6bd51-413e-4b3d-8f3c-21bc6ffd8846","_postman_id":"82f6bd51-413e-4b3d-8f3c-21bc6ffd8846","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"3d124b42-5830-4486-a365-607c50f14560","id":"3d124b42-5830-4486-a365-607c50f14560","name":"EC API","type":"collection"}}},{"name":"Devices","item":[{"name":"List devices","id":"788e10f0-3814-49ed-a37f-4dab690d42ed","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{token}}","disabled":false}],"url":"{{base_url}}/devices?page=1","description":"<p>Returns <code>{ \"results\": [...], \"count\": &lt;total&gt; }</code> with device objects.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"3d124b42-5830-4486-a365-607c50f14560","id":"3d124b42-5830-4486-a365-607c50f14560","name":"EC API","type":"collection"}},"urlObject":{"path":["devices"],"host":["{{base_url}}"],"query":[{"key":"page","value":"1"}],"variable":[]}},"response":[],"_postman_id":"788e10f0-3814-49ed-a37f-4dab690d42ed"},{"name":"Get device","id":"f852c6f8-eea5-4faf-8dac-337c715293ad","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{token}}","disabled":false}],"url":"{{base_url}}/devices/{{device_id}}","description":"<p>Single device: <code>id</code>, <code>name</code>, <code>type</code>, <code>category_id</code>, <code>permissions</code>, <code>created_at</code>, <code>updated_at</code>.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"3d124b42-5830-4486-a365-607c50f14560","id":"3d124b42-5830-4486-a365-607c50f14560","name":"EC API","type":"collection"}},"urlObject":{"path":["devices","{{device_id}}"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"f852c6f8-eea5-4faf-8dac-337c715293ad"},{"name":"Create device","id":"3e9d6453-fe57-497a-ad46-1c2e3725c8cc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{token}}","disabled":false},{"key":"Content-Type","value":"application/json","disabled":false},{"key":"Accept","value":"application/json","disabled":false}],"body":{"mode":"raw","raw":"{\"name\":\"Scanner 1\",\"type\":\"scanner\",\"category_id\":null,\"permissions\":{\"scan\":true,\"view-stats\":true,\"view-guest-names\":false,\"cash-settlement\":true,\"apply-discount\":true},\"events\":[],\"promoters\":[]}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/devices","description":"<p><strong>Required:</strong> <code>name</code>, <code>type</code> (<code>scanner</code>|<code>pos</code>).\n<strong>Optional:</strong> <code>category_id</code> (must belong to store), <code>permissions</code> (booleans), <code>events</code> (array of event ids), <code>promoters</code> (array of promoter ids).\n422 if validation fails or scanner has no permissions enabled.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"3d124b42-5830-4486-a365-607c50f14560","id":"3d124b42-5830-4486-a365-607c50f14560","name":"EC API","type":"collection"}},"urlObject":{"path":["devices"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"3e9d6453-fe57-497a-ad46-1c2e3725c8cc"},{"name":"Update device","id":"8dd58262-4bdc-4e8f-bd8b-3fc71a0c313e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Authorization","value":"Bearer {{token}}","disabled":false},{"key":"Content-Type","value":"application/json","disabled":false},{"key":"Accept","value":"application/json","disabled":false}],"body":{"mode":"raw","raw":"{\n    \"name\": \"Scanner 1 renamed\",\n    \"type\": \"scanner\",\n    \"category_id\": null,\n    \"permissions\": {\n        \"scan\": true,\n        \"view-stats\": true,\n        \"view-guest-names\": true,\n        \"cash-settlement\": true,\n        \"apply-discount\": true\n    },\n    \"events\": [],\n    \"tickets\": [],\n    \"promoters\": []\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/devices/{{device_id}}","description":"<p>All fields optional (partial update semantics via validated keys). Sending <code>events</code> or <code>promoters</code> replaces sync for that relation; use empty array to clear.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"3d124b42-5830-4486-a365-607c50f14560","id":"3d124b42-5830-4486-a365-607c50f14560","name":"EC API","type":"collection"}},"urlObject":{"path":["devices","{{device_id}}"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"8dd58262-4bdc-4e8f-bd8b-3fc71a0c313e"},{"name":"Delete device","id":"11c5b2eb-edc7-4faf-a47a-d939abcab62f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer {{token}}","disabled":false},{"key":"Accept","value":"application/json","disabled":false}],"url":"{{base_url}}/devices/{{device_id}}","description":"<p>204 No Content on success.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"3d124b42-5830-4486-a365-607c50f14560","id":"3d124b42-5830-4486-a365-607c50f14560","name":"EC API","type":"collection"}},"urlObject":{"path":["devices","{{device_id}}"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"11c5b2eb-edc7-4faf-a47a-d939abcab62f"}],"id":"51e523a5-bac2-4b2a-9053-ace7ccea97a6","_postman_id":"51e523a5-bac2-4b2a-9053-ace7ccea97a6","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"3d124b42-5830-4486-a365-607c50f14560","id":"3d124b42-5830-4486-a365-607c50f14560","name":"EC API","type":"collection"}}},{"name":"Device PINs","item":[{"name":"List PINs for device","id":"30a0e3fc-f468-4aec-aed5-befb67bc82b2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{token}}","disabled":false}],"url":"{{base_url}}/devices/{{device_id}}/pins?page=1","description":"<p>Returns <code>{ \"results\": [...], \"count\": &lt;total&gt; }</code>. Each PIN: <code>id</code>, <code>pin</code>, <code>is_active</code>, <code>expires_at</code> (unix timestamp or null), <code>created_at</code>, <code>updated_at</code>.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"3d124b42-5830-4486-a365-607c50f14560","id":"3d124b42-5830-4486-a365-607c50f14560","name":"EC API","type":"collection"}},"urlObject":{"path":["devices","{{device_id}}","pins"],"host":["{{base_url}}"],"query":[{"key":"page","value":"1"}],"variable":[]}},"response":[],"_postman_id":"30a0e3fc-f468-4aec-aed5-befb67bc82b2"},{"name":"Get PIN","id":"80ac1c7d-4665-4ca3-bc58-b52e6baf2d07","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{token}}","disabled":false}],"url":"{{base_url}}/devices/{{device_id}}/pins/{{pin_id}}","description":"<p>Single PIN resource.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"3d124b42-5830-4486-a365-607c50f14560","id":"3d124b42-5830-4486-a365-607c50f14560","name":"EC API","type":"collection"}},"urlObject":{"path":["devices","{{device_id}}","pins","{{pin_id}}"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"80ac1c7d-4665-4ca3-bc58-b52e6baf2d07"},{"name":"Create PIN","id":"bd6b1169-88b9-4658-8f41-97e17beb03e2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{token}}","disabled":false},{"key":"Content-Type","value":"application/json","disabled":false},{"key":"Accept","value":"application/json","disabled":false}],"body":{"mode":"raw","raw":"{\"pin\":null,\"is_active\":true,\"expires_at\":null}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/devices/{{device_id}}/pins","description":"<p><strong>Optional:</strong> <code>pin</code> (regex <code>^[a-z]+-[a-z]+-[a-z]+-[a-z]+$</code>), <code>is_active</code> (default true), <code>expires_at</code> (ISO date or null). Omit <code>pin</code> or set null to auto-generate. 422 if PIN already exists.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"3d124b42-5830-4486-a365-607c50f14560","id":"3d124b42-5830-4486-a365-607c50f14560","name":"EC API","type":"collection"}},"urlObject":{"path":["devices","{{device_id}}","pins"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"bd6b1169-88b9-4658-8f41-97e17beb03e2"},{"name":"Update PIN","id":"a17a0f60-02d7-49a7-b2d8-2d8f8843ccb0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Authorization","value":"Bearer {{token}}","disabled":false},{"key":"Content-Type","value":"application/json","disabled":false},{"key":"Accept","value":"application/json","disabled":false}],"body":{"mode":"raw","raw":"{\"is_active\":false,\"expires_at\":\"2026-12-31\"}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/devices/{{device_id}}/pins/{{pin_id}}","description":"<p><strong>Optional:</strong> <code>pin</code>, <code>is_active</code>, <code>expires_at</code>. Only sent fields are updated. 422 if new <code>pin</code> collides with another row.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"3d124b42-5830-4486-a365-607c50f14560","id":"3d124b42-5830-4486-a365-607c50f14560","name":"EC API","type":"collection"}},"urlObject":{"path":["devices","{{device_id}}","pins","{{pin_id}}"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"a17a0f60-02d7-49a7-b2d8-2d8f8843ccb0"},{"name":"Delete PIN","id":"7b9ab67f-fd81-4ecc-ac59-826b0ea92800","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer {{token}}","disabled":false},{"key":"Accept","value":"application/json","disabled":false}],"url":"{{base_url}}/devices/{{device_id}}/pins/{{pin_id}}","description":"<p>204 No Content on success.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"3d124b42-5830-4486-a365-607c50f14560","id":"3d124b42-5830-4486-a365-607c50f14560","name":"EC API","type":"collection"}},"urlObject":{"path":["devices","{{device_id}}","pins","{{pin_id}}"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"7b9ab67f-fd81-4ecc-ac59-826b0ea92800"}],"id":"4eb60f9c-48fd-4de4-b633-19c935143d5e","_postman_id":"4eb60f9c-48fd-4de4-b633-19c935143d5e","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"3d124b42-5830-4486-a365-607c50f14560","id":"3d124b42-5830-4486-a365-607c50f14560","name":"EC API","type":"collection"}}}],"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]}},"event":[{"listen":"prerequest","script":{"id":"bea0c089-4c65-48fb-9e1d-65a2ca132129","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"b2214617-8f6a-4163-853f-15dc5beccbb1","type":"text/javascript","exec":[""]}}],"variable":[{"key":"promoter_id","value":"promoter_id"}]}