{"info":{"_postman_id":"884fb583-96ad-47e7-aa2e-f85da8e1dbba","name":"EBG","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json"},"item":[{"name":"Auth0","item":[{"name":"Login Auth0 Admin","event":[{"listen":"test","script":{"id":"b9d64215-7d9d-44cb-aafa-6ee5bfca7bac","exec":["var jsonData = JSON.parse(responseBody);\r","postman.setEnvironmentVariable(\"token_admin\", jsonData.access_token);\r","\r","pm.test(\"Successful POST request\", function () {\r","    pm.expect(pm.response.code).to.be.oneOf([200,201,202]);\r","});"],"type":"text/javascript"}}],"id":"4a886bf9-cde6-418e-bbb4-cfa53e7c2d81","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token_admin}}"}},"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"grant_type","value":"{{auth0_grant_type}}","description":"auth0 grant type","type":"text"},{"key":"client_id","value":"{{auth0_client_id}}","description":"auth0 client id","type":"text"},{"key":"client_secret","value":"","description":"required for confidential clients","type":"text","disabled":true},{"key":"audience","value":"{{auth0_audience}}","description":"auth0 audience","type":"text"},{"key":"username","value":"{{admin_email}}","description":"admin email","type":"text"},{"key":"password","value":"{{admin_password}}","description":"admin password","type":"text"},{"key":"scope","value":"{{scope}}","description":"scope","type":"text"},{"key":"realm","value":"{{realm}}","description":"realm","type":"text"},{"key":"connection","value":"{{connection}}","description":"connection","type":"text"}]},"url":"https://{{auth0_domain}}/oauth/token"},"response":[],"_postman_id":"4a886bf9-cde6-418e-bbb4-cfa53e7c2d81"},{"name":"Login Auth0 Reseller","event":[{"listen":"test","script":{"id":"eb44595e-9f77-4cf5-80c2-5e038b4bb0e3","exec":["var jsonData = JSON.parse(responseBody);\r","postman.setEnvironmentVariable(\"token_reseller\", jsonData.access_token);\r","\r","pm.test(\"Successful POST request\", function () {\r","    pm.expect(pm.response.code).to.be.oneOf([200,201,202]);\r","});"],"type":"text/javascript"}}],"id":"00d22ada-3360-4081-8b70-b8638882284a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"grant_type","value":"{{auth0_grant_type}}","description":"auth0 grant type","type":"text"},{"key":"client_id","value":"{{auth0_client_id}}","description":"auth0 client id","type":"text"},{"key":"client_secret","value":"","description":"required for confidential clients","type":"text","disabled":true},{"key":"audience","value":"{{auth0_audience}}","description":"auth0 audience","type":"text"},{"key":"username","value":"{{reseller_email}}","description":"reseller email","type":"text"},{"key":"password","value":"{{reseller_password}}","description":"reseller password","type":"text"},{"key":"scope","value":"{{scope}}","description":"scope","type":"text"},{"key":"realm","value":"{{realm}}","description":"realm","type":"text"},{"key":"connection","value":"{{connection}}","description":"connection","type":"text"}]},"url":"https://{{auth0_domain}}/oauth/token"},"response":[],"_postman_id":"00d22ada-3360-4081-8b70-b8638882284a"},{"name":"Login Auth0 External","event":[{"listen":"test","script":{"id":"eb44595e-9f77-4cf5-80c2-5e038b4bb0e3","exec":["var jsonData = JSON.parse(responseBody);\r","postman.setEnvironmentVariable(\"token_external\", jsonData.access_token);\r","\r","pm.test(\"Successful POST request\", function () {\r","    pm.expect(pm.response.code).to.be.oneOf([200,201,202]);\r","});"],"type":"text/javascript"}}],"id":"bc3282aa-bc9d-4f7b-87b8-4cdebe418cc1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"grant_type","value":"{{auth0_grant_type}}","description":"auth0 grant type","type":"text"},{"key":"client_id","value":"{{auth0_client_id}}","description":"auth0 client id","type":"text"},{"key":"client_secret","value":"","description":"required for confidential clients","type":"text","disabled":true},{"key":"audience","value":"{{auth0_audience}}","description":"auth0 audience","type":"text"},{"key":"username","value":"{{external_email}}","description":"external email","type":"text"},{"key":"password","value":"{{external_password}}","description":"external password","type":"text"},{"key":"scope","value":"{{scope}}","description":"scope","type":"text"},{"key":"realm","value":"{{realm}}","description":"realm","type":"text"},{"key":"connection","value":"{{connection}}","description":"connection","type":"text"}]},"url":"https://{{auth0_domain}}/oauth/token"},"response":[],"_postman_id":"bc3282aa-bc9d-4f7b-87b8-4cdebe418cc1"}],"id":"a6277787-2a99-4d67-a62f-acaa57dc573b","description":"This is the OAuth 2.0 grant that highly trusted apps utilize in order to access an API. In this flow the end-user is asked to fill in credentials (username/password) typically using an interactive form. This information is later on sent to the Client and the Authorization Server. It is therefore imperative that the Client is absolutely trusted with this information.","event":[{"listen":"prerequest","script":{"id":"6d9566b7-035e-4c5a-8320-b5e89d37965e","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"96b066ae-ac0d-4ed7-954c-2ec9f155743e","type":"text/javascript","exec":[""]}}],"_postman_id":"a6277787-2a99-4d67-a62f-acaa57dc573b"},{"name":"1.1. API Method: Get Accounts info for all Brokers ","item":[{"name":"1.1 Get Accounts info for all Brokers (Success)","event":[{"listen":"test","script":{"id":"083f100c-85e3-4ee7-b3ac-fd073035a9d5","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"response must be json\", function () {","    pm.response.to.be.json; ","});","","pm.test(\"response should have jsonBody without errors\", function () {","    pm.response.to.not.be.error;","    pm.response.to.have.jsonBody(\"size\");","    pm.response.to.have.jsonBody(\"results\");","    pm.response.to.not.have.jsonBody(\"error\");","});","","pm.test(\"response should have account fields\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.results[0].accountId).to.include(\"auth0\");","    pm.expect(jsonData.results[0].name).not.equal(null);","    pm.expect(jsonData.results[0].companyName).not.equal(null);","    pm.expect(jsonData.results[0].email).to.include(\"@\");","});"],"type":"text/javascript"}}],"id":"25829e13-7e5c-47fb-8bf6-6834d7a1d078","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token_admin}}"}},"method":"GET","header":[],"url":"https://{{domain}}/api/v1/accounts","description":"Response codes:\r\n- 200 - Indicates success"},"response":[{"id":"8d6a6b74-f1f8-45b9-9ff1-3f687e49c799","name":"1.1 Get Accounts info for all Brokers (Success)","originalRequest":{"method":"GET","header":[],"url":"https://{{domain}}/api/v1/accounts"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"47132"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Tue, 15 Oct 2019 12:53:31 GMT"},{"key":"x-amzn-RequestId","value":"a8b03a62-d0a1-46eb-8ff7-fdb126bf00b9"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"*"},{"key":"x-amz-apigw-id","value":"BmshIHNJIAMFRKQ="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5da5c13a-766951f4568f590c708d5d54;Sampled=0"},{"key":"Access-Control-Max-Age","value":"86400"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 e830c64a8809a708404ba54d59d32214.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"YUL62-C1"},{"key":"X-Amz-Cf-Id","value":"pyDmIK-9D9G7GvPpqLWtCnNcMNz-cazfcYFWdItF2PfC0KPmjra6cw=="}],"cookie":[],"responseTime":null,"body":"{\n    \"size\": 1,\n    \"results\": [\n        {\n            \"accountId\": \"auth0|5d947f42fb7a8e0e18f4d394\",\n            \"name\": \"Reseller Alina\",\n            \"companyName\": \"AT_company\",\n            \"phone\": \"+50034712245\",\n            \"email\": \"alina.tsvyak@gmail.com\",\n            \"ebgVendorId\": \"159\",\n            \"featuredReseller\": 1,\n            \"internalNotes\": \"<p><br></p>\",\n            \"countryId\": 217,\n            \"stateId\": 34,\n            \"addressLine1\": \"81 Main St\",\n            \"addressLine2\": \"\",\n            \"city\": \"Austin\",\n            \"zipCode\": \"89310\",\n            \"inventoryMarkupPercent\": 12,\n            \"sellFeePercent\": 2,\n            \"sftpHost\": \"pa-uat-ftp2.ticketmonster.com\",\n            \"sftpUsername\": \"u5d947f42fb7a8e0e18f4d394\",\n            \"sftpPassword\": \"kE5FhTaBfn\",\n            \"apiKey\": \"\",\n            \"staleThreshold\": 1,\n            \"listingAlertThreshold\": 30,\n            \"contractStatusType\": \"ACTIVE\",\n            \"lastUploaded\": {},\n            \"abbrev2char\": \"US\",\n            \"unconfirmedOrders\": 7,\n            \"integrationType\": \"CLOAKIFY\",\n            \"paymentOption\": \"EBG_CREDIT_CARD\",\n            \"country\": {\n                \"countryId\": 217,\n                \"name\": \"United States of America\",\n                \"abbrev2char\": \"US\"\n            },\n            \"state\": {\n                \"stateId\": 34,\n                \"name\": \"Nevada\"\n            },\n            \"lastUpdated\": \"2019-10-09T15:10:06\"\n        }\n    ]\n}"}],"_postman_id":"25829e13-7e5c-47fb-8bf6-6834d7a1d078"},{"name":"1.1 Get Accounts info for all Brokers (Access is not allowed)","event":[{"listen":"test","script":{"id":"083f100c-85e3-4ee7-b3ac-fd073035a9d5","exec":["pm.test(\"Status code is 403\", function () {","    pm.response.to.have.status(403);","});","","pm.test(\"response must be json\", function () {","    pm.response.to.be.json; ","});","","pm.test(\"response should have jsonBody with error and message\", function () {","    pm.response.to.be.error;","    pm.response.to.have.jsonBody(\"error\");","    pm.response.to.have.jsonBody(\"message\");","});","",""],"type":"text/javascript"}}],"id":"eb2ed4d7-a900-447b-b104-1767a2807057","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token_reseller}}"}},"method":"GET","header":[],"url":"https://{{domain}}/api/v1/accounts","description":"Response codes:\r\n- 403 - Access is not allowed"},"response":[{"id":"e11337b5-54b2-4ca7-8e9e-dad6ff003ee4","name":"1.1 Get Accounts info for all Brokers (Access is not allowed)","originalRequest":{"method":"GET","header":[],"url":"https://{{domain}}/api/v1/accounts"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"45"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Tue, 15 Oct 2019 12:58:47 GMT"},{"key":"x-amzn-RequestId","value":"947b40af-21c4-45e3-ae68-9eee2fc5de4d"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"*"},{"key":"x-amz-apigw-id","value":"BmtVJFkNIAMFjTg="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5da5c287-12fbb519f6d631f66d2a5511;Sampled=0"},{"key":"Access-Control-Max-Age","value":"86400"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"X-Cache","value":"Error from cloudfront"},{"key":"Via","value":"1.1 814e6200dbb5865e94b7b0c1ba6129fe.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"IAD89-C1"},{"key":"X-Amz-Cf-Id","value":"4Tl8_122f4nxnJGEFDrQIl85v-r3C5LH45mfUpv9263S8Y6t4K_n3g=="}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Forbidden!\",\n    \"message\": \"Forbidden!\"\n}"}],"_postman_id":"eb2ed4d7-a900-447b-b104-1767a2807057"},{"name":"1.1 Get Accounts info for all Brokers (Unauthorized)","event":[{"listen":"test","script":{"id":"083f100c-85e3-4ee7-b3ac-fd073035a9d5","exec":["pm.test(\"Status code is 401\", function () {","    pm.response.to.have.status(401);","});","","pm.test(\"response must be json\", function () {","    pm.response.to.be.json; ","});","","pm.test(\"response should have jsonBody with error and message\", function () {","    pm.response.to.be.error;","    pm.response.to.have.jsonBody(\"error\");","    pm.response.to.have.jsonBody(\"message\");","});","",""],"type":"text/javascript"}}],"id":"fa1f7687-6e03-46c6-b561-32072fc20eaf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth"},"method":"GET","header":[],"url":"https://{{domain}}/api/v1/accounts","description":"Response codes:\r\n- 401 - Unauthorized"},"response":[{"id":"3eae8517-879e-449d-90e4-601da9fd6f4d","name":"1.1 Get Accounts info for all Brokers (Unauthorized)","originalRequest":{"method":"GET","header":[],"url":"https://{{domain}}/api/v1/accounts"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"81"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Tue, 15 Oct 2019 12:59:07 GMT"},{"key":"x-amzn-RequestId","value":"6739a304-c226-40ce-87a5-27cdfe58740f"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"*"},{"key":"x-amz-apigw-id","value":"BmtYRFvCoAMF1Bw="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5da5c29b-246221e6e48264ce6af4b2dc;Sampled=0"},{"key":"Access-Control-Max-Age","value":"86400"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"X-Cache","value":"Error from cloudfront"},{"key":"Via","value":"1.1 814e6200dbb5865e94b7b0c1ba6129fe.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"IAD89-C1"},{"key":"X-Amz-Cf-Id","value":"m94bAm_EE8_r9gjhgytiNJAr56tHRwIxZt4Y5fnzvnkbrqgDjq-fTA=="}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Invalid authorization token!\",\n    \"message\": \"Invalid authorization token!\"\n}"}],"_postman_id":"fa1f7687-6e03-46c6-b561-32072fc20eaf"}],"id":"e68193cb-39ce-4ca1-abba-ac42db13b0c5","description":"Description:\r\nReturn all accounts information and their details\r\nThis method will be called on the Accounts (Brokers) View All screen\r\n\r\nMethod:\r\n- GET\r\n\r\nRequest parameters type: \r\n- URL query string\r\n\r\nRequest parameters:\r\n- No Request parameters. All Accounts data are server on this request. It will be sorted and filtered on FE\r\n\r\nResponse media type:\r\n- application/json","event":[{"listen":"prerequest","script":{"id":"f910a0f9-b675-4ca5-b22d-2cf9d4ff1cb8","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"310b0eeb-875d-42ec-8f79-b216f3abbbb9","type":"text/javascript","exec":[""]}}],"_postman_id":"e68193cb-39ce-4ca1-abba-ac42db13b0c5"},{"name":"1.2. API Method: Get specific Account info for a Broker ","item":[{"name":"1.2 Get specific Account info for a Broker (Admin)","event":[{"listen":"test","script":{"id":"1c01d403-6e5e-401e-907c-e4ede24b2928","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"response should have jsonBody without errors\", function () {","    pm.response.to.not.be.error;","    pm.response.to.have.jsonBody(\"accountId\");","    pm.response.to.have.jsonBody(\"name\");","    pm.response.to.have.jsonBody(\"companyName\");","    pm.response.to.have.jsonBody(\"phone\");","    pm.response.to.have.jsonBody(\"ebgVendorId\");","    pm.response.to.have.jsonBody(\"featuredReseller\");","    pm.response.to.have.jsonBody(\"internalNotes\");","    pm.response.to.have.jsonBody(\"countryId\");","    pm.response.to.have.jsonBody(\"stateId\");","    pm.response.to.have.jsonBody(\"addressLine1\");","    pm.response.to.have.jsonBody(\"addressLine2\");","    pm.response.to.have.jsonBody(\"city\");","    pm.response.to.have.jsonBody(\"zipCode\");","    pm.response.to.have.jsonBody(\"inventoryMarkupPercent\");","    pm.response.to.have.jsonBody(\"sellFeePercent\");","    pm.response.to.have.jsonBody(\"sftpHost\");","    pm.response.to.have.jsonBody(\"sftpUsername\");","    pm.response.to.have.jsonBody(\"sftpPassword\");","    pm.response.to.have.jsonBody(\"apiKey\");","    pm.response.to.have.jsonBody(\"integrationType\");","    pm.response.to.have.jsonBody(\"paymentOption\");","    pm.response.to.not.have.jsonBody(\"error\");","});","","pm.test(\"response should have account fields\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.accountId).to.include(\"auth0\");","    pm.expect(jsonData.name).not.equal(null);","    pm.expect(jsonData.companyName).not.equal(null);","    pm.expect(jsonData.phone).not.equal(null);","    pm.expect(jsonData.email).to.include(\"@\");","    pm.expect(jsonData.countryId).not.equal(null);","    pm.expect(jsonData.stateId).not.equal(null);        ","    pm.expect(jsonData.addressLine1).not.equal(null);    ","    pm.expect(jsonData.city).not.equal(null);    ","    pm.expect(jsonData.zipCode).not.equal(null);         ","});"],"type":"text/javascript"}}],"id":"566e3b1a-e619-4d42-96aa-5a8d7e2d2efc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token_admin}}"}},"method":"GET","header":[],"url":"https://{{domain}}/api/v1/accounts/{{broker_id}}","description":"Response fields:\r\n- Admin Projection (all fields from DB)\r\n\r\nResponse codes:\r\n- 200 - Indicates success"},"response":[{"id":"3c05e476-faa0-4ee2-a4fd-146f99d03dcb","name":"1.2 Get specific Account info for a Broker (Admin user)","originalRequest":{"method":"GET","header":[],"url":"https://{{domain}}/api/v1/accounts/{{broker_id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"847"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Tue, 15 Oct 2019 13:00:54 GMT"},{"key":"x-amzn-RequestId","value":"450f59cb-ce30-4bf4-ad22-96680565ef7f"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"*"},{"key":"x-amz-apigw-id","value":"Bmto-HVpIAMFnPg="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5da5c306-6e581f5a76ae993c7fe1ba70;Sampled=0"},{"key":"Access-Control-Max-Age","value":"86400"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 814e6200dbb5865e94b7b0c1ba6129fe.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"IAD89-C1"},{"key":"X-Amz-Cf-Id","value":"jOjVqtJge9hMSTviy96oiv81h23614lNisMytSI02RZIDvm72YV0Ng=="}],"cookie":[],"responseTime":null,"body":"{\n    \"accountId\": \"auth0|5d947f42fb7a8e0e18f4d394\",\n    \"name\": \"Reseller Alina\",\n    \"companyName\": \"AT_reseller_company\",\n    \"phone\": \"+50034712245\",\n    \"email\": \"alina.tsvyak@gmail.com\",\n    \"ebgVendorId\": \"159\",\n    \"featuredReseller\": 1,\n    \"internalNotes\": \"<p><br></p>\",\n    \"countryId\": 217,\n    \"stateId\": 34,\n    \"addressLine1\": \"81 Main St\",\n    \"addressLine2\": \"\",\n    \"city\": \"Austin\",\n    \"zipCode\": \"89310\",\n    \"inventoryMarkupPercent\": 12,\n    \"sellFeePercent\": 2,\n    \"sftpHost\": \"pa-uat-ftp2.ticketmonster.com\",\n    \"sftpUsername\": \"u5d947f42fb7a8e0e18f4d394\",\n    \"sftpPassword\": \"kE5FhTaBfn\",\n    \"apiKey\": \"\",\n    \"staleThreshold\": 1,\n    \"listingAlertThreshold\": 30,\n    \"contractStatusType\": \"ACTIVE\",\n    \"lastUploaded\": {},\n    \"abbrev2char\": \"US\",\n    \"integrationType\": \"CLOAKIFY\",\n    \"paymentOption\": \"EBG_CREDIT_CARD\",\n    \"country\": {\n        \"countryId\": 217,\n        \"name\": \"United States of America\",\n        \"abbrev2char\": \"US\"\n    },\n    \"state\": {\n        \"stateId\": 34,\n        \"name\": \"Nevada\"\n    },\n    \"lastUpdated\": \"2019-10-09T15:10:06\"\n}"}],"_postman_id":"566e3b1a-e619-4d42-96aa-5a8d7e2d2efc"},{"name":"1.2 Get specific Account info for a Broker (Reseller)","event":[{"listen":"test","script":{"id":"1c01d403-6e5e-401e-907c-e4ede24b2928","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"response should have jsonBody without errors\", function () {","    pm.response.to.not.be.error;","    pm.response.to.have.jsonBody(\"accountId\");","    pm.response.to.have.jsonBody(\"name\");","    pm.response.to.have.jsonBody(\"companyName\");","    pm.response.to.have.jsonBody(\"phone\");","    pm.response.to.have.jsonBody(\"email\");","    pm.response.to.have.jsonBody(\"countryId\");","    pm.response.to.have.jsonBody(\"stateId\");","    pm.response.to.have.jsonBody(\"addressLine1\");","    pm.response.to.have.jsonBody(\"addressLine2\");","    pm.response.to.have.jsonBody(\"city\");","    pm.response.to.have.jsonBody(\"zipCode\");","    pm.response.to.have.jsonBody(\"sellFeePercent\");","    pm.response.to.have.jsonBody(\"sftpHost\");","    pm.response.to.have.jsonBody(\"sftpUsername\");","    pm.response.to.have.jsonBody(\"sftpPassword\");","    pm.response.to.have.jsonBody(\"apiKey\");","    pm.response.to.have.jsonBody(\"integrationType\");","    pm.response.to.have.jsonBody(\"paymentOption\");","    pm.response.to.not.have.jsonBody(\"error\");","});","","pm.test(\"response should have account fields\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.accountId).to.include(\"auth0\");","    pm.expect(jsonData.name).not.equal(null);","    pm.expect(jsonData.companyName).not.equal(null);","    pm.expect(jsonData.phone).not.equal(null);","    pm.expect(jsonData.email).to.include(\"@\");","    pm.expect(jsonData.countryId).not.equal(null);","    pm.expect(jsonData.stateId).not.equal(null);        ","    pm.expect(jsonData.addressLine1).not.equal(null);    ","    pm.expect(jsonData.city).not.equal(null);    ","    pm.expect(jsonData.zipCode).not.equal(null);         ","});"],"type":"text/javascript"}}],"id":"f93f5e91-7d3a-402b-94bc-8d0ccfce4ad3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token_reseller}}"}},"method":"GET","header":[],"url":"https://{{domain}}/api/v1/accounts/{{broker_id}}","description":"Response fields:\r\n- Reseller projection (available for Reseller fields)\r\n\r\nResponse codes:\r\n- 200 - Indicates success"},"response":[{"id":"64da18e1-c989-4309-b8c9-449d557fa33e","name":"1.2 Get specific Account info for a Broker (Reseller user)","originalRequest":{"method":"GET","header":[],"url":"https://{{domain}}/api/v1/accounts/{{broker_id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"702"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Tue, 15 Oct 2019 13:34:58 GMT"},{"key":"x-amzn-RequestId","value":"f4f7ad8c-4fc9-4723-9d7c-8ee4cfa07670"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"*"},{"key":"x-amz-apigw-id","value":"BmyoaE6MIAMF8ww="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5da5cb02-5238545683230f2e2158bafc;Sampled=0"},{"key":"Access-Control-Max-Age","value":"86400"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 c307613fe3146dad6950808dc74f82f6.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"IAD89-C2"},{"key":"X-Amz-Cf-Id","value":"gYFj7OLPK2vXdEFZfW6_kVoLVCZTMnabYUpbrj3JnE4NBNQyAupLQw=="}],"cookie":[],"responseTime":null,"body":"{\n    \"accountId\": \"auth0|5d947f42fb7a8e0e18f4d394\",\n    \"name\": \"Reseller Alina\",\n    \"companyName\": \"AT_reseller_company\",\n    \"phone\": \"+50034712245\",\n    \"email\": \"alina.tsvyak@gmail.com\",\n    \"countryId\": 217,\n    \"stateId\": 34,\n    \"addressLine1\": \"81 Main St\",\n    \"addressLine2\": \"\",\n    \"city\": \"Austin\",\n    \"zipCode\": \"89310\",\n    \"sellFeePercent\": 2,\n    \"sftpHost\": \"pa-uat-ftp2.ticketmonster.com\",\n    \"sftpUsername\": \"u5d947f42fb7a8e0e18f4d394\",\n    \"sftpPassword\": \"kE5FhTaBfn\",\n    \"apiKey\": \"\",\n    \"contractStatusType\": \"ACTIVE\",\n    \"lastUploaded\": {},\n    \"abbrev2char\": \"US\",\n    \"integrationType\": \"CLOAKIFY\",\n    \"paymentOption\": \"EBG_CREDIT_CARD\",\n    \"country\": {\n        \"countryId\": 217,\n        \"name\": \"United States of America\",\n        \"abbrev2char\": \"US\"\n    },\n    \"state\": {\n        \"stateId\": 34,\n        \"name\": \"Nevada\"\n    },\n    \"lastUpdated\": \"2019-10-09T15:10:06\"\n}"}],"_postman_id":"f93f5e91-7d3a-402b-94bc-8d0ccfce4ad3"},{"name":"1.2 Get specific Account info for a Broker (Account not found)","event":[{"listen":"test","script":{"id":"1c01d403-6e5e-401e-907c-e4ede24b2928","exec":["pm.test(\"Status code is 404\", function () {","    pm.response.to.have.status(404);","});","","pm.test(\"response must be json\", function () {","    pm.response.to.be.json; ","});","","pm.test(\"response should have jsonBody with error and message\", function () {","    pm.response.to.be.error;","    pm.response.to.have.jsonBody(\"error\");","    pm.response.to.have.jsonBody(\"message\");","});",""],"type":"text/javascript"}}],"id":"2386bb3f-7552-4306-ae15-7f538c77b4ae","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token_admin}}"}},"method":"GET","header":[],"url":"https://{{domain}}/api/v1/accounts/{{broker_id}}gg","description":"Response codes:\r\n- 404 - Account not found."},"response":[{"id":"6d5a3e07-929a-4dc7-993a-664affc09161","name":"1.2 Get specific Account info for a Broker (Account not found)","originalRequest":{"method":"GET","header":[],"url":"https://{{domain}}/api/v1/accounts/{{broker_id}}gg"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"45"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Tue, 15 Oct 2019 13:01:18 GMT"},{"key":"x-amzn-RequestId","value":"1f04140e-36da-464a-963f-280566ad2620"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"*"},{"key":"x-amz-apigw-id","value":"BmtstEEFIAMFZkQ="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5da5c31e-ff61d63c255bbe5476caba78;Sampled=0"},{"key":"Access-Control-Max-Age","value":"86400"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"X-Cache","value":"Error from cloudfront"},{"key":"Via","value":"1.1 814e6200dbb5865e94b7b0c1ba6129fe.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"IAD89-C1"},{"key":"X-Amz-Cf-Id","value":"erOncdC5b1H1JUdbt1fOyX_RnRc8zcVNP4HqSyG6qMNiC5q3pj1J4Q=="}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Not found!\",\n    \"message\": \"Not found!\"\n}"}],"_postman_id":"2386bb3f-7552-4306-ae15-7f538c77b4ae"},{"name":"1.2 Get specific Account info for a Broker (Access is not allowed)","event":[{"listen":"test","script":{"id":"1c01d403-6e5e-401e-907c-e4ede24b2928","exec":["pm.test(\"Status code is 403\", function () {","    pm.response.to.have.status(403);","});","","pm.test(\"response must be json\", function () {","    pm.response.to.be.json; ","});","","pm.test(\"response should have jsonBody with error and message\", function () {","    pm.response.to.be.error;","    pm.response.to.have.jsonBody(\"error\");","    pm.response.to.have.jsonBody(\"message\");","});"],"type":"text/javascript"}}],"id":"c058f76e-059c-43d0-9809-25d7e515aa18","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token_reseller}}"}},"method":"GET","header":[],"url":"https://{{domain}}/api/v1/accounts/{{broker_id_1}}","description":"Response codes:\r\n- 403 - Access is not allowed\r\n"},"response":[{"id":"f94bbf65-1a53-4637-baed-333a96a2a31f","name":"1.2 Get specific Account info for a Broker (Access is not allowed)","originalRequest":{"method":"GET","header":[],"url":"https://{{domain}}/api/v1/accounts/{{broker_id_1}}"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"45"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Tue, 15 Oct 2019 13:01:34 GMT"},{"key":"x-amzn-RequestId","value":"2488e3d7-c2fa-402b-bc3c-998829cfbe1c"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"*"},{"key":"x-amz-apigw-id","value":"BmtvOG5soAMFqIQ="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5da5c32e-2aa403e6a85e3e8cfc73613a;Sampled=0"},{"key":"Access-Control-Max-Age","value":"86400"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"X-Cache","value":"Error from cloudfront"},{"key":"Via","value":"1.1 814e6200dbb5865e94b7b0c1ba6129fe.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"IAD89-C1"},{"key":"X-Amz-Cf-Id","value":"48HLBo6qwdGDl0AOe7kA9q_Z6dnrUypeat9aiRWm9kvjc0pP1nK0pw=="}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Forbidden!\",\n    \"message\": \"Forbidden!\"\n}"}],"_postman_id":"c058f76e-059c-43d0-9809-25d7e515aa18"},{"name":"1.2 Get specific Account info for a Broker (Unauthorized)","event":[{"listen":"test","script":{"id":"083f100c-85e3-4ee7-b3ac-fd073035a9d5","exec":["pm.test(\"Status code is 401\", function () {","    pm.response.to.have.status(401);","});","","pm.test(\"response must be json\", function () {","    pm.response.to.be.json; ","});","","pm.test(\"response should have jsonBody with error and message\", function () {","    pm.response.to.be.error;","    pm.response.to.have.jsonBody(\"error\");","    pm.response.to.have.jsonBody(\"message\");","});","","",""],"type":"text/javascript"}}],"id":"880f258d-00dc-4042-b26a-5fd2da289793","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth"},"method":"GET","header":[],"url":"https://{{domain}}/api/v1/accounts/{{broker_id}}","description":"Response codes:\r\n- 401 - Unauthorized"},"response":[{"id":"c5592fec-5892-459d-bdcb-3550a3b1ed50","name":"1.2 Get specific Account info for a Broker (Unauthorized)","originalRequest":{"method":"GET","header":[],"url":"https://{{domain}}/api/v1/accounts/{{broker_id}}"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"81"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Tue, 15 Oct 2019 13:01:53 GMT"},{"key":"x-amzn-RequestId","value":"0ea6e2a6-abe2-4dd0-9a20-d57de0e38429"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"*"},{"key":"x-amz-apigw-id","value":"BmtyUF7EIAMFisw="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5da5c341-fc48649df2f19edfd054c7ea;Sampled=0"},{"key":"Access-Control-Max-Age","value":"86400"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"X-Cache","value":"Error from cloudfront"},{"key":"Via","value":"1.1 814e6200dbb5865e94b7b0c1ba6129fe.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"IAD89-C1"},{"key":"X-Amz-Cf-Id","value":"1E04moUcnPvRLnL30Qhi13aQNySguyuJNCPY286EfFIxNeoH582euw=="}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Invalid authorization token!\",\n    \"message\": \"Invalid authorization token!\"\n}"}],"_postman_id":"880f258d-00dc-4042-b26a-5fd2da289793"}],"id":"5ac26633-a2c3-4979-8690-200a9661fac0","description":"Description:\r\nReturn specific account information about broker and it's details\r\nThis method will be called on the Accounts (Brokers) Edit Reseller screen\r\n\r\nMethod:\r\n- GET\r\n\r\nRequest parameters type: \r\n- URL Path parameter\r\n\r\nRequest parameters:\r\n- id - internal DB id of the Broker (Primary Key in MySQL)\r\n\r\nResponse media type:\r\n- application/json","event":[{"listen":"prerequest","script":{"id":"b444dda1-7a8c-45d2-9374-0bf43be86c85","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"03d51c50-bd4a-4c9f-9a57-5d7925cbf187","type":"text/javascript","exec":[""]}}],"_postman_id":"5ac26633-a2c3-4979-8690-200a9661fac0"},{"name":"3.1. API Method: Get all Categories information","item":[{"name":"3.1 Get all Categories information (Admin)","event":[{"listen":"test","script":{"id":"d13dd275-c7e3-4c5e-8912-5110f3e08699","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"response should have jsonBody without errors\", function () {","    pm.response.to.not.be.error;","    pm.response.to.have.jsonBody(\"size\");","    pm.response.to.have.jsonBody(\"results\");","    pm.response.to.not.have.jsonBody(\"error\");","});","","pm.test(\"response should have category fields\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.results[0].categoryId).not.equal(null);","    pm.expect(jsonData.results[0].name).not.equal(null);","});"],"type":"text/javascript"}}],"id":"d7a4d686-7851-4643-bf81-4c337485d839","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token_admin}}"}},"method":"GET","header":[],"url":"https://{{domain}}/api/v1/categories","description":"Response codes:\r\n- 200 - Indicates success"},"response":[{"id":"56af2b23-2d97-4a5c-a907-118a0e3d66f1","name":"3.1 Get all Categories information (Admin)","originalRequest":{"method":"GET","header":[],"url":"https://{{domain}}/api/v1/categories"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"10068"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Tue, 15 Oct 2019 13:49:08 GMT"},{"key":"x-amzn-RequestId","value":"824ea4b8-513b-46ac-95c5-592dc8806cf4"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"*"},{"key":"x-amz-apigw-id","value":"Bm0tRGG6IAMFxUg="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5da5ce54-4088f54ae3dfb6e4949884a6;Sampled=0"},{"key":"Access-Control-Max-Age","value":"86400"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 c94378b36f8a40d65d0bb1c2edbb9c73.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"IAD89-C2"},{"key":"X-Amz-Cf-Id","value":"-ohszAru_KuZIuy-L9O4cFDkgWqslbwW9YDtBknCQEry4v1b2Sf5jw=="}],"cookie":[],"responseTime":null,"body":"{\n    \"size\": 3,\n    \"results\": [\n        {\n            \"categoryId\": 1,\n            \"parentCategoryId\": null,\n            \"ticketEvoId\": null,\n            \"name\": \"SPORTS\"\n        },\n        {\n            \"categoryId\": 2,\n            \"parentCategoryId\": null,\n            \"ticketEvoId\": null,\n            \"name\": \"CONCERTS\"\n        },\n        {\n            \"categoryId\": 3,\n            \"parentCategoryId\": null,\n            \"ticketEvoId\": null,\n            \"name\": \"THEATRE\"\n        }\n    ]\n}"}],"_postman_id":"d7a4d686-7851-4643-bf81-4c337485d839"},{"name":"3.1 Get all Categories information (Reseller)","event":[{"listen":"test","script":{"id":"d13dd275-c7e3-4c5e-8912-5110f3e08699","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"response should have jsonBody without errors\", function () {","    pm.response.to.not.be.error;","    pm.response.to.have.jsonBody(\"size\");","    pm.response.to.have.jsonBody(\"results\");","    pm.response.to.not.have.jsonBody(\"error\");","});","","pm.test(\"response should have category fields\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.results[0].categoryId).not.equal(null);","    pm.expect(jsonData.results[0].name).not.equal(null);","});"],"type":"text/javascript"}}],"id":"12aa0de3-9e28-4540-95eb-0d7014630816","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token_reseller}}"}},"method":"GET","header":[],"url":"https://{{domain}}/api/v1/categories","description":"Response codes:\r\n- 200 - Indicates success"},"response":[{"id":"619db347-a9e8-4168-b0de-d1852373eafd","name":"3.1 Get all Categories information (Reseller)","originalRequest":{"method":"GET","header":[],"url":"https://{{domain}}/api/v1/categories"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"10068"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Tue, 15 Oct 2019 13:51:02 GMT"},{"key":"x-amzn-RequestId","value":"4b9b5445-d841-4999-b973-8519114ac7c4"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"*"},{"key":"x-amz-apigw-id","value":"Bm0-8FcSIAMFykA="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5da5cec5-fe06d910e3ef291259e4899a;Sampled=0"},{"key":"Access-Control-Max-Age","value":"86400"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 c94378b36f8a40d65d0bb1c2edbb9c73.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"IAD89-C2"},{"key":"X-Amz-Cf-Id","value":"jgldjQHJM_WJI785dxXPZCSqtP0YOT6YFeIDDW5VixQXVsVX4nvDcw=="}],"cookie":[],"responseTime":null,"body":"{\n    \"size\": 3,\n    \"results\": [\n        {\n            \"categoryId\": 1,\n            \"parentCategoryId\": null,\n            \"ticketEvoId\": null,\n            \"name\": \"SPORTS\"\n        },\n        {\n            \"categoryId\": 2,\n            \"parentCategoryId\": null,\n            \"ticketEvoId\": null,\n            \"name\": \"CONCERTS\"\n        },\n        {\n            \"categoryId\": 3,\n            \"parentCategoryId\": null,\n            \"ticketEvoId\": null,\n            \"name\": \"THEATRE\"\n        }\n    ]\n}"}],"_postman_id":"12aa0de3-9e28-4540-95eb-0d7014630816"},{"name":"3.1 Get all Categories information (Unauthorized)","event":[{"listen":"test","script":{"id":"d13dd275-c7e3-4c5e-8912-5110f3e08699","exec":["pm.test(\"Status code is 401\", function () {","    pm.response.to.have.status(401);","});","","pm.test(\"response must be json\", function () {","    pm.response.to.be.json; ","});","","pm.test(\"response should have jsonBody with error and message\", function () {","    pm.response.to.be.error;","    pm.response.to.have.jsonBody(\"error\");","    pm.response.to.have.jsonBody(\"message\");","});"],"type":"text/javascript"}}],"id":"c3533388-5708-407d-9448-54cff251f77e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth"},"method":"GET","header":[],"url":"https://{{domain}}/api/v1/categories","description":"Response codes:\r\n- 401 - Unauthorized"},"response":[{"id":"472f87d0-0c8e-45fa-944c-feda9b1a813a","name":"3.1 Get all Categories information (Unauthorized)","originalRequest":{"method":"GET","header":[],"url":"https://{{domain}}/api/v1/categories"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"81"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Tue, 15 Oct 2019 13:52:23 GMT"},{"key":"x-amzn-RequestId","value":"4b1680f5-5892-460a-abfe-aa5a9c88a351"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"*"},{"key":"x-amz-apigw-id","value":"Bm1LwGftIAMFp1Q="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5da5cf17-e492cb249a8cd3983b28852f;Sampled=0"},{"key":"Access-Control-Max-Age","value":"86400"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"X-Cache","value":"Error from cloudfront"},{"key":"Via","value":"1.1 c94378b36f8a40d65d0bb1c2edbb9c73.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"IAD89-C2"},{"key":"X-Amz-Cf-Id","value":"3y2SS-RntnBFmF_WlUEDZnUq2cU0B_SSH0PPfuIRVp7d4aSmYWAdoQ=="}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Invalid authorization token!\",\n    \"message\": \"Invalid authorization token!\"\n}"}],"_postman_id":"c3533388-5708-407d-9448-54cff251f77e"}],"id":"135a2179-50a9-4da1-937a-4abc75f52742","description":"Description:\r\nReturn all Categories information for events\r\nThis method will be called by External systems\r\n\r\nMethod:\r\n- GET\r\n\r\nResponse media type:\r\n- application/json","event":[{"listen":"prerequest","script":{"id":"1ad93637-4d84-4a5e-8554-fc785569287b","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"57e48a87-24c9-4cea-b446-9a03e0a64478","type":"text/javascript","exec":[""]}}],"_postman_id":"135a2179-50a9-4da1-937a-4abc75f52742"},{"name":"4.1. API Method: Get all Events information","item":[{"name":"4.1 Get all Events information (Admin user)","event":[{"listen":"test","script":{"id":"7123bfe3-28d3-4b45-a9b2-1b752a34cdd2","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"response must be json\", function () {","    pm.response.to.be.json; ","});","","pm.test(\"response should have jsonBody without errors\", function () {","    pm.response.to.not.be.error;","    pm.response.to.have.jsonBody(\"totalSize\");","    pm.response.to.have.jsonBody(\"size\");","    pm.response.to.have.jsonBody(\"results\");","    pm.response.to.not.have.jsonBody(\"error\");","});","","pm.test(\"response should have events information\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.results[0].eventId).not.equal(null);","    pm.expect(jsonData.results[0].name).not.equal(null);","    pm.expect(jsonData.results[0].eventDate).not.equal(null);","    pm.expect(jsonData.results[0].venue).not.equal(null);","});"],"type":"text/javascript"}}],"id":"ca2b0667-fd09-4d48-b028-3b99dcbc0a01","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token_admin}}"}},"method":"GET","header":[],"url":{"raw":"https://{{domain}}/api/v1/events?start_page_index=0&page_size=15&sort_field=event_date&sort_order=asc&filters={\"event_date\":[\"07-08-2019\",\"10-28-2022\"],\"performers\":[3223], \"keywords\": [Cirque du Soleil]}","protocol":"https","host":["{{domain}}"],"path":["api","v1","events"],"query":[{"key":"start_page_index","value":"0","description":"Description: index of the first page to return, zero-indexed; \nRequired: optional; \nPossible values: 0 - *"},{"key":"page_size","value":"15","description":"Description: page size for returned results; \nRequired: optional; \nPossible values: 10, 15, 25, 50;\nDefault value: 15"},{"key":"sort_field","value":"event_date","description":"Description: field in event used for sorting events result list;\nRequired: optional;\nPossible values: event_date, event_name, venue_name, state;\nDefault value: event_date"},{"key":"sort_order","value":"asc","description":"Description: order of sorting;\nRequired: optional;\nPossible values: asc, desc;\nDefault value: asc "},{"key":"filters","value":"{\"event_date\":[\"07-08-2019\",\"10-28-2022\"],\"performers\":[3223], \"keywords\": [Cirque du Soleil]}","description":"Description: filtering option for events results;\nRequired: optional;\nPossible filters: event_date, performers, keywords, venues;\nDefault value: eventDate for date range filtering - in format:\nfilters={\n   \"event_date\":[today - 1 day, today + 1 month]\n}"}]},"description":"Returns all events (according to filtering and sorting applied) \n- events:read.all permission\n \nResponse codes:\n- 200 - Indicates success\n"},"response":[{"id":"f292d5c0-65a3-460b-b29a-184b41677fcf","name":"4.1 Get all Events information (Admin user)","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://{{domain}}/api/v1/events?start_page_index=0&page_size=15&sort_field=event_date&sort_order=asc&filters={\"event_date\":[\"07-08-2019\",\"10-28-2022\"],\"performers\":[3223], \"keywords\": [Cirque du Soleil]}","protocol":"https","host":["{{domain}}"],"path":["api","v1","events"],"query":[{"key":"start_page_index","value":"0","description":"Description: index of the first page to return, zero-indexed; \nRequired: optional; \nPossible values: 0 - *"},{"key":"page_size","value":"15","description":"Description: page size for returned results; \nRequired: optional; \nPossible values: 10, 15 (default), 25, 50"},{"key":"sort_field","value":"event_date","description":"Description: field in event used for sorting events result list;\nRequired: optional;\nPossible values: event date (default), event_name, venue_name, state"},{"key":"sort_order","value":"asc","description":"Description: order of sorting;\nRequired: optional;\nPossible values: asc (default), desc"},{"key":"filters","value":"{\"event_date\":[\"07-08-2019\",\"10-28-2022\"],\"performers\":[3223], \"keywords\": [Cirque du Soleil]}","description":"Description: filtering option for events results;\nRequired: optional;\nPossible filters: event_date, performers, keywords, venues"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"3393"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Tue, 15 Oct 2019 14:24:38 GMT"},{"key":"x-amzn-RequestId","value":"5717a876-3629-45a6-bc72-af97adaf84c5"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"*"},{"key":"x-amz-apigw-id","value":"Bm558Fe1oAMF55w="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5da5d6a5-3d080e787f5daf28b41c7df0;Sampled=0"},{"key":"Access-Control-Max-Age","value":"86400"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 34459c33c719bba34241d3f3053ec7f3.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"ORD51-C1"},{"key":"X-Amz-Cf-Id","value":"KGIzVkBuWTomb9nyOrU9KqV8Kf6Um1e3qgjDspkig43GNRK_ZOlWUQ=="}],"cookie":[],"responseTime":null,"body":"{\n    \"totalSize\": 1,\n    \"size\": 1,\n    \"results\": [\n        {\n            \"eventId\": 3719210,\n            \"name\": \"Cirque du Soleil - Ka\",\n            \"venue\": {\n                \"name\": \"KA Theatre at MGM Grand\",\n                \"state\": \"NV\"\n            },\n            \"performers\": [\n                {\n                    \"performerId\": 3223,\n                    \"name\": \"Cirque du Soleil - Ka\"\n                }\n            ],\n            \"eventDate\": \"2019-10-14T19:00:00\"\n        }\n    ]\n}"}],"_postman_id":"ca2b0667-fd09-4d48-b028-3b99dcbc0a01"},{"name":"4.1 Get all Events information (Reseller)","event":[{"listen":"test","script":{"id":"6cb7cfb0-4704-4a6b-b276-32da58a12524","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"response must be json\", function () {","    pm.response.to.be.json; ","});","","pm.test(\"response should have jsonBody without errors\", function () {","    pm.response.to.not.be.error;","    pm.response.to.have.jsonBody(\"totalSize\");","    pm.response.to.have.jsonBody(\"size\");","    pm.response.to.have.jsonBody(\"results\");","    pm.response.to.not.have.jsonBody(\"error\");","});"],"type":"text/javascript"}}],"id":"8b0b6a22-ab9c-4e6d-aa0b-e412108e0b24","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token_reseller}}"}},"method":"GET","header":[],"url":{"raw":"https://{{domain}}/api/v1/events?start_page_index=0&page_size=15&sort_field=event_date&sort_order=asc&filters={\"event_date\":[\"07-08-2019\",\"10-28-2022\"],\"performers\":[648], \"venues\": [Spectrum Center]}","protocol":"https","host":["{{domain}}"],"path":["api","v1","events"],"query":[{"key":"start_page_index","value":"0","description":"Description: index of the first page to return, zero-indexed; \nRequired: optional; \nPossible values: 0 - *"},{"key":"page_size","value":"15","description":"Description: page size for returned results; \nRequired: optional; \nPossible values: 10, 15 (default), 25, 50"},{"key":"sort_field","value":"event_date","description":"Description: field in event used for sorting events result list;\nRequired: optional;\nPossible values: event date (default), event_name, venue_name, state"},{"key":"sort_order","value":"asc","description":"Description: order of sorting;\nRequired: optional;\nPossible values: asc (default), desc"},{"key":"filters","value":"{\"event_date\":[\"07-08-2019\",\"10-28-2022\"],\"performers\":[648], \"venues\": [Spectrum Center]}","description":"Description: filtering option for events results;\nRequired: optional;\nPossible filters: event_date, performers, keywords, venues"}]},"description":"Returns only events for which Reseller has Tickets. \r\n- events:read.self permission\r\n\r\nResponse codes:\r\n- 200 - Indicates success"},"response":[{"id":"72ab3ef3-c924-43b0-8aa6-10c9394ad1df","name":"4.1 Get all Events information (Reseller)","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://{{domain}}/api/v1/events?start_page_index=0&page_size=15&sort_field=event_date&sort_order=asc&filters={\"event_date\":[\"07-08-2019\",\"10-28-2022\"],\"performers\":[648], \"venues\": [Spectrum Center]}","protocol":"https","host":["{{domain}}"],"path":["api","v1","events"],"query":[{"key":"start_page_index","value":"0","description":"Description: index of the first page to return, zero-indexed; \nRequired: optional; \nPossible values: 0 - *"},{"key":"page_size","value":"15","description":"Description: page size for returned results; \nRequired: optional; \nPossible values: 10, 15 (default), 25, 50"},{"key":"sort_field","value":"event_date","description":"Description: field in event used for sorting events result list;\nRequired: optional;\nPossible values: event date (default), event_name, venue_name, state"},{"key":"sort_order","value":"asc","description":"Description: order of sorting;\nRequired: optional;\nPossible values: asc (default), desc"},{"key":"filters","value":"{\"event_date\":[\"07-08-2019\",\"10-28-2022\"],\"performers\":[648], \"venues\": [Spectrum Center]}","description":"Description: filtering option for events results;\nRequired: optional;\nPossible filters: event_date, performers, keywords, venues"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"680"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Tue, 15 Oct 2019 14:32:22 GMT"},{"key":"x-amzn-RequestId","value":"c71f148e-febc-46b5-a704-968d53d15b9e"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"*"},{"key":"x-amz-apigw-id","value":"Bm7CcGL6IAMFqBQ="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5da5d875-ebdfd0f09d2655c43b5ecd7c;Sampled=0"},{"key":"Access-Control-Max-Age","value":"86400"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 44914fa6421b789193cec8998428f8bd.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"ORD51-C1"},{"key":"X-Amz-Cf-Id","value":"jTTIV1I_6NO3lNvaT7QoAPiUijsnTlR-mLxChfOjZUjK8vXYnPlZtQ=="}],"cookie":[],"responseTime":null,"body":"{\n    \"totalSize\": 3,\n    \"size\": 3,\n    \"results\": [\n        {\n            \"eventId\": 3813436,\n            \"name\": \"Day At The Races\",\n            \"venue\": {\n                \"name\": \"Churchill Downs\",\n                \"state\": \"KY\"\n            },\n            \"performers\": [\n                {\n                    \"performerId\": 79475,\n                    \"name\": \"Day At The Races\"\n                }\n            ],\n            \"eventDate\": \"2019-11-13T13:00:00\"\n        },\n        {\n            \"eventId\": 4131487,\n            \"name\": \"Charlotte Hornets vs. Memphis Grizzlies\",\n            \"venue\": {\n                \"name\": \"Spectrum Center\",\n                \"state\": \"NC\"\n            },\n            \"performers\": [\n                {\n                    \"performerId\": 648,\n                    \"name\": \"Memphis Grizzlies\"\n                },\n                {\n                    \"performerId\": 64783,\n                    \"name\": \"Charlotte Hornets\"\n                }\n            ],\n            \"eventDate\": \"2019-11-13T19:00:00\"\n        },\n        {\n            \"eventId\": 3813437,\n            \"name\": \"Day At The Races\",\n            \"venue\": {\n                \"name\": \"Churchill Downs\",\n                \"state\": \"KY\"\n            },\n            \"performers\": [\n                {\n                    \"performerId\": 79475,\n                    \"name\": \"Day At The Races\"\n                }\n            ],\n            \"eventDate\": \"2019-11-14T13:00:00\"\n        }\n    ]\n}"}],"_postman_id":"8b0b6a22-ab9c-4e6d-aa0b-e412108e0b24"},{"name":"4.1 Get all Events information (Unauthorized)","event":[{"listen":"test","script":{"id":"6cb7cfb0-4704-4a6b-b276-32da58a12524","exec":["pm.test(\"Status code is 401\", function () {","    pm.response.to.have.status(401);","});","","pm.test(\"response must be json\", function () {","    pm.response.to.be.json; ","});","","pm.test(\"response should have jsonBody with error and message\", function () {","    pm.response.to.be.error;","    pm.response.to.have.jsonBody(\"error\");","    pm.response.to.have.jsonBody(\"message\");","});"],"type":"text/javascript"}}],"id":"f01cd2e4-afa9-49c7-9303-4cb224a4cfaf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth"},"method":"GET","header":[],"url":"https://{{domain}}/api/v1/events","description":"Response codes:\r\n- 401 - Unauthorized"},"response":[{"id":"284f7321-fa5d-44f4-8497-0b7aef651a14","name":"4.1 Get all Events information (Unauthorized)","originalRequest":{"method":"GET","header":[],"url":"https://{{domain}}/api/v1/events"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"81"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Tue, 15 Oct 2019 14:34:39 GMT"},{"key":"x-amzn-RequestId","value":"33f022c1-f45b-4959-ac27-21cf04fdf709"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"*"},{"key":"x-amz-apigw-id","value":"Bm7X5HycoAMFWLw="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5da5d8ff-ad34f83c885d59b08d3d52b2;Sampled=0"},{"key":"Access-Control-Max-Age","value":"86400"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"X-Cache","value":"Error from cloudfront"},{"key":"Via","value":"1.1 44914fa6421b789193cec8998428f8bd.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"ORD51-C1"},{"key":"X-Amz-Cf-Id","value":"BzFQ-gMs9kj_jFAKiUhJ0zP0tQX1WvMRZSW5FdZXYHNUidA53rm-yA=="}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Invalid authorization token!\",\n    \"message\": \"Invalid authorization token!\"\n}"}],"_postman_id":"f01cd2e4-afa9-49c7-9303-4cb224a4cfaf"}],"id":"d88bad67-58a1-4daf-b7fe-136dda747e1b","description":"Description:\r\nReturn all events information and their details\r\nThis method will be called on the Events Group screen\r\n\r\nBy default returned filtered data based on event_date (range from today - 1 day, today + 1 month)\r\n\r\nMethod:\r\n- GET\r\n\r\nRequest parameters type: \r\n- URL query string\r\n\r\nResponse media type:\r\n- application/json","event":[{"listen":"prerequest","script":{"id":"0ae85db2-0f4c-4ac5-ba70-28b9f89d673c","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"494c4634-f883-47dc-85cb-af122b9881af","type":"text/javascript","exec":[""]}}],"_postman_id":"d88bad67-58a1-4daf-b7fe-136dda747e1b"},{"name":"6.1. API Method: Get all Event listings information","item":[{"name":"6.1 Get all Event Listings information (Admin User)","event":[{"listen":"test","script":{"id":"cff317ec-c7da-49b9-9995-8c4e23664eb4","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"response must be json\", function () {","    pm.response.to.be.json; ","});","","pm.test(\"response should have jsonBody without errors\", function () {","    pm.response.to.not.be.error;","    pm.response.to.have.jsonBody(\"size\");","    pm.response.to.have.jsonBody(\"totalSize\");","    pm.response.to.have.jsonBody(\"results\");","    pm.response.to.not.have.jsonBody(\"error\");","});","","pm.test(\"response should have event listing fields\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.results[0].listingId).not.equal(null);","    pm.expect(jsonData.results[0].eventId).not.equal(null);","    pm.expect(jsonData.results[0].eventName).not.equal(null);","    pm.expect(jsonData.results[0].externalListingSource).not.equal(null);","    pm.expect(jsonData.results[0].section).not.equal(null);","    pm.expect(jsonData.results[0].row).not.equal(null);","    pm.expect(jsonData.results[0].quantity).not.equal(null);","    pm.expect(jsonData.results[0].splits).not.equal(null);   ","    pm.expect(jsonData.results[0].splitRule).not.equal(null);","    pm.expect(jsonData.results[0].isInstant).not.equal(null);","    pm.expect(jsonData.results[0].ticketType).not.equal(null);","    pm.expect(jsonData.results[0].notes).not.equal(null);    ","    pm.expect(jsonData.results[0].seatFrom).not.equal(null);","    pm.expect(jsonData.results[0].seatThru).not.equal(null);","    pm.expect(jsonData.results[0].isETicket).not.equal(null);","    pm.expect(jsonData.results[0].isRequireShipment).not.equal(null);    ","    pm.expect(jsonData.results[0].inHandDate).not.equal(null);","    pm.expect(jsonData.results[0].price).not.equal(null);    ","    pm.expect(jsonData.results[0].venue).not.equal(null);","});"],"type":"text/javascript"}}],"id":"c7cf781a-0423-492a-b437-bfb64bc0f5a5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token_admin}}"}},"method":"GET","header":[],"url":{"raw":"https://{{domain}}/api/v1/events/{{event_id}}/listings?start_page_index=0&page_size=250&filters={\"is_hidden\":false}","protocol":"https","host":["{{domain}}"],"path":["api","v1","events","{{event_id}}","listings"],"query":[{"key":"start_page_index","value":"0","description":"Description: index of the first page to return, zero-indexed;\nRequired: optional;\nPossible values: 0 - *;\nDefault value: 0"},{"key":"page_size","value":"250","description":"Description: page size for returned results;\nRequired: optional;\nPossible values: 100 - *;\nDefault value: 250"},{"key":"filters","value":"{\"is_hidden\":false}","description":"Description: filtering option for listings results;\nRequired: optional;\nPossible values: is_hidden, is_suppressed, subbing (for subbing param subbing={orderId});\nDefault value: NONE - means no filtering is done - all listings returned"},{"key":"filters","value":"{\"subbing\":17}","disabled":true}]},"description":"Response codes:\r\n- 200 - Indicates success"},"response":[{"id":"9729bc3f-669e-4be6-b873-06be804e0485","name":"6.1 Get all Event Listings information (Admin User)","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://{{domain}}/api/v1/events/{{event_id}}/listings?start_page_index=0&page_size=250&filters={\"is_hidden\":false}","protocol":"https","host":["{{domain}}"],"path":["api","v1","events","{{event_id}}","listings"],"query":[{"key":"start_page_index","value":"0","description":"Description: index of the first page to return, zero-indexed;\nRequired: optional;\nPossible values: 0 - *;\nDefault value: 0"},{"key":"page_size","value":"250","description":"Description: page size for returned results;\nRequired: optional;\nPossible values: 100 - *;\nDefault value: 250"},{"key":"filters","value":"{\"is_hidden\":false}","description":"Description: filtering option for listings results;\nRequired: optional;\nPossible values: is_hidden, is_suppressed, subbing (for subbing param subbing={orderId});\nDefault value: NONE - means no filtering is done - all listings returned"},{"key":"filters","value":"{\"subbing\":17}","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"141818"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Tue, 15 Oct 2019 15:19:17 GMT"},{"key":"x-amzn-RequestId","value":"dde9f043-a95e-4895-80fb-e7cfd3687ffe"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"*"},{"key":"x-amz-apigw-id","value":"BnB6UGNUoAMF4jQ="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5da5e375-c2ec87e9900eecd1b52a9d7e;Sampled=0"},{"key":"Access-Control-Max-Age","value":"86400"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 05ce646a2ff6febe063c256476b18a9c.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"ORD52-C2"},{"key":"X-Amz-Cf-Id","value":"YDCbzGdK-S8uCe5StaPN8YxpsC39_hqXG6KiWmujJU3QFyvdquwCtQ=="}],"cookie":[],"responseTime":null,"body":"{\n    \"size\": 1,\n    \"totalSize\": 1,\n    \"results\": [\n        {\n            \"listingId\": \"019d38e634eec1298c38b644fbe903b2\",\n            \"eventId\": 3813175,\n            \"eventName\": \"Fellow Travelers\",\n            \"venue\": \"The Milton Theatre\",\n            \"externalListingSource\": \"1_TICKET\",\n            \"section\": \"Field E\",\n            \"row\": \"22\",\n            \"quantity\": 5,\n            \"splits\": \"5,3,2,1\",\n            \"splitRule\": \"NO_SINGLES_FROM_4PACK\",\n            \"ticketType\": \"PHYSICAL\",\n            \"isInstant\": false,\n            \"notes\": \"3813175_PHYSICAL Lorem ipsum dolor sit adipiscing elit\",\n            \"seatFrom\": \"60\",\n            \"seatThru\": \"35\",\n            \"isETicket\": false,\n            \"isRequireShipment\": true,\n            \"inHandDate\": \"2019-05-18\",\n            \"isHidden\": false,\n            \"isSuppressed\": false,\n            \"lastUpdated\": 1570194176003,\n            \"price\": 153,\n            \"account\": {\n                \"accountId\": \"auth0|5d9707111ae2df0ddfd4bdc5\",\n                \"name\": \"Steven Bosoy\",\n                \"companyName\": \"NY Ticket Co\",\n                \"phone\": \"147236596\",\n                \"email\": \"reseller_steven@mailinator.com\",\n                \"featuredReseller\": 1,\n                \"inventoryMarkupPercent\": 12,\n                \"sellFeePercent\": 0,\n                \"staleThreshold\": 1,\n                \"listingAlertThreshold\": 30,\n                \"contractStatusType\": \"ACTIVE\",\n                \"integrationType\": \"1_TICKET\"\n            }\n        }\n    ],\n    \"event\": {\n        \"eventId\": 3813175,\n        \"name\": \"Fellow Travelers\",\n        \"venue\": {\n            \"name\": \"The Milton Theatre\",\n            \"state\": \"DE\"\n        },\n        \"performers\": [\n            {\n                \"performerId\": 116317,\n                \"name\": \"Fellow Travelers\"\n            }\n        ],\n        \"eventDate\": \"2019-11-22T20:00:00\"\n    }\n}"}],"_postman_id":"c7cf781a-0423-492a-b437-bfb64bc0f5a5"},{"name":"6.1 Get all Event Listings information (Not found)","event":[{"listen":"test","script":{"id":"cff317ec-c7da-49b9-9995-8c4e23664eb4","exec":["pm.test(\"Status code is 404\", function () {","    pm.response.to.have.status(404);","});","","pm.test(\"response must be json\", function () {","    pm.response.to.be.json; ","});","","pm.test(\"response should have jsonBody with error and message\", function () {","    pm.response.to.be.error;","    pm.response.to.have.jsonBody(\"error\");","    pm.response.to.have.jsonBody(\"message\");","});","",""],"type":"text/javascript"}}],"id":"80284e0d-57c9-4bc8-bca7-050c7719c167","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token_admin}}"}},"method":"GET","header":[],"url":"https://{{domain}}/api/v1/events/ff{{event_id}}/listings","description":"Response codes:\r\n- 404 - Event with passed EventId not found"},"response":[{"id":"8bfef9f5-5b81-4dd6-a0ed-bd2f385482b1","name":"6.1 Get all Event Listings information (Not found)","originalRequest":{"method":"GET","header":[],"url":"https://{{domain}}/api/v1/events/ff{{event_id}}/listings"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"71"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Tue, 15 Oct 2019 15:20:33 GMT"},{"key":"x-amzn-RequestId","value":"8dfeeecf-8eb9-40d7-8161-4530ebf35e65"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"*"},{"key":"x-amz-apigw-id","value":"BnCGME2yoAMFT5w="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5da5e3c1-79b9f19a933918872bfe7933;Sampled=0"},{"key":"Access-Control-Max-Age","value":"86400"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"X-Cache","value":"Error from cloudfront"},{"key":"Via","value":"1.1 05ce646a2ff6febe063c256476b18a9c.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"ORD52-C2"},{"key":"X-Amz-Cf-Id","value":"cN4J6p3oO-jqUJJvYdHauJupVT8EDvvSW4g6a5T0PRWZ4zQ7a2fx6g=="}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Not found!\",\n    \"message\": \"Event with passed EventId not found.\"\n}"}],"_postman_id":"80284e0d-57c9-4bc8-bca7-050c7719c167"},{"name":"6.1 Get all Event Listings information (Unauthorized)","event":[{"listen":"test","script":{"id":"cff317ec-c7da-49b9-9995-8c4e23664eb4","exec":["pm.test(\"Status code is 401\", function () {","    pm.response.to.have.status(401);","});","","pm.test(\"response must be json\", function () {","    pm.response.to.be.json; ","});","","pm.test(\"response should have jsonBody with error and message\", function () {","    pm.response.to.be.error;","    pm.response.to.have.jsonBody(\"error\");","    pm.response.to.have.jsonBody(\"message\");","});",""],"type":"text/javascript"}}],"id":"649d1412-7ab3-4a06-8a4b-a4504c8aa3fb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth"},"method":"GET","header":[],"url":"https://{{domain}}/api/v1/events/{{event_id}}/listings","description":"Response codes:\r\n- 401 - Unauthorized"},"response":[{"id":"743997e4-32a5-4013-8479-7e7bbbbdd40c","name":"6.1 Get all Event Listings information (Unauthorized)","originalRequest":{"method":"GET","header":[],"url":"https://{{domain}}/api/v1/events/{{event_id}}/listings"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"81"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Tue, 15 Oct 2019 15:20:45 GMT"},{"key":"x-amzn-RequestId","value":"6d1f58b0-f05a-4b12-b8b2-905666e276ec"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"*"},{"key":"x-amz-apigw-id","value":"BnCIDG-AIAMFdnw="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5da5e3cd-c3294c95ddd930af662e3ddd;Sampled=0"},{"key":"Access-Control-Max-Age","value":"86400"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"X-Cache","value":"Error from cloudfront"},{"key":"Via","value":"1.1 05ce646a2ff6febe063c256476b18a9c.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"ORD52-C2"},{"key":"X-Amz-Cf-Id","value":"Dt3JYxi73mn44owprw0nRKlFqbhiuxqIUdRjwRzPBEYhTssQs3Ujjg=="}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Invalid authorization token!\",\n    \"message\": \"Invalid authorization token!\"\n}"}],"_postman_id":"649d1412-7ab3-4a06-8a4b-a4504c8aa3fb"}],"id":"422528e8-d77a-4eed-a3ee-961e01a1dee9","description":"Description:\r\nAllows users to see Events Listings information for a specific event\r\nThis method will be called called on the Event Listings screen\r\n      \r\nMethod:\r\n- GET\r\n\r\nRequest parameters type: \r\n- URL Path parameter\r\n- URL query string\r\n\r\nRequest parameters:\r\n- eventId - URL Path parameter - internal DB id of the Events table (Primary Key in MySQL)\r\n- orderId - PK of Order in MySQL table of the Listing we want to Substitute\r\n\r\nRequest headers:\r\n- Authorization: Bearer JWT token from Auth0\r\n- We get accountId from JWT token so we can pull Account data for Admin permissions and get only owned by this accountId listings.\r\n\r\nResponse media type:\r\n- application/json","event":[{"listen":"prerequest","script":{"id":"4089f49f-ff54-4cb1-ac66-ff0067014346","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"3ce84993-59d5-41bb-a74a-bb475cc0cf9a","type":"text/javascript","exec":[""]}}],"_postman_id":"422528e8-d77a-4eed-a3ee-961e01a1dee9"},{"name":"6.2. API Method: Get specific Event Listing Details  Copy","item":[{"name":"6.2 Get specific Event Listing Details (Admin user)","event":[{"listen":"test","script":{"id":"981c2a66-d4e0-4af5-b57c-b9542b3ba295","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"response must be json\", function () {","    pm.response.to.be.json; ","});","","pm.test(\"response should have jsonBody without errors\", function () {","    pm.response.to.not.be.error;","    pm.response.to.have.jsonBody(\"size\");","    pm.response.to.have.jsonBody(\"results\");","    pm.response.to.have.jsonBody(\"event\");","    pm.response.to.not.have.jsonBody(\"error\");","});","","pm.test(\"response should have event listing details fields\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.results[0].listingId).not.equal(null);","    pm.expect(jsonData.results[0].eventId).not.equal(null);","    pm.expect(jsonData.results[0].eventName).not.equal(null);","    pm.expect(jsonData.results[0].venue).not.equal(null);","    pm.expect(jsonData.results[0].externalListingSource).not.equal(null);    ","    pm.expect(jsonData.results[0].price).not.equal(null);    ","});"],"type":"text/javascript"}}],"id":"30cab95d-fb31-4e97-ad02-3c1333a74bed","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token_admin}}"}},"method":"GET","header":[],"url":"https://{{domain}}/api/v1/events/{{event_id}}/listings/{{listing_id}}","description":"Returns ALL Events listings Details information in the BRP System\r\n- permission: listings:read.all\r\n\r\nResponse codes:\r\n- 200 - Indicates success\r\n"},"response":[{"id":"bdd79f89-575e-4a26-90de-f2d26cb7b8be","name":"6.2 Get specific Event Listing Details (Admin user)","originalRequest":{"method":"GET","header":[],"url":"https://{{domain}}/api/v1/events/{{event_id}}/listings/{{listing_id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"1134"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Tue, 15 Oct 2019 15:23:28 GMT"},{"key":"x-amzn-RequestId","value":"643b4bee-ad56-4e89-88a8-251cd2874086"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"*"},{"key":"x-amz-apigw-id","value":"BnChIGzIIAMF8Pg="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5da5e46d-298e6ac0b050a6d02fbcc900;Sampled=0"},{"key":"Access-Control-Max-Age","value":"86400"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 05ce646a2ff6febe063c256476b18a9c.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"ORD52-C2"},{"key":"X-Amz-Cf-Id","value":"ufXpp_ppNn-6ZuREqHB6mTvQuYQUlcqS-2_FduR_bkd9cGc9ypv8AQ=="}],"cookie":[],"responseTime":null,"body":"{\n    \"size\": 1,\n    \"results\": [\n        {\n            \"listingId\": \"117e971dad525d9a86df4405a1f18988\",\n            \"eventId\": 3813175,\n            \"eventName\": \"Fellow Travelers\",\n            \"venue\": \"The Milton Theatre\",\n            \"externalListingSource\": \"AUTOPROCESSOR\",\n            \"section\": \"Field E\",\n            \"row\": \"22\",\n            \"quantity\": 5,\n            \"splits\": \"5,3,2,1\",\n            \"splitRule\": \"NO_SINGLES_FROM_4PACK\",\n            \"ticketType\": \"PHYSICAL\",\n            \"isInstant\": false,\n            \"notes\": \"3813175_PHYSICAL Lorem ipsum dolor sit adipiscing elit\",\n            \"seatFrom\": \"60\",\n            \"seatThru\": \"35\",\n            \"isETicket\": false,\n            \"isRequireShipment\": true,\n            \"inHandDate\": \"2019-05-18\",\n            \"isHidden\": false,\n            \"isSuppressed\": false,\n            \"lastUpdated\": \"2019-10-03T07:05:32\",\n            \"price\": 789.33,\n            \"account\": {\n                \"accountId\": \"auth0|5d947f42fb7a8e0e18f4d394\",\n                \"name\": \"Reseller Alina\",\n                \"companyName\": \"AT_reseller_company\",\n                \"phone\": \"+50034712245\",\n                \"email\": \"alina.tsvyak@gmail.com\",\n                \"featuredReseller\": 1,\n                \"inventoryMarkupPercent\": 12,\n                \"sellFeePercent\": 2,\n                \"staleThreshold\": 1,\n                \"listingAlertThreshold\": 30,\n                \"contractStatusType\": \"ACTIVE\",\n                \"integrationType\": \"CLOAKIFY\"\n            }\n        }\n    ],\n    \"event\": {\n        \"eventId\": 3813175,\n        \"name\": \"Fellow Travelers\",\n        \"venue\": {\n            \"name\": \"The Milton Theatre\",\n            \"state\": \"DE\"\n        },\n        \"performers\": [\n            {\n                \"performerId\": 116317,\n                \"name\": \"Fellow Travelers\"\n            }\n        ],\n        \"eventDate\": \"2019-11-22T20:00:00\"\n    }\n}"}],"_postman_id":"30cab95d-fb31-4e97-ad02-3c1333a74bed"},{"name":"6.2 Get specific Event Listing Details (Not Found)","event":[{"listen":"test","script":{"id":"981c2a66-d4e0-4af5-b57c-b9542b3ba295","exec":["pm.test(\"Status code is 404\", function () {","    pm.response.to.have.status(404);","});","","pm.test(\"response must be json\", function () {","    pm.response.to.be.json; ","});","","pm.test(\"response should have jsonBody with error and message\", function () {","    pm.response.to.be.error;","    pm.response.to.have.jsonBody(\"error\");","    pm.response.to.have.jsonBody(\"message\");","});"],"type":"text/javascript"}}],"id":"20cd02c4-edc9-43f8-90d6-beff1f4b912b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token_admin}}"}},"method":"GET","header":[],"url":"https://{{domain}}/api/v1/events/{{event_id}}/listings/r{{listing_id}}","description":"Response codes:\r\n- 404 - Event with passed EventId not found or listingId not found"},"response":[{"id":"e0580261-6d18-4c9b-8731-6649c2c4a30f","name":"6.2 Get specific Event Listing Details (Not Found)","originalRequest":{"method":"GET","header":[],"url":"https://{{domain}}/api/v1/events/{{event_id}}/listings/r{{listing_id}}"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"69"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Tue, 15 Oct 2019 15:30:23 GMT"},{"key":"x-amzn-RequestId","value":"c60fc271-7d9b-429e-83d2-3ce251c3819d"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"*"},{"key":"x-amz-apigw-id","value":"BnDiVFryIAMF33Q="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5da5e60e-1418d43b0c64ecae7d99b334;Sampled=0"},{"key":"Access-Control-Max-Age","value":"86400"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"X-Cache","value":"Error from cloudfront"},{"key":"Via","value":"1.1 d0c5747a41ab1b19c48bdc3c7feed516.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"ORD50-C1"},{"key":"X-Amz-Cf-Id","value":"dmHI9GABGu2a5i0KZQCyk8F6YcB_XHbrYkPv9KyqH12ANenFDz4Tyg=="}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Listing was not found!\",\n    \"message\": \"Listing was not found!\"\n}"}],"_postman_id":"20cd02c4-edc9-43f8-90d6-beff1f4b912b"},{"name":"6.2 Get specific Event Listing Details (Reseller)","event":[{"listen":"test","script":{"id":"981c2a66-d4e0-4af5-b57c-b9542b3ba295","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"response must be json\", function () {","    pm.response.to.be.json; ","});","","pm.test(\"response should have jsonBody without errors\", function () {","    pm.response.to.not.be.error;","    pm.response.to.have.jsonBody(\"size\");","    pm.response.to.have.jsonBody(\"results\");","    pm.response.to.have.jsonBody(\"event\");","    pm.response.to.not.have.jsonBody(\"error\");","});","","pm.test(\"response should have event listing details fields\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.results[0].listingId).not.equal(null);","    pm.expect(jsonData.results[0].eventId).not.equal(null);","    pm.expect(jsonData.results[0].eventName).not.equal(null);","    pm.expect(jsonData.results[0].venue).not.equal(null);","    pm.expect(jsonData.results[0].externalListingSource).not.equal(null);    ","    pm.expect(jsonData.results[0].price).not.equal(null);    ","});"],"type":"text/javascript"}}],"id":"636475a0-74b0-4674-a1b5-602615b30742","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token_reseller}}"}},"method":"GET","header":[],"url":"https://{{domain}}/api/v1/events/{{event_id}}/listings/{{listing_id}}","description":"Returns ONLY OWNED by Reseller Events listings Detail information\n- permission: listings:read.self\n\nResponse codes:\n- 200 - Indicates success"},"response":[{"id":"06811d28-2db1-4c1a-a91b-ea235be9ef25","name":"6.2 Get specific Event Listing Details (Reseller)","originalRequest":{"method":"GET","header":[],"url":"https://{{domain}}/api/v1/events/{{event_id}}/listings/{{listing_id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"788"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Tue, 15 Oct 2019 15:31:17 GMT"},{"key":"x-amzn-RequestId","value":"ae17a027-6b25-4526-b593-20df9f17148b"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"*"},{"key":"x-amz-apigw-id","value":"BnDq5HXooAMFk9w="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5da5e645-00c1ee3a7e49ce47a4a7c762;Sampled=0"},{"key":"Access-Control-Max-Age","value":"86400"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 d0c5747a41ab1b19c48bdc3c7feed516.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"ORD50-C1"},{"key":"X-Amz-Cf-Id","value":"Lr26L71dbpm-AYHqp0A5UNH5EdhnD3ig2BAU_-ab-oM7mbwKjmwaNQ=="}],"cookie":[],"responseTime":null,"body":"{\n    \"size\": 1,\n    \"results\": [\n        {\n            \"listingId\": \"117e971dad525d9a86df4405a1f18988\",\n            \"eventId\": 3813175,\n            \"eventName\": \"Fellow Travelers\",\n            \"venue\": \"The Milton Theatre\",\n            \"externalListingSource\": \"AUTOPROCESSOR\",\n            \"section\": \"Field E\",\n            \"row\": \"22\",\n            \"quantity\": 5,\n            \"splits\": \"5,3,2,1\",\n            \"splitRule\": \"NO_SINGLES_FROM_4PACK\",\n            \"ticketType\": \"PHYSICAL\",\n            \"isInstant\": false,\n            \"notes\": \"3813175_PHYSICAL Lorem ipsum dolor sit adipiscing elit\",\n            \"seatFrom\": \"60\",\n            \"seatThru\": \"35\",\n            \"isETicket\": false,\n            \"isRequireShipment\": true,\n            \"inHandDate\": \"2019-05-18\",\n            \"isHidden\": false,\n            \"isSuppressed\": false,\n            \"lastUpdated\": \"2019-10-03T07:05:32\",\n            \"price\": 789.33\n        }\n    ],\n    \"event\": {\n        \"eventId\": 3813175,\n        \"name\": \"Fellow Travelers\",\n        \"venue\": {\n            \"name\": \"The Milton Theatre\",\n            \"state\": \"DE\"\n        },\n        \"performers\": [\n            {\n                \"performerId\": 116317,\n                \"name\": \"Fellow Travelers\"\n            }\n        ],\n        \"eventDate\": \"2019-11-22T20:00:00\"\n    }\n}"}],"_postman_id":"636475a0-74b0-4674-a1b5-602615b30742"},{"name":"6.2 Get specific Event Listing Details (Unauthorized)","event":[{"listen":"test","script":{"id":"981c2a66-d4e0-4af5-b57c-b9542b3ba295","exec":["pm.test(\"Status code is 401\", function () {","    pm.response.to.have.status(401);","});","","pm.test(\"response must be json\", function () {","    pm.response.to.be.json; ","});","","pm.test(\"response should have jsonBody with error and message\", function () {","    pm.response.to.be.error;","    pm.response.to.have.jsonBody(\"error\");","    pm.response.to.have.jsonBody(\"message\");","});"],"type":"text/javascript"}}],"id":"0b338a17-43ef-4d90-a3b5-ea778d538630","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth"},"method":"GET","header":[],"url":"https://{{domain}}/api/v1/events/{{event_id}}}/listings/{{listing_id}}","description":"Response codes:\r\n- 401 - Unauthorized"},"response":[{"id":"871425be-2ea5-4104-8d0e-e4add4bd98ad","name":"6.2 Get specific Event Listing Details (Unauthorized)","originalRequest":{"method":"GET","header":[],"url":"https://{{domain}}/api/v1/events/{{event_id}}}/listings/{{listing_id}}"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"81"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Tue, 15 Oct 2019 15:31:28 GMT"},{"key":"x-amzn-RequestId","value":"2ec19ab3-7a0c-4dfa-96a1-5d86742aafe6"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"*"},{"key":"x-amz-apigw-id","value":"BnDsmGg0oAMFxHA="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5da5e650-d9996c40b70b9e14952deea0;Sampled=0"},{"key":"Access-Control-Max-Age","value":"86400"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"X-Cache","value":"Error from cloudfront"},{"key":"Via","value":"1.1 d0c5747a41ab1b19c48bdc3c7feed516.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"ORD50-C1"},{"key":"X-Amz-Cf-Id","value":"gw77Z4sQeuif5_vkGkHfTdhvfVVlEXTyhb-P5u7Xl9KFk0iAIpqdzw=="}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Invalid authorization token!\",\n    \"message\": \"Invalid authorization token!\"\n}"}],"_postman_id":"0b338a17-43ef-4d90-a3b5-ea778d538630"}],"id":"298cd1a6-e079-4a09-8122-9774edcbad6a","description":"Description:\r\nAllows users to see Events listings details information for a specific listing\r\n\r\nMethod:\r\n- GET\r\n\r\nRequest parameters type: \r\n- URL Path parameter\r\n\r\nRequest parameters:\r\n- eventId - URL Path parameter - internal DB id of the Events table (Primary Key in MySQL)\r\n- listingId - URL Path parameter - internal DB id of the Listings table (Primary Key in MySQL)\r\n\r\nRequest headers:\r\n- Authorization: Bearer JWT token from Auth0\r\n- AccountId from JWT token to pull Account data for Admin permissions and get only owned by this accountId listings.\r\n\r\nResponse media type:\r\n- application/json","event":[{"listen":"prerequest","script":{"id":"2d803911-b4d1-4418-b2ee-6b91f922e1be","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"9fd5b774-f7ad-4b2c-b9e3-d9589e4326a8","type":"text/javascript","exec":[""]}}],"_postman_id":"298cd1a6-e079-4a09-8122-9774edcbad6a"},{"name":"6.6. API Method: Get All Listings ","item":[{"name":"6.6 Get all listings (Admin No account Id)","event":[{"listen":"test","script":{"id":"a32c3d85-ecfe-4c36-a81c-fdb62e254993","exec":["pm.test(\"Status code is 400\", function () {","    pm.response.to.have.status(400);","});","","pm.test(\"response must be json\", function () {","    pm.response.to.be.json; ","});","","pm.test(\"response should have jsonBody with error and message\", function () {","    pm.response.to.be.error;","    pm.response.to.have.jsonBody(\"error\");","    pm.response.to.have.jsonBody(\"message\");","});"],"type":"text/javascript"}}],"id":"e566cfd9-8bcc-4ecb-9b4e-358a870b72c0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token_admin}}"}},"method":"GET","header":[],"url":"https://{{domain}}/api/v1/listings","description":"Response codes:\r\n- 400 - Bad Request"},"response":[{"id":"68343d05-bdce-470a-b26d-58a4c4d36155","name":"6.6 Get all listings (Admin No account Id)","originalRequest":{"method":"GET","header":[],"url":"https://{{domain}}/api/v1/listings"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"74"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Wed, 16 Oct 2019 08:39:59 GMT"},{"key":"x-amzn-RequestId","value":"ab11bae5-9301-4bec-bf07-5b9323cddf8c"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"*"},{"key":"x-amz-apigw-id","value":"BpaW2HdZoAMFVYw="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5da6d75e-69e1edb666f65604a755f918;Sampled=0"},{"key":"Access-Control-Max-Age","value":"86400"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"X-Cache","value":"Error from cloudfront"},{"key":"Via","value":"1.1 5e71ebbd3e768e1e564c88b3632039d8.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"WAW50-C1"},{"key":"X-Amz-Cf-Id","value":"GvyiN2hJ9giuNvmzkQouz4wHWCWgSqUAOlRlbfin1W5oVNbFyvmjBQ=="}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Bad request!\",\n    \"message\": \"No valid account_id filter was found!\"\n}"}],"_postman_id":"e566cfd9-8bcc-4ecb-9b4e-358a870b72c0"},{"name":"6.6 Get all listings (Admin)","event":[{"listen":"test","script":{"id":"a32c3d85-ecfe-4c36-a81c-fdb62e254993","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"response must be json\", function () {","    pm.response.to.be.json; ","});","","pm.test(\"response should have jsonBody without errors\", function () {","    pm.response.to.not.be.error;","    pm.response.to.have.jsonBody(\"size\");","    pm.response.to.have.jsonBody(\"totalSize\");","    pm.response.to.have.jsonBody(\"results\");","    pm.response.to.not.have.jsonBody(\"error\");","});","","pm.test(\"response should have listings fields\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.results[0].listingId).not.equal(null);","    pm.expect(jsonData.results[0].eventId).not.equal(null);","    pm.expect(jsonData.results[0].eventName).not.equal(null);","    pm.expect(jsonData.results[0].venue).not.equal(null);","    pm.expect(jsonData.results[0].externalListingSource).not.equal(null);    ","    pm.expect(jsonData.results[0].price).not.equal(null);    ","});"],"type":"text/javascript"}}],"id":"d89420f5-e25c-49bd-b4ba-6ba850cb76fd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token_admin}}"}},"method":"GET","header":[],"url":{"raw":"https://{{domain}}/api/v1/listings?start_page_index=0&page_size=250&filters={\"account_id\" : \"{{broker_id}}\"}","protocol":"https","host":["{{domain}}"],"path":["api","v1","listings"],"query":[{"key":"start_page_index","value":"0","description":"Description: index of the first page to return, zero-indexed;\nRequired: optional;\nPossible values: 0 - *;\nDefault value: 0"},{"key":"page_size","value":"250","description":"Description: page size for returned results;\nRequired: optional;\nPossible values: 100 - *;\nDefault value: 250"},{"key":"filters","value":"{\"account_id\" : \"{{broker_id}}\"}","description":"Description: filtering option for events results;\nRequired: optional;\nPossible values: accountId"}]},"description":"Returns ALL listings information in the BRP System \n- permission - listings:read.all\n\nResponse codes:\n- 200 - Indicates success"},"response":[{"id":"cd1a2132-4512-4377-a9fe-0d931372964e","name":"6.6 Get all listings (Admin)","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://{{domain}}/api/v1/listings?start_page_index=0&page_size=250&filters={\"account_id\" : \"{{broker_id}}\"}","protocol":"https","host":["{{domain}}"],"path":["api","v1","listings"],"query":[{"key":"start_page_index","value":"0","description":"Description: index of the first page to return, zero-indexed;\nRequired: optional;\nPossible values: 0 - *;\nDefault value: 0"},{"key":"page_size","value":"250","description":"Description: page size for returned results;\nRequired: optional;\nPossible values: 100 - *;\nDefault value: 250"},{"key":"filters","value":"{\"account_id\" : \"{{broker_id}}\"}","description":"Description: filtering option for events results;\nRequired: optional;\nPossible values: accountId"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"36653"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Wed, 16 Oct 2019 08:48:45 GMT"},{"key":"x-amzn-RequestId","value":"e61532fe-7b73-4241-8461-d65e54160a23"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"*"},{"key":"x-amz-apigw-id","value":"BpbpFEnSIAMFT8Q="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5da6d96d-d60fa6fa78274e7e684404fa;Sampled=0"},{"key":"Access-Control-Max-Age","value":"86400"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 5e71ebbd3e768e1e564c88b3632039d8.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"WAW50-C1"},{"key":"X-Amz-Cf-Id","value":"2sP4eIP11g1v1pZJQm1mdv4tAWPy4FNmMm02anjmHwDLsx5kIBGIMQ=="}],"cookie":[],"responseTime":null,"body":"{\n    \"size\": 1,\n    \"totalSize\": 1,\n    \"results\": [\n        {\n            \"listingId\": \"eabe3adf19e63c8a25af65c38cc69a03\",\n            \"eventId\": 3719217,\n            \"eventName\": \"Cirque du Soleil - Ka\",\n            \"venue\": \"KA Theatre at MGM Grand\",\n            \"externalListingSource\": \"AUTOPROCESSOR\",\n            \"section\": \"A\",\n            \"row\": \"2\",\n            \"quantity\": 4,\n            \"splits\": \"4,2\",\n            \"splitRule\": \"NO_SINGLES_FROM_4PACK\",\n            \"ticketType\": \"E_TICKET\",\n            \"isInstant\": false,\n            \"notes\": \"3719217_E_TICKET Lorem ipsum dolor sit amet, consectetur adipiscing elit\",\n            \"seatFrom\": \"4\",\n            \"seatThru\": \"7\",\n            \"isETicket\": true,\n            \"isRequireShipment\": false,\n            \"inHandDate\": \"2019-05-11\",\n            \"isHidden\": false,\n            \"isSuppressed\": false,\n            \"lastUpdated\": \"2019-10-03T07:05:32\",\n            \"account\": {\n                \"accountId\": \"auth0|5d947f42fb7a8e0e18f4d394\",\n                \"name\": \"Reseller Alina\",\n                \"companyName\": \"AT_reseller_company\",\n                \"phone\": \"+50034712245\",\n                \"email\": \"alina.tsvyak@gmail.com\",\n                \"featuredReseller\": 1,\n                \"inventoryMarkupPercent\": 12,\n                \"sellFeePercent\": 2,\n                \"staleThreshold\": 1,\n                \"listingAlertThreshold\": 30,\n                \"contractStatusType\": \"ACTIVE\",\n                \"integrationType\": \"CLOAKIFY\"\n            },\n            \"price\": 174.49\n        }\n    ]\n}"}],"_postman_id":"d89420f5-e25c-49bd-b4ba-6ba850cb76fd"},{"name":"6.6 Get all listings (Not found)","event":[{"listen":"test","script":{"id":"a32c3d85-ecfe-4c36-a81c-fdb62e254993","exec":["pm.test(\"Status code is 400\", function () {","    pm.response.to.have.status(400);","});","","pm.test(\"response must be json\", function () {","    pm.response.to.be.json; ","});","","pm.test(\"response should have jsonBody with error and message\", function () {","    pm.response.to.be.error;","    pm.response.to.have.jsonBody(\"error\");","    pm.response.to.have.jsonBody(\"message\");","});",""],"type":"text/javascript"}}],"id":"502262f0-2696-428d-93cc-6003f22e7b21","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token_admin}}"}},"method":"GET","header":[],"url":{"raw":"https://{{domain}}/api/v1/listings?filters={\"account_id\":\"1sdfsdfgsfg23\"}","protocol":"https","host":["{{domain}}"],"path":["api","v1","listings"],"query":[{"key":"filters","value":"{\"account_id\":\"1sdfsdfgsfg23\"}"}]},"description":"Listings with passed in filter accountId not found.\n\nResponse codes:\n- 400 - Bad Request"},"response":[{"id":"f018867c-7e71-4a82-8540-e9776fd87b26","name":"6.6 Get all listings (Not found)","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://{{domain}}/api/v1/listings?filters={\"account_id\":\"1sdfsdfgsfg23\"}","protocol":"https","host":["{{domain}}"],"path":["api","v1","listings"],"query":[{"key":"filters","value":"{\"account_id\":\"1sdfsdfgsfg23\"}"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"52"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Wed, 16 Oct 2019 08:42:30 GMT"},{"key":"x-amzn-RequestId","value":"1b831e07-a2a2-4e74-a2a8-b2e10a05509a"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"*"},{"key":"x-amz-apigw-id","value":"BpaujFfWIAMF8EA="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5da6d7f6-f477b8205d27eb0ce25728c8;Sampled=0"},{"key":"Access-Control-Max-Age","value":"86400"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"X-Cache","value":"Error from cloudfront"},{"key":"Via","value":"1.1 5e71ebbd3e768e1e564c88b3632039d8.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"WAW50-C1"},{"key":"X-Amz-Cf-Id","value":"AtlwaqHeZqXUVG7x-NtBF7LzH0pOemln5-maArCxy7bYncFKbeqqHw=="}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Bad request!\",\n    \"message\": \"Invalid user id\"\n}"}],"_postman_id":"502262f0-2696-428d-93cc-6003f22e7b21"},{"name":"6.6 Get all listings (Reseller)","event":[{"listen":"test","script":{"id":"c11801b6-f461-4be3-a450-fc7a82b14565","exec":["pm.test(\"Status code is 403\", function () {","    pm.response.to.have.status(403);","});","","pm.test(\"response must be json\", function () {","    pm.response.to.be.json; ","});","","pm.test(\"response should have jsonBody with error and message\", function () {","    pm.response.to.be.error;","    pm.response.to.have.jsonBody(\"error\");","    pm.response.to.have.jsonBody(\"message\");","});"],"type":"text/javascript"}}],"id":"57746c54-cb49-4899-8c7b-7bc37d94cabe","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token_reseller}}"}},"method":"GET","header":[],"url":"https://{{domain}}/api/v1/listings","description":"Returns ONLY OWNED by Reseller listings Detail information\n- permission - listings:read.self\n\nResponse codes:\n- 403 - Access is not allowed"},"response":[{"id":"56ae21ab-c9f9-4ee0-9fed-dfaa7c724f43","name":"6.6 Get all listings (Reseller)","originalRequest":{"method":"GET","header":[],"url":"https://{{domain}}/api/v1/listings"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"45"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Wed, 16 Oct 2019 08:44:13 GMT"},{"key":"x-amzn-RequestId","value":"7abedc0d-549f-4aff-996a-fa7f7e5d71b5"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"*"},{"key":"x-amz-apigw-id","value":"Bpa-pHy9IAMF5Hg="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5da6d85d-87f588b2f18d2c64727faa96;Sampled=0"},{"key":"Access-Control-Max-Age","value":"86400"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"X-Cache","value":"Error from cloudfront"},{"key":"Via","value":"1.1 5e71ebbd3e768e1e564c88b3632039d8.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"WAW50-C1"},{"key":"X-Amz-Cf-Id","value":"mTPfivM3ALWA23vLTdQgt3QowW3oQ0yX8WAazRT2BnViM3twge2XTg=="}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Forbidden!\",\n    \"message\": \"Forbidden!\"\n}"}],"_postman_id":"57746c54-cb49-4899-8c7b-7bc37d94cabe"},{"name":"6.6 Get all listings (Unauthorized)","event":[{"listen":"test","script":{"id":"2993093b-f54b-4352-842a-40bee46ee28c","exec":["pm.test(\"Status code is 401\", function () {","    pm.response.to.have.status(401);","});","","pm.test(\"response must be json\", function () {","    pm.response.to.be.json; ","});","","pm.test(\"response should have jsonBody with error and message\", function () {","    pm.response.to.be.error;","    pm.response.to.have.jsonBody(\"error\");","    pm.response.to.have.jsonBody(\"message\");","});"],"type":"text/javascript"}}],"id":"82e145d2-2f13-4562-8ef9-71def24bf286","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth"},"method":"GET","header":[],"url":"https://{{domain}}/api/v1/listings","description":"Response codes:\r\n- 401 - Unauthorized"},"response":[{"id":"2126f95c-9924-4fd9-a6b8-ef9c2134c534","name":"6.6 Get all listings (Unauthorized)","originalRequest":{"method":"GET","header":[],"url":"https://{{domain}}/api/v1/listings"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"81"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Wed, 16 Oct 2019 08:43:23 GMT"},{"key":"x-amzn-RequestId","value":"be79371a-5144-4969-9a0d-c54106b20d59"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"*"},{"key":"x-amz-apigw-id","value":"Bpa2wHHooAMFu1Q="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5da6d82b-d2d51e969030a82b6bba87a1;Sampled=0"},{"key":"Access-Control-Max-Age","value":"86400"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"X-Cache","value":"Error from cloudfront"},{"key":"Via","value":"1.1 5e71ebbd3e768e1e564c88b3632039d8.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"WAW50-C1"},{"key":"X-Amz-Cf-Id","value":"k1qbjm95atWclxnm_Yp0ws67P2gNhX907gPncO2oUaNi1JN2VOuk4A=="}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Invalid authorization token!\",\n    \"message\": \"Invalid authorization token!\"\n}"}],"_postman_id":"82e145d2-2f13-4562-8ef9-71def24bf286"}],"id":"5103752b-5d73-4596-b44b-b0b229358e39","description":"Description:\r\nAllows users to see All listings in the BRP system\r\n\r\nMethod:\r\n- GET\r\n\r\nRequest parameters type: \r\n- URL query string\r\n\r\nRequest headers:\r\n- Authorization: Bearer JWT token from Auth0\r\n- Get accountId from JWT token to pull Account data for Admin permissions and get only owned by this accountId listings.\r\n\r\nResponse media type:\r\n- application/json","event":[{"listen":"prerequest","script":{"id":"7dd93b16-6bd5-42e3-942e-998c83005871","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"9dce65f2-28a4-4bb3-bf6e-b66c6a8db380","type":"text/javascript","exec":[""]}}],"_postman_id":"5103752b-5d73-4596-b44b-b0b229358e39"},{"name":"6.7. API Method: Get specific Listing ","item":[{"name":"6.7. API Method: Get specific Listing  (Admin)","event":[{"listen":"test","script":{"id":"525ec093-0e3c-4532-a59f-4e76fef34c9d","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"response must be json\", function () {","    pm.response.to.be.json; ","});","","pm.test(\"response should have jsonBody without errors\", function () {","    pm.response.to.not.be.error;","    pm.response.to.have.jsonBody(\"listingId\");","    pm.response.to.have.jsonBody(\"eventId\");","    pm.response.to.have.jsonBody(\"eventName\");","    pm.response.to.have.jsonBody(\"venue\");    ","    pm.response.to.have.jsonBody(\"externalListingSource\");","    pm.response.to.have.jsonBody(\"section\");    ","    pm.response.to.have.jsonBody(\"row\");","    pm.response.to.have.jsonBody(\"quantity\");    ","    pm.response.to.have.jsonBody(\"splits\");","    pm.response.to.have.jsonBody(\"splitRule\");","    pm.response.to.have.jsonBody(\"ticketType\");","    pm.response.to.have.jsonBody(\"isInstant\");    ","    pm.response.to.have.jsonBody(\"notes\");","    pm.response.to.have.jsonBody(\"seatFrom\");    ","    pm.response.to.have.jsonBody(\"seatThru\");","    pm.response.to.have.jsonBody(\"isETicket\");    ","    pm.response.to.have.jsonBody(\"isRequireShipment\");","    pm.response.to.have.jsonBody(\"inHandDate\");","    pm.response.to.have.jsonBody(\"isHidden\");    ","    pm.response.to.have.jsonBody(\"isSuppressed\");","    pm.response.to.have.jsonBody(\"lastUpdated\");    ","    pm.response.to.have.jsonBody(\"price\");","    pm.response.to.not.have.jsonBody(\"error\");","});","","pm.test(\"response should have listing fields\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.listingId).not.equal(null);","    pm.expect(jsonData.eventId).not.equal(null);","    pm.expect(jsonData.eventName).not.equal(null);","    pm.expect(jsonData.venue).not.equal(null);","    pm.expect(jsonData.externalListingSource).not.equal(null);","    pm.expect(jsonData.quantity).not.equal(null);","    pm.expect(jsonData.splits).not.equal(null);","    pm.expect(jsonData.isInstant).not.equal(null);","    pm.expect(jsonData.price).not.equal(null);","});",""],"type":"text/javascript"}}],"id":"4adf440f-1acf-463f-916d-4873dbb67471","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token_admin}}"}},"method":"GET","header":[],"url":"https://{{domain}}/api/v1/listings/{{listing_id}}","description":"Returns ALL listing information in the BRP System \r\n- permission - listings:read.all \r\n\r\nResponse codes:\r\n- 200 - Indicates success"},"response":[{"id":"b7f19221-6cb5-4d23-a229-d4626a0c9245","name":"6.7. API Method: Get specific Listing  (Admin)","originalRequest":{"method":"GET","header":[],"url":"https://{{domain}}/api/v1/listings/{{listing_id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"908"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Wed, 16 Oct 2019 09:07:43 GMT"},{"key":"x-amzn-RequestId","value":"ff5be101-8477-4550-9cca-c692db404f72"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"*"},{"key":"x-amz-apigw-id","value":"BpeaXE4YIAMF8ww="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5da6dddb-f0966ad96a2dd82e51fed7cd;Sampled=0"},{"key":"Access-Control-Max-Age","value":"86400"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 b3b1689b5de3293227c415784ed3c268.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"WAW50-C1"},{"key":"X-Amz-Cf-Id","value":"RKEjNHaiwmdf47qFWE8q9f_11gORbXV7CFZn37pxAbYyd5edolF3Sw=="}],"cookie":[],"responseTime":null,"body":"{\n    \"listingId\": \"117e971dad525d9a86df4405a1f18988\",\n    \"eventId\": 3813175,\n    \"eventName\": \"Fellow Travelers\",\n    \"venue\": \"The Milton Theatre\",\n    \"externalListingSource\": \"AUTOPROCESSOR\",\n    \"section\": \"Field E\",\n    \"row\": \"22\",\n    \"quantity\": 5,\n    \"splits\": \"5,3,2,1\",\n    \"splitRule\": \"NO_SINGLES_FROM_4PACK\",\n    \"ticketType\": \"PHYSICAL\",\n    \"isInstant\": false,\n    \"notes\": \"3813175_PHYSICAL Lorem ipsum dolor sit adipiscing elit\",\n    \"seatFrom\": \"60\",\n    \"seatThru\": \"35\",\n    \"isETicket\": false,\n    \"isRequireShipment\": true,\n    \"inHandDate\": \"2019-05-18\",\n    \"isHidden\": false,\n    \"isSuppressed\": false,\n    \"lastUpdated\": \"2019-10-03T07:05:32\",\n    \"price\": 789.33,\n    \"account\": {\n        \"accountId\": \"auth0|5d947f42fb7a8e0e18f4d394\",\n        \"name\": \"Reseller Alina\",\n        \"companyName\": \"AT_reseller_company\",\n        \"phone\": \"+50034712245\",\n        \"email\": \"alina.tsvyak@gmail.com\",\n        \"featuredReseller\": 1,\n        \"inventoryMarkupPercent\": 12,\n        \"sellFeePercent\": 2,\n        \"staleThreshold\": 1,\n        \"listingAlertThreshold\": 30,\n        \"contractStatusType\": \"ACTIVE\",\n        \"integrationType\": \"CLOAKIFY\"\n    }\n}"}],"_postman_id":"4adf440f-1acf-463f-916d-4873dbb67471"},{"name":"6.7. API Method: Get specific Listing  (Not Found)","event":[{"listen":"test","script":{"id":"2acf7d3d-ddb6-4152-88db-42403c4e8471","exec":["pm.test(\"Status code is 404\", function () {","    pm.response.to.have.status(404);","});","","pm.test(\"response must be json\", function () {","    pm.response.to.be.json; ","});","","pm.test(\"response should have jsonBody with error and message\", function () {","    pm.response.to.be.error;","    pm.response.to.have.jsonBody(\"error\");","    pm.response.to.have.jsonBody(\"message\");","});"],"type":"text/javascript"}}],"id":"44e4e7fc-da2c-44da-8b03-7b9611c90904","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token_admin}}"}},"method":"GET","header":[],"url":"https://{{domain}}/api/v1/listings/ff{{listing_id}}","description":"Response codes:\r\n- 404 - Listing with passed Listing ID not found"},"response":[{"id":"22358d73-b69e-43ad-a3bb-2cfe939a54a5","name":"6.7. API Method: Get specific Listing  (Not Found)","originalRequest":{"method":"GET","header":[],"url":"https://{{domain}}/api/v1/listings/ff{{listing_id}}"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"107"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Wed, 16 Oct 2019 09:11:41 GMT"},{"key":"x-amzn-RequestId","value":"dafde0a2-4ef4-411b-8e5b-7b1756525853"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"*"},{"key":"x-amz-apigw-id","value":"BpfAEGvioAMFVpQ="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5da6decd-80b57730f9fef788a0d0f3d0;Sampled=0"},{"key":"Access-Control-Max-Age","value":"86400"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"X-Cache","value":"Error from cloudfront"},{"key":"Via","value":"1.1 b3b1689b5de3293227c415784ed3c268.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"WAW50-C1"},{"key":"X-Amz-Cf-Id","value":"mdlEFIImEJImuG29woCjDLpxIWNWwI-qUJ-Ft_PqIsiSTxWGlDDJvw=="}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Listing with passed Listing ID not found.\",\n    \"message\": \"Listing with passed Listing ID not found.\"\n}"}],"_postman_id":"44e4e7fc-da2c-44da-8b03-7b9611c90904"},{"name":"6.7. API Method: Get specific Listing  (Unauthorized)","event":[{"listen":"test","script":{"id":"83aaa408-16ab-4dcd-9060-d07024cc7014","exec":["pm.test(\"Status code is 401\", function () {","    pm.response.to.have.status(401);","});","","pm.test(\"response must be json\", function () {","    pm.response.to.be.json; ","});","","pm.test(\"response should have jsonBody with error and message\", function () {","    pm.response.to.be.error;","    pm.response.to.have.jsonBody(\"error\");","    pm.response.to.have.jsonBody(\"message\");","});"],"type":"text/javascript"}}],"id":"0f5f6d25-c240-49e7-a086-d630f302458a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth"},"method":"GET","header":[],"url":"https://{{domain}}/api/v1/listings/{{listing_id}}","description":"Response codes:\r\n- 401 - Unauthorized"},"response":[{"id":"e29c50e4-45d8-4c5e-a67d-122307261881","name":"6.7. API Method: Get specific Listing  (Unauthorized)","originalRequest":{"method":"GET","header":[],"url":"https://{{domain}}/api/v1/listings/{{listing_id}}"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"81"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Wed, 16 Oct 2019 09:10:11 GMT"},{"key":"x-amzn-RequestId","value":"47066b68-36b2-4d58-b9cc-d0dabf93d3df"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"*"},{"key":"x-amz-apigw-id","value":"BpeyCFSbIAMFqAA="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5da6de73-dbe751b03d01d37a74162281;Sampled=0"},{"key":"Access-Control-Max-Age","value":"86400"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"X-Cache","value":"Error from cloudfront"},{"key":"Via","value":"1.1 b3b1689b5de3293227c415784ed3c268.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"WAW50-C1"},{"key":"X-Amz-Cf-Id","value":"Mfjlt7DEp9j6Upy2xllrvj8k_KUl49ISGj0NCzDnoATWqi6AoZvNGA=="}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Invalid authorization token!\",\n    \"message\": \"Invalid authorization token!\"\n}"}],"_postman_id":"0f5f6d25-c240-49e7-a086-d630f302458a"}],"id":"fd492f4c-9f04-4589-94e0-d3bf06f7c47b","description":"Description:\r\nAllows users to see specific listing details in the BRP system\r\n\r\nMethod:\r\n- GET\r\n\r\nRequest parameters type: \r\n- URL Path parameter\r\n\r\nRequest parameters:\r\n- listingId - specific listing Id in DB (PK - uuid in of Listing in MongoDB Listings Collection)\r\n\r\nRequest headers:\r\n- Authorization: Bearer JWT token from Auth0\r\n- Get accountId from JWT token to pull Account data for Admin permissions and get only owned by this accountId listings\r\n\r\nResponse media type:\r\n- application/json","event":[{"listen":"prerequest","script":{"id":"f19e7112-1369-48fe-8b74-0f779d90ed8e","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"016d9856-4e07-42e9-9ee3-bfec12da1b94","type":"text/javascript","exec":[""]}}],"_postman_id":"fd492f4c-9f04-4589-94e0-d3bf06f7c47b"},{"name":"7.1. API Method: Get Performers information","item":[{"name":"7.1 Get Performers information (Admin)","event":[{"listen":"test","script":{"id":"7829f761-9a7c-421e-b3c6-9d8f66e60c15","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"response must be json\", function () {","    pm.response.to.be.json; ","});","","pm.test(\"response should have jsonBody without errors\", function () {","    pm.response.to.not.be.error;","    pm.response.to.have.jsonBody(\"totalSize\");","    pm.response.to.have.jsonBody(\"size\");","    pm.response.to.have.jsonBody(\"results\");","    pm.response.to.not.have.jsonBody(\"error\");","});","","pm.test(\"response should have performer fields\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.results[0].performerId).not.equal(null);","    pm.expect(jsonData.results[0].name).not.equal(null);","    pm.expect(jsonData.results[0].categoryIds).not.equal(null);","});",""],"type":"text/javascript"}}],"id":"d4218db3-1a75-40b2-8575-49db9e7442bd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token_admin}}"}},"method":"GET","header":[],"url":{"raw":"https://{{domain}}/api/v1/performers?start_page_index=0","protocol":"https","host":["{{domain}}"],"path":["api","v1","performers"],"query":[{"key":"start_page_index","value":"0","description":"Description: index of the first page to return, zero-indexed;\nRequired: optional;\nPossible values: 0 - *;\nDefault value: 0"},{"key":"page_size","value":"15","description":"Description: page size for returned results;\nRequired: optional;\nPossible values: 10, 15, 25, 50;\nDefault value: 15","disabled":true},{"key":"sort_field","value":"name","description":"Description: field in performer used for sorting performer result list;\nRequired: optional;\nPossible values: name, venue;\nDefault value: name","disabled":true},{"key":"sort_order","value":"asc","description":"Description: order of sorting;\nRequired: optional;\nPossible values: asc, desc;\nDefault value: asc","disabled":true},{"key":"filters","value":"{ \"search_query\": \"A Christmas Celtic Sojourn\"}","description":"Description: filtering option for events results;\nRequired: optional;\nPossible values: category, venue, search_query;\nDefault value: NONE filters","disabled":true}]},"description":"Response codes:\r\n- 200 - Indicates success"},"response":[{"id":"e25ae1dd-72f4-4d16-bc35-abaecc03164e","name":"7.1 Get Performers information (Admin)","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://{{domain}}/api/v1/performers?start_page_index=0&page_size=15&sort_field=name&sort_order=asc&filters={ \"search_query\": \"A Christmas Celtic Sojourn\"}","protocol":"https","host":["{{domain}}"],"path":["api","v1","performers"],"query":[{"key":"start_page_index","value":"0","description":"Description: index of the first page to return, zero-indexed;\nRequired: optional;\nPossible values: 0 - *;\nDefault value: 0"},{"key":"page_size","value":"15","description":"Description: page size for returned results;\nRequired: optional;\nPossible values: 10, 15, 25, 50;\nDefault value: 15"},{"key":"sort_field","value":"name","description":"Description: field in performer used for sorting performer result list;\nRequired: optional;\nPossible values: name, venue;\nDefault value: name"},{"key":"sort_order","value":"asc","description":"Description: order of sorting;\nRequired: optional;\nPossible values: asc, desc;\nDefault value: asc"},{"key":"filters","value":"{ \"search_query\": \"A Christmas Celtic Sojourn\"}","description":"Description: filtering option for events results;\nRequired: optional;\nPossible values: category, venue, search_query;\nDefault value: NONE filters"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"249"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Wed, 16 Oct 2019 09:22:56 GMT"},{"key":"x-amzn-RequestId","value":"96e1676a-1837-4ef8-a30d-29170518e69b"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"*"},{"key":"x-amz-apigw-id","value":"BpgpnFHSIAMF3qw="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5da6e170-01f1e2e878bbd19ce895b2d6;Sampled=0"},{"key":"Access-Control-Max-Age","value":"86400"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 b3b1689b5de3293227c415784ed3c268.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"WAW50-C1"},{"key":"X-Amz-Cf-Id","value":"tYpBM4rib4kvUJYmiES_t-6VhszdIUK_DEExHg6ATFycnBITwPEmwQ=="}],"cookie":[],"responseTime":null,"body":"{\n    \"totalSize\": 2,\n    \"size\": 2,\n    \"results\": [\n        {\n            \"performerId\": 29179,\n            \"name\": \"A Christmas Celtic Sojourn\",\n            \"venueId\": null,\n            \"categoryIds\": [\n                2,\n                57,\n                47\n            ]\n        },\n        {\n            \"performerId\": 163893,\n            \"name\": \"Brian O'Donovan - A Christmas Celtic Sojourn\",\n            \"venueId\": null,\n            \"categoryIds\": [\n                2,\n                57,\n                47\n            ]\n        }\n    ]\n}"}],"_postman_id":"d4218db3-1a75-40b2-8575-49db9e7442bd"},{"name":"7.1 Get Performers information (Reseller)","event":[{"listen":"test","script":{"id":"7829f761-9a7c-421e-b3c6-9d8f66e60c15","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"response must be json\", function () {","    pm.response.to.be.json; ","});","","pm.test(\"response should have jsonBody without errors\", function () {","    pm.response.to.not.be.error;","    pm.response.to.have.jsonBody(\"totalSize\");","    pm.response.to.have.jsonBody(\"size\");","    pm.response.to.have.jsonBody(\"results\");","    pm.response.to.not.have.jsonBody(\"error\");","});","","pm.test(\"response should have performer fields\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.results[0].performerId).not.equal(null);","    pm.expect(jsonData.results[0].name).not.equal(null);","    pm.expect(jsonData.results[0].categoryIds).not.equal(null);","});"],"type":"text/javascript"}}],"id":"5880e7dc-a91e-4755-aa9a-463e8fbc4c80","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token_reseller}}"}},"method":"GET","header":[],"url":"https://{{domain}}/api/v1/performers","description":"Response codes:\r\n- 200 - Indicates success"},"response":[{"id":"ddcc06c1-f557-451b-a7d7-b835b220d657","name":"7.1 Get Performers information (Reseller)","originalRequest":{"method":"GET","header":[],"url":"https://{{domain}}/api/v1/performers"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"1353"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Wed, 16 Oct 2019 09:24:45 GMT"},{"key":"x-amzn-RequestId","value":"f87c5e01-1e53-46da-8533-580e85b824a6"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"*"},{"key":"x-amz-apigw-id","value":"Bpg6rHGhIAMF3sA="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5da6e1dd-7c1c21c1ac9251a54114fcdc;Sampled=0"},{"key":"Access-Control-Max-Age","value":"86400"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 b3b1689b5de3293227c415784ed3c268.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"WAW50-C1"},{"key":"X-Amz-Cf-Id","value":"yDV0X3RGCO_e7o6aif50n927hAV0vRW2SVstLy2ki7QtVo_NVbs1LA=="}],"cookie":[],"responseTime":null,"body":"{\n    \"totalSize\": 1,\n    \"size\": 1,\n    \"results\": [\n        {\n            \"performerId\": 21,\n            \"name\": \"Air Force Falcons\",\n            \"venueId\": 1000,\n            \"categoryIds\": [\n                1,\n                63,\n                17\n            ]\n        }\n    ]\n}"}],"_postman_id":"5880e7dc-a91e-4755-aa9a-463e8fbc4c80"},{"name":"7.1 Get Performers information (Unauthorized)","event":[{"listen":"test","script":{"id":"7829f761-9a7c-421e-b3c6-9d8f66e60c15","exec":["pm.test(\"Status code is 401\", function () {","    pm.response.to.have.status(401);","});","","pm.test(\"response must be json\", function () {","    pm.response.to.be.json; ","});","","pm.test(\"response should have jsonBody with error and message\", function () {","    pm.response.to.be.error;","    pm.response.to.have.jsonBody(\"error\");","    pm.response.to.have.jsonBody(\"message\");","});",""],"type":"text/javascript"}}],"id":"38701848-6013-4daa-b7bc-20a72795a4cf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth"},"method":"GET","header":[],"url":"https://{{domain}}/api/v1/performers","description":"Response codes:\r\n- 401 - Unauthorized"},"response":[{"id":"92dd5d72-e714-4b3d-b128-94c59b80b062","name":"7.1 Get Performers information (Unauthorized)","originalRequest":{"method":"GET","header":[],"url":"https://{{domain}}/api/v1/performers"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"81"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Wed, 16 Oct 2019 09:26:05 GMT"},{"key":"x-amzn-RequestId","value":"57d7a2f6-2c13-4cc0-aff4-8c4cdcf88ed7"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"*"},{"key":"x-amz-apigw-id","value":"BphHIH1SIAMF5ZA="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5da6e22d-bf5578f8b36d67d00aa0bd00;Sampled=0"},{"key":"Access-Control-Max-Age","value":"86400"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"X-Cache","value":"Error from cloudfront"},{"key":"Via","value":"1.1 b3b1689b5de3293227c415784ed3c268.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"WAW50-C1"},{"key":"X-Amz-Cf-Id","value":"Qu0yI49hmK6qvpYB4kYMx_KiBi2kO28XjZZCRRgidLzvN0kIRoMQSA=="}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Invalid authorization token!\",\n    \"message\": \"Invalid authorization token!\"\n}"}],"_postman_id":"38701848-6013-4daa-b7bc-20a72795a4cf"}],"id":"53ec4df0-9846-4f48-a36c-dc612c58104b","description":"Description:\r\nAllows users to see Performers information.\r\nThis method will be called by Frontend to get data for filters and External API.\r\n        \r\nMethod:\r\n- GET\r\n\r\nRequest parameters type: \r\n- URL query string\r\n\r\nResponse media type:\r\n- application/json","event":[{"listen":"prerequest","script":{"id":"890f8150-9ab9-4113-886a-8b9ade89656d","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"c71ae511-2c9e-4aa2-a220-dac7a8b24f5e","type":"text/javascript","exec":[""]}}],"_postman_id":"53ec4df0-9846-4f48-a36c-dc612c58104b"},{"name":"7.2. API Method: Get Specific Performer information","item":[{"name":"7.2 Get Specific Performer information (Admin)","event":[{"listen":"test","script":{"id":"7829f761-9a7c-421e-b3c6-9d8f66e60c15","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"response must be json\", function () {","    pm.response.to.be.json; ","});","","pm.test(\"response should have jsonBody without errors\", function () {","    pm.response.to.not.be.error;","    pm.response.to.have.jsonBody(\"performerId\");","    pm.response.to.have.jsonBody(\"name\");","    pm.response.to.have.jsonBody(\"venueId\");","    pm.response.to.have.jsonBody(\"categoryId\");","    pm.response.to.not.have.jsonBody(\"error\");","});","","pm.test(\"response should have specific performer fields\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.performerId).not.equal(null);","    pm.expect(jsonData.name).not.equal(null);","    pm.expect(jsonData.categoryIds).not.equal(null);","});"],"type":"text/javascript"}}],"id":"9f31e5f9-fc6f-4269-9002-3dcdae5db968","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token_admin}}"}},"method":"GET","header":[],"url":"https://{{domain}}/api/v1/performers/{{performer_id}}","description":"Response codes:\r\n- 200 - Indicates success"},"response":[{"id":"18b6fb3e-e949-4df2-8dee-db1712baaae0","name":"7.2 Get Specific Performer information (Admin)","originalRequest":{"method":"GET","header":[],"url":"https://{{domain}}/api/v1/performers/{{performer_id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"114"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Wed, 16 Oct 2019 09:30:37 GMT"},{"key":"x-amzn-RequestId","value":"232236d0-64e3-437c-a8d4-1a423e7a8fec"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"*"},{"key":"x-amz-apigw-id","value":"BphxoEN5oAMFbFA="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5da6e33d-44ac3c19d78192e8f70b7f2a;Sampled=0"},{"key":"Access-Control-Max-Age","value":"86400"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 b3b1689b5de3293227c415784ed3c268.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"WAW50-C1"},{"key":"X-Amz-Cf-Id","value":"EkD5usOODk-MloJWc4SOYupyM8f13RONIx_hb64pNpEpNAX4U1NpRQ=="}],"cookie":[],"responseTime":null,"body":"{\n    \"performerId\": 21,\n    \"name\": \"Air Force Falcons\",\n    \"venueId\": 1000,\n    \"categoryIds\": [\n        1,\n        63,\n        17\n    ],\n    \"seoSlug\": \"Air-Force-Falcons\"\n}"}],"_postman_id":"9f31e5f9-fc6f-4269-9002-3dcdae5db968"},{"name":"7.2 Get Specific Performer information (Admin) Not Found","event":[{"listen":"test","script":{"id":"7829f761-9a7c-421e-b3c6-9d8f66e60c15","exec":["pm.test(\"Status code is 404\", function () {","    pm.response.to.have.status(404);","});","","pm.test(\"response must be json\", function () {","    pm.response.to.be.json; ","});","","pm.test(\"response should have jsonBody with error and message\", function () {","    pm.response.to.be.error;","    pm.response.to.have.jsonBody(\"error\");","    pm.response.to.have.jsonBody(\"message\");","});",""],"type":"text/javascript"}}],"id":"11a8d5f8-ea7b-4a38-8952-d346ce864321","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token_admin}}"}},"method":"GET","header":[],"url":"https://{{domain}}/api/v1/performers/22g2g2g","description":"Response codes:\r\n- 404 - Performer with passed PerformerId not found"},"response":[{"id":"c869844c-593b-464c-8ca4-d4aa3c3f0111","name":"7.2 Get Specific Performer information (Admin) Not Found","originalRequest":{"method":"GET","header":[],"url":"https://{{domain}}/api/v1/performers/22g2g2g"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"45"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Wed, 16 Oct 2019 09:31:24 GMT"},{"key":"x-amzn-RequestId","value":"6c6eb795-81aa-47fa-8385-d1a6462dfc88"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"*"},{"key":"x-amz-apigw-id","value":"Bph5AHjqIAMFkWw="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5da6e36c-0d34bcf40d0bf6ae5ac9df9c;Sampled=0"},{"key":"Access-Control-Max-Age","value":"86400"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"X-Cache","value":"Error from cloudfront"},{"key":"Via","value":"1.1 b3b1689b5de3293227c415784ed3c268.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"WAW50-C1"},{"key":"X-Amz-Cf-Id","value":"UgP4NtCN-cQcY_tgTnfHG-StKh1kaXOvnB57l-cPHghtjEMpTYjuYQ=="}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Not found!\",\n    \"message\": \"Not found!\"\n}"}],"_postman_id":"11a8d5f8-ea7b-4a38-8952-d346ce864321"},{"name":"7.2 Get Specific Performer information (Unauthorized)","event":[{"listen":"test","script":{"id":"7829f761-9a7c-421e-b3c6-9d8f66e60c15","exec":["pm.test(\"Status code is 401\", function () {","    pm.response.to.have.status(401);","});","","pm.test(\"response must be json\", function () {","    pm.response.to.be.json; ","});","","pm.test(\"response should have jsonBody with error and message\", function () {","    pm.response.to.be.error;","    pm.response.to.have.jsonBody(\"error\");","    pm.response.to.have.jsonBody(\"message\");","});",""],"type":"text/javascript"}}],"id":"dbaf9154-f61e-4fef-88cd-ae4971b8a894","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth"},"method":"GET","header":[],"url":"https://{{domain}}/api/v1/performers/{{performer_id}}","description":"Response codes:\r\n- 401 - Unauthorized"},"response":[{"id":"1d542ad3-1216-4452-8310-7144ac8e9595","name":"7.2 Get Specific Performer information (Unauthorized)","originalRequest":{"method":"GET","header":[],"url":"https://{{domain}}/api/v1/performers/{{performer_id}}"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"81"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Wed, 16 Oct 2019 09:32:09 GMT"},{"key":"x-amzn-RequestId","value":"f0afd00f-8c32-463b-86ca-423090db3b6e"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"*"},{"key":"x-amz-apigw-id","value":"Bph__GnmIAMFQpA="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5da6e399-7c14fc007c338980890d5380;Sampled=0"},{"key":"Access-Control-Max-Age","value":"86400"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"X-Cache","value":"Error from cloudfront"},{"key":"Via","value":"1.1 b3b1689b5de3293227c415784ed3c268.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"WAW50-C1"},{"key":"X-Amz-Cf-Id","value":"DVACb0bh-BXY6-XcnsxCSD6B9JRpneDPplkda8GWKmutHPqHCwj5zg=="}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Invalid authorization token!\",\n    \"message\": \"Invalid authorization token!\"\n}"}],"_postman_id":"dbaf9154-f61e-4fef-88cd-ae4971b8a894"}],"id":"0dc2c93c-8fe6-4c02-a8b2-7a3a6f93cbed","description":"Description:\r\nAllows users to see specific Performer details information\r\nThis method will be called by External API\r\n        \r\nMethod:\r\n- GET\r\n\r\nRequest parameters type: \r\n- URL Path parameter\r\n\r\nRequest parameters:\r\n- id - internal DB id of the Perfomer (Primary Key in MySQL)\r\n\r\nResponse media type:\r\n- application/json","event":[{"listen":"prerequest","script":{"id":"a1aafe55-268e-475a-aaf9-c3ad9f6602c0","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"aa55d45a-42ad-43eb-bf8b-c87d7c33f856","type":"text/javascript","exec":[""]}}],"_postman_id":"0dc2c93c-8fe6-4c02-a8b2-7a3a6f93cbed"},{"name":"8.1. API Method: Get Venues information","item":[{"name":"8.1 Get Venues information (Admin)","event":[{"listen":"test","script":{"id":"7829f761-9a7c-421e-b3c6-9d8f66e60c15","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"response must be json\", function () {","    pm.response.to.be.json; ","});","","pm.test(\"response should have jsonBody without errors\", function () {","    pm.response.to.not.be.error;","    pm.response.to.have.jsonBody(\"totalSize\");","    pm.response.to.have.jsonBody(\"size\");","    pm.response.to.have.jsonBody(\"results\");","    pm.response.to.not.have.jsonBody(\"error\");","});","","pm.test(\"response should have venues fields\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.results[0].venueId).not.equal(null);","    pm.expect(jsonData.results[0].name).not.equal(null);","});"],"type":"text/javascript"}}],"id":"b89bcee5-71f2-433b-a4d1-716abebd86af","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token_admin}}"}},"method":"GET","header":[],"url":{"raw":"https://{{domain}}/api/v1/venues?start_page_index=0&page_size=15&sort_field=name&sort_order=asc&filters={\"name_ids\":[\"29352\"]}","protocol":"https","host":["{{domain}}"],"path":["api","v1","venues"],"query":[{"key":"start_page_index","value":"0","description":"Description: index of the first page to return, zero-indexed;\nRequired: optional;\nPossible values: 0 - *;\nDefault value: 0"},{"key":"page_size","value":"15","description":"Description: page size for returned results;\nRequired: optional;\nPossible values: 10, 15, 25, 50;\nDefault value: 15"},{"key":"sort_field","value":"name","description":"Description: field in venues used for sorting venues result list;\nRequired: optional;\nPossible values: name, country, city;\nDefault value: name"},{"key":"sort_order","value":"asc","description":"Description: order of sorting;\nRequired: optional;\nPossible values: asc, desc;\nDefault value: asc"},{"key":"filters","value":"{\"name_ids\":[\"29352\"]}","description":"Description: filtering option for events results;\nRequired: optional;\nPossible values: names (venue), name_ids, country_names, country_ids, cities, states;\nDefault value: NONE filters"},{"key":"filters","value":"{\"country_names\":[\"United States of America\"]}","disabled":true},{"key":"filters","value":"{\"cities\":[\"Aiea\"]}","disabled":true},{"key":"filters","value":"{\"states\":[\"AZ\"]}","disabled":true}]},"description":"Response codes:\r\n- 200 - Indicates success"},"response":[{"id":"a6b8ca54-b1c9-427e-9808-856cfcccd640","name":"8.1 Get Venues information (Admin) Filtering","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://{{domain}}/api/v1/venues?start_page_index=0&page_size=15&sort_field=name&sort_order=asc&filters={\"name_ids\":[\"29352\"]}","protocol":"https","host":["{{domain}}"],"path":["api","v1","venues"],"query":[{"key":"start_page_index","value":"0","description":"Description: index of the first page to return, zero-indexed;\nRequired: optional;\nPossible values: 0 - *;\nDefault value: 0"},{"key":"page_size","value":"15","description":"Description: page size for returned results;\nRequired: optional;\nPossible values: 10, 15, 25, 50;\nDefault value: 15"},{"key":"sort_field","value":"name","description":"Description: field in venues used for sorting venues result list;\nRequired: optional;\nPossible values: name, country, city;\nDefault value: name"},{"key":"sort_order","value":"asc","description":"Description: order of sorting;\nRequired: optional;\nPossible values: asc, desc;\nDefault value: asc"},{"key":"filters","value":"{\"name_ids\":[\"29352\"]}","description":"Description: filtering option for events results;\nRequired: optional;\nPossible values: names (venue), name_ids, country_names, country_ids, cities, states;\nDefault value: NONE filters"},{"key":"filters","value":"{\"country_names\":[\"United States of America\"]}","disabled":true},{"key":"filters","value":"{\"cities\":[\"Aiea\"]}","disabled":true},{"key":"filters","value":"{\"states\":[\"AZ\"]}","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"307"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Thu, 17 Oct 2019 09:09:09 GMT"},{"key":"x-amzn-RequestId","value":"0eee4a4b-8f09-4953-af87-86b4d0911e5a"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"*"},{"key":"x-amz-apigw-id","value":"BsxkWGwYoAMF3qw="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5da82fb5-aed70dc56427947af00b9e29;Sampled=0"},{"key":"Access-Control-Max-Age","value":"86400"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 7953c31b7650812341d5a358487e2bbc.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"YUL62-C1"},{"key":"X-Amz-Cf-Id","value":"gUCGfTUZ9QrMKGDIgUt3bY65gAJGsCoyu1Y6N_xzKndT-edjwkynyA=="}],"cookie":[],"responseTime":null,"body":"{\n    \"totalSize\": 1,\n    \"size\": 1,\n    \"results\": [\n        {\n            \"venueId\": 29352,\n            \"name\": \"Dickies Arena\",\n            \"countryId\": 217,\n            \"city\": \"Fort Worth\",\n            \"street\": \"1911 Montgomery St.\",\n            \"zipCode\": \"76107\",\n            \"latitude\": null,\n            \"longitude\": null,\n            \"phone\": null,\n            \"url\": null,\n            \"capacity\": 0,\n            \"countryName\": \"United States of America\",\n            \"stateNameIso2\": \"TX\",\n            \"stateId\": 44\n        }\n    ]\n}"}],"_postman_id":"b89bcee5-71f2-433b-a4d1-716abebd86af"},{"name":"8.1 Get Venues information (Reseller)","event":[{"listen":"test","script":{"id":"7829f761-9a7c-421e-b3c6-9d8f66e60c15","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"response must be json\", function () {","    pm.response.to.be.json; ","});","","pm.test(\"response should have jsonBody without errors\", function () {","    pm.response.to.not.be.error;","    pm.response.to.have.jsonBody(\"totalSize\");","    pm.response.to.have.jsonBody(\"size\");","    pm.response.to.have.jsonBody(\"results\");","    pm.response.to.not.have.jsonBody(\"error\");","});","","pm.test(\"response should have venues fields\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.results[0].venueId).not.equal(null);","    pm.expect(jsonData.results[0].name).not.equal(null);","});"],"type":"text/javascript"}}],"id":"2a197464-161b-457e-abe0-a9fc9b8d9f47","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token_reseller}}"}},"method":"GET","header":[],"url":"https://{{domain}}/api/v1/venues","description":"Response codes:\r\n- 200 - Indicates success"},"response":[{"id":"882bbbc6-ae61-4fd6-a584-f6a54fc3c978","name":"8.1 Get Venues information (Reseller)","originalRequest":{"method":"GET","header":[],"url":"https://{{domain}}/api/v1/venues"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"4077"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Wed, 16 Oct 2019 09:50:17 GMT"},{"key":"x-amzn-RequestId","value":"bc995102-e6be-4afd-9544-51d5120bbd49"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"*"},{"key":"x-amz-apigw-id","value":"BpkpqHiQIAMFv8g="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5da6e7d7-a403600a93f7d20049aebed4;Sampled=0"},{"key":"Access-Control-Max-Age","value":"86400"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 b3b1689b5de3293227c415784ed3c268.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"WAW50-C1"},{"key":"X-Amz-Cf-Id","value":"pwQPveAt4iAsYj2nyaKedKWXncalLc-7BMoq9ROkcMZ-6PxC0WJASQ=="}],"cookie":[],"responseTime":null,"body":"{\n    \"totalSize\": 1,\n    \"size\": 1,\n    \"results\": [\n        {\n            \"venueId\": 2,\n            \"name\": \"Allstate Arena\",\n            \"countryId\": 217,\n            \"city\": \"Rosemont\",\n            \"street\": \"6920 Mannheim Road\",\n            \"zipCode\": \"60018\",\n            \"latitude\": null,\n            \"longitude\": null,\n            \"phone\": null,\n            \"url\": null,\n            \"capacity\": 0,\n            \"countryName\": \"United States of America\",\n            \"stateNameIso2\": \"IL\",\n            \"stateId\": 15\n        }\n    ]\n}"}],"_postman_id":"2a197464-161b-457e-abe0-a9fc9b8d9f47"},{"name":"8.1 Get Venues information (Unauthorized)","event":[{"listen":"test","script":{"id":"7829f761-9a7c-421e-b3c6-9d8f66e60c15","exec":["pm.test(\"Status code is 401\", function () {","    pm.response.to.have.status(401);","});","","pm.test(\"response must be json\", function () {","    pm.response.to.be.json; ","});","","pm.test(\"response should have jsonBody with error and message\", function () {","    pm.response.to.be.error;","    pm.response.to.have.jsonBody(\"error\");","    pm.response.to.have.jsonBody(\"message\");","});"],"type":"text/javascript"}}],"id":"80314169-16e0-4990-835f-14b837e4e96d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth"},"method":"GET","header":[],"url":"https://{{domain}}/api/v1/venues","description":"Response codes:\r\n- 401 - Unauthorized"},"response":[{"id":"53342276-b0f4-4314-94f1-7e135f5448bb","name":"8.1 Get Venues information (Unauthorized)","originalRequest":{"method":"GET","header":[],"url":"https://{{domain}}/api/v1/venues"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"81"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Wed, 16 Oct 2019 09:34:52 GMT"},{"key":"x-amzn-RequestId","value":"b60028e0-3102-43cb-b949-846af408d676"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"*"},{"key":"x-amz-apigw-id","value":"BpiZaEOPoAMFmaw="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5da6e43c-344832c06af5073832142168;Sampled=0"},{"key":"Access-Control-Max-Age","value":"86400"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"X-Cache","value":"Error from cloudfront"},{"key":"Via","value":"1.1 b3b1689b5de3293227c415784ed3c268.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"WAW50-C1"},{"key":"X-Amz-Cf-Id","value":"6HuWYqaeBhHaavJzvTZLFTDzzdBUAAcm10le9QxOv1Hvoc1fwifFxw=="}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Invalid authorization token!\",\n    \"message\": \"Invalid authorization token!\"\n}"}],"_postman_id":"80314169-16e0-4990-835f-14b837e4e96d"}],"id":"55f92b75-65ac-4cff-89e0-10b1df77bea2","description":"Description:\r\nAllows users to see Venues information\r\nThis method will be called by External API\r\n        \r\nMethod:\r\n- GET\r\n\r\nRequest parameters type: \r\n- URL query string\r\n\r\nResponse media type:\r\n- application/json","event":[{"listen":"prerequest","script":{"id":"cb39a677-2ae6-40fe-bae5-fbc86473a10b","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"3c8d0efc-dd8b-4da9-b190-0caf125a04bb","type":"text/javascript","exec":[""]}}],"_postman_id":"55f92b75-65ac-4cff-89e0-10b1df77bea2"},{"name":"8.2. API Method: Get specific Venue detail information","item":[{"name":"8.2 Get specific Venue information (Admin)","event":[{"listen":"test","script":{"id":"1dacccb5-1479-4d98-aa44-ff1104fc9485","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"response must be json\", function () {","    pm.response.to.be.json; ","});","","pm.test(\"response should have jsonBody without errors\", function () {","    pm.response.to.not.be.error;","    pm.response.to.have.jsonBody(\"venueId\");","    pm.response.to.have.jsonBody(\"name\");","    pm.response.to.have.jsonBody(\"countryId\");","    pm.response.to.have.jsonBody(\"city\");","    pm.response.to.have.jsonBody(\"street\");","    pm.response.to.have.jsonBody(\"zipCode\");    ","    pm.response.to.have.jsonBody(\"countryName\");","    pm.response.to.have.jsonBody(\"stateNameIso2\");    ","    pm.response.to.have.jsonBody(\"stateId\");","    pm.response.to.not.have.jsonBody(\"error\");","});","","pm.test(\"response should have venue fields\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.venueId).not.equal(null);","    pm.expect(jsonData.name).not.equal(null);","    pm.expect(jsonData.countryId).not.equal(null);","    pm.expect(jsonData.stateId).not.equal(null);    ","});"],"type":"text/javascript"}}],"id":"eb4166e5-9009-467d-81bb-6b2ccafd7177","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token_admin}}"}},"method":"GET","header":[],"url":"https://{{domain}}/api/v1/venues/{{venue_id}}","description":"Response codes:\r\n- 200 - Indicates success"},"response":[{"id":"58762e6b-b465-44e9-8bc5-7ba6107ffdc8","name":"8.2 Get specific Venue information (Admin)","originalRequest":{"method":"GET","header":[],"url":"https://{{domain}}/api/v1/venues/{{venue_id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"264"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Wed, 16 Oct 2019 09:52:27 GMT"},{"key":"x-amzn-RequestId","value":"8f905742-a672-43a1-b321-f696f43d47b7"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"*"},{"key":"x-amz-apigw-id","value":"Bpk99GgpoAMF9Jg="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5da6e859-0b7273ac2ddcd4ee39e31851;Sampled=0"},{"key":"Access-Control-Max-Age","value":"86400"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 b3b1689b5de3293227c415784ed3c268.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"WAW50-C1"},{"key":"X-Amz-Cf-Id","value":"IGxmmVX74_X2Z7bs-1o0kJy16yJfs8TGl2HjAtOqTd5W1vZtDou1vA=="}],"cookie":[],"responseTime":null,"body":"{\n    \"venueId\": 2,\n    \"name\": \"Allstate Arena\",\n    \"countryId\": 217,\n    \"city\": \"Rosemont\",\n    \"street\": \"6920 Mannheim Road\",\n    \"zipCode\": \"60018\",\n    \"latitude\": null,\n    \"longitude\": null,\n    \"phone\": null,\n    \"url\": null,\n    \"capacity\": 0,\n    \"countryName\": \"United States of America\",\n    \"stateNameIso2\": \"IL\",\n    \"stateId\": 15\n}"}],"_postman_id":"eb4166e5-9009-467d-81bb-6b2ccafd7177"},{"name":"8.2 Get specific Venue information (Reseller)","event":[{"listen":"test","script":{"id":"f983599d-52c3-4aef-b4fa-8ef7d404f291","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"response must be json\", function () {","    pm.response.to.be.json; ","});","","pm.test(\"response should have jsonBody without errors\", function () {","    pm.response.to.not.be.error;","    pm.response.to.have.jsonBody(\"venueId\");","    pm.response.to.have.jsonBody(\"name\");","    pm.response.to.have.jsonBody(\"countryId\");","    pm.response.to.have.jsonBody(\"city\");","    pm.response.to.have.jsonBody(\"street\");","    pm.response.to.have.jsonBody(\"zipCode\");    ","    pm.response.to.have.jsonBody(\"countryName\");","    pm.response.to.have.jsonBody(\"stateNameIso2\");    ","    pm.response.to.have.jsonBody(\"stateId\");","    pm.response.to.not.have.jsonBody(\"error\");","});","","pm.test(\"response should have venue fields\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.venueId).not.equal(null);","    pm.expect(jsonData.name).not.equal(null);","    pm.expect(jsonData.countryId).not.equal(null);","    pm.expect(jsonData.stateId).not.equal(null);    ","});"],"type":"text/javascript"}}],"id":"84ac49d1-3cf7-4692-a8b8-7d37b22c3b3c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token_reseller}}"}},"method":"GET","header":[],"url":"https://{{domain}}/api/v1/venues/{{venue_id}}","description":"Response codes:\r\n- 200 - Indicates success"},"response":[{"id":"fbb41416-c55f-433f-936d-5301ff2da64c","name":"8.2 Get specific Venue information (Reseller)","originalRequest":{"method":"GET","header":[],"url":"https://{{domain}}/api/v1/venues/{{venue_id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"264"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Wed, 16 Oct 2019 09:53:11 GMT"},{"key":"x-amzn-RequestId","value":"d324ce2a-f619-40f8-8d85-74a81ddbc716"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"*"},{"key":"x-amz-apigw-id","value":"BplFHGwSIAMF5sA="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5da6e887-e9c76b9e413380fd70cfc489;Sampled=0"},{"key":"Access-Control-Max-Age","value":"86400"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 b3b1689b5de3293227c415784ed3c268.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"WAW50-C1"},{"key":"X-Amz-Cf-Id","value":"TyB0ULq8NPbyFr3oeth3OiTFYIT1W8w4ZH00aQyIFF4M2SHo4B9jAw=="}],"cookie":[],"responseTime":null,"body":"{\n    \"venueId\": 2,\n    \"name\": \"Allstate Arena\",\n    \"countryId\": 217,\n    \"city\": \"Rosemont\",\n    \"street\": \"6920 Mannheim Road\",\n    \"zipCode\": \"60018\",\n    \"latitude\": null,\n    \"longitude\": null,\n    \"phone\": null,\n    \"url\": null,\n    \"capacity\": 0,\n    \"countryName\": \"United States of America\",\n    \"stateNameIso2\": \"IL\",\n    \"stateId\": 15\n}"}],"_postman_id":"84ac49d1-3cf7-4692-a8b8-7d37b22c3b3c"},{"name":"8.2 Get specific Venue information (Unauthorized)","event":[{"listen":"test","script":{"id":"f4c9261c-0457-4fb4-8afb-ce7ea7144583","exec":["pm.test(\"Status code is 401\", function () {","    pm.response.to.have.status(401);","});","","pm.test(\"response must be json\", function () {","    pm.response.to.be.json; ","});","","pm.test(\"response should have jsonBody with error and message\", function () {","    pm.response.to.be.error;","    pm.response.to.have.jsonBody(\"error\");","    pm.response.to.have.jsonBody(\"message\");","});"],"type":"text/javascript"}}],"id":"cad162c2-cc86-4798-bfb9-f8fecdaad54c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth"},"method":"GET","header":[],"url":"https://{{domain}}/api/v1/venues/{{venue_id}}","description":"Response codes:\r\n- 401 - Unauthorized"},"response":[{"id":"975625fd-48e6-4ee0-96b9-037b7623ecac","name":"8.2 Get specific Venue information (Unauthorized)","originalRequest":{"method":"GET","header":[],"url":"https://{{domain}}/api/v1/venues/{{venue_id}}"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"81"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Wed, 16 Oct 2019 09:53:43 GMT"},{"key":"x-amzn-RequestId","value":"306f4865-3378-4f47-a914-aca43b5a8104"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"*"},{"key":"x-amz-apigw-id","value":"BplKJHq8IAMFyMg="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5da6e8a7-807c9f313997f8d2a6da865e;Sampled=0"},{"key":"Access-Control-Max-Age","value":"86400"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"X-Cache","value":"Error from cloudfront"},{"key":"Via","value":"1.1 b3b1689b5de3293227c415784ed3c268.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"WAW50-C1"},{"key":"X-Amz-Cf-Id","value":"qOLEKvecFJ3XrHjQGOPcv2ntTs2DnMZ8mx2P3HAk885Cab8OrLhHiQ=="}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Invalid authorization token!\",\n    \"message\": \"Invalid authorization token!\"\n}"}],"_postman_id":"cad162c2-cc86-4798-bfb9-f8fecdaad54c"},{"name":"8.2 Get specific Venue information (Not found)","event":[{"listen":"test","script":{"id":"d0bdbcea-7232-41c4-87a6-5d570b92cf3e","exec":["pm.test(\"Status code is 404\", function () {","    pm.response.to.have.status(404);","});","","pm.test(\"response must be json\", function () {","    pm.response.to.be.json; ","});","","pm.test(\"response should have jsonBody with error and message\", function () {","    pm.response.to.be.error;","    pm.response.to.have.jsonBody(\"error\");","    pm.response.to.have.jsonBody(\"message\");","});"],"type":"text/javascript"}}],"id":"881c958b-2acd-473a-bb88-233a05c2a798","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token_admin}}"}},"method":"GET","header":[],"url":"https://{{domain}}/api/v1/venues/ff{{venue_id}}ff","description":"Response codes:\r\n- 404 - Venue with passed VenueId not found"},"response":[{"id":"ed00e5cf-1a56-4915-976b-f481c6319ef4","name":"8.2 Get specific Venue information (Not found)","originalRequest":{"method":"GET","header":[],"url":"https://{{domain}}/api/v1/venues/ff{{venue_id}}ff"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"45"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Wed, 16 Oct 2019 09:54:06 GMT"},{"key":"x-amzn-RequestId","value":"47a4e81f-0b38-4a86-a924-8a48ea4a999d"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"*"},{"key":"x-amz-apigw-id","value":"BplN1GvroAMFXYw="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5da6e8be-2c3d2a3cfdb61d7c93b66ac0;Sampled=0"},{"key":"Access-Control-Max-Age","value":"86400"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"X-Cache","value":"Error from cloudfront"},{"key":"Via","value":"1.1 b3b1689b5de3293227c415784ed3c268.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"WAW50-C1"},{"key":"X-Amz-Cf-Id","value":"LyAfuDCZeDi0WPsIvMbAIpQtWEGSu2kS5YwfGW4EKEkgVM9oy1k2PA=="}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Not found!\",\n    \"message\": \"Not found!\"\n}"}],"_postman_id":"881c958b-2acd-473a-bb88-233a05c2a798"}],"id":"a43a54bc-339b-4d2a-b082-ad896e7a9e26","description":"Description:\r\nAllows users to see specific Venue detail information\r\nThis method will be called by External API\r\n        \r\nMethod:\r\n- GET\r\n\r\nRequest parameters type: \r\n- URL Path parameter\r\n\r\nRequest parameters:\r\n- venueId - internal DB id of the Venue (Primary Key in MySQL)\r\n\r\nResponse media type:\r\n- application/json","event":[{"listen":"prerequest","script":{"id":"6c35d53e-7a6f-44ce-b772-fee1e9dd86f6","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"c3ed0262-fc81-46fc-81f8-0b9f3f020a39","type":"text/javascript","exec":[""]}}],"_postman_id":"a43a54bc-339b-4d2a-b082-ad896e7a9e26"},{"name":"9.1. API Method: Get all States information","item":[{"name":"9.1 Get all States information (Admin)","event":[{"listen":"test","script":{"id":"32a5e330-2914-4323-9ec0-8bd82d58b2d6","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"response must be json\", function () {","    pm.response.to.be.json; ","});","","pm.test(\"response should have jsonBody without errors\", function () {","    pm.response.to.not.be.error;","    pm.response.to.have.jsonBody(\"size\");","    pm.response.to.have.jsonBody(\"results\");","    pm.response.to.not.have.jsonBody(\"error\");","});","","pm.test(\"response should have states fields\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.results[0].stateId).not.equal(null);","    pm.expect(jsonData.results[0].countryId).not.equal(null);","    pm.expect(jsonData.results[0].name).not.equal(null);","    pm.expect(jsonData.results[0].abbrev2Char).not.equal(null);","});"],"type":"text/javascript"}}],"id":"880867eb-9835-4fb3-a2b1-7a27aceb50bd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token_admin}}"}},"method":"GET","header":[],"url":"https://{{domain}}/api/v1/states","description":"Response codes:\r\n- 200 - Success"},"response":[{"id":"389c7d5c-8181-47e5-a568-5cae6da49c2f","name":"9.1 Get all States information (Admin)","originalRequest":{"method":"GET","header":[],"url":"https://{{domain}}/api/v1/states"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"123845"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Wed, 16 Oct 2019 09:56:57 GMT"},{"key":"x-amzn-RequestId","value":"60df4499-248b-4b8a-b7a9-8020b584da5e"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"*"},{"key":"x-amz-apigw-id","value":"Bpln7H8toAMF6qw="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5da6e965-6fd8d8114eedc75798bdd65f;Sampled=0"},{"key":"Access-Control-Max-Age","value":"86400"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 b3b1689b5de3293227c415784ed3c268.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"WAW50-C1"},{"key":"X-Amz-Cf-Id","value":"nRIfSSFec5_mhuJPUpuIsut2aTLnNIDbMVFSqF-4anpcWYU7NKBzKQ=="}],"cookie":[],"responseTime":null,"body":"{\n    \"size\": 3,\n    \"results\": [\n        {\n            \"stateId\": 1377,\n            \"countryId\": 1,\n            \"name\": \"Afghanistan\",\n            \"abbrev2Char\": \"AF\"\n        },\n        {\n            \"stateId\": 1378,\n            \"countryId\": 2,\n            \"name\": \"Albania\",\n            \"abbrev2Char\": \"AL\"\n        },\n        {\n            \"stateId\": 1455,\n            \"countryId\": 3,\n            \"name\": \"Algeria\",\n            \"abbrev2Char\": \"DZ\"\n        }\n    ]\n}"}],"_postman_id":"880867eb-9835-4fb3-a2b1-7a27aceb50bd"},{"name":"9.1 Get all States information (Reseller)","event":[{"listen":"test","script":{"id":"32a5e330-2914-4323-9ec0-8bd82d58b2d6","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"response must be json\", function () {","    pm.response.to.be.json; ","});","","pm.test(\"response should have jsonBody without errors\", function () {","    pm.response.to.not.be.error;","    pm.response.to.have.jsonBody(\"size\");","    pm.response.to.have.jsonBody(\"results\");","    pm.response.to.not.have.jsonBody(\"error\");","});","","pm.test(\"response should have states fields\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.results[0].stateId).not.equal(null);","    pm.expect(jsonData.results[0].countryId).not.equal(null);","    pm.expect(jsonData.results[0].name).not.equal(null);","    pm.expect(jsonData.results[0].abbrev2Char).not.equal(null);","});"],"type":"text/javascript"}}],"id":"fd2616e7-2d77-40be-aeca-e39bbbc5fcd2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token_reseller}}"}},"method":"GET","header":[],"url":"https://{{domain}}/api/v1/states","description":"Response codes:\r\n- 200 - Success"},"response":[{"id":"300cbc3e-1c25-4c3f-9efd-1e0e35883aa6","name":"9.1 Get all States information (Reseller)","originalRequest":{"method":"GET","header":[],"url":"https://{{domain}}/api/v1/states"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"123845"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Wed, 16 Oct 2019 09:58:40 GMT"},{"key":"x-amzn-RequestId","value":"ac66d164-9aac-4146-8540-1327439fcbab"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"*"},{"key":"x-amz-apigw-id","value":"Bpl4dHLgoAMF6qw="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5da6e9cf-5290ed2d8717201a23bf9e69;Sampled=0"},{"key":"Access-Control-Max-Age","value":"86400"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 b3b1689b5de3293227c415784ed3c268.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"WAW50-C1"},{"key":"X-Amz-Cf-Id","value":"0FiKkCXd0271qkqm_nOJxgO4sHwXsS3CSm3BHQqBlJuZy_KfxgM3og=="}],"cookie":[],"responseTime":null,"body":"{\n    \"size\": 3,\n    \"results\": [\n        {\n            \"stateId\": 1377,\n            \"countryId\": 1,\n            \"name\": \"Afghanistan\",\n            \"abbrev2Char\": \"AF\"\n        },\n        {\n            \"stateId\": 1378,\n            \"countryId\": 2,\n            \"name\": \"Albania\",\n            \"abbrev2Char\": \"AL\"\n        },\n        {\n            \"stateId\": 1455,\n            \"countryId\": 3,\n            \"name\": \"Algeria\",\n            \"abbrev2Char\": \"DZ\"\n        }\n    ]\n}"}],"_postman_id":"fd2616e7-2d77-40be-aeca-e39bbbc5fcd2"},{"name":"9.1 Get all States information (Unauthorized)","event":[{"listen":"test","script":{"id":"32a5e330-2914-4323-9ec0-8bd82d58b2d6","exec":["pm.test(\"Status code is 401\", function () {","    pm.response.to.have.status(401);","});","","pm.test(\"response must be json\", function () {","    pm.response.to.be.json; ","});","","pm.test(\"response should have jsonBody with error and message\", function () {","    pm.response.to.be.error;","    pm.response.to.have.jsonBody(\"error\");","    pm.response.to.have.jsonBody(\"message\");","});"],"type":"text/javascript"}}],"id":"4330075c-6b83-482e-af9f-aa0e00bfc72f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth"},"method":"GET","header":[],"url":"https://{{domain}}/api/v1/states","description":"Response codes:\r\n- 401 - Unauthorized"},"response":[{"id":"63bf39ba-c64c-4177-8b44-a59986867e60","name":"9.1 Get all States information (Unauthorized)","originalRequest":{"method":"GET","header":[],"url":"https://{{domain}}/api/v1/states"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"81"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Wed, 16 Oct 2019 09:59:37 GMT"},{"key":"x-amzn-RequestId","value":"216cff93-25b8-4dbf-b5a7-896546013160"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"*"},{"key":"x-amz-apigw-id","value":"BpmBeGTxoAMFT8Q="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5da6ea09-7fdc6c40cb3dc338807939f0;Sampled=0"},{"key":"Access-Control-Max-Age","value":"86400"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"X-Cache","value":"Error from cloudfront"},{"key":"Via","value":"1.1 b3b1689b5de3293227c415784ed3c268.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"WAW50-C1"},{"key":"X-Amz-Cf-Id","value":"7ShtJ4De9Mb5wkQnrwqkp4apSs6jUy2KR2vU-aXMAaQv7zPSG17cgw=="}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Invalid authorization token!\",\n    \"message\": \"Invalid authorization token!\"\n}"}],"_postman_id":"4330075c-6b83-482e-af9f-aa0e00bfc72f"}],"id":"f5f71ee4-42dd-4109-a29a-2a170aebeb48","description":"Description:\r\nGet ALL States list for the frontend form in BRP\r\nThis method will be called on the Create / Edit Reseller screen\r\n\r\nMethod:\r\n- GET\r\n\r\nResponse media type:\r\n- application/json","event":[{"listen":"prerequest","script":{"id":"5f248da3-74bf-4cf7-ac63-c09c568046ba","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"69b931a6-3c0b-4f5a-a6f7-4b4f0e076dab","type":"text/javascript","exec":[""]}}],"_postman_id":"f5f71ee4-42dd-4109-a29a-2a170aebeb48"},{"name":"10.1. API Method: Get all Countries information","item":[{"name":"10.1 Get all Countries information (Admin)","event":[{"listen":"test","script":{"id":"32a5e330-2914-4323-9ec0-8bd82d58b2d6","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"response must be json\", function () {","    pm.response.to.be.json; ","});","","pm.test(\"response should have jsonBody without errors\", function () {","    pm.response.to.not.be.error;","    pm.response.to.have.jsonBody(\"size\");","    pm.response.to.have.jsonBody(\"results\");","    pm.response.to.not.have.jsonBody(\"error\");","});","","pm.test(\"response should have countries fields\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.results[0].countryId).not.equal(null);","    pm.expect(jsonData.results[0].name).not.equal(null);","    pm.expect(jsonData.results[0].abbrev2Char).not.equal(null);","});"],"type":"text/javascript"}}],"id":"494df636-de9f-4b9c-9bc7-0c49adf7ca25","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token_admin}}"}},"method":"GET","header":[],"url":"https://{{domain}}/api/v1/countries","description":"Response codes:\r\n- 200 - Success\r\n"},"response":[{"id":"2a4f8400-fcad-4cbc-90ef-c0f015bffb10","name":"10.1 Get all Countries information (Admin)","originalRequest":{"method":"GET","header":[],"url":"https://{{domain}}/api/v1/countries"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"13622"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Wed, 16 Oct 2019 10:01:35 GMT"},{"key":"x-amzn-RequestId","value":"50717db6-e49e-487e-85b7-c48a0e03fab4"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"*"},{"key":"x-amz-apigw-id","value":"BpmReEnHIAMFstQ="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5da6ea6f-19fda366a00dc1e2ceaaecfd;Sampled=0"},{"key":"Access-Control-Max-Age","value":"86400"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 b3b1689b5de3293227c415784ed3c268.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"WAW50-C1"},{"key":"X-Amz-Cf-Id","value":"KAenJz48c70R-SZ4is2WibvMu5DOy4yD_nx6iFHK8S3pitlaZMXeWA=="}],"cookie":[],"responseTime":null,"body":"{\n    \"size\": 3,\n    \"results\": [\n        {\n            \"countryId\": 1,\n            \"name\": \"Afghanistan\",\n            \"abbrev2Char\": \"AF\"\n        },\n        {\n            \"countryId\": 2,\n            \"name\": \"Albania\",\n            \"abbrev2Char\": \"AL\"\n        },\n        {\n            \"countryId\": 3,\n            \"name\": \"Algeria\",\n            \"abbrev2Char\": \"DZ\"\n        }\n    ]\n}"}],"_postman_id":"494df636-de9f-4b9c-9bc7-0c49adf7ca25"},{"name":"10.1 Get all Countries information (Reseller)","event":[{"listen":"test","script":{"id":"32a5e330-2914-4323-9ec0-8bd82d58b2d6","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"response must be json\", function () {","    pm.response.to.be.json; ","});","","pm.test(\"response should have jsonBody without errors\", function () {","    pm.response.to.not.be.error;","    pm.response.to.have.jsonBody(\"size\");","    pm.response.to.have.jsonBody(\"results\");","    pm.response.to.not.have.jsonBody(\"error\");","});","","pm.test(\"response should have countries fields\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.results[0].countryId).not.equal(null);","    pm.expect(jsonData.results[0].name).not.equal(null);","    pm.expect(jsonData.results[0].abbrev2Char).not.equal(null);","});"],"type":"text/javascript"}}],"id":"ba96f083-ec49-472e-8168-55a5be3b2fd8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token_reseller}}"}},"method":"GET","header":[],"url":"https://{{domain}}/api/v1/countries","description":"Response codes:\r\n- 200 - Success"},"response":[{"id":"d3d8726e-d114-4e46-ab6a-cc5cab01c384","name":"10.1 Get all Countries information (Reseller)","originalRequest":{"method":"GET","header":[],"url":"https://{{domain}}/api/v1/countries"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"13622"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Wed, 16 Oct 2019 10:02:16 GMT"},{"key":"x-amzn-RequestId","value":"41e5b882-32d5-46f8-919c-54f2880187ba"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"*"},{"key":"x-amz-apigw-id","value":"BpmaYHhfoAMFXjg="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5da6eaa8-9cffec22c716bb58467f33b9;Sampled=0"},{"key":"Access-Control-Max-Age","value":"86400"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 b3b1689b5de3293227c415784ed3c268.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"WAW50-C1"},{"key":"X-Amz-Cf-Id","value":"AV_1ecI2y-Jc0Qp4T5ESAoAoGHTbkKQqad3Y1AeuRp05b2zetebwPg=="}],"cookie":[],"responseTime":null,"body":"{\n    \"size\": 3,\n    \"results\": [\n        {\n            \"countryId\": 1,\n            \"name\": \"Afghanistan\",\n            \"abbrev2Char\": \"AF\"\n        },\n        {\n            \"countryId\": 2,\n            \"name\": \"Albania\",\n            \"abbrev2Char\": \"AL\"\n        },\n        {\n            \"countryId\": 3,\n            \"name\": \"Algeria\",\n            \"abbrev2Char\": \"DZ\"\n        }\n    ]\n}"}],"_postman_id":"ba96f083-ec49-472e-8168-55a5be3b2fd8"},{"name":"10.1 Get all Countries information (Unauthorized)","event":[{"listen":"test","script":{"id":"32a5e330-2914-4323-9ec0-8bd82d58b2d6","exec":["pm.test(\"Status code is 401\", function () {","    pm.response.to.have.status(401);","});","","pm.test(\"response must be json\", function () {","    pm.response.to.be.json; ","});","","pm.test(\"response should have jsonBody with error and message\", function () {","    pm.response.to.be.error;","    pm.response.to.have.jsonBody(\"error\");","    pm.response.to.have.jsonBody(\"message\");","});"],"type":"text/javascript"}}],"id":"5b5272b7-5537-4ed8-bd80-b8ce21ce1bbe","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth"},"method":"GET","header":[],"url":"https://{{domain}}/api/v1/countries","description":"Response codes:\r\n- 401 - Unauthorized"},"response":[{"id":"b2425fa8-cc58-439e-ad7f-c0a48d9961fa","name":"10.1 Get all Countries information (Unauthorized)","originalRequest":{"method":"GET","header":[],"url":"https://{{domain}}/api/v1/countries"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"81"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Wed, 16 Oct 2019 10:03:11 GMT"},{"key":"x-amzn-RequestId","value":"1a188716-9f9e-4fb7-8add-d84805e6676e"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"*"},{"key":"x-amz-apigw-id","value":"Bpmi9G5GIAMFuHQ="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5da6eadf-9afc7608ba325c78955ee678;Sampled=0"},{"key":"Access-Control-Max-Age","value":"86400"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"X-Cache","value":"Error from cloudfront"},{"key":"Via","value":"1.1 b3b1689b5de3293227c415784ed3c268.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"WAW50-C1"},{"key":"X-Amz-Cf-Id","value":"UvI6wWHGNhjIP0js1FoTf-s6799QqHIltoOr2hFq2h56ThtZUEQMkw=="}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Invalid authorization token!\",\n    \"message\": \"Invalid authorization token!\"\n}"}],"_postman_id":"5b5272b7-5537-4ed8-bd80-b8ce21ce1bbe"}],"id":"cfd3b1a1-3a25-496b-8be1-7eda16c6534d","description":"Description:\r\nGet all Countries list for the frontend form in BRP\r\nThis method will be called on the Create / Edit Reseller screen\r\n\r\nMethod:\r\n- GET\r\n\r\nResponse media type:\r\n- application/json","event":[{"listen":"prerequest","script":{"id":"b3f41448-031d-408e-9a08-30d06fb0ac17","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"15bec4c3-6cd5-412d-86c8-625371459a9a","type":"text/javascript","exec":[""]}}],"_postman_id":"cfd3b1a1-3a25-496b-8be1-7eda16c6534d"},{"name":"10.2. API Method: Get specific States information for a Specific country","item":[{"name":"10.2 Get specific States information for a Specific country (Admin)","event":[{"listen":"test","script":{"id":"73bb6b10-fd46-43bb-af43-b97f39c652b3","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"response must be json\", function () {","    pm.response.to.be.json; ","});","","pm.test(\"response should have jsonBody without errors\", function () {","    pm.response.to.not.be.error;","    pm.response.to.have.jsonBody(\"size\");","    pm.response.to.have.jsonBody(\"results\");","    pm.response.to.not.have.jsonBody(\"error\");","});","","pm.test(\"response should have states fields for specific country\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.results[0].stateId).not.equal(null);","    pm.expect(jsonData.results[0].stateId).not.equal(null);","    pm.expect(jsonData.results[0].name).not.equal(null);","    pm.expect(jsonData.results[0].abbrev2Char).not.equal(null);","});",""],"type":"text/javascript"}},{"listen":"prerequest","script":{"id":"572349db-48dc-401d-9974-5eb0f7057128","exec":["pm.environment.set(\"countryId\", _.random(1, 345));"],"type":"text/javascript"}}],"id":"444d5a26-34b7-43ad-970f-8fc6fefabc5e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token_admin}}"}},"method":"GET","header":[],"url":"https://{{domain}}/api/v1/countries/{{country_id}}/states","description":"Response codes:\r\n- 200 - Indicates success"},"response":[{"id":"c6b43f85-0ea6-49b3-aae9-dcdd5a37db27","name":"10.2 Get specific States information for a Specific country (Admin)","originalRequest":{"method":"GET","header":[],"url":"https://{{domain}}/api/v1/countries/{{country_id}}/states"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"90"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Wed, 16 Oct 2019 10:06:22 GMT"},{"key":"x-amzn-RequestId","value":"b14eab1c-9a0a-4fbd-ae06-63e46b8cbd19"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"*"},{"key":"x-amz-apigw-id","value":"BpnAYFG1oAMFbFA="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5da6eb9b-9200a6889e751fa0302c8af8;Sampled=0"},{"key":"Access-Control-Max-Age","value":"86400"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 b3b1689b5de3293227c415784ed3c268.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"WAW50-C1"},{"key":"X-Amz-Cf-Id","value":"vrrqUYcSBIk-r-RO9AGxbSNUv37n73ag0idpxVLJmSeaOB7mFRqY8A=="}],"cookie":[],"responseTime":null,"body":"{\n    \"size\": 1,\n    \"results\": [\n        {\n            \"stateId\": 1463,\n            \"countryId\": 17,\n            \"name\": \"Bahamas\",\n            \"abbrev2Char\": \"BS\"\n        }\n    ]\n}"}],"_postman_id":"444d5a26-34b7-43ad-970f-8fc6fefabc5e"},{"name":"10.2 Get specific States information for a Specific country (Reseller)","event":[{"listen":"test","script":{"id":"73bb6b10-fd46-43bb-af43-b97f39c652b3","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"response must be json\", function () {","    pm.response.to.be.json; ","});","","pm.test(\"response should have jsonBody without errors\", function () {","    pm.response.to.not.be.error;","    pm.response.to.have.jsonBody(\"size\");","    pm.response.to.have.jsonBody(\"results\");","    pm.response.to.not.have.jsonBody(\"error\");","});","","pm.test(\"response should have states fields for specific country\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.results[0].stateId).not.equal(null);","    pm.expect(jsonData.results[0].stateId).not.equal(null);","    pm.expect(jsonData.results[0].name).not.equal(null);","    pm.expect(jsonData.results[0].abbrev2Char).not.equal(null);","});"],"type":"text/javascript"}},{"listen":"prerequest","script":{"id":"572349db-48dc-401d-9974-5eb0f7057128","exec":["pm.environment.set(\"countryId\", _.random(1, 345));"],"type":"text/javascript"}}],"id":"c7b4103a-d78a-4da8-bab0-20982db3325f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token_reseller}}"}},"method":"GET","header":[],"url":"https://{{domain}}/api/v1/countries/{{country_id}}/states","description":"Response codes:\r\n- 200 - Indicates success"},"response":[{"id":"f47b9076-368a-440b-881a-45abb02af350","name":"10.2 Get specific States information for a Specific country (Reseller)","originalRequest":{"method":"GET","header":[],"url":"https://{{domain}}/api/v1/countries/{{country_id}}/states"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"90"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Wed, 16 Oct 2019 10:06:58 GMT"},{"key":"x-amzn-RequestId","value":"9eb9d28c-007a-4616-aec2-54710db23e76"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"*"},{"key":"x-amz-apigw-id","value":"BpnGYHxaIAMFviQ="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5da6ebc2-f0783bf147d6021834433f9b;Sampled=0"},{"key":"Access-Control-Max-Age","value":"86400"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 b3b1689b5de3293227c415784ed3c268.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"WAW50-C1"},{"key":"X-Amz-Cf-Id","value":"lfVOalUlLRhhah_f34Xg2yu2GmpVwde-ujhaZXXULGjYzm27iPS4AQ=="}],"cookie":[],"responseTime":null,"body":"{\n    \"size\": 1,\n    \"results\": [\n        {\n            \"stateId\": 1463,\n            \"countryId\": 17,\n            \"name\": \"Bahamas\",\n            \"abbrev2Char\": \"BS\"\n        }\n    ]\n}"}],"_postman_id":"c7b4103a-d78a-4da8-bab0-20982db3325f"},{"name":"10.2 Get specific States information for a Specific country (Unauthorized)","event":[{"listen":"test","script":{"id":"73bb6b10-fd46-43bb-af43-b97f39c652b3","exec":["pm.test(\"Status code is 401\", function () {","    pm.response.to.have.status(401);","});","","pm.test(\"response must be json\", function () {","    pm.response.to.be.json; ","});","","pm.test(\"response should have jsonBody with error and message\", function () {","    pm.response.to.be.error;","    pm.response.to.have.jsonBody(\"error\");","    pm.response.to.have.jsonBody(\"message\");","});",""],"type":"text/javascript"}},{"listen":"prerequest","script":{"id":"572349db-48dc-401d-9974-5eb0f7057128","exec":["pm.environment.set(\"countryId\", _.random(1, 345));"],"type":"text/javascript"}}],"id":"8893a632-9398-41d0-82f7-1f4eb9bc1928","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth"},"method":"GET","header":[],"url":"https://{{domain}}/api/v1/countries/{{country_id}}/states","description":"Response codes:\r\n- 401 - Unauthorized"},"response":[{"id":"97e35535-f44b-4b39-a873-1616db689fd5","name":"10.2 Get specific States information for a Specific country (Unauthorized)","originalRequest":{"method":"GET","header":[],"url":"https://{{domain}}/api/v1/countries/{{country_id}}/states"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"81"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Wed, 16 Oct 2019 10:07:25 GMT"},{"key":"x-amzn-RequestId","value":"4a0b6785-1cf6-4008-a60f-e4d287c34244"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"*"},{"key":"x-amz-apigw-id","value":"BpnKlHS4oAMFaSA="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5da6ebdd-8f9184a09a5bdb607183ff40;Sampled=0"},{"key":"Access-Control-Max-Age","value":"86400"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"X-Cache","value":"Error from cloudfront"},{"key":"Via","value":"1.1 b3b1689b5de3293227c415784ed3c268.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"WAW50-C1"},{"key":"X-Amz-Cf-Id","value":"xsxJ4G3qeatAUFxQ0f5H5eBETQ5S_ue8FmpeaiZP7HeUtrEpI8v3BA=="}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Invalid authorization token!\",\n    \"message\": \"Invalid authorization token!\"\n}"}],"_postman_id":"8893a632-9398-41d0-82f7-1f4eb9bc1928"}],"id":"0c6b4ed5-0b59-4362-8982-10a4c119572e","description":"Description:\r\nGet specific States list for a specific Country for the frontend form in BRP\r\nThis method will be called on the Create / Edit Reseller screen\r\n\r\nMethod:\r\n- GET\r\n\r\nRequest parameters type: \r\n- URL Path parameter\r\n\r\nRequest parameters:\r\n- countryId - internal DB id of the Country (Primary Key in MySQL)\r\n\r\nResponse media type:\r\n- application/json","event":[{"listen":"prerequest","script":{"id":"a37802fa-745f-4d6f-997c-6c1be936700d","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"f9225046-57c1-49c8-9248-631b0cd4fbb9","type":"text/javascript","exec":[""]}}],"_postman_id":"0c6b4ed5-0b59-4362-8982-10a4c119572e"},{"name":"11.4. API Method: Get All Orders in BRP","item":[{"name":"11.4 Get All Orders in BRP (Admin)","event":[{"listen":"test","script":{"id":"15512310-1366-446b-bbb5-5f1d504af813","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"response must be json\", function () {","    pm.response.to.be.json; ","});","","pm.test(\"response should have jsonBody without errors\", function () {","    pm.response.to.not.be.error;","    pm.response.to.have.jsonBody(\"totalSize\");","    pm.response.to.have.jsonBody(\"size\");","    pm.response.to.have.jsonBody(\"results\");","    pm.response.to.not.have.jsonBody(\"error\");","});","","pm.test(\"response should have orders fields\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.results[0].orderId).not.equal(null);","    pm.expect(jsonData.results[0].date).not.equal(null);","    pm.expect(jsonData.results[0].status).not.equal(null);","    pm.expect(jsonData.results[0].price).not.equal(null);","    pm.expect(jsonData.results[0].ticketType).not.equal(null);","    pm.expect(jsonData.results[0].site).not.equal(null);    ","    pm.expect(jsonData.results[0].listings).not.equal(null);","});"],"type":"text/javascript"}}],"id":"69ff5699-4cd9-4db2-a897-360a118d676a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token_admin}}"}},"method":"GET","header":[],"url":{"raw":"https://{{domain}}/api/v1/orders?start_page_index=0&page_size=0&sort_field=order_date&sort_order=asc&filters={\"order_date\" : [\"07-25-2019\",\"07-25-2024\"], \"ticket_type\" : [\"PHYSICAL\", \"E_TICKET\"]}","protocol":"https","host":["{{domain}}"],"path":["api","v1","orders"],"query":[{"key":"start_page_index","value":"0","description":"Description: index of the first page to return, zero-indexed;\nRequired: optional;\nPossible values: 0 - *;\nDefault value: 0"},{"key":"page_size","value":"0","description":"Description: page size for returned results;\nRequired: optional;\nPossible values: 10, 15, 25, 50 and 0 - give all list result without pagination (page_size=0 → will return all listings so Download CSV is possible);\nDefault value: 15"},{"key":"sort_field","value":"order_date","description":"Description: field in order used for sorting orders result list;\nRequired: optional;\nPossible values: order_date, event_date;\nDefault value: order_date"},{"key":"sort_order","value":"asc","description":"Description: order of sorting;\nRequired: optional;\nPossible values: asc, desc;\nDefault value: asc"},{"key":"filters","value":"{\"order_date\" : [\"07-25-2019\",\"07-25-2024\"], \"ticket_type\" : [\"PHYSICAL\", \"E_TICKET\"]}","description":"Description: filtering option for events results;\nRequired: optional;\nPossible values: order_date, event_date, status, ticket_type, categories, key_words, customer;\nDefault value: NONE filters;\nDate in Format: MM-DD-YYYY"}]},"description":"Response codes:\r\n- 200 - Indicates success"},"response":[{"id":"77b3f219-71a2-4b2d-b364-31816d71330b","name":"11.4 Get All Orders in BRP (Admin)","originalRequest":{"method":"GET","header":[{"key":"page_index","type":"text","value":"2"}],"url":{"raw":"https://{{domain}}/api/v1/orders?start_page_index=0&page_size=0&sort_field=order_date&sort_order=asc&filters={\"order_date\" : [\"07-25-2019\",\"07-25-2024\"], \"ticket_type\" : [\"PHYSICAL\"]}","protocol":"https","host":["{{domain}}"],"path":["api","v1","orders"],"query":[{"key":"start_page_index","value":"0","description":"Description: index of the first page to return, zero-indexed;\nRequired: optional;\nPossible values: 0 - *;\nDefault value: 0"},{"key":"page_size","value":"0","description":"Description: page size for returned results;\nRequired: optional;\nPossible values: 10, 15, 25, 50 and 0 - give all list result without pagination (page_size=0 → will return all listings so Download CSV is possible);\nDefault value: 15"},{"key":"sort_field","value":"order_date","description":"Description: field in order used for sorting orders result list;\nRequired: optional;\nPossible values: order_date, event_date;\nDefault value: order_date"},{"key":"sort_order","value":"asc","description":"Description: order of sorting;\nRequired: optional;\nPossible values: asc, desc;\nDefault value: asc"},{"key":"filters","value":"{\"order_date\" : [\"07-25-2019\",\"07-25-2024\"], \"ticket_type\" : [\"PHYSICAL\"]}","description":"Description: filtering option for events results;\nRequired: optional;\nPossible values: order_date, event_date, status, ticket_type, categories, key_words, customer;\nDefault value: NONE filters;\nDate in Format: MM-DD-YYYY"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"69074"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Wed, 16 Oct 2019 10:32:00 GMT"},{"key":"x-amzn-RequestId","value":"0a84f756-4ab2-4b13-8bb1-c230e72ebf1e"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"*"},{"key":"x-amz-apigw-id","value":"BpqxEExhIAMF1Bw="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5da6f1a0-2112a9323d84a6324f118ae8;Sampled=0"},{"key":"Access-Control-Max-Age","value":"86400"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 02362f0faae05408640185d927020628.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"WAW50-C1"},{"key":"X-Amz-Cf-Id","value":"f3P2p_EZm_fyls10iG96ufyd5wYwvLsLk39gfyf-zn_lMTvJTWiJPg=="}],"cookie":[],"responseTime":null,"body":"{\n    \"totalSize\": 1,\n    \"size\": 1,\n    \"results\": [\n        {\n            \"orderId\": 32,\n            \"orderNote\": null,\n            \"date\": \"2019-10-04T11:08:21\",\n            \"status\": \"SUB\",\n            \"price\": 749.51,\n            \"airBillUrl\": null,\n            \"ticketType\": \"PHYSICAL\",\n            \"site\": \"TicketMonster\",\n            \"externalOrderId\": null,\n            \"isAcceptUpgrades\": false,\n            \"isMonitorFedExTracking\": false,\n            \"listings\": [\n                {\n                    \"soldPrice\": 732.85,\n                    \"inHandDate\": \"2019-05-19\",\n                    \"externalListingId\": null,\n                    \"listingId\": 32,\n                    \"isEticket\": false,\n                    \"isInstant\": false,\n                    \"isRequireShipment\": true,\n                    \"listingPrice\": 456.11,\n                    \"section\": \"Q\",\n                    \"row\": \"4\",\n                    \"quantity\": 1,\n                    \"event\": {\n                        \"eventId\": 3813175,\n                        \"name\": \"Fellow Travelers\",\n                        \"eventDate\": \"2019-11-22T20:00:00\",\n                        \"venue\": {\n                            \"name\": \"The Milton Theatre\",\n                            \"state\": \"DE\",\n                            \"city\": \"Milton\"\n                        }\n                    }\n                }\n            ],\n            \"customer\": {\n                \"name\": \"customermofuhvbe\",\n                \"billingAddress\": {},\n                \"shippingAddress\": {}\n            }\n        }\n    ]\n}"}],"_postman_id":"69ff5699-4cd9-4db2-a897-360a118d676a"},{"name":"11.4 Get All Orders in BRP (Reseller)","event":[{"listen":"test","script":{"id":"15512310-1366-446b-bbb5-5f1d504af813","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"response must be json\", function () {","    pm.response.to.be.json; ","});","","pm.test(\"response should have jsonBody without errors\", function () {","    pm.response.to.not.be.error;","    pm.response.to.have.jsonBody(\"totalSize\");","    pm.response.to.have.jsonBody(\"size\");","    pm.response.to.have.jsonBody(\"results\");","    pm.response.to.not.have.jsonBody(\"error\");","});"],"type":"text/javascript"}}],"id":"455975c9-86b4-42dd-a800-365df2dfc846","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token_reseller}}"}},"method":"GET","header":[],"url":{"raw":"https://{{domain}}/api/v1/orders?","protocol":"https","host":["{{domain}}"],"path":["api","v1","orders"],"query":[{"key":"start_page_index","value":"0","disabled":true},{"key":"page_size","value":"0","description":"0 (all), 10, 15, 25, 50","disabled":true},{"key":"sort_field","value":"order_date","description":"order_date (default), event_date","disabled":true},{"key":"sort_order","value":"desc","description":"asc (default), desc","disabled":true},{"key":"filters","value":"{\"order_date\" : [\"07-25-2019\",\"07-26-2019\"]}","description":"order_date, event_date, status, ticket_type, categories, key_words","disabled":true},{"key":"filters","value":"{\"status\" : [\"PICKUP_DETAILS_PREPARED\"]}","disabled":true},{"key":"filters","value":"{\"ticket_type\" : [\"PHYSICAL\"]}","disabled":true},{"key":"filters","value":"{\"key_words\" : [\"Hult\"]}","disabled":true},{"key":"filters","value":"{\"event_date\" : [\"07-23-2019\",\"07-23-2019\"]}","disabled":true},{"key":"filters","value":"{\"ticket_type\":[\"MOBILE_TRANSFER\"]}","disabled":true},{"key":"filters","value":"{\"status\" : [\"SUB\"], \"ticket_type\" : [\"PHYSICAL\"]}","disabled":true}]},"description":"Response codes:\r\n- 200 - Indicates success"},"response":[{"id":"b4916192-5899-4250-afa6-c064d423a28e","name":"11.4 Get All Orders in BRP (Reseller)","originalRequest":{"method":"GET","header":[{"key":"page_index","type":"text","value":"2","disabled":true}],"url":{"raw":"https://{{domain}}/api/v1/orders?","protocol":"https","host":["{{domain}}"],"path":["api","v1","orders"],"query":[{"key":"start_page_index","value":"0","disabled":true},{"key":"page_size","value":"0","description":"0 (all), 10, 15, 25, 50","disabled":true},{"key":"sort_field","value":"order_date","description":"order_date (default), event_date","disabled":true},{"key":"sort_order","value":"desc","description":"asc (default), desc","disabled":true},{"key":"filters","value":"{\"order_date\" : [\"07-25-2019\",\"07-26-2019\"]}","description":"order_date, event_date, status, ticket_type, categories, key_words","disabled":true},{"key":"filters","value":"{\"status\" : [\"PICKUP_DETAILS_PREPARED\"]}","disabled":true},{"key":"filters","value":"{\"ticket_type\" : [\"PHYSICAL\"]}","disabled":true},{"key":"filters","value":"{\"key_words\" : [\"Hult\"]}","disabled":true},{"key":"filters","value":"{\"event_date\" : [\"07-23-2019\",\"07-23-2019\"]}","disabled":true},{"key":"filters","value":"{\"ticket_type\":[\"MOBILE_TRANSFER\"]}","disabled":true},{"key":"filters","value":"{\"status\" : [\"SUB\"], \"ticket_type\" : [\"PHYSICAL\"]}","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"13123"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Wed, 16 Oct 2019 11:08:59 GMT"},{"key":"x-amzn-RequestId","value":"5642bcb1-9a11-4558-ba38-f5ca277f30d3"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"*"},{"key":"x-amz-apigw-id","value":"BpwLtE5xIAMFdKg="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5da6fa4a-87771690baf21400bd5b2920;Sampled=0"},{"key":"Access-Control-Max-Age","value":"86400"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 7210fed509d8e341021bffe29c62787c.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"WAW50-C1"},{"key":"X-Amz-Cf-Id","value":"8-EtJq281KHzBY7q_TvLAtq4HJSlTPkC-gk65fqsU0ReTjy30Dtx9A=="}],"cookie":[],"responseTime":null,"body":"{\n    \"totalSize\": 22,\n    \"size\": 15,\n    \"results\": [\n        {\n            \"orderId\": 6,\n            \"orderNote\": \"<p>Order status changed to UNCONFIRMED (2019-10-03 08:20:18)</p><p>Order status changed to SUB (2019-10-03 08:21:01)</p><p><br></p><p> ---- Penalty [INVALID_TICKETS] applied (2019-10-03 13:54:15)</p><p>Order status changed to UNCONFIRMED (2019-10-04 10:37:39)</p><p>Order status changed to SHIPPING_AIRBILL_PREPARED (2019-10-04 15:39:20)</p><p>Order status changed to SHIPPING_AIRBILL_DOWNLOADED (2019-10-04 15:39:22)</p><p>Order status changed to PROCESSED (2019-10-04 15:39:26)</p>\",\n            \"date\": \"2019-10-03T08:19:07\",\n            \"status\": \"PROCESSED\",\n            \"price\": 749.51,\n            \"airBillUrl\": \"https://easypost-files.s3-us-west-2.amazonaws.com/files/postage_label/20191004/5ffef7d99249435ba0b7d2c2c9cef854.png\",\n            \"ticketType\": \"PHYSICAL\",\n            \"site\": \"TicketMonster\",\n            \"listings\": [\n                {\n                    \"listingId\": 6,\n                    \"isEticket\": false,\n                    \"isInstant\": false,\n                    \"isRequireShipment\": true,\n                    \"listingPrice\": 654.33,\n                    \"section\": \"General Admission\",\n                    \"row\": \"1\",\n                    \"quantity\": 1,\n                    \"event\": {\n                        \"eventId\": 3813436,\n                        \"name\": \"Day At The Races\",\n                        \"eventDate\": \"2019-11-13T13:00:00\",\n                        \"venue\": {\n                            \"name\": \"Churchill Downs\",\n                            \"state\": \"KY\",\n                            \"city\": \"Louisville\"\n                        }\n                    }\n                }\n            ],\n            \"customer\": {\n                \"name\": \"customercft9o8ir\",\n                \"billingAddress\": {},\n                \"shippingAddress\": {}\n            }\n        }\n    ]\n}"}],"_postman_id":"455975c9-86b4-42dd-a800-365df2dfc846"},{"name":"11.4 Get All Orders in BRP (Unauthorized)","event":[{"listen":"test","script":{"id":"15512310-1366-446b-bbb5-5f1d504af813","exec":["pm.test(\"Status code is 401\", function () {","    pm.response.to.have.status(401);","});","","pm.test(\"response must be json\", function () {","    pm.response.to.be.json; ","});","","pm.test(\"response should have jsonBody with error and message\", function () {","    pm.response.to.be.error;","    pm.response.to.have.jsonBody(\"error\");","    pm.response.to.have.jsonBody(\"message\");","});"],"type":"text/javascript"}}],"id":"fd58f117-e3bb-419f-a678-8a7d951582a4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth"},"method":"GET","header":[],"url":"https://{{domain}}/api/v1/orders","description":"Response codes:\r\n- 401 - Unauthorized"},"response":[{"id":"e4806d78-28ab-4c36-876d-7fca46a80feb","name":"11.4 Get All Orders in BRP (Unauthorized)","originalRequest":{"method":"GET","header":[{"key":"page_index","type":"text","value":"2"}],"url":"https://{{domain}}/api/v1/orders"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"81"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Wed, 16 Oct 2019 10:14:11 GMT"},{"key":"x-amzn-RequestId","value":"19f13dbd-d721-4b63-bb22-c328f8ba6dd6"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"*"},{"key":"x-amz-apigw-id","value":"BpoKBFpmoAMFZng="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5da6ed73-8a0ba51876bae406febc51e2;Sampled=0"},{"key":"Access-Control-Max-Age","value":"86400"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"X-Cache","value":"Error from cloudfront"},{"key":"Via","value":"1.1 b3b1689b5de3293227c415784ed3c268.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"WAW50-C1"},{"key":"X-Amz-Cf-Id","value":"MB0aLiCCaFQS-zJ1pYRmWyXOXltwzRhFlnLQsZ3QSYi7XCCD1usvww=="}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Invalid authorization token!\",\n    \"message\": \"Invalid authorization token!\"\n}"}],"_postman_id":"fd58f117-e3bb-419f-a678-8a7d951582a4"}],"id":"4276e1c6-0bcc-4bfc-a26b-90ab36bb27be","description":"Description:\r\nReturn all Orders information filtered\r\nThis method will be called on the Orders screen\r\n\r\nMethod:\r\n- GET\r\n\r\nRequest parameters type: \r\n- URL query string\r\n\r\nResponse media type:\r\n- application/json\r\n\r\nOrder Status filter possible values (ENUM):\r\n- NEW\r\n- CONFIRMED (internal, not visible in UI, made for possible reset state transition)\r\n- UNCONFIRMED\r\n- SUB\r\n- MOBILE_TRANSFER_PREPARED (FULFILLING pseudo status)\r\n- E_TICKET_UPLOAD_PREPARED (FULFILLING pseudo status)\r\n- PICKUP_DETAILS_PREPARED  (FULFILLING pseudo status)\r\n- SHIPPING_AIRBILL_PREPARED  (FULFILLING pseudo status)\r\n- SHIPPING_AIRBILL_DOWNLOADED (FULFILLING pseudo status)\r\n- PROCESSED\r\n- CANCELED\r\n\r\nTicket type filter possible values (ENUM):\r\n- E_TICKET,\r\n- MOBILE_TRANSFER,\r\n- PHYSICAL,\r\n- PICK_UP_WILL_CALL\r\n\r\nMapping to Listing data:\r\n- E_TICKET → listing.isETicket = true\r\n- MOBILE_TRANSFER → listing.isInstant = true\r\n- PHYSICAL → listing.isRequireShipment = true\r\n- PICK_UP_WILL_CALL → all above equals false","event":[{"listen":"prerequest","script":{"id":"6f6363cf-1b88-4c90-8fce-71d8ba591b75","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"9a8a754f-2fc7-4376-804b-e7f8b1f5f614","type":"text/javascript","exec":[""]}}],"_postman_id":"4276e1c6-0bcc-4bfc-a26b-90ab36bb27be"},{"name":"11.4.1 API Method: Get Orders Statistics in BRP Copy","item":[{"name":"11.4.1 Get Orders Statistics in BRP (Admin)","event":[{"listen":"test","script":{"id":"15512310-1366-446b-bbb5-5f1d504af813","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"response must be json\", function () {","    pm.response.to.be.json; ","});","","pm.test(\"response should have jsonBody without errors\", function () {","    pm.response.to.not.be.error;","    pm.response.to.have.jsonBody(\"NEW\");","    pm.response.to.have.jsonBody(\"SUB\");","    pm.response.to.have.jsonBody(\"CANCELED\");","    pm.response.to.have.jsonBody(\"UNCONFIRMED\");    ","    pm.response.to.have.jsonBody(\"PROCESSED\");","    pm.response.to.have.jsonBody(\"ETICKETUPLOADPREPARED\");    ","    pm.response.to.have.jsonBody(\"PICKUPDETAILSPREPARED\");","    pm.response.to.have.jsonBody(\"SHIPPINGAIRBILLPREPARED\");    ","    pm.response.to.have.jsonBody(\"MOBILETRANSFERPREPARED\");    ","    pm.response.to.have.jsonBody(\"SHIPPINGAIRBILLDOWNLOADED\");","    pm.response.to.not.have.jsonBody(\"error\");","});",""],"type":"text/javascript"}}],"id":"2a11ad25-d225-4c3d-82ad-59fc0763b1eb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token_admin}}"}},"method":"GET","header":[],"url":{"raw":"https://{{domain}}/api/v1/orders/stats?filters={\"account_id\" : \"{{broker_id}}\"}","protocol":"https","host":["{{domain}}"],"path":["api","v1","orders","stats"],"query":[{"key":"filters","value":"{\"account_id\" : \"{{broker_id}}\"}","description":"Description: filtering option for events results;\nRequired: optional;\nPossible values: account_id;\nDefault value: NONE filters;"}]},"description":"Returns all Orders (according to filtering and sorting applied)\n- orders:read.all permission\n\nResponse codes:\n- 200 - Indicates success\n\nOrder Status possible values (ENUM):\n- NEW\n- CONFIRMED (internal, not visible in UI, made for possible reset state transition)\n- UNCONFIRMED\n- SUB\n- MOBILE_TRANSFER_PREPARED (FULFILLING pseudo status)\n- E_TICKET_UPLOAD_PREPARED (FULFILLING pseudo status)\n- PICKUP_DETAILS_PREPARED  (FULFILLING pseudo status)\n- SHIPPING_AIRBILL_PREPARED  (FULFILLING pseudo status)\n- SHIPPING_AIRBILL_DOWNLOADED (FULFILLING pseudo status)\n- PROCESSED\n- CANCELED"},"response":[{"id":"dff6e6cc-dabb-484b-9625-19e1b9f8d3bf","name":"11.4.1 Get Orders Statistics in BRP (Admin)","originalRequest":{"method":"GET","header":[{"key":"page_index","type":"text","value":"2"}],"url":{"raw":"https://{{domain}}/api/v1/orders/stats?","protocol":"https","host":["{{domain}}"],"path":["api","v1","orders","stats"],"query":[{"key":"filters","value":"{\"order_date\" : [\"07-25-2019\",\"07-25-2019\"]}","description":"order_date, event_date, status, ticket_type, categories, key_words","disabled":true},{"key":"filters","value":"{\"status\" : [\"SUB\"]}","disabled":true},{"key":"filters","value":"{\"ticket_type\" : [\"PHYSICAL\"]}","disabled":true},{"key":"filters","value":"{\"event_date\" : [\"07-23-2019\",\"07-23-2019\"]}","disabled":true},{"key":"filters","value":"{\"ticket_type\":[\"MOBILE_TRANSFER\"]}","disabled":true},{"key":"filters","value":"{\"status\" : [\"SUB\"], \"ticket_type\" : [\"PHYSICAL\"]}","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"201"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Wed, 16 Oct 2019 11:22:50 GMT"},{"key":"x-amzn-RequestId","value":"858dfddd-f9ee-4ddc-8e6f-29feef09d698"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"*"},{"key":"x-amz-apigw-id","value":"BpyNeFQpIAMFgxw="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5da6fd89-8c86db1eedd3d1d89b79c0d4;Sampled=0"},{"key":"Access-Control-Max-Age","value":"86400"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 b6a3e4c49d0265073859268bbecf413b.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"WAW50-C1"},{"key":"X-Amz-Cf-Id","value":"aKdeePa9jPP296sTRGdVuA1F4uwWJlF_yqtDZQafhuiig80EQz4ntA=="}],"cookie":[],"responseTime":null,"body":"{\n    \"NEW\": 78,\n    \"SUB\": 9,\n    \"CANCELED\": 0,\n    \"UNCONFIRMED\": 197,\n    \"PROCESSED\": 75,\n    \"ETICKETUPLOADPREPARED\": 7,\n    \"PICKUPDETAILSPREPARED\": 4,\n    \"SHIPPINGAIRBILLPREPARED\": 3,\n    \"MOBILETRANSFERPREPARED\": 4,\n    \"SHIPPINGAIRBILLDOWNLOADED\": 1\n}"}],"_postman_id":"2a11ad25-d225-4c3d-82ad-59fc0763b1eb"},{"name":"11.4.1 Get Orders Statistics in BRP (Reseller)","event":[{"listen":"test","script":{"id":"15512310-1366-446b-bbb5-5f1d504af813","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"response must be json\", function () {","    pm.response.to.be.json; ","});","","pm.test(\"response should have jsonBody without errors\", function () {","    pm.response.to.not.be.error;","    pm.response.to.have.jsonBody(\"UNCONFIRMED\");    ","    pm.response.to.have.jsonBody(\"PROCESSED\");","    pm.response.to.have.jsonBody(\"ETICKETUPLOADPREPARED\");    ","    pm.response.to.have.jsonBody(\"PICKUPDETAILSPREPARED\");","    pm.response.to.have.jsonBody(\"SHIPPINGAIRBILLPREPARED\");    ","    pm.response.to.have.jsonBody(\"MOBILETRANSFERPREPARED\");    ","    pm.response.to.have.jsonBody(\"SHIPPINGAIRBILLDOWNLOADED\");","    pm.response.to.not.have.jsonBody(\"error\");","});"],"type":"text/javascript"}}],"id":"86bf43a5-a31b-40a1-9c68-a1c0bf1dbbc7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token_reseller}}"}},"method":"GET","header":[],"url":"https://{{domain}}/api/v1/orders/stats","description":"Returns only Orders for this specific Reseller\n- orders:read.self permission\n\nResponse codes:\n- 200 - Indicates success\n\nReseller can see only Orders in one of the next states (other states are filtered): \n- CONFIRMED\n- UNCONFIRMED\n- MOBILE_TRANSFER_PREPARED\n- E_TICKET_UPLOAD_PREPARED\n- SHIPPING_AIRBILL_PREPARED\n- SHIPPING_AIRBILL_DOWNLOADED\n- PROCESSED"},"response":[{"id":"06329fbc-002e-4397-bfae-ee94b49e40be","name":"11.4.1 Get Orders Statistics in BRP (Reseller)","originalRequest":{"method":"GET","header":[{"key":"page_index","type":"text","value":"2"}],"url":{"raw":"https://{{domain}}/api/v1/orders/stats?","protocol":"https","host":["{{domain}}"],"path":["api","v1","orders","stats"],"query":[{"key":"filters","value":"{\"order_date\" : [\"07-25-2019\",\"07-25-2019\"]}","description":"order_date, event_date, status, ticket_type, categories, key_words","disabled":true},{"key":"filters","value":"{\"status\" : [\"SUB\"]}","disabled":true},{"key":"filters","value":"{\"ticket_type\" : [\"PHYSICAL\"]}","disabled":true},{"key":"filters","value":"{\"event_date\" : [\"07-23-2019\",\"07-23-2019\"]}","disabled":true},{"key":"filters","value":"{\"ticket_type\":[\"MOBILE_TRANSFER\"]}","disabled":true},{"key":"filters","value":"{\"status\" : [\"SUB\"], \"ticket_type\" : [\"PHYSICAL\"]}","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"169"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Wed, 16 Oct 2019 11:43:19 GMT"},{"key":"x-amzn-RequestId","value":"69ff68a9-3560-4234-99a0-fcf6f1862d68"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"*"},{"key":"x-amz-apigw-id","value":"Bp1NpHtToAMFwGA="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5da70257-18c8f1148c3c7255d734dab8;Sampled=0"},{"key":"Access-Control-Max-Age","value":"86400"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 dfc3a7bfbc818f103aa0634d79f28907.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"WAW50-C1"},{"key":"X-Amz-Cf-Id","value":"MLoXL4ws5YX7IRG-pJXhH2MKmbKaXGSbG0l87ZIsUhbu57IrF7AlAw=="}],"cookie":[],"responseTime":null,"body":"{\n    \"UNCONFIRMED\": 7,\n    \"PROCESSED\": 12,\n    \"ETICKETUPLOADPREPARED\": 2,\n    \"PICKUPDETAILSPREPARED\": 0,\n    \"SHIPPINGAIRBILLPREPARED\": 0,\n    \"MOBILETRANSFERPREPARED\": 0,\n    \"SHIPPINGAIRBILLDOWNLOADED\": 1\n}"}],"_postman_id":"86bf43a5-a31b-40a1-9c68-a1c0bf1dbbc7"}],"id":"88681200-f88d-404e-90f6-c909466832e0","description":"Description:\r\nReturn Orders statistics\r\nThis method will be called on the Orders screen\r\n\r\nMethod:\r\n- GET\r\n\r\nRequest parameters type: \r\n- URL query string\r\n \r\nResponse media type:\r\n- application/json\r\n\r\n \r\nOrder Status possible values (ENUM):\r\n- NEW\r\n- CONFIRMED (internal, not visible in UI, made for possible reset state transition)\r\n- UNCONFIRMED\r\n- SUB\r\n- MOBILE_TRANSFER_PREPARED (FULFILLING pseudo status)\r\n- E_TICKET_UPLOAD_PREPARED (FULFILLING pseudo status)\r\n- PICKUP_DETAILS_PREPARED  (FULFILLING pseudo status)\r\n- SHIPPING_AIRBILL_PREPARED  (FULFILLING pseudo status)\r\n- SHIPPING_AIRBILL_DOWNLOADED (FULFILLING pseudo status)\r\n- PROCESSED\r\n- CANCELED","event":[{"listen":"prerequest","script":{"id":"5e0913ee-fdc0-4e72-9ca0-4a44ab75e371","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"044345d3-c4e3-435d-80e0-be4b051c43a5","type":"text/javascript","exec":[""]}}],"_postman_id":"88681200-f88d-404e-90f6-c909466832e0"},{"name":"11.4.2 API Method: Get Orders Sales in BRP Copy","item":[{"name":"11.4.2 Get Orders Sales in BRP (Admin)","event":[{"listen":"test","script":{"id":"15512310-1366-446b-bbb5-5f1d504af813","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"response must be json\", function () {","    pm.response.to.be.json; ","});","","pm.test(\"response should have jsonBody without errors\", function () {","    pm.response.to.not.be.error;","    pm.response.to.have.jsonBody(\"totalSales\");","    pm.response.to.have.jsonBody(\"totalSalesValue\");    ","    pm.response.to.have.jsonBody(\"results\");","    pm.response.to.not.have.jsonBody(\"error\");","});","","pm.test(\"response should have orders sales fields\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.results[0].year).not.equal(null);","    pm.expect(jsonData.results[0].month).not.equal(null);","});"],"type":"text/javascript"}}],"id":"1d895163-a62e-4d1e-88af-cb0deb46958f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token_admin}}"}},"method":"GET","header":[],"url":{"raw":"https://{{domain}}/api/v1/orders/sales?filters={\"sales_period\":[\"08-16-2019\", \"08-16-2025\"]}","protocol":"https","host":["{{domain}}"],"path":["api","v1","orders","sales"],"query":[{"key":"filters","value":"{\"sales_period\":[\"08-16-2019\", \"08-16-2025\"]}","description":"Description: filtering option for events results;\nRequired: optional;\nPossible values: account_id, sales_period"},{"key":"filters","value":"{\"account_id\":\"auth0|5d443e1aa016a30dbfcba7cf\"}","disabled":true}]},"description":"Returns all Orders (according to filtering and sorting applied) \n- orders:read.all permission\n\nResponse codes:\n- 200 - Indicates success"},"response":[{"id":"764df9fb-2d72-4451-a0ff-1be35022530b","name":"11.4.2 Get Orders Sales in BRP (Admin)","originalRequest":{"method":"GET","header":[{"key":"page_index","type":"text","value":"2"}],"url":{"raw":"https://{{domain}}/api/v1/orders/sales?filters={\"sales_period\":[\"08-16-2019\", \"08-16-2025\"]}","protocol":"https","host":["{{domain}}"],"path":["api","v1","orders","sales"],"query":[{"key":"filters","value":"{\"sales_period\":[\"08-16-2019\", \"08-16-2025\"]}","description":"Description: filtering option for events results;\nRequired: optional;\nPossible values: account_id, sales_period"},{"key":"filters","value":"{\"account_id\":\"auth0|5d443e1aa016a30dbfcba7cf\"}","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"98"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Wed, 16 Oct 2019 12:36:14 GMT"},{"key":"x-amzn-RequestId","value":"02e510af-8c9c-4595-bcf5-dc5663441f11"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"*"},{"key":"x-amz-apigw-id","value":"Bp89xHcqIAMFXFg="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5da70ebe-f87a50dc63f20aa8f0999608;Sampled=0"},{"key":"Access-Control-Max-Age","value":"86400"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 93ca7f89577bcc406284a7bbde241b21.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"WAW50-C1"},{"key":"X-Amz-Cf-Id","value":"30k6Sl8TiYhx_xFefYIXQVuy4b8aVi0mEWIbfWSvW1ek8k9kymdehQ=="}],"cookie":[],"responseTime":null,"body":"{\n    \"totalSales\": 39,\n    \"totalSalesValue\": 26468.02,\n    \"results\": [\n        {\n            \"year\": 2019,\n            \"month\": 10,\n            \"value\": 26468.02\n        }\n    ]\n}"}],"_postman_id":"1d895163-a62e-4d1e-88af-cb0deb46958f"},{"name":"11.4.2 Get Orders Sales in BRP (Reseller)","event":[{"listen":"test","script":{"id":"15512310-1366-446b-bbb5-5f1d504af813","exec":["pm.test(\"Status code is 200\", function() {","    pm.response.to.have.status(200);","});","","pm.test(\"response must be json\", function () {","    pm.response.to.be.json; ","});","","pm.test(\"response should have jsonBody without errors\", function () {","    pm.response.to.not.be.error;","    pm.response.to.have.jsonBody(\"totalSales\");","    pm.response.to.have.jsonBody(\"totalSalesValue\");    ","    pm.response.to.have.jsonBody(\"results\");","    pm.response.to.not.have.jsonBody(\"error\");","});"],"type":"text/javascript"}}],"id":"a2174a46-ce1b-4f5c-a167-dc3667200bd6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token_reseller}}"}},"method":"GET","header":[],"url":{"raw":"https://{{domain}}/api/v1/orders/sales?","protocol":"https","host":["{{domain}}"],"path":["api","v1","orders","sales"],"query":[{"key":"filters","value":"{\"order_date\" : [\"07-25-2019\",\"07-25-2019\"]}","description":"Description: filtering option for events results;\nRequired: optional;\nPossible values: account_id, sales_period","disabled":true}]},"description":"Returns only Orders for this specific Reseller \n- orders:read.self permission \n\nResponse codes:\n- 200 - Indicates success"},"response":[{"id":"971562b9-512d-47a2-b85d-a79b9aa1707b","name":"11.4.2 Get Orders Sales in BRP (Reseller)","originalRequest":{"method":"GET","header":[{"key":"page_index","type":"text","value":"2"}],"url":{"raw":"https://{{domain}}/api/v1/orders/sales?","protocol":"https","host":["{{domain}}"],"path":["api","v1","orders","sales"],"query":[{"key":"filters","value":"{\"order_date\" : [\"07-25-2019\",\"07-25-2019\"]}","description":"Description: filtering option for events results;\nRequired: optional;\nPossible values: account_id, sales_period","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"98"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Wed, 16 Oct 2019 12:37:44 GMT"},{"key":"x-amzn-RequestId","value":"7cd66e4c-a6da-49a8-980c-8f3e049378d6"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"*"},{"key":"x-amz-apigw-id","value":"Bp9LxFwvoAMF6xw="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5da70f18-24f4b4583366be48e454fd48;Sampled=0"},{"key":"Access-Control-Max-Age","value":"86400"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 93ca7f89577bcc406284a7bbde241b21.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"WAW50-C1"},{"key":"X-Amz-Cf-Id","value":"kJCoehzr0sEqwLiuDhvEi4d76V3TjEFDzOuhjBvUuj72TSPhSM4VPQ=="}],"cookie":[],"responseTime":null,"body":"{\n    \"totalSales\": 12,\n    \"totalSalesValue\": 21264.71,\n    \"results\": [\n        {\n            \"year\": 2019,\n            \"month\": 10,\n            \"value\": 21264.71\n        }\n    ]\n}"}],"_postman_id":"a2174a46-ce1b-4f5c-a167-dc3667200bd6"}],"id":"42437195-5785-4f94-9913-657567211e20","event":[{"listen":"prerequest","script":{"id":"49952d4d-0b22-485a-9897-bed8436b8d82","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"1b7e19a7-2bfa-4292-9093-77ec7bbe703c","type":"text/javascript","exec":[""]}}],"_postman_id":"42437195-5785-4f94-9913-657567211e20"},{"name":"11.5. API Method: Get specific Order Details in BRP","item":[{"name":"11.5 Get specific Order Details in BRP (Admin)","event":[{"listen":"test","script":{"id":"15512310-1366-446b-bbb5-5f1d504af813","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"response must be json\", function () {","    pm.response.to.be.json; ","});","","pm.test(\"response should have jsonBody without errors\", function () {","    pm.response.to.not.be.error;","    pm.response.to.have.jsonBody(\"orderId\");","    pm.response.to.have.jsonBody(\"orderNote\");","    pm.response.to.have.jsonBody(\"date\");","    pm.response.to.have.jsonBody(\"status\");","    pm.response.to.have.jsonBody(\"price\");","    pm.response.to.have.jsonBody(\"airBillUrl\");","    pm.response.to.have.jsonBody(\"ticketType\");","    pm.response.to.have.jsonBody(\"tax\");","    pm.response.to.have.jsonBody(\"shippingCost\");","    pm.response.to.have.jsonBody(\"serviceFee\");","    pm.response.to.have.jsonBody(\"additionalExpense\");","    pm.response.to.have.jsonBody(\"discount\");    ","    pm.response.to.have.jsonBody(\"site\");","    pm.response.to.have.jsonBody(\"penaltyType\");","    pm.response.to.have.jsonBody(\"pickUpInstructions\");","    pm.response.to.have.jsonBody(\"externalOrderId\");","    pm.response.to.have.jsonBody(\"isAcceptUpgrades\");","    pm.response.to.have.jsonBody(\"isMonitorFedExTracking\");","    pm.response.to.have.jsonBody(\"listings\");","    pm.response.to.have.jsonBody(\"eTicketUrl\");","    pm.response.to.have.jsonBody(\"customer\");","    pm.response.to.not.have.jsonBody(\"error\");","});","","pm.test(\"response should have specific order details fields\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.orderId).not.equal(null);","    pm.expect(jsonData.date).not.equal(null);","    pm.expect(jsonData.status).not.equal(null);","    pm.expect(jsonData.price).not.equal(null);","    pm.expect(jsonData.ticketType).not.equal(null);","    pm.expect(jsonData.listings).not.equal(null);","    pm.expect(jsonData.quantity).not.equal(null);","    pm.expect(jsonData.event).not.equal(null);","});",""],"type":"text/javascript"}}],"id":"3c36eebf-65da-4535-b692-8082373181ad","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token_admin}}"}},"method":"GET","header":[],"url":"https://{{domain}}/api/v1/orders/{{order_id}}","description":"Admin Projection (All fields from DB)\n\nResponse codes:\n- 200 - Indicates success"},"response":[{"id":"a76586ba-174f-4e0e-b24c-3184c62ad9aa","name":"11.5 Get specific Order Details in BRP (Admin)","originalRequest":{"method":"GET","header":[{"key":"page_index","type":"text","value":"2"}],"url":"https://{{domain}}/api/v1/orders/{{order_id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"2563"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Wed, 16 Oct 2019 12:45:19 GMT"},{"key":"x-amzn-RequestId","value":"5601e8d9-2fa3-4aed-8eb1-eb50ae0898e7"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"*"},{"key":"x-amz-apigw-id","value":"Bp-SoEuTIAMFv6Q="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5da710dd-51b7a400ccadc6009ac14bc0;Sampled=0"},{"key":"Access-Control-Max-Age","value":"86400"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 02362f0faae05408640185d927020628.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"WAW50-C1"},{"key":"X-Amz-Cf-Id","value":"yuGcwoYsywxbdnwOPhopWt1pYwmFhs_6oC_eEn_LVWvTpc1o3a5fAw=="}],"cookie":[],"responseTime":null,"body":"{\n    \"orderId\": 12,\n    \"orderNote\": \"<p>Order status changed to UNCONFIRMED (2019-10-03 15:13:33)</p><p>Order status changed to SUB (2019-10-03 15:14:26)</p><p>Order status changed to UNCONFIRMED (2019-10-03 15:14:42)</p>\",\n    \"date\": \"2019-10-03T15:12:50\",\n    \"status\": \"UNCONFIRMED\",\n    \"price\": 1392.78,\n    \"airBillUrl\": null,\n    \"ticketType\": \"PHYSICAL\",\n    \"tax\": 3,\n    \"shippingCost\": 2.22,\n    \"serviceFee\": 2.01,\n    \"additionalExpense\": 1.22,\n    \"discount\": 0,\n    \"site\": \"TicketMonster\",\n    \"penaltyType\": \"NO_PENALTY\",\n    \"pickUpInstructions\": null,\n    \"externalOrderId\": null,\n    \"isAcceptUpgrades\": true,\n    \"isMonitorFedExTracking\": true,\n    \"listings\": [\n        {\n            \"notes\": \"3719217_PHYSICAL Lorem ipsum dolor sit amet\",\n            \"soldPrice\": 1384.33,\n            \"inHandDate\": \"2019-05-12\",\n            \"externalListingId\": 1011131133,\n            \"mongoListingId\": \"1b81df8f9e226b38b6c1e75e0dd91e08\",\n            \"integrationType\": \"AUTOPROCESSOR\",\n            \"listingId\": 12,\n            \"isEticket\": false,\n            \"isInstant\": false,\n            \"isRequireShipment\": true,\n            \"listingPrice\": 1236.01,\n            \"section\": \"13\",\n            \"row\": \"23\",\n            \"quantity\": 1,\n            \"event\": {\n                \"eventId\": 3719217,\n                \"name\": \"Cirque du Soleil - Ka\",\n                \"eventDate\": \"2019-11-12T21:30:00\",\n                \"venue\": {\n                    \"name\": \"KA Theatre at MGM Grand\",\n                    \"state\": \"NV\",\n                    \"city\": \"Las Vegas\"\n                }\n            },\n            \"account\": {\n                \"accountId\": \"auth0|5d947f42fb7a8e0e18f4d394\",\n                \"name\": \"Reseller Alina\",\n                \"companyName\": \"AT_reseller_company\",\n                \"phone\": \"+50034712245\",\n                \"email\": \"alina.tsvyak@gmail.com\",\n                \"featuredReseller\": 1,\n                \"inventoryMarkupPercent\": 12,\n                \"sellFeePercent\": 2,\n                \"staleThreshold\": 1,\n                \"listingAlertThreshold\": 30,\n                \"contractStatusType\": \"ACTIVE\",\n                \"integrationType\": \"AUTOPROCESSOR\",\n                \"paymentMethod\": \"EBG_CREDIT_CARD\",\n                \"paymentMethodName\": \"EBG Credit Card\",\n                \"address\": {\n                    \"country\": \"US\",\n                    \"state\": \"Nevada\",\n                    \"zipCode\": \"89310\",\n                    \"city\": \"Austin\",\n                    \"addressLine1\": \"81 Main St\",\n                    \"addressLine2\": \"\"\n                }\n            }\n        }\n    ],\n    \"eTicketUrl\": null,\n    \"customer\": {\n        \"name\": \"Liudmila Ustsimenka\",\n        \"email\": \"emailcustomer1op27xke@test.com\",\n        \"phone\": \"+1234569650\",\n        \"billingAddress\": {\n            \"country\": \"US\",\n            \"state\": \"California\",\n            \"zipCode\": \"90292\",\n            \"city\": \"Marina Del Rey\",\n            \"addressLine1\": \"4650 Lincoln Blvd\",\n            \"addressLine2\": \"\"\n        },\n        \"shippingAddress\": {\n            \"country\": \"US\",\n            \"state\": \"California\",\n            \"zipCode\": \"90292\",\n            \"city\": \"Marina Del Rey\",\n            \"addressLine1\": \"4650 Lincoln Blvd\",\n            \"addressLine2\": \"\"\n        },\n        \"orderCount\": 1\n    },\n    \"account\": {\n        \"accountId\": \"auth0|5d94800fa92dbc0dec4fffd7\",\n        \"name\": \"AT_External\",\n        \"companyName\": \"AT_external_company\",\n        \"phone\": \"+80459964545\",\n        \"email\": \"alina.tsvyak+1@gmail.com\",\n        \"featuredReseller\": 0,\n        \"inventoryMarkupPercent\": 12,\n        \"sellFeePercent\": 0,\n        \"staleThreshold\": 1,\n        \"listingAlertThreshold\": 30,\n        \"contractStatusType\": \"ACTIVE\",\n        \"integrationType\": \"AUTOPROCESSOR\",\n        \"address\": {\n            \"country\": \"US\",\n            \"state\": \"NV\",\n            \"zipCode\": \"TX 75201\",\n            \"city\": \"Las Vegas\",\n            \"addressLine1\": \"1515 Young St\",\n            \"addressLine2\": \"\"\n        }\n    }\n}"}],"_postman_id":"3c36eebf-65da-4535-b692-8082373181ad"},{"name":"11.5 Get specific Order Details in BRP (Reseller)","event":[{"listen":"test","script":{"id":"15512310-1366-446b-bbb5-5f1d504af813","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"response must be json\", function () {","    pm.response.to.be.json; ","});","","pm.test(\"response should have jsonBody without errors\", function () {","    pm.response.to.not.be.error;","    pm.response.to.have.jsonBody(\"orderId\");","    pm.response.to.have.jsonBody(\"orderNote\");","    pm.response.to.have.jsonBody(\"date\");","    pm.response.to.have.jsonBody(\"status\");","    pm.response.to.have.jsonBody(\"airBillUrl\");","    pm.response.to.have.jsonBody(\"ticketType\");","    pm.response.to.have.jsonBody(\"serviceFee\");","    pm.response.to.have.jsonBody(\"pickUpInstructions\");","    pm.response.to.have.jsonBody(\"listings\");","    pm.response.to.have.jsonBody(\"customer\");","    pm.response.to.not.have.jsonBody(\"error\");","});","","pm.test(\"response should have specific order details fields\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.orderId).not.equal(null);","    pm.expect(jsonData.date).not.equal(null);","    pm.expect(jsonData.status).not.equal(null);","    pm.expect(jsonData.ticketType).not.equal(null);","    pm.expect(jsonData.listings).not.equal(null);","    pm.expect(jsonData.quantity).not.equal(null);","    pm.expect(jsonData.event).not.equal(null);","});"],"type":"text/javascript"}}],"id":"dc32fc5e-b45d-48f4-9079-937fa529b919","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token_reseller}}"}},"method":"GET","header":[],"url":"https://{{domain}}/api/v1/orders/{{order_id}}","description":"Reseller view projection (available for Reseller fields)\r\n\r\nResponse codes:\r\n- 200 - Indicates success"},"response":[{"id":"b30552d1-2409-4af3-8171-6bfcf5d8dd83","name":"11.5 Get specific Order Details in BRP (Reseller)","originalRequest":{"method":"GET","header":[],"url":"https://{{domain}}/api/v1/orders/{{order_id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"856"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Wed, 16 Oct 2019 12:48:04 GMT"},{"key":"x-amzn-RequestId","value":"10a2422d-c975-4601-9339-e3a0d105356f"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"*"},{"key":"x-amz-apigw-id","value":"Bp-swGuCIAMFSpw="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5da71184-2976bfa92e27c20f3d9ab3ba;Sampled=0"},{"key":"Access-Control-Max-Age","value":"86400"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 02362f0faae05408640185d927020628.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"WAW50-C1"},{"key":"X-Amz-Cf-Id","value":"e-KLkPFTMh1EvSJMBcB06sonXtwGX5VPirB6vfUN69CfsSkZZ3ZUtA=="}],"cookie":[],"responseTime":null,"body":"{\n    \"orderId\": 12,\n    \"orderNote\": \"<p>Order status changed to UNCONFIRMED (2019-10-03 15:13:33)</p><p>Order status changed to SUB (2019-10-03 15:14:26)</p><p>Order status changed to UNCONFIRMED (2019-10-03 15:14:42)</p>\",\n    \"date\": \"2019-10-03T15:12:50\",\n    \"status\": \"UNCONFIRMED\",\n    \"airBillUrl\": null,\n    \"ticketType\": \"PHYSICAL\",\n    \"serviceFee\": 2.01,\n    \"pickUpInstructions\": null,\n    \"listings\": [\n        {\n            \"listingId\": 12,\n            \"isEticket\": false,\n            \"isInstant\": false,\n            \"isRequireShipment\": true,\n            \"listingPrice\": 1236.01,\n            \"section\": \"13\",\n            \"row\": \"23\",\n            \"quantity\": 1,\n            \"event\": {\n                \"eventId\": 3719217,\n                \"name\": \"Cirque du Soleil - Ka\",\n                \"eventDate\": \"2019-11-12T21:30:00\",\n                \"venue\": {\n                    \"name\": \"KA Theatre at MGM Grand\",\n                    \"state\": \"NV\",\n                    \"city\": \"Las Vegas\"\n                }\n            }\n        }\n    ],\n    \"customer\": {\n        \"billingAddress\": {},\n        \"shippingAddress\": {\n            \"country\": \"US\",\n            \"state\": \"California\",\n            \"zipCode\": \"90292\",\n            \"city\": \"Marina Del Rey\",\n            \"addressLine1\": \"4650 Lincoln Blvd\",\n            \"addressLine2\": \"\"\n        }\n    }\n}"}],"_postman_id":"dc32fc5e-b45d-48f4-9079-937fa529b919"},{"name":"11.5 Get specific Order Details in BRP (Unauthorized)","event":[{"listen":"test","script":{"id":"15512310-1366-446b-bbb5-5f1d504af813","exec":["pm.test(\"Status code is 401\", function () {","    pm.response.to.have.status(401);","});","","pm.test(\"response must be json\", function () {","    pm.response.to.be.json; ","});","","pm.test(\"response should have jsonBody with error and message\", function () {","    pm.response.to.be.error;","    pm.response.to.have.jsonBody(\"error\");","    pm.response.to.have.jsonBody(\"message\");","});"],"type":"text/javascript"}}],"id":"a49e848b-2d57-46a0-8b0f-3f689128322a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth"},"method":"GET","header":[],"url":"https://{{domain}}/api/v1/orders/{{order_id}}","description":"Response codes:\r\n- 401 - Unauthorized"},"response":[{"id":"40dfbdd3-e342-402b-85b7-dd1815773fdb","name":"11.5 Get specific Order Details in BRP (Unauthorized)","originalRequest":{"method":"GET","header":[],"url":"https://{{domain}}/api/v1/orders/{{order_id}}"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"81"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Wed, 16 Oct 2019 12:50:01 GMT"},{"key":"x-amzn-RequestId","value":"fbe33c84-2858-4462-9f7c-212b1dbb99e9"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"*"},{"key":"x-amz-apigw-id","value":"Bp--7GamIAMFzIw="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5da711f9-6e5de924072834a1712cfcb8;Sampled=0"},{"key":"Access-Control-Max-Age","value":"86400"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"X-Cache","value":"Error from cloudfront"},{"key":"Via","value":"1.1 02362f0faae05408640185d927020628.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"WAW50-C1"},{"key":"X-Amz-Cf-Id","value":"WdT3wo_tFSWYrZoNyQ1UeUGsQTm2VHJX0KVVxJB2QhADcKAo8qWopg=="}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Invalid authorization token!\",\n    \"message\": \"Invalid authorization token!\"\n}"}],"_postman_id":"a49e848b-2d57-46a0-8b0f-3f689128322a"},{"name":"11.5 Get specific Order Details in BRP (Not found)","event":[{"listen":"test","script":{"id":"15512310-1366-446b-bbb5-5f1d504af813","exec":["pm.test(\"Status code is 404\", function () {","    pm.response.to.have.status(404);","});","","pm.test(\"response must be json\", function () {","    pm.response.to.be.json; ","});","","pm.test(\"response should have jsonBody with error and message\", function () {","    pm.response.to.be.error;","    pm.response.to.have.jsonBody(\"error\");","    pm.response.to.have.jsonBody(\"message\");","});"],"type":"text/javascript"}}],"id":"a54a0f64-08ab-4ca9-b7e2-5bfda4f0bce4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token_admin}}"}},"method":"GET","header":[],"url":"https://{{domain}}/api/v1/orders/ff{{order_id}}","description":"Response codes:\r\n- 404 - Order with such OrderId not found"},"response":[{"id":"cfc0321e-649d-4135-bde3-45e25a7bff91","name":"11.5 Get specific Order Details in BRP (Not found)","originalRequest":{"method":"GET","header":[],"url":"https://{{domain}}/api/v1/orders/ff{{order_id}}"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"69"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Wed, 16 Oct 2019 12:49:12 GMT"},{"key":"x-amzn-RequestId","value":"84c0a318-0a66-43af-b890-8321879903da"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"*"},{"key":"x-amz-apigw-id","value":"Bp-3WH0CIAMFj_Q="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5da711c8-127b29e22326feb8223279fe;Sampled=0"},{"key":"Access-Control-Max-Age","value":"86400"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"X-Cache","value":"Error from cloudfront"},{"key":"Via","value":"1.1 02362f0faae05408640185d927020628.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"WAW50-C1"},{"key":"X-Amz-Cf-Id","value":"Ih74iOeyYDRW2eLUNuzZ7RG7sBdKoR0PG9zmpGFYK80jDCiYmqhyTQ=="}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Not found!\",\n    \"message\": \"Order with such OrderId not found.\"\n}"}],"_postman_id":"a54a0f64-08ab-4ca9-b7e2-5bfda4f0bce4"}],"id":"1b671f66-94e7-4ac7-8a5b-ddb6ec72c54b","description":"Description:\r\nReturn specific Order details information \r\nThis method will be called on the Orders Screen.\r\n\r\nMethod:\r\n- GET\r\n\r\nRequest parameters type: \r\n- URL Path parameter\r\n\r\nRequest parameters:\r\n- orderId - internal DB id of the Order (Primary Key in MySQL)\r\n\r\nResponse media type:\r\n- application/json","event":[{"listen":"prerequest","script":{"id":"1da60d87-b7e5-4b89-8e90-74da7d2eb424","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"1255631b-3d44-4fff-b34c-db1f588bd86e","type":"text/javascript","exec":[""]}}],"_postman_id":"1b671f66-94e7-4ac7-8a5b-ddb6ec72c54b"},{"name":"11.6. API Method: Get S3 upload ticket policy for Order","item":[{"name":"11.6. API Method: Get S3 upload ticket policy for Order - Admin","event":[{"listen":"test","script":{"id":"41927e1f-3c54-48d7-95bf-e51d78767a8a","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"response must be json\", function () {","    pm.response.to.be.json; ","});","","pm.test(\"response should have jsonBody without errors\", function () {","    pm.response.to.not.be.error;","    pm.response.to.have.jsonBody(\"signature\");","    pm.response.to.have.jsonBody(\"encodedPolicy\");","    pm.response.to.have.jsonBody(\"accessKey\");","    pm.response.to.have.jsonBody(\"uploadUrl\");    ","    pm.response.to.have.jsonBody(\"key\");    ","    pm.response.to.not.have.jsonBody(\"error\");","});","","pm.test(\"response should have s3 information fields\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.signature).not.equal(null);","    pm.expect(jsonData.encodedPolicy).not.equal(null);","    pm.expect(jsonData.accessKey).not.equal(null);","    pm.expect(jsonData.uploadUrl).not.equal(null);","    pm.expect(jsonData.key).not.equal(null);","});"],"type":"text/javascript"}}],"id":"24ceafbb-ad9b-452f-9747-fdbb07090651","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token_admin}}"}},"method":"GET","header":[],"url":"https://{{domain}}/api/v1/orders/{{order_id}}/s3-upload-policy","description":"Response codes:\r\n- 200 - Indicates success"},"response":[{"id":"62ef8f2a-88e2-455b-939c-e2af493a5429","name":"11.6. API Method: Get S3 upload ticket policy for Order - Admin","originalRequest":{"method":"GET","header":[],"url":"https://{{domain}}/api/v1/orders/{{order_id}}/s3-upload-policy"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"452"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Wed, 16 Oct 2019 12:58:10 GMT"},{"key":"x-amzn-RequestId","value":"6d76ed74-7d6c-4c64-b2b5-49242b3b2dfa"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"*"},{"key":"x-amz-apigw-id","value":"BqALcEruIAMFZOQ="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5da713e2-a312bab0a04122f2d5e0d72e;Sampled=0"},{"key":"Access-Control-Max-Age","value":"86400"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 02362f0faae05408640185d927020628.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"WAW50-C1"},{"key":"X-Amz-Cf-Id","value":"9CXokfSJ6d9sXxqjoPv3d_Jdua28u-l8EqkqGGLbyeZZAgu3oqsftw=="}],"cookie":[],"responseTime":null,"body":"{\n    \"signature\": \"6wxYWX0f7UEFCep21EfyYc3Cv4E=\",\n    \"encodedPolicy\": \"eyJleHBpcmF0aW9uIjoiMjAxOS0xMS0yMlQwMDowMDowMC4wMDBaIiwiY29uZGl0aW9ucyI6W3sia2V5IjoiYXV0aDB8NWQ5NDdmNDJmYjdhOGUwZTE4ZjRkMzk0LzEyL3RpY2tldC5wZGYifSx7ImJ1Y2tldCI6ImViZ3BhLXVhdCJ9LHsiYWNsIjoicHJpdmF0ZSJ9LFsic3RhcnRzLXdpdGgiLCIkQ29udGVudC1UeXBlIiwiIl1dfQ==\",\n    \"accessKey\": \"AKIAROFBYYUEYQAXIYZC\",\n    \"uploadUrl\": \"https://s3.amazonaws.com/ebgpa-uat\",\n    \"key\": \"auth0|5d947f42fb7a8e0e18f4d394/12/ticket.pdf\"\n}"}],"_postman_id":"24ceafbb-ad9b-452f-9747-fdbb07090651"},{"name":"11.6. API Method: Get S3 upload ticket policy for Order - Reseller","event":[{"listen":"test","script":{"id":"e2f3c061-766a-411f-9ac0-a9383f0efe8c","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"response must be json\", function () {","    pm.response.to.be.json; ","});","","pm.test(\"response should have jsonBody without errors\", function () {","    pm.response.to.not.be.error;","    pm.response.to.have.jsonBody(\"signature\");","    pm.response.to.have.jsonBody(\"encodedPolicy\");","    pm.response.to.have.jsonBody(\"accessKey\");","    pm.response.to.have.jsonBody(\"uploadUrl\");    ","    pm.response.to.have.jsonBody(\"key\");    ","    pm.response.to.not.have.jsonBody(\"error\");","});","","pm.test(\"response should have s3 information fields\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.signature).not.equal(null);","    pm.expect(jsonData.encodedPolicy).not.equal(null);","    pm.expect(jsonData.accessKey).not.equal(null);","    pm.expect(jsonData.uploadUrl).not.equal(null);","    pm.expect(jsonData.key).not.equal(null);","});"],"type":"text/javascript"}}],"id":"4f4f7888-5d00-4614-9d31-60ca464c8d51","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token_reseller}}"}},"method":"GET","header":[],"url":"https://{{domain}}/api/v1/orders/{{order_id}}/s3-upload-policy","description":"Response codes:\r\n- 200 - Indicates success"},"response":[{"id":"8ca29e4d-72db-4c45-b79a-ceaaf79e78d6","name":"11.6. API Method: Get S3 upload ticket policy for Order - Reseller","originalRequest":{"method":"GET","header":[],"url":"https://{{domain}}/api/v1/orders/{{order_id}}/s3-upload-policy"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"452"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Wed, 16 Oct 2019 12:59:15 GMT"},{"key":"x-amzn-RequestId","value":"5e45a65c-63fc-43e1-9bfe-13fc8a4fbdcc"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"*"},{"key":"x-amz-apigw-id","value":"BqAVhHcboAMFXMA="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5da71423-4acc83b80904041dc7c20134;Sampled=0"},{"key":"Access-Control-Max-Age","value":"86400"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 02362f0faae05408640185d927020628.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"WAW50-C1"},{"key":"X-Amz-Cf-Id","value":"daYUBelrxIo3M2iHLEAjuG3PcX2PR0ht6dGuUh3l3ToF3G6Zov9xIw=="}],"cookie":[],"responseTime":null,"body":"{\n    \"signature\": \"6wxYWX0f7UEFCep21EfyYc3Cv4E=\",\n    \"encodedPolicy\": \"eyJleHBpcmF0aW9uIjoiMjAxOS0xMS0yMlQwMDowMDowMC4wMDBaIiwiY29uZGl0aW9ucyI6W3sia2V5IjoiYXV0aDB8NWQ5NDdmNDJmYjdhOGUwZTE4ZjRkMzk0LzEyL3RpY2tldC5wZGYifSx7ImJ1Y2tldCI6ImViZ3BhLXVhdCJ9LHsiYWNsIjoicHJpdmF0ZSJ9LFsic3RhcnRzLXdpdGgiLCIkQ29udGVudC1UeXBlIiwiIl1dfQ==\",\n    \"accessKey\": \"AKIAROFBYYUEYQAXIYZC\",\n    \"uploadUrl\": \"https://s3.amazonaws.com/ebgpa-uat\",\n    \"key\": \"auth0|5d947f42fb7a8e0e18f4d394/12/ticket.pdf\"\n}"}],"_postman_id":"4f4f7888-5d00-4614-9d31-60ca464c8d51"},{"name":"11.6. API Method: Get S3 upload ticket policy for Order - Unauthorized","event":[{"listen":"test","script":{"id":"0c15f3fc-d19b-425f-a8a0-1db70466ba5a","exec":["pm.test(\"Status code is 401\", function () {","    pm.response.to.have.status(401);","});","","pm.test(\"response must be json\", function () {","    pm.response.to.be.json; ","});","","pm.test(\"response should have jsonBody with error and message\", function () {","    pm.response.to.be.error;","    pm.response.to.have.jsonBody(\"error\");","    pm.response.to.have.jsonBody(\"message\");","});"],"type":"text/javascript"}}],"id":"7808c3ec-461e-4c48-8df1-374f7b91ff8b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth"},"method":"GET","header":[],"url":"https://{{domain}}/api/v1/orders/{{order_id}}/s3-upload-policy","description":"Response codes:\r\n- 401 - Unauthorized"},"response":[{"id":"1ad702a5-e1ca-465f-9b27-09fee12f774e","name":"11.6. API Method: Get S3 upload ticket policy for Order - Unauthorized","originalRequest":{"method":"GET","header":[],"url":"https://{{domain}}/api/v1/orders/{{order_id}}/s3-upload-policy"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"81"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Wed, 16 Oct 2019 12:59:28 GMT"},{"key":"x-amzn-RequestId","value":"e263286c-11ef-4efd-97f8-638e04420dd3"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"*"},{"key":"x-amz-apigw-id","value":"BqAXoG_iIAMFWug="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5da71430-16265f06274b78b6cf24e4fe;Sampled=0"},{"key":"Access-Control-Max-Age","value":"86400"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"X-Cache","value":"Error from cloudfront"},{"key":"Via","value":"1.1 02362f0faae05408640185d927020628.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"WAW50-C1"},{"key":"X-Amz-Cf-Id","value":"__5wgn2Xs9NuVtsGKkiC2klGpWSKqBnOSJpag6S9srItxR_T9Fy3hw=="}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Invalid authorization token!\",\n    \"message\": \"Invalid authorization token!\"\n}"}],"_postman_id":"7808c3ec-461e-4c48-8df1-374f7b91ff8b"}],"id":"c2d3443f-1372-4bd8-a6dd-c24017764928","description":"Description:\r\nReturn S3 upload ticket policy and S3 upload URI.\r\nThis method will be called on the Orders Details Reseller Screen during Order fullfillment in case of E-Ticket type of the ticket\r\n\r\nMethod:\r\n- GET\r\n\r\nRequest parameters type: \r\n- URL Path parameter\r\n\r\nRequest parameters:\r\n- orderId - internal DB id of the Order (Primary Key in MySQL)\r\n\r\nResponse media type:\r\n- application/json","event":[{"listen":"prerequest","script":{"id":"23703eb4-4145-4553-b1b3-77aed0534770","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"638e7bec-2176-4f92-bce9-97ce84d765b0","type":"text/javascript","exec":[""]}}],"_postman_id":"c2d3443f-1372-4bd8-a6dd-c24017764928"},{"name":"11.7. API Method: Get specific Order Notes in BRP","item":[{"name":"11.7. API Method: Get specific Order Notes in BRP (Admin)","event":[{"listen":"test","script":{"id":"81dc8fc6-8624-44b5-86d4-3d3de6775258","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"response must be json\", function () {","    pm.response.to.be.json; ","});","","pm.test(\"response should have jsonBody without errors\", function () {","    pm.response.to.not.be.error;","    pm.response.to.have.jsonBody(\"orderId\");","    pm.response.to.have.jsonBody(\"orderNote\");","    pm.response.to.not.have.jsonBody(\"error\");","});","","pm.test(\"response should have specific order notes fields\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.orderId).not.equal(null);","});"],"type":"text/javascript"}}],"id":"7a795c76-98e3-40cc-b469-b8bfde1f21f4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token_admin}}"}},"method":"GET","header":[],"url":"https://{{domain}}/api/v1/orders/{{order_id}}/notes","description":"Returns specific Order notes \n- orders:read.all permission\n\nResponse codes:\n- 200 - Indicates success"},"response":[{"id":"e84892fd-7ff1-404f-8266-d8af5a195281","name":"11.7. API Method: Get specific Order Notes in BRP (Admin)","originalRequest":{"method":"GET","header":[],"url":"https://{{domain}}/api/v1/orders/{{order_id}}/notes"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"213"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Wed, 16 Oct 2019 13:04:55 GMT"},{"key":"x-amzn-RequestId","value":"d31001c5-3156-4997-90b1-008ee3407892"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"*"},{"key":"x-amz-apigw-id","value":"BqBKpFFNIAMFz6w="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5da71577-1f9050a46579b6081cdc55b1;Sampled=0"},{"key":"Access-Control-Max-Age","value":"86400"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 02362f0faae05408640185d927020628.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"WAW50-C1"},{"key":"X-Amz-Cf-Id","value":"SDqT298a7M-B7t1ZUUnIGHX0IdXqTAQ7Y8RaYYGmFd_tTQuHUrXalg=="}],"cookie":[],"responseTime":null,"body":"{\n    \"orderId\": 12,\n    \"orderNote\": \"<p>Order status changed to UNCONFIRMED (2019-10-03 15:13:33)</p><p>Order status changed to SUB (2019-10-03 15:14:26)</p><p>Order status changed to UNCONFIRMED (2019-10-03 15:14:42)</p>\"\n}"}],"_postman_id":"7a795c76-98e3-40cc-b469-b8bfde1f21f4"},{"name":"11.7. API Method: Get specific Order Notes in BRP (Admin Not Fould)","event":[{"listen":"test","script":{"id":"81dc8fc6-8624-44b5-86d4-3d3de6775258","exec":["pm.test(\"Status code is 404\", function () {","    pm.response.to.have.status(404);","});","","pm.test(\"response must be json\", function () {","    pm.response.to.be.json; ","});","","pm.test(\"response should have jsonBody with error and message\", function () {","    pm.response.to.be.error;","    pm.response.to.have.jsonBody(\"error\");","    pm.response.to.have.jsonBody(\"message\");","});",""],"type":"text/javascript"}}],"id":"b7afc6bc-40e9-4eea-b9a7-da31fc3352e1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token_admin}}"}},"method":"GET","header":[],"url":"https://{{domain}}/api/v1/orders/ff{{order_id}}/notes","description":"Response codes:\r\n- 404 - Order with input orderId or note with input NoteId not found"},"response":[{"id":"a6ac81d8-3bf9-4267-a0f0-3bb96cef7795","name":"11.7. API Method: Get specific Order Notes in BRP (Admin Not Fould)","originalRequest":{"method":"GET","header":[],"url":"https://{{domain}}/api/v1/orders/ff{{order_id}}/notes"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"70"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Wed, 16 Oct 2019 13:05:09 GMT"},{"key":"x-amzn-RequestId","value":"6a44cdcb-48fb-4646-a4a4-b929fa1ad7f4"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"*"},{"key":"x-amz-apigw-id","value":"BqBM0EeXoAMFV1w="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5da71585-106997c5124f9c6854267d34;Sampled=0"},{"key":"Access-Control-Max-Age","value":"86400"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"X-Cache","value":"Error from cloudfront"},{"key":"Via","value":"1.1 02362f0faae05408640185d927020628.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"WAW50-C1"},{"key":"X-Amz-Cf-Id","value":"QyCJjFZ6fbyWAbzTHWwXGJfk4xE22o01R_i6lO9b369rFxQEMdxNkw=="}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Not found!\",\n    \"message\": \"Order with input orderId not found.\"\n}"}],"_postman_id":"b7afc6bc-40e9-4eea-b9a7-da31fc3352e1"},{"name":"11.7. API Method: Get specific Order Notes in BRP (Reseller)","event":[{"listen":"test","script":{"id":"2a6fabfe-3453-45ae-9ad6-497809768b62","exec":["pm.test(\"Status code is 403\", function () {","    pm.response.to.have.status(403);","});","","pm.test(\"response must be json\", function () {","    pm.response.to.be.json; ","});","","pm.test(\"response should have jsonBody with error and message\", function () {","    pm.response.to.be.error;","    pm.response.to.have.jsonBody(\"error\");","    pm.response.to.have.jsonBody(\"message\");","});",""],"type":"text/javascript"}}],"id":"55ab48cd-8133-44d0-bf54-b740af13dc7f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token_reseller}}"}},"method":"GET","header":[],"url":"https://{{domain}}/api/v1/orders/{{order_id}}/notes","description":"Response codes:\r\n- 403 - Access is not allowed"},"response":[{"id":"20ac9c64-a8de-4e11-a159-5ae256e2bfc7","name":"11.7. API Method: Get specific Order Notes in BRP (Reseller)","originalRequest":{"method":"GET","header":[],"url":"https://{{domain}}/api/v1/orders/{{order_id}}/notes"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"45"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Wed, 16 Oct 2019 13:05:52 GMT"},{"key":"x-amzn-RequestId","value":"025e623b-16d8-4731-bff3-a4c78acc5661"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"*"},{"key":"x-amz-apigw-id","value":"BqBThHsgIAMFy5A="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5da715b0-d1b110a2a603101c42c426f8;Sampled=0"},{"key":"Access-Control-Max-Age","value":"86400"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"X-Cache","value":"Error from cloudfront"},{"key":"Via","value":"1.1 02362f0faae05408640185d927020628.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"WAW50-C1"},{"key":"X-Amz-Cf-Id","value":"6cR5O6_GHyjNHTvLO86MUnGAPW6dWFXZZkDl3NVlm0FfHhFb6t0R_g=="}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Forbidden!\",\n    \"message\": \"Forbidden!\"\n}"}],"_postman_id":"55ab48cd-8133-44d0-bf54-b740af13dc7f"},{"name":"11.7. API Method: Get specific Order Notes in BRP (Unauthorized)","event":[{"listen":"test","script":{"id":"4a2ec665-58f2-4a5f-af1d-2c1f8b270a17","exec":["pm.test(\"Status code is 401\", function () {","    pm.response.to.have.status(401);","});","","pm.test(\"response must be json\", function () {","    pm.response.to.be.json; ","});","","pm.test(\"response should have jsonBody with error and message\", function () {","    pm.response.to.be.error;","    pm.response.to.have.jsonBody(\"error\");","    pm.response.to.have.jsonBody(\"message\");","});",""],"type":"text/javascript"}}],"id":"7314cbbd-35ff-40fb-bd93-9935e478df39","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth"},"method":"GET","header":[],"url":"https://{{domain}}/api/v1/orders/{{order_id}}/notes","description":"Response codes:\r\n- 401 - Unauthorized"},"response":[{"id":"001dff54-7dba-4a8f-b0c0-65559212978f","name":"11.7. API Method: Get specific Order Notes in BRP (Unauthorized)","originalRequest":{"method":"GET","header":[],"url":"https://{{domain}}/api/v1/orders/{{order_id}}/notes"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"81"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Wed, 16 Oct 2019 13:07:14 GMT"},{"key":"x-amzn-RequestId","value":"5c2186ef-2ace-478a-bbc6-78468eddb4d6"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"*"},{"key":"x-amz-apigw-id","value":"BqBgdHRcIAMFT8Q="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5da71602-c6f2f55bf256d8d0143daa35;Sampled=0"},{"key":"Access-Control-Max-Age","value":"86400"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"X-Cache","value":"Error from cloudfront"},{"key":"Via","value":"1.1 02362f0faae05408640185d927020628.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"WAW50-C1"},{"key":"X-Amz-Cf-Id","value":"dGGfyejhNuYVpNwnEzRbpgSv-eYxM5VjJq6T3fR-HJfQ8Yq5yYWNig=="}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Invalid authorization token!\",\n    \"message\": \"Invalid authorization token!\"\n}"}],"_postman_id":"7314cbbd-35ff-40fb-bd93-9935e478df39"}],"id":"38f8133d-b1b7-4167-9d80-235b0ebda500","description":"Description:\r\nReturn specific Order Notes\r\nThis method will be called on the Orders screen, on clicking notes icon in specific Order row\r\n\r\nMethod:\r\n- GET\r\n\r\nRequest parameters type: \r\n- URL path parameter\r\n\r\nRequest parameters:\r\n- orderId - internal DB id of the order in our system (Primary Key in MySQL)\r\n- orderNoteId - internal DB id of the order note in our system (Primary Key in MySQL)\r\n\r\nResponse media type:\r\n- application/json\r\n","event":[{"listen":"prerequest","script":{"id":"9676f3d5-7b0a-4913-bd10-3a178b7e1929","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"4268acce-210e-4307-9198-8437f8ea8706","type":"text/javascript","exec":[""]}}],"_postman_id":"38f8133d-b1b7-4167-9d80-235b0ebda500"},{"name":"12.1. API Method: Get all Suppression rules in BRP Copy","item":[{"name":"12.1. API Method: Get all Suppression rules in BRP (Admin)","event":[{"listen":"test","script":{"id":"c2044390-2480-4a91-8b50-346d12112e6f","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"response must be json\", function () {","    pm.response.to.be.json; ","});","","pm.test(\"response should have jsonBody without errors\", function () {","    pm.response.to.not.be.error;","    pm.response.to.have.jsonBody(\"totalSize\");","    pm.response.to.have.jsonBody(\"size\");","    pm.response.to.have.jsonBody(\"results\");","    pm.response.to.not.have.jsonBody(\"error\");","});"],"type":"text/javascript"}}],"id":"4354e004-8a90-40f2-a12f-48ef9aec34cd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token_admin}}"}},"method":"GET","header":[],"url":{"raw":"https://{{domain}}/api/v1/suppression-rules?start_page_index=0&page_size=0&sort_field=listings_effected&sort_order=desc","protocol":"https","host":["{{domain}}"],"path":["api","v1","suppression-rules"],"query":[{"key":"start_page_index","value":"0","description":"Description: index of the first page to return, zero-indexed;\nRequired: optional;\nPossible values: \t0 - *;\nDefault value: 0"},{"key":"page_size","value":"0","description":"Description: page size for returned results;\nRequired: optional;\nPossible values: 10, 15, 25, 50 and 0 - means give all list result without pagination;\nDefault value: 15"},{"key":"sort_field","value":"listings_effected","description":"Description: field in order used for sorting orders result list;\nRequired: optional;\nPossible values: name, status, listings_effected, rimary_suppression;\nDefault value: listings_effected"},{"key":"sort_order","value":"desc","description":"Description: order of sorting;\nRequired: optional;\nPossible values: asc, desc;\nDefault value: desc"}]},"description":"Returns all Suppression rules \n- suppressions:read.all permission\n\nResponse codes:\n- 200 - Indicates success"},"response":[{"id":"fddc84c6-7b87-4916-a709-30df31c879b3","name":"12.1. API Method: Get all Suppression rules in BRP (Admin)","originalRequest":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"url":{"raw":"https://{{domain}}/api/v1/suppression-rules?start_page_index=0&page_size=0&sort_field=listings_effected&sort_order=desc","protocol":"https","host":["{{domain}}"],"path":["api","v1","suppression-rules"],"query":[{"key":"start_page_index","value":"0","description":"Description: index of the first page to return, zero-indexed;\nRequired: optional;\nPossible values: \t0 - *;\nDefault value: 0"},{"key":"page_size","value":"0","description":"Description: page size for returned results;\nRequired: optional;\nPossible values: 10, 15, 25, 50 and 0 - means give all list result without pagination;\nDefault value: 15"},{"key":"sort_field","value":"listings_effected","description":"Description: field in order used for sorting orders result list;\nRequired: optional;\nPossible values: name, status, listings_effected, rimary_suppression;\nDefault value: listings_effected"},{"key":"sort_order","value":"desc","description":"Description: order of sorting;\nRequired: optional;\nPossible values: asc, desc;\nDefault value: desc"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"5482"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Wed, 16 Oct 2019 13:22:36 GMT"},{"key":"x-amzn-RequestId","value":"ee89358c-7a01-4623-8507-9a2ebbb4593b"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"*"},{"key":"x-amz-apigw-id","value":"BqDwdGiZIAMF1jA="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5da7199c-549cc648e192cffa10a01674;Sampled=0"},{"key":"Access-Control-Max-Age","value":"86400"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 184f5b3ebeb6aa0f7b93900fc50720c4.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"WAW50-C1"},{"key":"X-Amz-Cf-Id","value":"D_ns555D_xWqFuH46k1EayGH-rJo2vsbn1VAYNq_RjcU7txVCKxOig=="}],"cookie":[],"responseTime":null,"body":"{\n    \"totalSize\": 1,\n    \"size\": 1,\n    \"results\": [\n        {\n            \"suppressionRuleId\": 5,\n            \"name\": \"Suppressed listing\",\n            \"rule\": {\n                \"targets\": [\n                    {\n                        \"name\": \"EventFilter\",\n                        \"sample\": \"Mississippi Rebels vs. Vanderbilt Commodores\"\n                    },\n                    {\n                        \"name\": \"VenueFilter\",\n                        \"sample\": \"Vaught Hemingway Stadium\"\n                    },\n                    {\n                        \"name\": \"PerformerFilter\",\n                        \"sample\": \"Vanderbilt Commodores\"\n                    }\n                ],\n                \"conditions\": [\n                    {\n                        \"name\": \"RowCondition\",\n                        \"method\": \"eq\",\n                        \"sample\": 2\n                    },\n                    {\n                        \"name\": \"SectionCondition\",\n                        \"method\": \"eq\",\n                        \"sample\": \"M\"\n                    },\n                    {\n                        \"name\": \"TicketTypeCondition\",\n                        \"method\": \"eq\",\n                        \"sample\": \"E_TICKET\"\n                    }\n                ]\n            },\n            \"isActive\": 0,\n            \"primarySuppression\": \"Event: Mississippi Rebels vs. Vanderbilt Commodores, Venue: Vaught Hemingway Stadium, Performer: Vanderbilt Commodores\",\n            \"listingsAffected\": 0\n        }\n    ]\n}"}],"_postman_id":"4354e004-8a90-40f2-a12f-48ef9aec34cd"},{"name":"12.1. API Method: Get all Suppression rules in BRP (Reseller)","event":[{"listen":"test","script":{"id":"c2044390-2480-4a91-8b50-346d12112e6f","exec":["pm.test(\"Status code is 403\", function () {","    pm.response.to.have.status(403);","});","","pm.test(\"response must be json\", function () {","    pm.response.to.be.json; ","});","","pm.test(\"response should have jsonBody with error and message\", function () {","    pm.response.to.be.error;","    pm.response.to.have.jsonBody(\"error\");","    pm.response.to.have.jsonBody(\"message\");","});"],"type":"text/javascript"}}],"id":"42593a7e-b86f-4238-bb16-7e61a16255e2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token_reseller}}"}},"method":"GET","header":[],"url":"https://{{domain}}/api/v1/suppression-rules","description":"Response codes:\r\n- 403 - Access is not allowed"},"response":[{"id":"a7345ee8-b1eb-4ae6-bb44-eaf616676520","name":"12.1. API Method: Get all Suppression rules in BRP (Reseller)","originalRequest":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"url":"https://{{domain}}/api/v1/suppression-rules"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"45"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Wed, 16 Oct 2019 13:25:47 GMT"},{"key":"x-amzn-RequestId","value":"d9d49519-13a2-4506-98d6-1c3030da95cb"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"*"},{"key":"x-amz-apigw-id","value":"BqEOUEcdoAMFgEQ="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5da71a5b-2d0eaac009bef11059a3bb50;Sampled=0"},{"key":"Access-Control-Max-Age","value":"86400"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"X-Cache","value":"Error from cloudfront"},{"key":"Via","value":"1.1 184f5b3ebeb6aa0f7b93900fc50720c4.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"WAW50-C1"},{"key":"X-Amz-Cf-Id","value":"s_sOJXuAq4B3UvE3FZJrTHVqvKpTwU1QR6T449em3Ede7EvE_vbVvw=="}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Forbidden!\",\n    \"message\": \"Forbidden!\"\n}"}],"_postman_id":"42593a7e-b86f-4238-bb16-7e61a16255e2"},{"name":"12.1. API Method: Get all Suppression rules in BRP (Unauthorized)","event":[{"listen":"test","script":{"id":"c2044390-2480-4a91-8b50-346d12112e6f","exec":["pm.test(\"Status code is 401\", function () {","    pm.response.to.have.status(401);","});","","pm.test(\"response must be json\", function () {","    pm.response.to.be.json; ","});","","pm.test(\"response should have jsonBody with error and message\", function () {","    pm.response.to.be.error;","    pm.response.to.have.jsonBody(\"error\");","    pm.response.to.have.jsonBody(\"message\");","});"],"type":"text/javascript"}}],"id":"aef081e8-ee6c-4c4e-ab52-431fac626c9a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth"},"method":"GET","header":[],"url":"https://{{domain}}/api/v1/suppression-rules","description":"Response codes:\r\n- 401 - Unauthorized"},"response":[{"id":"ad7336dc-db84-4e20-a0b0-01f4089342b3","name":"12.1. API Method: Get all Suppression rules in BRP (Unauthorized)","originalRequest":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"url":"https://{{domain}}/api/v1/suppression-rules"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"81"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Wed, 16 Oct 2019 13:26:24 GMT"},{"key":"x-amzn-RequestId","value":"0617f966-8cf4-4e88-a1d5-f62458687bc7"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"*"},{"key":"x-amz-apigw-id","value":"BqEUKEIvIAMFurw="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5da71a80-4983759c05023306a6f25a84;Sampled=0"},{"key":"Access-Control-Max-Age","value":"86400"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"X-Cache","value":"Error from cloudfront"},{"key":"Via","value":"1.1 184f5b3ebeb6aa0f7b93900fc50720c4.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"WAW50-C1"},{"key":"X-Amz-Cf-Id","value":"vLfR0dQ8nPm9F3TF4iTPJCjJ3Xy2RdasPsL9cDveHo4Y5SELREZ_ig=="}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Invalid authorization token!\",\n    \"message\": \"Invalid authorization token!\"\n}"}],"_postman_id":"aef081e8-ee6c-4c4e-ab52-431fac626c9a"}],"id":"c928b790-378c-43c9-a392-f5480d64a642","description":"Description:\r\nReturn all Suppression rules from BRP data storage\r\nThis method will be called on the Manage Suppressions screen\r\n\r\nMethod:\r\n- GET\r\n\r\nRequest parameters type: \r\n- URL query string\r\n \r\nResponse media type:\r\n- application/json\r\n","event":[{"listen":"prerequest","script":{"id":"780426d4-b36f-4dfb-adf6-b7287ed2f34c","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"3e13ac0c-736a-44e9-879c-db4fe20f592a","type":"text/javascript","exec":[""]}}],"_postman_id":"c928b790-378c-43c9-a392-f5480d64a642"},{"name":"13.1. API Method: Get All Penalties in BRP","item":[{"name":"13.1. API Method: Get All Penalties in BRP (Admin)","event":[{"listen":"test","script":{"id":"e1aadb98-3e7d-44aa-97d2-c200df552724","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"response must be json\", function () {","    pm.response.to.be.json; ","});","","pm.test(\"response should have jsonBody without errors\", function () {","    pm.response.to.not.be.error;","    pm.response.to.have.jsonBody(\"totalSize\");    ","    pm.response.to.have.jsonBody(\"size\");","    pm.response.to.have.jsonBody(\"results\");","    pm.response.to.not.have.jsonBody(\"error\");","});"],"type":"text/javascript"}}],"id":"9366d27a-3bd9-4425-83ae-99dad4d4c8d6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token_admin}}"}},"method":"GET","header":[],"url":{"raw":"https://{{domain}}/api/v1/penalties?start_page_index=0&page_size=0&sort_field=order_date&sort_order=asc&filters={\"search_query\" : \"AT_reseller_company\"}","protocol":"https","host":["{{domain}}"],"path":["api","v1","penalties"],"query":[{"key":"start_page_index","value":"0","description":"Description: index of the first page to return, zero-indexed;\nRequired: optional;\nPossible values: \t0 - *;\nDefault value: 0"},{"key":"page_size","value":"0","description":"Description: page size for returned results;\nRequired: optional;\nPossible values: 10, 15, 25, 50 and 0 - give all list result without pagination;\nDefault value: 15"},{"key":"sort_field","value":"order_date","description":"Description: field in penalties used for sorting penalties result list;\nRequired: optional;\nPossible values: order_date, created, updated;\nDefault value: order_date"},{"key":"sort_order","value":"asc","description":"Description: order of sorting;\nRequired: optional;\nPossible values: asc, desc;\nDefault value: desc"},{"key":"filters","value":"{\"search_query\" : \"AT_reseller_company\"}","description":"Description: filtering option for events results;\nRequired: optional;\nPossible values: order_id, search_query (matching should be organized against next columns: name, company_name, account_id, email, phone), account_id;\nDefault value: NONE filters"},{"key":"filters","value":"{\"account_id\": \"auth0|5d08f85b08d61d0e0ee088a8\"}","disabled":true},{"key":"filters","value":"{\"order_id\" : '341\"}","disabled":true}]},"description":"Returns all Penalties (according to filtering and sorting applied) \n- penalties:read.all permission\n\nResponse codes:\n- 200 - Indicates success"},"response":[{"id":"90cec037-d95e-4fd6-aff3-732c49928240","name":"13.1. API Method: Get All Penalties in BRP (Admin)","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://{{domain}}/api/v1/penalties?start_page_index=0&page_size=0&sort_field=order_date&sort_order=asc&filters={\"search_query\" : \"AT_reseller_company\"}","protocol":"https","host":["{{domain}}"],"path":["api","v1","penalties"],"query":[{"key":"start_page_index","value":"0","description":"Description: index of the first page to return, zero-indexed;\nRequired: optional;\nPossible values: \t0 - *;\nDefault value: 0"},{"key":"page_size","value":"0","description":"Description: page size for returned results;\nRequired: optional;\nPossible values: 10, 15, 25, 50 and 0 - give all list result without pagination;\nDefault value: 15"},{"key":"sort_field","value":"order_date","description":"Description: field in penalties used for sorting penalties result list;\nRequired: optional;\nPossible values: order_date, created, updated;\nDefault value: order_date"},{"key":"sort_order","value":"asc","description":"Description: order of sorting;\nRequired: optional;\nPossible values: asc, desc;\nDefault value: desc"},{"key":"filters","value":"{\"search_query\" : \"AT_reseller_company\"}","description":"Description: filtering option for events results;\nRequired: optional;\nPossible values: order_id, search_query (matching should be organized against next columns: name, company_name, account_id, email, phone), account_id;\nDefault value: NONE filters"},{"key":"filters","value":"{\"account_id\": \"auth0|5d08f85b08d61d0e0ee088a8\"}","disabled":true},{"key":"filters","value":"{\"order_id\" : '341\"}","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"6755"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Wed, 16 Oct 2019 14:43:11 GMT"},{"key":"x-amzn-RequestId","value":"b826eac7-14fa-4588-9475-3e61b69586c6"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"*"},{"key":"x-amz-apigw-id","value":"BqPj9G6BoAMFRaA="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5da72c7f-1549a7239f75c443f106599b;Sampled=0"},{"key":"Access-Control-Max-Age","value":"86400"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 1c140222cf7df6d0df745770e90c311a.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"WAW50-C1"},{"key":"X-Amz-Cf-Id","value":"LqDZjb4gT8Ai8KzaTo3OdCBa6bdePkOBJAeKSn3m49_naPGKwMnVvw=="}],"cookie":[],"responseTime":null,"body":"{\n    \"totalSize\": 1,\n    \"size\": 1,\n    \"results\": [\n        {\n            \"orderId\": 1,\n            \"penaltyId\": 1,\n            \"type\": \"NON_CONSECUTIVE_SEATS\",\n            \"notes\": \"<p>Order status changed to UNCONFIRMED (2019-10-03 08:10:50)</p><p>Order status changed to E_TICKET_UPLOAD_PREPARED (2019-10-03 08:23:22)</p><p>Penalty lorem ipsum</p><p> ---- Penalty [SPECULATIVE_TICKETS] applied (2019-10-03 08:57:37)</p><p> ---- Penalty [NON_CONSECUTIVE_SEATS] applied (2019-10-03 13:55:20)</p><p>Order status changed to PROCESSED (2019-10-04 18:54:27)</p><p>Order status changed to E_TICKET_UPLOAD_PREPARED (2019-10-04 18:56:19)</p><p>Order status changed to PROCESSED (2019-10-04 19:48:47)</p>\",\n            \"created\": \"2019-10-03T07:37:11\",\n            \"updated\": \"2019-10-03T13:55:20\",\n            \"account\": {\n                \"accountId\": \"auth0|5d947f42fb7a8e0e18f4d394\",\n                \"name\": \"Reseller Alina\",\n                \"companyName\": \"AT_reseller_company\",\n                \"email\": \"alina.tsvyak@gmail.com\",\n                \"phone\": \"+50034712245\"\n            }\n        }\n    ]\n}"}],"_postman_id":"9366d27a-3bd9-4425-83ae-99dad4d4c8d6"},{"name":"13.1. API Method: Get All Penalties in BRP (Reseller)","event":[{"listen":"test","script":{"id":"e1aadb98-3e7d-44aa-97d2-c200df552724","exec":["pm.test(\"Status code is 403\", function () {","    pm.response.to.have.status(403);","});","","pm.test(\"response must be json\", function () {","    pm.response.to.be.json; ","});","","pm.test(\"response should have jsonBody with error and message\", function () {","    pm.response.to.be.error;","    pm.response.to.have.jsonBody(\"error\");","    pm.response.to.have.jsonBody(\"message\");","});"],"type":"text/javascript"}}],"id":"450ce769-d893-4c9a-93d4-7692f4099e3e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token_reseller}}"}},"method":"GET","header":[],"url":"https://{{domain}}/api/v1/penalties","description":"Response codes:\r\n- 403 - Access is not allowed"},"response":[{"id":"94f6147f-6246-4136-b2f2-bb0bdc2210fa","name":"13.1. API Method: Get All Penalties in BRP (Reseller)","originalRequest":{"method":"GET","header":[],"url":"https://{{domain}}/api/v1/penalties"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"45"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Wed, 16 Oct 2019 14:22:43 GMT"},{"key":"x-amzn-RequestId","value":"8f0ea2d2-6b9c-4f4a-9935-68a6bf1a3cf5"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"*"},{"key":"x-amz-apigw-id","value":"BqMkHGV4IAMFz1g="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5da727b3-ce455790833b76901680d9b0;Sampled=0"},{"key":"Access-Control-Max-Age","value":"86400"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"X-Cache","value":"Error from cloudfront"},{"key":"Via","value":"1.1 a05b3de6d2658c4fd69effef7a8348e4.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"WAW50-C1"},{"key":"X-Amz-Cf-Id","value":"sCtIauEP6sRIvKE6V9cKbzICtLaWb8lSZKHWwk77D7h4yvuYrj64Eg=="}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Forbidden!\",\n    \"message\": \"Forbidden!\"\n}"}],"_postman_id":"450ce769-d893-4c9a-93d4-7692f4099e3e"},{"name":"13.1. API Method: Get All Penalties in BRP (No auth)","event":[{"listen":"test","script":{"id":"e1aadb98-3e7d-44aa-97d2-c200df552724","exec":["pm.test(\"Status code is 401\", function () {","    pm.response.to.have.status(401);","});","","pm.test(\"response must be json\", function () {","    pm.response.to.be.json; ","});","","pm.test(\"response should have jsonBody with error and message\", function () {","    pm.response.to.be.error;","    pm.response.to.have.jsonBody(\"error\");","    pm.response.to.have.jsonBody(\"message\");","});"],"type":"text/javascript"}}],"id":"7d980d48-a87f-48e5-84b3-001d965eb8e5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth"},"method":"GET","header":[],"url":"https://{{domain}}/api/v1/penalties","description":"Response codes:\r\n- 401 - Unauthorized"},"response":[{"id":"3030a2b2-c099-4686-b477-89181fc555ef","name":"13.1. API Method: Get All Penalties in BRP (No auth)","originalRequest":{"method":"GET","header":[],"url":"https://{{domain}}/api/v1/penalties"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"81"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Wed, 16 Oct 2019 14:26:54 GMT"},{"key":"x-amzn-RequestId","value":"3c5dc356-fa18-457a-b27b-6e8181273acd"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"*"},{"key":"x-amz-apigw-id","value":"BqNLPFpFIAMFxsQ="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5da728ae-7cbe22cf173350326aab71a2;Sampled=0"},{"key":"Access-Control-Max-Age","value":"86400"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"X-Cache","value":"Error from cloudfront"},{"key":"Via","value":"1.1 a05b3de6d2658c4fd69effef7a8348e4.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"WAW50-C1"},{"key":"X-Amz-Cf-Id","value":"jEEKb6KAKQvJV6PXY3iMyFp5YDE6XqZZFjIkMYZWzJY2lhOT6ZsiOg=="}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Invalid authorization token!\",\n    \"message\": \"Invalid authorization token!\"\n}"}],"_postman_id":"7d980d48-a87f-48e5-84b3-001d965eb8e5"}],"id":"0d932e71-e668-4171-b5b1-46bdc8a018f5","description":"Description:\r\nReturn all Penaltied information filtered\r\nThis method will be called on the Account Details Admin screen\r\n\r\nMethod:\r\n- GET\r\n\r\nRequest parameters type: \r\n- URL query string\r\n\r\nRequest parameters:\r\n\r\nPenalties type (ENUM)\r\n- FRAUDULENT_TICKETS\r\n- INVALID_TICKETS \r\n- SPECULATIVE_TICKETS\r\n- NON_CONSECUTIVE_SEATS\r\n- MISPRICED_TICKETS\r\n- PIGGYBACK_LISTINGS\r\n- CHANGED_STOCKS\r\n- DENIED_ORDERS\r\n- NO_PENALTY\r\n","event":[{"listen":"prerequest","script":{"id":"81d6013c-7208-4976-bc5a-82d49fa6ec60","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"29bc80b6-aa4b-49fd-8bde-eafe4cb9f40b","type":"text/javascript","exec":[""]}}],"_postman_id":"0d932e71-e668-4171-b5b1-46bdc8a018f5"}],"event":[{"listen":"prerequest","script":{"id":"b7ec93a4-30b1-4c87-b080-8afe270e2e4b","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"04f8ce2b-6082-46a5-83dd-10fb28dedea9","type":"text/javascript","exec":["pm.test(\"Response time is less than 30000ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(30000);","});"]}}]}