{"info":{"_postman_id":"fd28e1dd-5f8a-4ca5-968f-35e9b053b3cf","name":"WatchWire API","description":"<html><head></head><body><p>The WatchWire Platform has APIs that allow you to access your data programmatically. There are several APIs designed for the modules in the WatchWire platform including - Invoice Data, Real-Time, Accounts Payable, and Measurement &amp; Verification. All are highly scalable, and secure APIs that communicate over HTTPS RESTful protocols with JSON based documents.</p>\n<blockquote>\n<p><strong>Note</strong>: Not all WatchWire modules are available as an API.</p>\n</blockquote>\n<h1 id=\"authentication\">Authentication</h1>\n<p>You need credentials to access the APIs - it is the same credentials as your WatchWire login. The <code>/authenticate</code> will return a Token that needs to be included in the header of every subsequent request. The token renews with each request and expires after 60 minutes of inactivity (at which point you will need to re-authenticate and get a new token).</p>\n<blockquote>\n<p>Please contact the WatchWire team for any questions or request for API credential access.</p>\n</blockquote>\n<h1 id=\"error-codes\">Error Codes</h1>\n<p>There will be various error codes specific to the API you are using, but generally follows these principles:</p>\n<ul>\n<li><code>Unauthorized</code> - <em>you are unauthenticated or unauthorized to request actions on an asset</em></li>\n<li><code>Asset doesn't exist</code> - <em>the item you are querying for doesn't exist</em></li>\n<li><code>Server error</code>- <em>general exception raised in our application code</em></li>\n</ul>\n<h1 id=\"rate-limit\">Rate limit</h1>\n<p>Rate limited to 10 transactions per meter / second</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"Authentication","slug":"authentication"},{"content":"Error Codes","slug":"error-codes"},{"content":"Rate limit","slug":"rate-limit"}],"owner":"10583292","collectionId":"fd28e1dd-5f8a-4ca5-968f-35e9b053b3cf","publishedId":"UVREjjG7","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2023-03-31T21:54:37.000Z"},"item":[{"name":"Authentication","item":[{"name":"/authenticate","event":[{"listen":"test","script":{"id":"88aa4801-3e36-470f-b753-9ccda0c92cab","exec":["pm.test(\"Body matches string\", function () {","    pm.expect(pm.response.text()).to.include(\"token\");","});","","let token = pm.response.json().token;","","pm.environment.set(\"token\", token);"],"type":"text/javascript"}}],"id":"11a9943f-333a-46b4-8b1d-8b56dcb95c74","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\"email\": \"watchwire_username@yourcompany.com\", \"password\": \"your_password\"}"},"url":"{{ww-api-baseurl}}/authenticate","description":"<p><code>POST</code> request to obtain token, use your WW API Username / PW as basic auth parameters.</p>\n<p><em>Request Body Structure</em></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Path</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>email</code></td>\n<td><code>String</code></td>\n<td>User account email</td>\n</tr>\n<tr>\n<td><code>password</code></td>\n<td><code>String</code></td>\n<td>User account password</td>\n</tr>\n</tbody>\n</table>\n</div><p><em>Response Body Structure</em></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Path</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>token</code></td>\n<td><code>String</code></td>\n<td>Auth token used in the auth header of every subsequent request as a Bearer Token.  <br />  <br /><strong>Note</strong>: Expires after 60 minutes of inactivity</td>\n</tr>\n<tr>\n<td><code>status</code></td>\n<td><code>String</code></td>\n<td><code>ok</code> or <code>bad</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["authenticate"],"host":["{{ww-api-baseurl}}"],"query":[],"variable":[]}},"response":[{"id":"78b87b4e-fde2-43b1-808d-868f47edf130","name":"/authenticate","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\"email\": \"watchwire_username@yourcompany.com\", \"password\": \"your_password\"}"},"url":"{{ww-api-baseurl}}/authenticate"},"status":"OK","code":200,"_postman_previewlanguage":"plain","header":[{"key":"Server","value":"Cowboy"},{"key":"Connection","value":"keep-alive"},{"key":"Content-Type","value":"text/plain;charset=UTF-8"},{"key":"Content-Length","value":"62"},{"key":"Date","value":"Mon, 27 Dec 2021 21:52:18 GMT"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\"token\":\"RANDOM-TOKEN\",\"status\":\"OK\"}"}],"_postman_id":"11a9943f-333a-46b4-8b1d-8b56dcb95c74"}],"id":"2471093e-79c9-4844-9ea5-d2a8c774706e","description":"<p>All WatchWire APIs require token based authentication. This endpoint requires your WW API credentials as basic auth and then returns a unique token that expires after 60 minutes of inactivity.</p>\n","_postman_id":"2471093e-79c9-4844-9ea5-d2a8c774706e","auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":true,"source":{"_postman_id":"fd28e1dd-5f8a-4ca5-968f-35e9b053b3cf","id":"fd28e1dd-5f8a-4ca5-968f-35e9b053b3cf","name":"WatchWire API","type":"collection"}}},{"name":"RealTime API","item":[{"name":"Custom Meter","item":[{"name":"Get List Of Custom Meters","id":"20be45c8-b797-4a22-b79c-cb8b02360d3c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":""},"url":"{{gateway-realtime-api}}/custommeters/","description":"<p>A <code>GET</code> request will list all of the service’s custom meters.</p>\n<p><em>Response Body Structure</em></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Path</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>[].id</code></td>\n<td><code>Number</code></td>\n<td>The custom meter’s unique identifier.</td>\n</tr>\n<tr>\n<td><code>[].utilityAccountNumber</code></td>\n<td><code>String</code></td>\n<td>Utility Account Number.</td>\n</tr>\n<tr>\n<td><code>[].accountId</code></td>\n<td><code>Number</code></td>\n<td>EnergyWatch account identifier.</td>\n</tr>\n<tr>\n<td><code>[].meterNumber</code></td>\n<td><code>String</code></td>\n<td>Meter Number.</td>\n</tr>\n<tr>\n<td><code>[].type</code></td>\n<td><code>String</code></td>\n<td>Type of meter.</td>\n</tr>\n<tr>\n<td><code>[].multiplier</code></td>\n<td><code>Number</code></td>\n<td>Multiplier for meter reading values.</td>\n</tr>\n<tr>\n<td><code>[].readingsPerHour</code></td>\n<td><code>Number</code></td>\n<td>Number of readings a meter emits per hour.</td>\n</tr>\n<tr>\n<td><code>[].name</code></td>\n<td><code>String</code></td>\n<td>Name of custom meter.</td>\n</tr>\n<tr>\n<td><code>[].timezone</code></td>\n<td><code>String</code></td>\n<td>Timezone of meter data-source. Defaults to UTC.</td>\n</tr>\n<tr>\n<td><code>[].displayTimezone</code></td>\n<td><code>String</code></td>\n<td>Timezone to display meter data.</td>\n</tr>\n<tr>\n<td><code>[].commodity</code></td>\n<td><code>String</code></td>\n<td>Commodity the meter tracks.</td>\n</tr>\n<tr>\n<td><code>[].meterProvider</code></td>\n<td><code>String</code></td>\n<td>Meter provider code. Defaults to Generic Meter.</td>\n</tr>\n<tr>\n<td><code>[].sourceCategory</code></td>\n<td><code>String</code></td>\n<td>Consumption or production meter. Defaults to Consumption.</td>\n</tr>\n<tr>\n<td><code>[].isCumulative</code></td>\n<td><code>Boolean</code></td>\n<td>Tracks if meter is a cumulative meter. Defaults to non-cumulative meter.</td>\n</tr>\n<tr>\n<td><code>[].additionalSettings</code></td>\n<td><code>Object</code></td>\n<td>Stores additional settings unique to a particular meter provider.</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":true,"source":{"_postman_id":"fd28e1dd-5f8a-4ca5-968f-35e9b053b3cf","id":"fd28e1dd-5f8a-4ca5-968f-35e9b053b3cf","name":"WatchWire API","type":"collection"}},"urlObject":{"path":["custommeters",""],"host":["{{gateway-realtime-api}}"],"query":[],"variable":[]}},"response":[{"id":"a2a14a78-a651-41ed-bfdf-e30606241857","name":"Get List Of Custom Meters","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":""},"url":"{{gateway-realtime-api}}/custommeters/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Cowboy"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=31536000 ; includeSubDomains"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Wed, 29 Dec 2021 22:44:05 GMT"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 10221,\n        \"utilityAccountNumber\": \"2568796195680443635\",\n        \"accountId\": 13577,\n        \"meterNumber\": \"Meter: 7386\",\n        \"type\": \"realtime\",\n        \"multiplier\": 1,\n        \"readingsPerHour\": 4,\n        \"name\": \"Meter: 7386\",\n        \"timezone\": \"America/New_York\",\n        \"displayTimezone\": \"America/New_York\",\n        \"commodity\": \"electric\",\n        \"meterProvider\": \"GENERIC_METER\",\n        \"sourceCategory\": \"CONSUMPTION\",\n        \"isCumulative\": false,\n        \"virtualMeter\": false,\n        \"cumulative\": false,\n        \"energyUnitCode\": \"KW\",\n        \"energyUnit\": \"kW\"\n    },\n    {\n        \"id\": 10294,\n        \"utilityAccountNumber\": \"SOLAR\",\n        \"accountId\": 79013,\n        \"meterNumber\": \"JB-100007\",\n        \"type\": \"realtime\",\n        \"multiplier\": 1,\n        \"readingsPerHour\": 4,\n        \"name\": \"JB-100007\",\n        \"timezone\": \"America/New_York\",\n        \"displayTimezone\": \"America/New_York\",\n        \"commodity\": \"electric\",\n        \"meterProvider\": \"GENERIC_METER\",\n        \"sourceCategory\": \"PRODUCTION\",\n        \"productionType\": \"SOLAR\",\n        \"isCumulative\": false,\n        \"additionalSettings\": {},\n        \"virtualMeter\": false,\n        \"cumulative\": false,\n        \"energyUnitCode\": \"KW\",\n        \"energyUnit\": \"kW\"\n    },\n    {\n        \"id\": 12107,\n        \"utilityAccountNumber\": \"5380145391526751196\",\n        \"accountId\": 13579,\n        \"meterNumber\": \"12345\",\n        \"type\": \"realtime\",\n        \"multiplier\": 1,\n        \"readingsPerHour\": 4,\n        \"name\": \"Sample Aggregate Meter\",\n        \"timezone\": \"America/New_York\",\n        \"displayTimezone\": \"America/New_York\",\n        \"commodity\": \"electric\",\n        \"meterProvider\": \"VIRTUAL_METER\",\n        \"sourceCategory\": \"VIRTUAL_CONSUMPTION\",\n        \"isCumulative\": false,\n        \"additionalSettings\": {\n            \"meterIds1\": [\n                10232,\n                10233,\n                10234\n            ]\n        },\n        \"virtualMeter\": true,\n        \"cumulative\": false,\n        \"energyUnitCode\": \"KWH\",\n        \"energyUnit\": \"kWh\"\n    },\n    {\n        \"id\": 12307,\n        \"utilityAccountNumber\": \"123\",\n        \"accountId\": 58895,\n        \"meterNumber\": \"5c82c1bc-30b1-4775-8720-51a6829e815a\",\n        \"type\": \"realtime\",\n        \"multiplier\": 1,\n        \"readingsPerHour\": 4,\n        \"name\": \"Test Redaptive\",\n        \"timezone\": \"UTC\",\n        \"displayTimezone\": \"America/New_York\",\n        \"commodity\": \"electric\",\n        \"meterProvider\": \"REDAPTIVE_METER\",\n        \"sourceCategory\": \"CONSUMPTION\",\n        \"isCumulative\": false,\n        \"additionalSettings\": {\n            \"circuitUuid\": \"5c82c1bc-30b1-4775-8720-51a6829e815a\"\n        },\n        \"virtualMeter\": false,\n        \"cumulative\": false,\n        \"energyUnitCode\": \"KW\",\n        \"energyUnit\": \"kW\"\n    }\n]"}],"_postman_id":"20be45c8-b797-4a22-b79c-cb8b02360d3c"},{"name":"Get Details For Custom Meter","id":"a8fb322b-a74c-4341-8aaf-6924f986ee15","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{gateway-realtime-api}}/custommeters/{{customMeterId}}","description":"<p>A <code>GET</code> request will find a custom meter with a matching identifier.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":true,"source":{"_postman_id":"fd28e1dd-5f8a-4ca5-968f-35e9b053b3cf","id":"fd28e1dd-5f8a-4ca5-968f-35e9b053b3cf","name":"WatchWire API","type":"collection"}},"urlObject":{"path":["custommeters","{{customMeterId}}"],"host":["{{gateway-realtime-api}}"],"query":[],"variable":[]}},"response":[{"id":"3f2d1e1d-d696-4d33-b462-f2be93970438","name":"Get Details For Custom Meter","originalRequest":{"method":"GET","header":[],"url":"{{gateway-realtime-api}}/custommeters/10221"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Cowboy"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"Set-Cookie","value":"JSESSIONID=818F626591186B353DC27ACEE5238BED; Path=/; Secure; HttpOnly"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=31536000 ; includeSubDomains"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Wed, 29 Dec 2021 23:02:07 GMT"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 10221,\n    \"utilityAccountNumber\": \"2568796195680443635\",\n    \"accountId\": 13577,\n    \"meterNumber\": \"Meter: 7386\",\n    \"type\": \"realtime\",\n    \"multiplier\": 1,\n    \"readingsPerHour\": 4,\n    \"name\": \"Meter: 7386\",\n    \"timezone\": \"America/New_York\",\n    \"displayTimezone\": \"America/New_York\",\n    \"commodity\": \"electric\",\n    \"meterProvider\": \"GENERIC_METER\",\n    \"sourceCategory\": \"CONSUMPTION\",\n    \"isCumulative\": false,\n    \"cumulative\": false,\n    \"virtualMeter\": false,\n    \"energyUnitCode\": \"KW\",\n    \"energyUnit\": \"kW\"\n}"}],"_postman_id":"a8fb322b-a74c-4341-8aaf-6924f986ee15"},{"name":"Add Custom Meter","event":[{"listen":"test","script":{"id":"71774db4-bf29-464f-ab92-6082ac2017cc","exec":["pm.test(\"Status code is 201\", function () {","    pm.response.to.have.status(201);","});","","pm.test(\"Response includes keys\", function () {","     pm.expect(pm.response.json()).to.include.keys(\"id\", \"utilityAccountNumber\", \"accountId\", \"meterNumber\");","});","","let customMeterId = pm.response.json().id;","","pm.environment.set(\"customMeterId\", customMeterId);"],"type":"text/javascript"}}],"id":"0a7620a6-df18-406a-b2ec-a042ef915431","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"utilityAccountNumber\": \"123\",\n    \"accountId\": 58895,\n    \"submeterAccountId\": null,\n    \"meterNumber\": \"12345\",\n    \"type\": \"realtime\",\n    \"multiplier\": 1,\n    \"readingsPerHour\": 4,\n    \"name\": \"Meter: 12345 - Postman Generated Test\",\n    \"timezone\": \"UTC\",\n    \"displayTimezone\": \"UTC\",\n    \"commodity\": \"electric\",\n    \"meterProvider\": \"OBVIUS_METER\",\n    \"sourceCategory\": \"CONSUMPTION\",\n    \"productionType\": null,\n    \"energyUnit\": \"KW\",\n    \"isCumulative\": false,\n    \"additionalSettings\": {\n        \"password\": \"$2c$90$aXffbba\",\n        \"serialNumber\": \"001ABCDE\",\n        \"device\": \"2\",\n        \"readingColumns\": \"8\",\n        \"timestampColumn\": 1\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{gateway-realtime-api}}/custommeters/","description":"<p>A <code>POST</code> request is used to add a custom meter.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":true,"source":{"_postman_id":"fd28e1dd-5f8a-4ca5-968f-35e9b053b3cf","id":"fd28e1dd-5f8a-4ca5-968f-35e9b053b3cf","name":"WatchWire API","type":"collection"}},"urlObject":{"path":["custommeters",""],"host":["{{gateway-realtime-api}}"],"query":[],"variable":[]}},"response":[{"id":"e29fc75d-2437-4906-9cc8-20533716d82e","name":"Add Custom Meter","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"utilityAccountNumber\": \"123\",\n    \"accountId\": 58895,\n    \"submeterAccountId\": null,\n    \"meterNumber\": \"12345\",\n    \"type\": \"realtime\",\n    \"multiplier\": 1,\n    \"readingsPerHour\": 4,\n    \"name\": \"Meter: 12345 - Postman Generated Test\",\n    \"timezone\": \"UTC\",\n    \"displayTimezone\": \"UTC\",\n    \"commodity\": \"electric\",\n    \"meterProvider\": \"OBVIUS_METER\",\n    \"sourceCategory\": \"CONSUMPTION\",\n    \"productionType\": null,\n    \"energyUnit\": \"KW\",\n    \"isCumulative\": false,\n    \"additionalSettings\": {\n        \"password\": \"$2c$90$aXffbba\",\n        \"serialNumber\": \"001ABCDE\",\n        \"device\": \"2\",\n        \"readingColumns\": \"8\",\n        \"timestampColumn\": 1\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{gateway-realtime-api}}/custommeters/"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Cowboy"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=31536000 ; includeSubDomains"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sat, 01 Jan 2022 21:21:30 GMT"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 12405,\n    \"utilityAccountNumber\": \"123\",\n    \"accountId\": 58895,\n    \"meterNumber\": \"12345\",\n    \"type\": \"realtime\",\n    \"multiplier\": 1,\n    \"readingsPerHour\": 4,\n    \"name\": \"Meter: 12345 - Postman Generated Test\",\n    \"timezone\": \"UTC\",\n    \"displayTimezone\": \"UTC\",\n    \"commodity\": \"electric\",\n    \"meterProvider\": \"OBVIUS_METER\",\n    \"sourceCategory\": \"CONSUMPTION\",\n    \"isCumulative\": false,\n    \"additionalSettings\": {\n        \"password\": \"$2a$10$9AleMEHVTnNAY5oCMy6lseZtbxw2AThsIZKtpUVcGhaAJshaLg8Ey\",\n        \"serialNumber\": \"001ABCDE\",\n        \"device\": \"2\",\n        \"readingColumns\": \"8\",\n        \"timestampColumn\": 1\n    },\n    \"virtualMeter\": false,\n    \"cumulative\": false,\n    \"energyUnitCode\": \"KW\",\n    \"energyUnit\": \"kW\"\n}"}],"_postman_id":"0a7620a6-df18-406a-b2ec-a042ef915431"},{"name":"Update Custom Meter","id":"991936a6-ce24-4c20-b1c5-ee54585088e2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n  \"utilityAccountNumber\" : \"6789\",\n  \"accountId\" : 500,\n  \"submeterAccountId\" : null,\n  \"meterNumber\" : \"5678\",\n  \"type\" : \"realtime\",\n  \"multiplier\" : 100,\n  \"readingsPerHour\" : 18,\n  \"name\" : \"Meter: 5678\",\n  \"timezone\" : \"UTC\",\n  \"displayTimezone\" : \"UTC\",\n  \"meterProvider\" : \"OBVIUS_METER\",\n  \"energyUnit\" : \"MW\",\n  \"energyUnitCode\" : null,\n  \"isCumulative\" : false,\n  \"additionalSettings\" : {\n    \"password\" : \"$2c$90$aXffbba\",\n    \"serialNumber\" : \"001ABCDE\",\n    \"device\" : \"2\",\n    \"readingColumns\" : \"8\",\n    \"timestampColumn\" : 1\n  },\n  \"shiftCumulativeReadings\" : false,\n  \"shiftReadings\" : false,\n  \"cumulative\" : false\n}","options":{"raw":{"language":"json"}}},"url":"{{gateway-realtime-api}}/custommeters/{{customMeterId}}","description":"<p>A <code>PUT</code> request will update a custom meter with a matching identifier.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":true,"source":{"_postman_id":"fd28e1dd-5f8a-4ca5-968f-35e9b053b3cf","id":"fd28e1dd-5f8a-4ca5-968f-35e9b053b3cf","name":"WatchWire API","type":"collection"}},"urlObject":{"path":["custommeters","{{customMeterId}}"],"host":["{{gateway-realtime-api}}"],"query":[],"variable":[]}},"response":[{"id":"6082afa3-737f-4397-836a-1472a7a25361","name":"Update Custom Meter","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n  \"utilityAccountNumber\" : \"6789\",\n  \"accountId\" : 500,\n  \"submeterAccountId\" : null,\n  \"meterNumber\" : \"5678\",\n  \"type\" : \"realtime\",\n  \"multiplier\" : 100,\n  \"readingsPerHour\" : 18,\n  \"name\" : \"Meter: 5678\",\n  \"timezone\" : \"UTC\",\n  \"displayTimezone\" : \"UTC\",\n  \"meterProvider\" : \"OBVIUS_METER\",\n  \"energyUnit\" : \"MW\",\n  \"energyUnitCode\" : null,\n  \"isCumulative\" : false,\n  \"additionalSettings\" : {\n    \"password\" : \"$2c$90$aXffbba\",\n    \"serialNumber\" : \"001ABCDE\",\n    \"device\" : \"2\",\n    \"readingColumns\" : \"8\",\n    \"timestampColumn\" : 1\n  },\n  \"shiftCumulativeReadings\" : false,\n  \"shiftReadings\" : false,\n  \"cumulative\" : false\n}","options":{"raw":{"language":"json"}}},"url":"{{gateway-realtime-api}}/custommeters/{{customMeterId}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Cowboy"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Sat, 01 Jan 2022 21:44:56 GMT"},{"key":"Expires","value":"0"},{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Pragma","value":"no-cache"},{"key":"Via","value":"1.1 vegur, 1.1 vegur"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 12406,\n    \"utilityAccountNumber\": \"6789\",\n    \"accountId\": 500,\n    \"meterNumber\": \"5678\",\n    \"type\": \"realtime\",\n    \"multiplier\": 100,\n    \"readingsPerHour\": 18,\n    \"name\": \"Meter: 5678\",\n    \"timezone\": \"UTC\",\n    \"displayTimezone\": \"UTC\",\n    \"commodity\": \"electric\",\n    \"meterProvider\": \"OBVIUS_METER\",\n    \"sourceCategory\": \"CONSUMPTION\",\n    \"isCumulative\": false,\n    \"additionalSettings\": {\n        \"password\": \"$2a$10$EZOx5XdmpvES8Oi5WLyJJ.Wc81IegWxyCHid0rq1kdAiM83Ks.Fxu\",\n        \"serialNumber\": \"001ABCDE\",\n        \"device\": \"2\",\n        \"readingColumns\": \"8\",\n        \"timestampColumn\": 1\n    },\n    \"cumulative\": false,\n    \"virtualMeter\": false,\n    \"energyUnitCode\": \"KWH\",\n    \"energyUnit\": \"kWh\"\n}"}],"_postman_id":"991936a6-ce24-4c20-b1c5-ee54585088e2"},{"name":"Delete Custom Meter","id":"dfc007db-c28e-4bb6-a0a2-78e2e22fe0a3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{gateway-realtime-api}}/custommeters/{{customMeterId}}","description":"<p>A <code>DELETE</code> request will delete a custom meter with a matching identifier, and all of it’s associated data including meter readings.</p>\n<blockquote>\n<p>Note: This is a destructive action and cannot be undone.</p>\n</blockquote>\n","auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":true,"source":{"_postman_id":"fd28e1dd-5f8a-4ca5-968f-35e9b053b3cf","id":"fd28e1dd-5f8a-4ca5-968f-35e9b053b3cf","name":"WatchWire API","type":"collection"}},"urlObject":{"path":["custommeters","{{customMeterId}}"],"host":["{{gateway-realtime-api}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"dfc007db-c28e-4bb6-a0a2-78e2e22fe0a3"}],"id":"ff46ce47-83e0-415a-949a-bdb613538122","description":"<p>The Custom Meter resource is used to create, list, and manage custom meters.</p>\n<h4 id=\"customer-meter-settings\">Customer Meter Settings</h4>\n<p>Each custom meter has to specify a \"meter provider\". Meter providers are the manufacturers or system or software owners of real-time data.</p>\n<p><strong>Note:</strong> Each provider has specific settings that affect behavior of how the data is consumed and displayed - it is important to get these get these correct as some settings cannot be modified later.</p>\n<p>The following meter providers are supported:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Meter Provider</th>\n<th>Meter Provider Code</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Generic</td>\n<td>GENERIC_METER</td>\n</tr>\n<tr>\n<td>Obvius</td>\n<td>OBVIUS_METER</td>\n</tr>\n<tr>\n<td>Tesla</td>\n<td>TESLA_METER</td>\n</tr>\n<tr>\n<td>Bloom</td>\n<td>BLOOM_METER</td>\n</tr>\n<tr>\n<td>Amplus</td>\n<td>AMPLUS_METER</td>\n</tr>\n<tr>\n<td>Urjanet</td>\n<td>URJANET_METER</td>\n</tr>\n<tr>\n<td>Virtual</td>\n<td>VIRTUAL_METER</td>\n</tr>\n</tbody>\n</table>\n</div><blockquote>\n<p>The 'meterProvider' field is optional. If left blank the custom meter’s 'meterProvider' will default to a Generic Meter.</p>\n</blockquote>\n<h5 id=\"generic-meter-settings\">Generic Meter Settings</h5>\n<ul>\n<li>When adding a Generic Meter, the additional settings field must be empty.</li>\n</ul>\n<h5 id=\"obvius-meter-settings\">Obvius Meter Settings</h5>\n<ul>\n<li>When adding an Obvius Meter, the following additional settings must be defined:</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Setting</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>password</td>\n<td>Obvius Meter Password</td>\n</tr>\n<tr>\n<td>serialNumber</td>\n<td>Serial Number of Meter</td>\n</tr>\n<tr>\n<td>device</td>\n<td>Device Number</td>\n</tr>\n<tr>\n<td>readingColumns</td>\n<td>Columns corresponding to the reading value</td>\n</tr>\n<tr>\n<td>timestampColumn</td>\n<td>Column corresponding to timestamp</td>\n</tr>\n</tbody>\n</table>\n</div><h5 id=\"tesla-meter-settings\">Tesla Meter Settings</h5>\n<ul>\n<li>When adding an Tesla Meter, the following additional settings must be defined:</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Setting</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>deviceGUID</td>\n<td>GUID of device.</td>\n</tr>\n<tr>\n<td>installationGUID</td>\n<td>GUID of installation site.</td>\n</tr>\n</tbody>\n</table>\n</div><ul>\n<li>The Tesla Meter data source supports the following energy unit:</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Path</th>\n<th>Value</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>energyUnit</td>\n<td>KWH</td>\n</tr>\n</tbody>\n</table>\n</div><h5 id=\"bloom-meter-settings\">Bloom Meter Settings</h5>\n<ul>\n<li>When adding a Bloom Meter, the following additional settings must be defined:</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Setting</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>siteId</td>\n<td>ID of site installation.</td>\n</tr>\n<tr>\n<td>meterReadingMetric</td>\n<td>The metric the custom meter tracks from the Bloom Data File.</td>\n</tr>\n</tbody>\n</table>\n</div><ul>\n<li>The supported metrics that can be tracked from a Bloom Data file are:</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>sourceCategory</th>\n<th>meterReadingMetric</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>PRODUCTION</td>\n<td>POWER</td>\n</tr>\n<tr>\n<td>CONSUMPTION</td>\n<td>FUEL</td>\n</tr>\n<tr>\n<td>CONSUMPTION</td>\n<td>HEATFLOW</td>\n</tr>\n</tbody>\n</table>\n</div><h5 id=\"amplus-meter-settings\">Amplus Meter Settings</h5>\n<ul>\n<li>When adding an Amplus Meter, the following additional settings must be defined:</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Setting</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>plantId</td>\n<td>ID of plant installation.</td>\n</tr>\n</tbody>\n</table>\n</div><ul>\n<li>The Amplus Meter data source supports the following energy unit:</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Path</th>\n<th>Value</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>energyUnit</td>\n<td>KW</td>\n</tr>\n</tbody>\n</table>\n</div><h5 id=\"urjanet-meter-settings\">Urjanet Meter Settings</h5>\n<ul>\n<li>When adding an Urjanet Meter, the following additional settings must be defined:</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Setting</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>meterNumber</td>\n<td>Meter Number of the Urjanet Meter.</td>\n</tr>\n</tbody>\n</table>\n</div><ul>\n<li>The Urjanet Meter data source only supports the \"CONSUMPTION\" Source Category.</li>\n</ul>\n<h5 id=\"virtual-meter-settings\">Virtual Meter Settings</h5>\n<ul>\n<li>A virtual meter allows multiple meters to be rolled-up into one \"virtual\" meter.</li>\n<li>The following Source Categories must be used for Virtual Meters:</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>sourceCategory</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>VIRTUAL_CONSUMPTION</td>\n<td>Indicates the meters being rolled up are all consumption meters.</td>\n</tr>\n<tr>\n<td>VIRTUAL_PRODUCTION</td>\n<td>Indicates the meter being rolled up are all production meters.</td>\n</tr>\n</tbody>\n</table>\n</div><ul>\n<li>The underlying meters in a Virtual Meter must all have the same Source Category and same Commodity. When creating a virtual meter, the meter readings will be rolled-up to the default Energy Unit for its respective commodity.</li>\n</ul>\n<h4 id=\"commodity\">Commodity</h4>\n<p>The following commodities are supported:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Commodity</th>\n<th>Commodity Code</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Electric</td>\n<td>electric</td>\n</tr>\n<tr>\n<td>Steam</td>\n<td>steam</td>\n</tr>\n<tr>\n<td>Natural gas</td>\n<td>natural_gas</td>\n</tr>\n<tr>\n<td>Water and Sewer</td>\n<td>watersewer</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"source-category\">Source Category</h4>\n<p>The 'sourceCategory' field is optional. If left blank the custom meter will default to consumption.</p>\n<p>If the custom meter is a production meter, it’s Production Type must be specified.</p>\n<p><strong>Options for 'sourceCategory'</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>sourceCategory</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>CONSUMPTION</td>\n<td>Indicates the meter consumes its underlying commodity.</td>\n</tr>\n<tr>\n<td>PRODUCTION</td>\n<td>Indicates the meter produces its underlying commodity.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"production-type\">Production Type</h4>\n<p>The 'productionType' field is optional. This field must be specified if the custom meter is a production meter.</p>\n<p><strong>Supported Production Types</strong></p>\n<ol>\n<li>FUELCELL</li>\n<li>SOLAR</li>\n<li>COGEN</li>\n</ol>\n<h4 id=\"energy-unit\">Energy Unit</h4>\n<ul>\n<li>The 'energyUnit' field is optional. If not specified, the custom meter’s 'energyUnit' be set to the default energy unit for a commodity.</li>\n<li>The Energy Unit code must be used when setting the 'energyUnit' field.</li>\n</ul>\n<h5 id=\"default-energy-unit-codes-for-commodities\">Default Energy Unit Codes for Commodities</h5>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Commodity</th>\n<th>Default Energy Unit Codes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Electric</td>\n<td>KW</td>\n</tr>\n<tr>\n<td>Water</td>\n<td>CCF</td>\n</tr>\n<tr>\n<td>Steam</td>\n<td>MLBSH</td>\n</tr>\n<tr>\n<td>Natural Gas</td>\n<td>THERMSH</td>\n</tr>\n</tbody>\n</table>\n</div><h5 id=\"supported-energy-units-for-commodities\">Supported Energy Units for Commodities</h5>\n<h6 id=\"electric\">Electric</h6>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Energy Unit</th>\n<th>Energy Unit Code</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>kW</td>\n<td>KW</td>\n</tr>\n<tr>\n<td>MW</td>\n<td>MW</td>\n</tr>\n</tbody>\n</table>\n</div><h6 id=\"water\">Water</h6>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Energy Unit</th>\n<th>Energy Unit Code</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>ccf</td>\n<td>CCF</td>\n</tr>\n<tr>\n<td>CF</td>\n<td>CF</td>\n</tr>\n<tr>\n<td>gallons</td>\n<td>GAL</td>\n</tr>\n<tr>\n<td>HCF</td>\n<td>HCF</td>\n</tr>\n<tr>\n<td>KGAL</td>\n<td>KGAL</td>\n</tr>\n</tbody>\n</table>\n</div><h6 id=\"steam\">Steam</h6>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Energy Unit</th>\n<th>Energy Unit Code</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>kBtu/hr</td>\n<td>KBTUH</td>\n</tr>\n<tr>\n<td>Mlb/hr</td>\n<td>MLBH</td>\n</tr>\n<tr>\n<td>MMBtu/hr</td>\n<td>MMBTUH</td>\n</tr>\n</tbody>\n</table>\n</div><h6 id=\"natural-gas\">Natural Gas</h6>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Energy Unit</th>\n<th>Energy Unit Code</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>ccf/hr</td>\n<td>CCFH</td>\n</tr>\n<tr>\n<td>decatherms/hr</td>\n<td>DECATHERMSH</td>\n</tr>\n<tr>\n<td>kBtu/hr</td>\n<td>KBTUH</td>\n</tr>\n<tr>\n<td>MCF/hr</td>\n<td>MCFH</td>\n</tr>\n<tr>\n<td>MMBtu/hr</td>\n<td>MMBTUH</td>\n</tr>\n<tr>\n<td>therms/hr</td>\n<td>THERMH</td>\n</tr>\n</tbody>\n</table>\n</div>","event":[{"listen":"prerequest","script":{"id":"c3b4318f-93bd-4f87-b7bd-1173b83aff8b","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"d8b605ce-9380-476b-9263-103e0e9130ad","type":"text/javascript","exec":[""]}}],"_postman_id":"ff46ce47-83e0-415a-949a-bdb613538122","auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":true,"source":{"_postman_id":"fd28e1dd-5f8a-4ca5-968f-35e9b053b3cf","id":"fd28e1dd-5f8a-4ca5-968f-35e9b053b3cf","name":"WatchWire API","type":"collection"}}},{"name":"Meter Readings","item":[{"name":"Get Details For Meter Reading","id":"a8b9e3b5-7fde-44c0-8d11-274f45f5edf9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":false},"method":"GET","header":[],"url":"{{gateway-realtime-api}}/meterreadings/1","description":"<p>A <code>GET</code> request will find a meter reading with a matching identifier.</p>\n","urlObject":{"path":["meterreadings","1"],"host":["{{gateway-realtime-api}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"a8b9e3b5-7fde-44c0-8d11-274f45f5edf9"},{"name":"Get All Readings For Custom Meter","id":"5fc1c6e7-279b-42bd-98a6-f302022e1034","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":false},"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{gateway-realtime-api}}/custommeters/12404/meterreadings","description":"<p>A <code>GET</code> request will find all meter readings for the custom meter with a matching identifier.</p>\n","urlObject":{"path":["custommeters","12404","meterreadings"],"host":["{{gateway-realtime-api}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"5fc1c6e7-279b-42bd-98a6-f302022e1034"},{"name":"Get All Readings For Custom Meter For Timeframe","id":"5400b89c-8d87-4e82-bd38-2a0642f0749d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"meterId\" : 1,\n  \"startDate\" : \"2015-01-01T05:00:00.000+00:00\",\n  \"endDate\" : \"2020-07-31T04:00:00.000+00:00\"\n}"},"url":"{{gateway-realtime-api}}/meterreadings/summary/timeframe","description":"<p>A <code>POST</code> request will find all meter readings for the custom meter and specified time interval.</p>\n","urlObject":{"path":["meterreadings","summary","timeframe"],"host":["{{gateway-realtime-api}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"5400b89c-8d87-4e82-bd38-2a0642f0749d"},{"name":"Get All Readings  For List Of Custom Meters","id":"9467ba0e-c717-410d-bb3f-68e71dafc518","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"meterIds\" : [ 1, 2 ]\n}"},"url":"{{gateway-realtime-api}}/meterreadings/custommeters","description":"<p>A <code>POST</code> request will find all meter readings for the list of custom meters.</p>\n","urlObject":{"path":["meterreadings","custommeters"],"host":["{{gateway-realtime-api}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"9467ba0e-c717-410d-bb3f-68e71dafc518"},{"name":"Add Readings For Custom Meter","id":"6f0d2140-cd8e-45f9-9cb7-37b41ad0fbeb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token1}}"},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"timestamp\": \"2020-01-02T19:00:00.000+0000\",\n    \"value\": 5\n}","options":{"raw":{"language":"json"}}},"url":"{{gateway-realtime-api}}/custommeters/30/meterreadings","description":"<p>A <code>POST</code> request will create a meter reading for the custom meter with a matching identifier.</p>\n<blockquote>\n<p>A constraint violation error will occur if a custom meter has an existing meter reading for a given timestamp.</p>\n</blockquote>\n<h5 id=\"timestamp-format\">Timestamp Format</h5>\n<p>The timestamp must be in the ISO 8601 standard format. The following are examples of supported formats:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Format</th>\n<th>Example</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>YYYY-MM-DDTHH:mm:ss.SSSZ</td>\n<td>2020-01-03T09:07:21.215Z</td>\n</tr>\n<tr>\n<td>YYYY-MM-DDTHH:mm:ss.SSZ</td>\n<td>2020-01-03T09:07:21.21Z</td>\n</tr>\n<tr>\n<td>YYYY-MM-DDTHH:mm:ss.SZ</td>\n<td>2020-01-03T09:07:21.2Z</td>\n</tr>\n<tr>\n<td>YYYY-MM-DDTHH:mm:ss.SSS</td>\n<td>2020-01-03T09:07:21.215</td>\n</tr>\n<tr>\n<td>YYYY-MM-DDTHH:mm:ss.SS</td>\n<td>2020-01-03T09:07:21.21</td>\n</tr>\n<tr>\n<td>YYYY-MM-DDTHH:mm:ssZ</td>\n<td>2020-01-03T09:07:21Z</td>\n</tr>\n<tr>\n<td>YYYY-MM-DDTHH:mm:ss</td>\n<td>2020-01-03T09:07:21</td>\n</tr>\n<tr>\n<td>YYYY-MM-DDTHH:mmZ</td>\n<td>2020-01-03T09:07Z</td>\n</tr>\n<tr>\n<td>YYYY-MM-DDTHH:mm</td>\n<td>2020-01-03T09:07</td>\n</tr>\n</tbody>\n</table>\n</div><h5 id=\"meter-reading-value-format\">Meter Reading Value Format</h5>\n<p>The maximum allowed scale for a meter reading value is limited to 16 digits, with the precision limited to 4 digits. Any meter reading values that exceed the precision of 4 digits will be rounded and result in a loss of precision.</p>\n<p>The input also accepts scientific notation formats such as \"2.5E+8\". These values are constrained by the limitations above.</p>\n","urlObject":{"path":["custommeters","30","meterreadings"],"host":["{{gateway-realtime-api}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"6f0d2140-cd8e-45f9-9cb7-37b41ad0fbeb"},{"name":"Update Meter Reading For Custom Meter","id":"015fb931-6499-43cb-ab55-2346222a0551","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token1}}"},"isInherited":false},"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"timestamp\": \"2020-01-04T19:00:00.000+0000\",\n    \"value\": 13\n}","options":{"raw":{"language":"json"}}},"url":"{{gateway-realtime-api}}/custommeters/30/meterreadings/10","description":"<p>A <code>PUT</code> request will update a meter reading for the custom meter with a matching identifier.</p>\n","urlObject":{"path":["custommeters","30","meterreadings","10"],"host":["{{gateway-realtime-api}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"015fb931-6499-43cb-ab55-2346222a0551"},{"name":"Delete All Readings For Custom Meter","id":"f292d740-a442-41db-88c1-501641ed4bd4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":false},"method":"DELETE","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{gateway-realtime-api}}/custommeters/1/meterreadings","description":"<p>A <code>DELETE</code> request will delete all meter readings for the custom meter with a matching identifier.</p>\n<blockquote>\n<p>Warning: This is a destructive action that can't be undone and can potentially erase a large dataset. Use with caution.</p>\n</blockquote>\n","urlObject":{"path":["custommeters","1","meterreadings"],"host":["{{gateway-realtime-api}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"f292d740-a442-41db-88c1-501641ed4bd4"},{"name":"Delete Reading For Custom Meter","id":"ad23456e-b49f-4ea3-a699-c6515284fb13","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":false},"method":"DELETE","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{gateway-realtime-api}}/custommeters/1/meterreadings/7049","description":"<p>A <code>DELETE</code> request will delete a meter reading with a matching identifier.</p>\n","urlObject":{"path":["custommeters","1","meterreadings","7049"],"host":["{{gateway-realtime-api}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"ad23456e-b49f-4ea3-a699-c6515284fb13"}],"id":"cd48176e-5254-493f-93ec-3d45e25adcde","description":"<p>The Meter Readings resources is used to create, list, and manage meter readings. All meter readings are associated with a custom meter, and are comprised of timestamp based values that represent an energy or non-energy measurement (such as water) that has been used for a given time interval.</p>\n<blockquote>\n<p>The timestamp typically represents the end of the interval. Ie. below example represents 8400 of kW (average kW) for the 15 minute interval ending at 12pm.<br />If this was kWh, then it's total consumption (sum kWh) for the interval.</p>\n</blockquote>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-http\">{\"id\":123,\"timestamp\":\"2021-12-07T12:00:00.000+00:00\",\"value\":\"8400.0000\",\"energyUnit\":\"kW\",\"customMeterId\":1}\n</code></pre>\n","_postman_id":"cd48176e-5254-493f-93ec-3d45e25adcde","auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":true,"source":{"_postman_id":"fd28e1dd-5f8a-4ca5-968f-35e9b053b3cf","id":"fd28e1dd-5f8a-4ca5-968f-35e9b053b3cf","name":"WatchWire API","type":"collection"}}},{"name":"Meter Readings Aggregations","item":[{"name":"Aggregate Readings By Accounts - YTD","id":"8ef1511d-6fa4-4e17-ba0f-0f2f36ef4518","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"accountIds\": [\"43632\", \"14449\"]\n}","options":{"raw":{"language":"json"}}},"url":"{{gateway-realtime-api}}/meterreadings/ytd","description":"<p>A <code>POST</code> request will sum meter reading data from the beginning of the current year to the present date, and group by accounts.</p>\n<p><em>Request Body Structure</em></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Path</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>accountIds</code></td>\n<td><code>Array</code></td>\n<td>Account IDs of the custom meters.</td>\n</tr>\n</tbody>\n</table>\n</div><p><em>Response Body Structure</em></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Path</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>consumptionYTDReadings</code></td>\n<td><code>Array</code></td>\n<td>Consumption YTD Meter Readings grouped by account ids, with energy units in kBtu.</td>\n</tr>\n<tr>\n<td><code>productionYTDReadings</code></td>\n<td><code>Array</code></td>\n<td>Production YTD Meter Readings grouped by account ids, with energy units in kWh.</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["meterreadings","ytd"],"host":["{{gateway-realtime-api}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"8ef1511d-6fa4-4e17-ba0f-0f2f36ef4518"},{"name":"Aggregate Readings By Commodities","id":"c7425cbf-4460-42f0-9960-11e255f34a7c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n\t\"meterIds\": [\"1\", \"2\"]\n}","options":{"raw":{"language":"json"}}},"url":"{{gateway-realtime-api}}/meterreadings/summary/commodity","description":"<p>A <code>POST</code> request will sum meter reading data by commodities into aggregation intervals.</p>\n<p><strong>The supported aggregation intervals are</strong></p>\n<ol>\n<li>Day</li>\n<li>Week</li>\n<li>Month</li>\n<li>Prior year</li>\n</ol>\n<p><em>Request Body Structure</em></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Path</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>meterIds</code></td>\n<td><code>Array</code></td>\n<td>The meter IDs of the custom meters.</td>\n</tr>\n</tbody>\n</table>\n</div><p><em>Response Body Structure</em></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Path</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>day</code></td>\n<td><code>Array</code></td>\n<td>Meter Readings aggregated for the past 24 hours.</td>\n</tr>\n<tr>\n<td><code>week</code></td>\n<td><code>Array</code></td>\n<td>Meter Readings aggregated for the past 1 week.</td>\n</tr>\n<tr>\n<td><code>month</code></td>\n<td><code>Array</code></td>\n<td>Meter Readings aggregated for the past 24 hours.</td>\n</tr>\n<tr>\n<td><code>lastYear</code></td>\n<td><code>Array</code></td>\n<td>Meter Readings aggregated for the past 1 year.</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["meterreadings","summary","commodity"],"host":["{{gateway-realtime-api}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"c7425cbf-4460-42f0-9960-11e255f34a7c"},{"name":"Aggregate Readings By Custom Meter","id":"aff3099e-05bd-45db-a6c8-9795c1742286","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n\t\"meterIds\": [\"1\", \"2\"]\n}","options":{"raw":{"language":"json"}}},"url":"{{gateway-realtime-api}}/meterreadings/aggregate/custommeters/{meterId}","description":"<p>A <code>GET</code> request will sum meter reading data for a custom meter into aggregation intervals.</p>\n<p><strong>The supported aggregation intervals are</strong></p>\n<ol>\n<li>Day</li>\n<li>Week</li>\n<li>Month</li>\n<li>Prior year</li>\n</ol>\n<p><em>Request URL Structure: /meterreadings/aggregate/custommeters/{meterId}</em></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>meterId</code></td>\n<td>The custom meter’s unique identifier.</td>\n</tr>\n</tbody>\n</table>\n</div><p><em>Response Body Structure</em></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Path</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>day</code></td>\n<td><code>Array</code></td>\n<td>Meter Readings aggregated for the past 24 hours.</td>\n</tr>\n<tr>\n<td><code>week</code></td>\n<td><code>Array</code></td>\n<td>Meter Readings aggregated for the past 1 week.</td>\n</tr>\n<tr>\n<td><code>month</code></td>\n<td><code>Array</code></td>\n<td>Meter Readings aggregated for the past 24 hours.</td>\n</tr>\n<tr>\n<td><code>lastYear</code></td>\n<td><code>Array</code></td>\n<td>Meter Readings aggregated for the past 1 year.</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["meterreadings","aggregate","custommeters","{meterId}"],"host":["{{gateway-realtime-api}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"aff3099e-05bd-45db-a6c8-9795c1742286"},{"name":"Aggregate Readings By List Of Custom Meters","id":"342a42ea-9685-4cd7-a0fa-d480ac018e38","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n\t\"meterIds\": [\"1\", \"2\"]\n}","options":{"raw":{"language":"json"}}},"url":"{{gateway-realtime-api}}/meterreadings/summary/commodity","description":"<p>A <code>POST</code> request will sum meter reading data by custom meters into aggregation intervals.</p>\n<p><strong>The supported aggregation intervals are</strong></p>\n<ol>\n<li>Day</li>\n<li>Week</li>\n<li>Month</li>\n<li>Prior year</li>\n</ol>\n<p><em>Request Body Structure</em></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Path</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>meterIds</code></td>\n<td><code>Array</code></td>\n<td>The meter IDs of the custom meters.</td>\n</tr>\n</tbody>\n</table>\n</div><p><em>Response Body Structure</em></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Path</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>day</code></td>\n<td><code>Array</code></td>\n<td>Meter Readings aggregated for the past 24 hours.</td>\n</tr>\n<tr>\n<td><code>week</code></td>\n<td><code>Array</code></td>\n<td>Meter Readings aggregated for the past 1 week.</td>\n</tr>\n<tr>\n<td><code>month</code></td>\n<td><code>Array</code></td>\n<td>Meter Readings aggregated for the past 24 hours.</td>\n</tr>\n<tr>\n<td><code>lastYear</code></td>\n<td><code>Array</code></td>\n<td>Meter Readings aggregated for the past 1 year.</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["meterreadings","summary","commodity"],"host":["{{gateway-realtime-api}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"342a42ea-9685-4cd7-a0fa-d480ac018e38"}],"id":"f7dfb493-5de8-423b-b4a6-6b410cf84940","description":"<p>The Meter Reading Aggregations resources is used to efficiently aggregate large amounts of meter reading data.</p>\n<p>All aggregations are converted to the universal 'kBtu' Unit.</p>\n","_postman_id":"f7dfb493-5de8-423b-b4a6-6b410cf84940","auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":true,"source":{"_postman_id":"fd28e1dd-5f8a-4ca5-968f-35e9b053b3cf","id":"fd28e1dd-5f8a-4ca5-968f-35e9b053b3cf","name":"WatchWire API","type":"collection"}}},{"name":"Meter Readings Batch Operations","item":[{"name":"Batch Add Meter Readings","event":[{"listen":"test","script":{"id":"4cee530d-4a24-4880-8f85-7b1e80739175","exec":["pm.test(\"Body matches string\", function () {","    pm.expect(pm.response.text()).to.include(\"Success\");","});","","pm.test(\"Response includes keys\", function () {","     pm.expect(pm.response.json()[0]).to.include.keys(\"body\");","});","","pm.environment.unset(\"today\");","pm.environment.unset(\"pastWeek\");","","pm.environment.unset(\"past1Month_wk1\");","pm.environment.unset(\"past1Month_wk2\");","","pm.environment.unset(\"past2Month_wk1\");","pm.environment.unset(\"past2Month_wk2\");","","pm.environment.unset(\"past3Month_wk1\");","pm.environment.unset(\"past3Month_wk2\");","","pm.environment.unset(\"past4Month_wk1\");","pm.environment.unset(\"past4Month_wk2\");",""],"type":"text/javascript"}},{"listen":"prerequest","script":{"id":"a34fbaad-b961-447c-a243-c8c5c80176e4","exec":["var moment = require(\"moment\");","","var today = moment().format(\"YYYY-MM-DD\");","var pastWeek = moment().subtract('1', 'weeks').add('1', 'days').format(\"YYYY-MM-DD\");","","var past1Month_wk1 = moment().subtract('1', 'months').add('1', 'days').format(\"YYYY-MM-DD\");","var past1Month_wk2 = moment().subtract('1', 'months').subtract('1', 'weeks').add('1', 'days').format(\"YYYY-MM-DD\");","","var past2Month_wk1 = moment().subtract('2', 'months').add('1', 'days').format(\"YYYY-MM-DD\");","var past2Month_wk2 = moment().subtract('2', 'months').subtract('1', 'weeks').add('1', 'days').format(\"YYYY-MM-DD\");","","var past3Month_wk1 = moment().subtract('3', 'months').add('1', 'days').format(\"YYYY-MM-DD\");","var past3Month_wk2 = moment().subtract('3', 'months').subtract('1', 'weeks').add('1', 'days').format(\"YYYY-MM-DD\");","","var past4Month_wk1 = moment().subtract('4', 'months').add('1', 'days').format(\"YYYY-MM-DD\");","var past4Month_wk2 = moment().subtract('4', 'months').subtract('1', 'weeks').add('1', 'days').format(\"YYYY-MM-DD\");","","pm.environment.set(\"today\", today);","pm.environment.set(\"pastWeek\", pastWeek);","","pm.environment.set(\"past1Month_wk1\", past1Month_wk1);","pm.environment.set(\"past1Month_wk2\", past1Month_wk2);","","pm.environment.set(\"past2Month_wk1\", past2Month_wk1);","pm.environment.set(\"past2Month_wk2\", past2Month_wk2);","","pm.environment.set(\"past3Month_wk1\", past3Month_wk1);","pm.environment.set(\"past3Month_wk2\", past3Month_wk2);","","pm.environment.set(\"past4Month_wk1\", past4Month_wk1);","pm.environment.set(\"past4Month_wk2\", past4Month_wk2);",""],"type":"text/javascript"}}],"id":"700a8034-a4f0-45fb-aabf-e77aec399398","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token1}}"},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"[\n    {\n        \"timestamp\": \"{{today}}T14:00:00.000+0000\",\n        \"value\": 10,\n        \"meterId\": {{customMeterIdAgg1}}\n    },\n    {\n        \"timestamp\": \"{{today}}T14:15:00.000+0000\",\n        \"value\": 15,\n        \"meterId\": {{customMeterIdAgg1}}\n    },\n    {\n        \"timestamp\": \"{{today}}T14:30:00.000+0000\",\n        \"value\": 20,\n        \"meterId\": {{customMeterIdAgg1}}\n    },\n    {\n        \"timestamp\": \"{{today}}T14:45:00.000+0000\",\n        \"value\": 25,\n        \"meterId\": {{customMeterIdAgg1}}\n    },\n        {\n        \"timestamp\": \"{{today}}T15:00:00.000+0000\",\n        \"value\": 30,\n        \"meterId\": {{customMeterIdAgg1}}\n    },\n    {\n        \"timestamp\": \"{{today}}T15:15:00.000+0000\",\n        \"value\": 35,\n        \"meterId\": {{customMeterIdAgg1}}\n    },\n    {\n        \"timestamp\": \"{{today}}T15:30:00.000+0000\",\n        \"value\": 40,\n        \"meterId\": {{customMeterIdAgg1}}\n    },\n    {\n        \"timestamp\": \"{{today}}T15:45:00.000+0000\",\n        \"value\": 45,\n        \"meterId\": {{customMeterIdAgg1}}\n    },\n    {\n        \"timestamp\": \"{{pastWeek}}T14:00:00.000+0000\",\n        \"value\": 10,\n        \"meterId\": {{customMeterIdAgg1}}\n    },\n    {\n        \"timestamp\": \"{{pastWeek}}T14:15:00.000+0000\",\n        \"value\": 15,\n        \"meterId\": {{customMeterIdAgg1}}\n    },\n    {\n        \"timestamp\": \"{{pastWeek}}T14:30:00.000+0000\",\n        \"value\": 20,\n        \"meterId\": {{customMeterIdAgg1}}\n    },\n    {\n        \"timestamp\": \"{{pastWeek}}T14:45:00.000+0000\",\n        \"value\": 25,\n        \"meterId\": {{customMeterIdAgg1}}\n    },\n        {\n        \"timestamp\": \"{{pastWeek}}T15:00:00.000+0000\",\n        \"value\": 30,\n        \"meterId\": {{customMeterIdAgg1}}\n    },\n    {\n        \"timestamp\": \"{{pastWeek}}T15:15:00.000+0000\",\n        \"value\": 35,\n        \"meterId\": {{customMeterIdAgg1}}\n    },\n    {\n        \"timestamp\": \"{{pastWeek}}T15:30:00.000+0000\",\n        \"value\": 40,\n        \"meterId\": {{customMeterIdAgg1}}\n    },\n    {\n        \"timestamp\": \"{{pastWeek}}T15:45:00.000+0000\",\n        \"value\": 45,\n        \"meterId\": {{customMeterIdAgg1}}\n    },\n    {\n        \"timestamp\": \"{{past1Month_wk1}}T14:00:00.000+0000\",\n        \"value\": 10,\n        \"meterId\": {{customMeterIdAgg1}}\n    },\n    {\n        \"timestamp\": \"{{past1Month_wk1}}T14:15:00.000+0000\",\n        \"value\": 15,\n        \"meterId\": {{customMeterIdAgg1}}\n    },\n    {\n        \"timestamp\": \"{{past1Month_wk1}}T14:30:00.000+0000\",\n        \"value\": 20,\n        \"meterId\": {{customMeterIdAgg1}}\n    },\n    {\n        \"timestamp\": \"{{past1Month_wk1}}T14:45:00.000+0000\",\n        \"value\": 25,\n        \"meterId\": {{customMeterIdAgg1}}\n    },\n        {\n        \"timestamp\": \"{{past1Month_wk1}}T15:00:00.000+0000\",\n        \"value\": 30,\n        \"meterId\": {{customMeterIdAgg1}}\n    },\n    {\n        \"timestamp\": \"{{past1Month_wk1}}T15:15:00.000+0000\",\n        \"value\": 35,\n        \"meterId\": {{customMeterIdAgg1}}\n    },\n    {\n        \"timestamp\": \"{{past1Month_wk1}}T15:30:00.000+0000\",\n        \"value\": 40,\n        \"meterId\": {{customMeterIdAgg1}}\n    },\n    {\n        \"timestamp\": \"{{past1Month_wk1}}T15:45:00.000+0000\",\n        \"value\": 45,\n        \"meterId\": {{customMeterIdAgg1}}\n    },\n    {\n        \"timestamp\": \"{{past1Month_wk2}}T14:00:00.000+0000\",\n        \"value\": 10,\n        \"meterId\": {{customMeterIdAgg1}}\n    },\n    {\n        \"timestamp\": \"{{past1Month_wk2}}T14:15:00.000+0000\",\n        \"value\": 15,\n        \"meterId\": {{customMeterIdAgg1}}\n    },\n    {\n        \"timestamp\": \"{{past1Month_wk2}}T14:30:00.000+0000\",\n        \"value\": 20,\n        \"meterId\": {{customMeterIdAgg1}}\n    },\n    {\n        \"timestamp\": \"{{past1Month_wk2}}T14:45:00.000+0000\",\n        \"value\": 25,\n        \"meterId\": {{customMeterIdAgg1}}\n    },\n        {\n        \"timestamp\": \"{{past1Month_wk2}}T15:00:00.000+0000\",\n        \"value\": 30,\n        \"meterId\": {{customMeterIdAgg1}}\n    },\n    {\n        \"timestamp\": \"{{past1Month_wk2}}T15:15:00.000+0000\",\n        \"value\": 35,\n        \"meterId\": {{customMeterIdAgg1}}\n    },\n    {\n        \"timestamp\": \"{{past1Month_wk2}}T15:30:00.000+0000\",\n        \"value\": 40,\n        \"meterId\": {{customMeterIdAgg1}}\n    },\n    {\n        \"timestamp\": \"{{past1Month_wk2}}T15:45:00.000+0000\",\n        \"value\": 45,\n        \"meterId\": {{customMeterIdAgg1}}\n    },\n    {\n        \"timestamp\": \"{{past2Month_wk1}}T14:00:00.000+0000\",\n        \"value\": 10,\n        \"meterId\": {{customMeterIdAgg1}}\n    },\n    {\n        \"timestamp\": \"{{past2Month_wk1}}T14:15:00.000+0000\",\n        \"value\": 15,\n        \"meterId\": {{customMeterIdAgg1}}\n    },\n    {\n        \"timestamp\": \"{{past2Month_wk1}}T14:30:00.000+0000\",\n        \"value\": 20,\n        \"meterId\": {{customMeterIdAgg1}}\n    },\n    {\n        \"timestamp\": \"{{past2Month_wk1}}T14:45:00.000+0000\",\n        \"value\": 25,\n        \"meterId\": {{customMeterIdAgg1}}\n    },\n        {\n        \"timestamp\": \"{{past2Month_wk1}}T15:00:00.000+0000\",\n        \"value\": 30,\n        \"meterId\": {{customMeterIdAgg1}}\n    },\n    {\n        \"timestamp\": \"{{past2Month_wk1}}T15:15:00.000+0000\",\n        \"value\": 35,\n        \"meterId\": {{customMeterIdAgg1}}\n    },\n    {\n        \"timestamp\": \"{{past2Month_wk1}}T15:30:00.000+0000\",\n        \"value\": 40,\n        \"meterId\": {{customMeterIdAgg1}}\n    },\n    {\n        \"timestamp\": \"{{past2Month_wk1}}T15:45:00.000+0000\",\n        \"value\": 45,\n        \"meterId\": {{customMeterIdAgg1}}\n    },\n    {\n        \"timestamp\": \"{{past2Month_wk2}}T14:00:00.000+0000\",\n        \"value\": 10,\n        \"meterId\": {{customMeterIdAgg1}}\n    },\n    {\n        \"timestamp\": \"{{past2Month_wk2}}T14:15:00.000+0000\",\n        \"value\": 15,\n        \"meterId\": {{customMeterIdAgg1}}\n    },\n    {\n        \"timestamp\": \"{{past2Month_wk2}}T14:30:00.000+0000\",\n        \"value\": 20,\n        \"meterId\": {{customMeterIdAgg1}}\n    },\n    {\n        \"timestamp\": \"{{past2Month_wk2}}T14:45:00.000+0000\",\n        \"value\": 25,\n        \"meterId\": {{customMeterIdAgg1}}\n    },\n        {\n        \"timestamp\": \"{{past2Month_wk2}}T15:00:00.000+0000\",\n        \"value\": 30,\n        \"meterId\": {{customMeterIdAgg1}}\n    },\n    {\n        \"timestamp\": \"{{past2Month_wk2}}T15:15:00.000+0000\",\n        \"value\": 35,\n        \"meterId\": {{customMeterIdAgg1}}\n    },\n    {\n        \"timestamp\": \"{{past2Month_wk2}}T15:30:00.000+0000\",\n        \"value\": 40,\n        \"meterId\": {{customMeterIdAgg1}}\n    },\n    {\n        \"timestamp\": \"{{past2Month_wk2}}T15:45:00.000+0000\",\n        \"value\": 45,\n        \"meterId\": {{customMeterIdAgg1}}\n    },\n    {\n        \"timestamp\": \"{{past3Month_wk1}}T14:00:00.000+0000\",\n        \"value\": 10,\n        \"meterId\": {{customMeterIdAgg1}}\n    },\n    {\n        \"timestamp\": \"{{past3Month_wk1}}T14:15:00.000+0000\",\n        \"value\": 15,\n        \"meterId\": {{customMeterIdAgg1}}\n    },\n    {\n        \"timestamp\": \"{{past3Month_wk1}}T14:30:00.000+0000\",\n        \"value\": 20,\n        \"meterId\": {{customMeterIdAgg1}}\n    },\n    {\n        \"timestamp\": \"{{past3Month_wk1}}T14:45:00.000+0000\",\n        \"value\": 25,\n        \"meterId\": {{customMeterIdAgg1}}\n    },\n        {\n        \"timestamp\": \"{{past3Month_wk1}}T15:00:00.000+0000\",\n        \"value\": 30,\n        \"meterId\": {{customMeterIdAgg1}}\n    },\n    {\n        \"timestamp\": \"{{past3Month_wk1}}T15:15:00.000+0000\",\n        \"value\": 35,\n        \"meterId\": {{customMeterIdAgg1}}\n    },\n    {\n        \"timestamp\": \"{{past3Month_wk1}}T15:30:00.000+0000\",\n        \"value\": 40,\n        \"meterId\": {{customMeterIdAgg1}}\n    },\n    {\n        \"timestamp\": \"{{past3Month_wk1}}T15:45:00.000+0000\",\n        \"value\": 45,\n        \"meterId\": {{customMeterIdAgg1}}\n    },\n    {\n        \"timestamp\": \"{{past3Month_wk2}}T14:00:00.000+0000\",\n        \"value\": 10,\n        \"meterId\": {{customMeterIdAgg1}}\n    },\n    {\n        \"timestamp\": \"{{past3Month_wk2}}T14:15:00.000+0000\",\n        \"value\": 15,\n        \"meterId\": {{customMeterIdAgg1}}\n    },\n    {\n        \"timestamp\": \"{{past3Month_wk2}}T14:30:00.000+0000\",\n        \"value\": 20,\n        \"meterId\": {{customMeterIdAgg1}}\n    },\n    {\n        \"timestamp\": \"{{past3Month_wk2}}T14:45:00.000+0000\",\n        \"value\": 25,\n        \"meterId\": {{customMeterIdAgg1}}\n    },\n        {\n        \"timestamp\": \"{{past3Month_wk2}}T15:00:00.000+0000\",\n        \"value\": 30,\n        \"meterId\": {{customMeterIdAgg1}}\n    },\n    {\n        \"timestamp\": \"{{past3Month_wk2}}T15:15:00.000+0000\",\n        \"value\": 35,\n        \"meterId\": {{customMeterIdAgg1}}\n    },\n    {\n        \"timestamp\": \"{{past3Month_wk2}}T15:30:00.000+0000\",\n        \"value\": 40,\n        \"meterId\": {{customMeterIdAgg1}}\n    },\n    {\n        \"timestamp\": \"{{past3Month_wk2}}T15:45:00.000+0000\",\n        \"value\": 45,\n        \"meterId\": {{customMeterIdAgg1}}\n    },\n    {\n        \"timestamp\": \"{{past4Month_wk1}}T14:00:00.000+0000\",\n        \"value\": 10,\n        \"meterId\": {{customMeterIdAgg1}}\n    },\n    {\n        \"timestamp\": \"{{past4Month_wk1}}T14:15:00.000+0000\",\n        \"value\": 15,\n        \"meterId\": {{customMeterIdAgg1}}\n    },\n    {\n        \"timestamp\": \"{{past4Month_wk1}}T14:30:00.000+0000\",\n        \"value\": 20,\n        \"meterId\": {{customMeterIdAgg1}}\n    },\n    {\n        \"timestamp\": \"{{past4Month_wk1}}T14:45:00.000+0000\",\n        \"value\": 25,\n        \"meterId\": {{customMeterIdAgg1}}\n    },\n        {\n        \"timestamp\": \"{{past4Month_wk1}}T15:00:00.000+0000\",\n        \"value\": 30,\n        \"meterId\": {{customMeterIdAgg1}}\n    },\n    {\n        \"timestamp\": \"{{past4Month_wk1}}T15:15:00.000+0000\",\n        \"value\": 35,\n        \"meterId\": {{customMeterIdAgg1}}\n    },\n    {\n        \"timestamp\": \"{{past4Month_wk1}}T15:30:00.000+0000\",\n        \"value\": 40,\n        \"meterId\": {{customMeterIdAgg1}}\n    },\n    {\n        \"timestamp\": \"{{past4Month_wk1}}T15:45:00.000+0000\",\n        \"value\": 45,\n        \"meterId\": {{customMeterIdAgg1}}\n    },\n    {\n        \"timestamp\": \"{{past4Month_wk2}}T14:00:00.000+0000\",\n        \"value\": 10,\n        \"meterId\": {{customMeterIdAgg1}}\n    },\n    {\n        \"timestamp\": \"{{past4Month_wk2}}T14:15:00.000+0000\",\n        \"value\": 15,\n        \"meterId\": {{customMeterIdAgg1}}\n    },\n    {\n        \"timestamp\": \"{{past4Month_wk2}}T14:30:00.000+0000\",\n        \"value\": 20,\n        \"meterId\": {{customMeterIdAgg1}}\n    },\n    {\n        \"timestamp\": \"{{past4Month_wk2}}T14:45:00.000+0000\",\n        \"value\": 25,\n        \"meterId\": {{customMeterIdAgg1}}\n    },\n        {\n        \"timestamp\": \"{{past4Month_wk2}}T15:00:00.000+0000\",\n        \"value\": 30,\n        \"meterId\": {{customMeterIdAgg1}}\n    },\n    {\n        \"timestamp\": \"{{past4Month_wk2}}T15:15:00.000+0000\",\n        \"value\": 35,\n        \"meterId\": {{customMeterIdAgg1}}\n    },\n    {\n        \"timestamp\": \"{{past4Month_wk2}}T15:30:00.000+0000\",\n        \"value\": 40,\n        \"meterId\": {{customMeterIdAgg1}}\n    },\n    {\n        \"timestamp\": \"{{past4Month_wk2}}T15:45:00.000+0000\",\n        \"value\": 45,\n        \"meterId\": {{customMeterIdAgg1}}\n    }\n]","options":{"raw":{"language":"json"}}},"url":"{{gateway-realtime-api}}/meterreadings-collection:batchAdd","urlObject":{"path":["meterreadings-collection:batchAdd"],"host":["{{gateway-realtime-api}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"700a8034-a4f0-45fb-aabf-e77aec399398"},{"name":"Batch Update Meter Readings","event":[{"listen":"test","script":{"id":"4ad88b84-b5e6-41a2-8864-d43db03d7840","exec":["pm.test(\"Body matches string\", function () {","    pm.expect(pm.response.text()).to.include(\"Success\");","});","","pm.test(\"Response includes keys\", function () {","     pm.expect(pm.response.json()[0]).to.include.keys(\"body\");","});"],"type":"text/javascript"}}],"id":"dadcbbd4-52de-47e9-a852-08d402903bff","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token1}}"},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"{{meterReadingIdAgg1}}\" : {\n    \"value\" : 26\n  },\n  \"{{meterReadingIdAgg2}}\" : {\n    \"value\" : 27\n  }\n}","options":{"raw":{"language":"json"}}},"url":"{{gateway-realtime-api}}/meterreadings-collection:batchUpdate","urlObject":{"path":["meterreadings-collection:batchUpdate"],"host":["{{gateway-realtime-api}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"dadcbbd4-52de-47e9-a852-08d402903bff"},{"name":"Batch Delete Meter Readings","event":[{"listen":"test","script":{"id":"5408878c-b906-45e9-9247-ed93fae6f7db","exec":["pm.test(\"Body matches string\", function () {","    pm.expect(pm.response.text()).to.include(\"Success\");","});","","pm.test(\"Response includes keys\", function () {","     pm.expect(pm.response.json()[0]).to.include.keys(\"body\");","});"],"type":"text/javascript"}}],"id":"94117abd-ac95-40ad-9ea7-b2c272beb49f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token1}}"},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"{{meterReadingIdAgg1}}\" : {\n    \"value\" : 26\n  },\n  \"{{meterReadingIdAgg2}}\" : {\n    \"value\" : 27\n  }\n}","options":{"raw":{"language":"json"}}},"url":"{{gateway-realtime-api}}/meterreadings-collection:batchUpdate","urlObject":{"path":["meterreadings-collection:batchUpdate"],"host":["{{gateway-realtime-api}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"94117abd-ac95-40ad-9ea7-b2c272beb49f"}],"id":"45d3aaba-85fa-4cb9-94c6-6fad475ee714","description":"<p>The Meter Reading Collections (Batch) resource is used to perform batch operations on meter reading data.</p>\n","_postman_id":"45d3aaba-85fa-4cb9-94c6-6fad475ee714","auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":true,"source":{"_postman_id":"fd28e1dd-5f8a-4ca5-968f-35e9b053b3cf","id":"fd28e1dd-5f8a-4ca5-968f-35e9b053b3cf","name":"WatchWire API","type":"collection"}}},{"name":"Obvius Meter Readings","item":[{"name":"Obvius Device Meter Reading File Upload","id":"52d2d55c-9dbe-48bc-af0a-2c13e74640c7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"MODE","value":"LOGFILEUPLOAD","type":"text"},{"key":"SERIALNUMBER","value":"<Serial # Specifed During Meter Setup In WatchWire>","type":"text"},{"key":"MODBUSDEVICE","value":"<Device # Specifed During Meter Setup In WatchWire>","type":"text"},{"key":"PASSWORD","value":"<PW Specifed During Meter Setup In WatchWire>","type":"text"},{"key":"LOGFILE","type":"file","src":"/Users/shuda/Documents/RMR/RT Issues/log files/37159_mb-003.600A6EA2_2.log.gz"}]},"url":"{{gateway-realtime-api}}/uploads/obvius","description":"<p>To setup the integration between Obvius and WatchWire:</p>\n<ol>\n<li>Configure the meter in <strong>WatchWire</strong> following steps in \"<strong>Add Meter</strong>\" within the Real Time Monitoring section.<ol>\n<li>Follow the steps for Obvius meter provider</li>\n<li>Include the valid Serial # / Modbus Device # / and other fields from the metering device - and create a Password (please note it down for next step)</li>\n</ol>\n</li>\n<li>Go to your Obvius device Portal and input the upload url for the target upload URL destination. The Upload URL is listed above in the <strong>POST field, ending in /uploads/obvius</strong></li>\n</ol>\n<blockquote>\n<p>NOTE: Please configure params correctly in WatchWire, or else data won't flow properly. Pay attention to the \"Readings Per Hour\" field, if misconfigured the analytics won't work properly. For any question, please contact support.</p>\n<p>Also note, you can ignore all the BODY formdata below which is automatically generated from your Obvius device.</p>\n</blockquote>\n","urlObject":{"path":["uploads","obvius"],"host":["{{gateway-realtime-api}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"52d2d55c-9dbe-48bc-af0a-2c13e74640c7"}],"id":"a677ddd9-c43c-430d-bf6d-76fdfba762f0","_postman_id":"a677ddd9-c43c-430d-bf6d-76fdfba762f0","description":"","auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":true,"source":{"_postman_id":"fd28e1dd-5f8a-4ca5-968f-35e9b053b3cf","id":"fd28e1dd-5f8a-4ca5-968f-35e9b053b3cf","name":"WatchWire API","type":"collection"}}},{"name":"Integration","item":[{"name":"Auth-Demo-Client","event":[{"listen":"test","script":{"id":"533d8f98-3cf2-494f-8163-ec5e5f2a0b2a","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","pm.test(\"status OK\", function () {","    pm.expect(pm.response.text()).to.include(\"OK\");","});","","let token = pm.response.json().token;","","pm.environment.set(\"token\", token);"],"type":"text/javascript"}}],"id":"2a77a612-c933-4754-96e1-bc43da385d3b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"email\": \"{{emailapi1}}\",\n  \"password\": \"{{password}}\"\n}","options":{"raw":{"language":"json"}}},"url":"{{gatewayService-heroku}}/authenticate","urlObject":{"path":["authenticate"],"host":["{{gatewayService-heroku}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"2a77a612-c933-4754-96e1-bc43da385d3b"},{"name":"Create Meter - Consumption","event":[{"listen":"prerequest","script":{"id":"ab2ca983-85ef-48e1-9cee-bcdc01f079e0","exec":["var schema =\r","{\r","  \"$schema\": \"http://json-schema.org/draft-07/schema#\",\r","  \"title\": \"Generated schema for Root\",\r","  \"type\": \"object\",\r","  \"properties\": {\r","    \"client\": {\r","      \"type\": \"object\",\r","      \"properties\": {\r","        \"id\": {\r","          \"type\": \"number\"\r","        },\r","        \"name\": {\r","          \"type\": \"string\"\r","        },\r","        \"code\": {\r","          \"type\": \"string\"\r","        },\r","        \"uri\": {\r","          \"type\": \"string\"\r","        },\r","        \"address1\": {\r","          \"type\": \"string\"\r","        },\r","        \"address2\": {\r","          \"type\": \"string\"\r","        },\r","        \"city\": {\r","          \"type\": \"string\"\r","        },\r","        \"country\": {\r","          \"type\": \"string\"\r","        },\r","        \"state\": {\r","          \"type\": \"string\"\r","        },\r","        \"zipcode\": {\r","          \"type\": \"string\"\r","        },\r","        \"isWhiteLabeled\": {\r","          \"type\": \"boolean\"\r","        },\r","        \"hasSecondaryLogo\": {\r","          \"type\": \"boolean\"\r","        },\r","        \"canBypassUserAgreement\": {\r","          \"type\": \"boolean\"\r","        },\r","        \"hasApIntegration\": {\r","          \"type\": \"boolean\"\r","        },\r","        \"ssoAttributes\": {},\r","        \"route\": {\r","          \"type\": \"string\"\r","        },\r","        \"fiscalYearStartMonth\": {\r","          \"type\": \"number\"\r","        }\r","      },\r","      \"required\": [\r","        \"id\",\r","        \"name\",\r","        \"code\",\r","        \"uri\",\r","        \"address1\",\r","        \"address2\",\r","        \"city\",\r","        \"country\",\r","        \"state\",\r","        \"zipcode\",\r","        \"isWhiteLabeled\",\r","        \"hasSecondaryLogo\",\r","        \"canBypassUserAgreement\",\r","        \"hasApIntegration\",\r","        \"ssoAttributes\",\r","        \"route\",\r","        \"fiscalYearStartMonth\"\r","      ]\r","    }\r","  },\r","  \"required\": [\r","    \"client\"\r","  ]\r","}\r","\r","pm.variables.set(\"schema\", schema);"],"type":"text/javascript"}},{"listen":"test","script":{"id":"c4db6c68-09be-44ad-9447-7332949bec44","exec":["const jsonData = pm.response.json();\r","pm.collectionVariables.set(\"meterId\", jsonData.client.id );\r","\r","try {\r","    var schema = pm.variables.get(\"schema\");\r","  \r","    if(schema) {\r","        const jsonData = pm.response.json();\r","        if(jsonData) {\r","            var Ajv = require('ajv');\r","            ajv = new Ajv({ logger: console, allErrors: true });\r","  \r","            pm.test('Schema is valid', function() {\r","                var result = tv4.validateMultiple(jsonData, schema);\r","                console.log(result);\r","                pm.expect(result.valid).to.be.true;\r","            });\r","       }\r","    }\r","}\r","catch(e) {\r","    console.log(e);\r","}\r","\r","\r","\r","pm.test(\"Status code is 200\", function () {\r","    pm.response.to.have.status(200);\r","});\r","\r","\r","pm.test(\"Projects not empty\", function(){\r","    pm.expect(jsonData.client).to.be.not.empty;\r","});\r","\r","\r","\r",""],"type":"text/javascript"}}],"id":"13e27a2e-d4a8-46a7-9b21-2fd2e1aba607","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json;charset=UTF-8","type":"text"},{"key":"token","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"id\": 621,\r\n    \"name\": \"Demo Client ABC\",\r\n    \"code\": \"DEMOCLIENTABC\",\r\n    \"uri\": \"demo-client-abc\",\r\n    \"address1\": null,\r\n    \"address2\": null,\r\n    \"city\": null,\r\n    \"country\": \"US\",\r\n    \"state\": null,\r\n    \"zipcode\": null,\r\n    \"isWhiteLabeled\": false,\r\n    \"hasSecondaryLogo\": false,\r\n    \"canBypassUserAgreement\": false,\r\n    \"hasApIntegration\": true,\r\n    \"ssoAttributes\": null,\r\n    \"route\": \"/database#demo-client-abc\",\r\n    \"fiscalYearStartMonth\": 1\r\n}"},"url":"{{watchwire}}/GetClientForUser","auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":true,"source":{"_postman_id":"fd28e1dd-5f8a-4ca5-968f-35e9b053b3cf","id":"fd28e1dd-5f8a-4ca5-968f-35e9b053b3cf","name":"WatchWire API","type":"collection"}},"urlObject":{"path":["GetClientForUser"],"host":["{{watchwire}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"13e27a2e-d4a8-46a7-9b21-2fd2e1aba607"},{"name":"Create Meter - Production","event":[{"listen":"prerequest","script":{"id":"ab2ca983-85ef-48e1-9cee-bcdc01f079e0","exec":["var schema =\r","{\r","  \"$schema\": \"http://json-schema.org/draft-07/schema#\",\r","  \"title\": \"Generated schema for Root\",\r","  \"type\": \"object\",\r","  \"properties\": {\r","    \"id\": {\r","      \"type\": \"number\"\r","    },\r","    \"name\": {\r","      \"type\": \"string\"\r","    },\r","    \"code\": {\r","      \"type\": \"string\"\r","    },\r","    \"uri\": {\r","      \"type\": \"string\"\r","    },\r","    \"address1\": {\r","      \"type\": \"string\"\r","    },\r","    \"address2\": {\r","      \"type\": \"string\"\r","    },\r","    \"city\": {\r","      \"type\": \"string\"\r","    },\r","    \"country\": {\r","      \"type\": \"string\"\r","    },\r","    \"state\": {\r","      \"type\": \"string\"\r","    },\r","    \"zipcode\": {\r","      \"type\": \"string\"\r","    },\r","    \"isWhiteLabeled\": {\r","      \"type\": \"boolean\"\r","    },\r","    \"hasSecondaryLogo\": {\r","      \"type\": \"boolean\"\r","    },\r","    \"canBypassUserAgreement\": {\r","      \"type\": \"boolean\"\r","    },\r","    \"hasApIntegration\": {\r","      \"type\": \"boolean\"\r","    },\r","    \"ssoAttributes\": {},\r","    \"route\": {\r","      \"type\": \"string\"\r","    },\r","    \"fiscalYearStartMonth\": {\r","      \"type\": \"number\"\r","    }\r","  },\r","  \"required\": [\r","    \"id\",\r","    \"name\",\r","    \"code\",\r","    \"uri\",\r","    \"address1\",\r","    \"address2\",\r","    \"city\",\r","    \"country\",\r","    \"state\",\r","    \"zipcode\",\r","    \"isWhiteLabeled\",\r","    \"hasSecondaryLogo\",\r","    \"canBypassUserAgreement\",\r","    \"hasApIntegration\",\r","    \"ssoAttributes\",\r","    \"route\",\r","    \"fiscalYearStartMonth\"\r","  ]\r","}\r","\r","pm.variables.set(\"schema\", schema);"],"type":"text/javascript"}},{"listen":"test","script":{"id":"c4db6c68-09be-44ad-9447-7332949bec44","exec":["try {\r","    var schema = pm.variables.get(\"schema\");\r","  \r","    if(schema) {\r","        const jsonData = pm.response.json();\r","        if(jsonData) {\r","            var Ajv = require('ajv');\r","            ajv = new Ajv({ logger: console, allErrors: true });\r","  \r","            pm.test('Schema is valid', function() {\r","                var result = tv4.validateMultiple(jsonData, schema);\r","                console.log(result);\r","                pm.expect(result.valid).to.be.true;\r","            });\r","       }\r","    }\r","}\r","catch(e) {\r","    console.log(e);\r","}\r","\r","\r","pm.test(\"Status code is 200\", function () {\r","    pm.response.to.have.status(200);\r","});\r","\r","const jsonData = pm.response.json();\r","pm.test(\"Projects not empty\", function(){\r","    pm.expect(jsonData.client).to.be.not.empty;\r","});\r","\r","\r","\r","\r",""],"type":"text/javascript"}}],"id":"7b86f9d0-9270-4e7b-b43b-3c3a6f197186","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json;charset=UTF-8","type":"text"},{"key":"token","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"id\": 621,\r\n    \"name\": \"Demo Client ABC\",\r\n    \"code\": \"DEMOCLIENTABC\",\r\n    \"uri\": \"demo-client-abc\",\r\n    \"address1\": null,\r\n    \"address2\": null,\r\n    \"city\": null,\r\n    \"country\": \"US\",\r\n    \"state\": null,\r\n    \"zipcode\": null,\r\n    \"isWhiteLabeled\": false,\r\n    \"hasSecondaryLogo\": false,\r\n    \"canBypassUserAgreement\": false,\r\n    \"hasApIntegration\": true,\r\n    \"ssoAttributes\": null,\r\n    \"route\": \"/database#demo-client-abc\",\r\n    \"fiscalYearStartMonth\": 1\r\n}"},"url":"{{watchwire}}/GetClientForUser","auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":true,"source":{"_postman_id":"fd28e1dd-5f8a-4ca5-968f-35e9b053b3cf","id":"fd28e1dd-5f8a-4ca5-968f-35e9b053b3cf","name":"WatchWire API","type":"collection"}},"urlObject":{"path":["GetClientForUser"],"host":["{{watchwire}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"7b86f9d0-9270-4e7b-b43b-3c3a6f197186"},{"name":"Import csv file - Web Socket pending","event":[{"listen":"test","script":{"id":"1f8a599b-eed4-410d-9d1f-2e5e67efa5fe","exec":["pm.test(\"Status code is 200\", function () {\r","    pm.response.to.have.status(200);\r","});\r","\r","const jsonData = pm.response.json();\r","pm.test(\"Status OK \", function(){\r","    pm.expect(jsonData.status).to.equal(\"OK\");\r","});"],"type":"text/javascript"}}],"id":"dbc9fe72-bc16-4824-9901-57a9e9e36404","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"origin","value":"{{watchwire}}","type":"text"},{"key":"referer","value":"{{watchwire}}","type":"text"},{"key":"token","value":"{{token}}","type":"text"},{"key":"authorization","value":"Bearer {{token}}","type":"text"},{"warning":"This is a duplicate header and will be overridden by the Content-Type header generated by Postman.","key":"Content-Type","value":"multipart/form-data","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"file","type":"file","src":"/E:/Truelogic/WATX123/postmanMeterReadingImport.csv"},{"key":"meterId","value":"","type":"text"},{"key":"userEmail","value":"{{emailapi1}}","type":"text"},{"key":"overwrite","value":"false","type":"text"}]},"url":"{{watchwire}}/uploads/generic","urlObject":{"path":["uploads","generic"],"host":["{{watchwire}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"dbc9fe72-bc16-4824-9901-57a9e9e36404"},{"name":"Edit meter","event":[{"listen":"prerequest","script":{"id":"fa7598bf-4707-415f-b1cb-4c6bad2a48d1","exec":["var schema\r","=\r","{\r","  \"$schema\": \"http://json-schema.org/draft-07/schema#\",\r","  \"title\": \"Generated schema for Root\",\r","  \"type\": \"object\",\r","  \"properties\": {\r","    \"client\": {\r","      \"type\": \"object\",\r","      \"properties\": {\r","        \"id\": {\r","          \"type\": \"number\"\r","        },\r","        \"name\": {\r","          \"type\": \"string\"\r","        },\r","        \"code\": {\r","          \"type\": \"string\"\r","        },\r","        \"uri\": {\r","          \"type\": \"string\"\r","        },\r","        \"address1\": {\r","          \"type\": \"string\"\r","        },\r","        \"address2\": {\r","          \"type\": \"string\"\r","        },\r","        \"city\": {\r","          \"type\": \"string\"\r","        },\r","        \"country\": {\r","          \"type\": \"string\"\r","        },\r","        \"state\": {\r","          \"type\": \"string\"\r","        },\r","        \"zipcode\": {\r","          \"type\": \"string\"\r","        },\r","        \"isWhiteLabeled\": {\r","          \"type\": \"boolean\"\r","        },\r","        \"hasSecondaryLogo\": {\r","          \"type\": \"boolean\"\r","        },\r","        \"canBypassUserAgreement\": {\r","          \"type\": \"boolean\"\r","        },\r","        \"hasApIntegration\": {\r","          \"type\": \"boolean\"\r","        },\r","        \"ssoAttributes\": {},\r","        \"route\": {\r","          \"type\": \"string\"\r","        },\r","        \"fiscalYearStartMonth\": {\r","          \"type\": \"number\"\r","        }\r","      },\r","      \"required\": [\r","        \"id\",\r","        \"name\",\r","        \"code\",\r","        \"uri\",\r","        \"address1\",\r","        \"address2\",\r","        \"city\",\r","        \"country\",\r","        \"state\",\r","        \"zipcode\",\r","        \"isWhiteLabeled\",\r","        \"hasSecondaryLogo\",\r","        \"canBypassUserAgreement\",\r","        \"hasApIntegration\",\r","        \"ssoAttributes\",\r","        \"route\",\r","        \"fiscalYearStartMonth\"\r","      ]\r","    }\r","  },\r","  \"required\": [\r","    \"client\"\r","  ]\r","}\r","\r","pm.variables.set(\"schema\", schema);"],"type":"text/javascript"}},{"listen":"test","script":{"id":"2ca05e0c-acbf-4cd5-811e-3b5bf8154756","exec":["const jsonData = pm.response.json();\r","\r","try {\r","    var schema = pm.variables.get(\"schema\");\r","  \r","    if(schema) {\r","        const jsonData = pm.response.json();\r","        if(jsonData) {\r","            var Ajv = require('ajv');\r","            ajv = new Ajv({ logger: console, allErrors: true });\r","  \r","            pm.test('Schema is valid', function() {\r","                var result = tv4.validateMultiple(jsonData, schema);\r","                console.log(result);\r","                pm.expect(result.valid).to.be.true;\r","            });\r","       }\r","    }\r","}\r","catch(e) {\r","    console.log(e);\r","}\r","\r","pm.test(\"Status code is 200\", function () {\r","    pm.response.to.have.status(200);\r","});\r","\r","\r","pm.test(\"Client object not empty\", function(){\r","    pm.expect(jsonData.client).to.be.not.empty;\r","});\r","\r","let today = new Date();\r","let yesterday = new Date(today);\r","yesterday.setDate(yesterday.getDate() - 1);\r","let todayDate = today.toISOString().slice(0, 10);\r","let yesterdayDate = yesterday.toISOString().slice(0, 10);\r","pm.collectionVariables.set(\"todayDate\", todayDate);\r","pm.collectionVariables.set(\"yesterdayDate\", yesterdayDate);\r","\r","\r",""],"type":"text/javascript"}}],"id":"85a0b6c5-1f7f-4d4f-ab5b-6593be30c817","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json;charset=UTF-8","type":"text"},{"key":"token","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"id\": ,\r\n  \"name\": \"Demo Client ABC\",\r\n  \"code\": \"DEMOCLIENTABC\",\r\n  \"uri\": \"demo-client-abc\",\r\n  \"address1\": null,\r\n  \"address2\": null,\r\n  \"city\": null,\r\n  \"country\": \"US\",\r\n  \"state\": null,\r\n  \"zipcode\": null,\r\n  \"isWhiteLabeled\": false,\r\n  \"hasSecondaryLogo\": false,\r\n  \"canBypassUserAgreement\": false,\r\n  \"hasApIntegration\": true,\r\n  \"ssoAttributes\": null,\r\n  \"route\": \"/database#demo-client-abc\",\r\n  \"fiscalYearStartMonth\": 1\r\n}","options":{"raw":{"language":"json"}}},"url":"{{watchwire}}/GetClientForUser","auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":true,"source":{"_postman_id":"fd28e1dd-5f8a-4ca5-968f-35e9b053b3cf","id":"fd28e1dd-5f8a-4ca5-968f-35e9b053b3cf","name":"WatchWire API","type":"collection"}},"urlObject":{"path":["GetClientForUser"],"host":["{{watchwire}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"85a0b6c5-1f7f-4d4f-ab5b-6593be30c817"},{"name":"Delete Meter - - Web Socket pending","event":[{"listen":"prerequest","script":{"id":"13e484ff-37f7-4ff5-ac11-0b8840c4ffbf","exec":[""],"type":"text/javascript"}},{"listen":"test","script":{"id":"3ac7e71e-2923-4156-a4ef-4dd985c9a6b6","exec":["pm.test(\"Response time is less than 500ms\", function () {\r","    pm.expect(pm.response.responseTime).to.be.below(500);\r","});\r","\r","pm.test(\"Successful POST request\", function () {\r","    pm.expect(pm.response.code).to.be.oneOf([201, 202]);\r","});"],"type":"text/javascript"}}],"id":"cf788640-8f48-47a4-b004-95a1cab382dc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"urlencoded","urlencoded":[]},"url":"{{apiUrlRT}}/custommeters//meterreadings?startDate={{yesterdayDate}}&endDate={{todayDate}}","auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":true,"source":{"_postman_id":"fd28e1dd-5f8a-4ca5-968f-35e9b053b3cf","id":"fd28e1dd-5f8a-4ca5-968f-35e9b053b3cf","name":"WatchWire API","type":"collection"}},"urlObject":{"path":["custommeters","","meterreadings"],"host":["{{apiUrlRT}}"],"query":[{"key":"startDate","value":"{{yesterdayDate}}"},{"key":"endDate","value":"{{todayDate}}"}],"variable":[]}},"response":[],"_postman_id":"cf788640-8f48-47a4-b004-95a1cab382dc"}],"id":"391e5366-6739-4c10-b3ea-762aec96073a","_postman_id":"391e5366-6739-4c10-b3ea-762aec96073a","description":"","auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":true,"source":{"_postman_id":"fd28e1dd-5f8a-4ca5-968f-35e9b053b3cf","id":"fd28e1dd-5f8a-4ca5-968f-35e9b053b3cf","name":"WatchWire API","type":"collection"}}}],"id":"3acddacd-d0fd-4804-a020-0c6a6f4a7551","description":"<h1 id=\"realtime-api-overview\">RealTime API Overview</h1>\n<p>Real-time API includes access to all your custom meters and includes functionality to create / delete or update meter configurations, and also allows you to push real-time meter readings on various intervals. The API also includes various metrics and access to your detailed interval data readings. There are other batch operations available – such as sending and creating meters in bulk.</p>\n","_postman_id":"3acddacd-d0fd-4804-a020-0c6a6f4a7551","auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":true,"source":{"_postman_id":"fd28e1dd-5f8a-4ca5-968f-35e9b053b3cf","id":"fd28e1dd-5f8a-4ca5-968f-35e9b053b3cf","name":"WatchWire API","type":"collection"}}},{"name":"Accounts Payable API","item":[{"name":"Audit Statements","item":[{"name":"Retrieve Nexus Statement Revisions","id":"54e8d00e-47ea-4f69-a48b-bf3eb49260cf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{gateway-ap-api}}/nexus/{{statementId}}/revisions","description":"<p>A <code>GET</code> request will list all of a Nexus statement's revisions*.* If a response is null, the statement was deleted.</p>\n<p><em>Response Body Structure</em></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Path</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>[].response</code></td>\n<td><code>Nexus Statement Model</code></td>\n<td>The statement's raw body at a given revision</td>\n</tr>\n<tr>\n<td><code>[].timestamp</code></td>\n<td><code>Timestamp</code></td>\n<td>The timestamp for a statement's revision</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":true,"source":{"_postman_id":"fd28e1dd-5f8a-4ca5-968f-35e9b053b3cf","id":"fd28e1dd-5f8a-4ca5-968f-35e9b053b3cf","name":"WatchWire API","type":"collection"}},"urlObject":{"path":["nexus","{{statementId}}","revisions"],"host":["{{gateway-ap-api}}"],"query":[],"variable":[]}},"response":[{"id":"2049aa22-563b-44fc-ac51-53b9ae28f1b0","name":"Retrieve Nexus Statement Revisions","originalRequest":{"method":"GET","header":[],"url":"{{gateway-ap-api}}/nexus/{{statementId}}/revisions"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Thu, 06 Jan 2022 14:38:44 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"timestamp\": \"2022-01-06T14:32:43.458+00:00\",\n        \"response\": {\n            \"uuid\": \"83c2d4bf-febc-44bd-9a97-fdb387f4199b\",\n            \"status\": \"NEW\",\n            \"ww_account_id\": 0,\n            \"ww_statement_id\": 0,\n            \"ww_client_id\": 0,\n            \"ww_control_code\": \"string\",\n            \"status_message\": \"string\",\n            \"nexus_json\": {\n                \"tax\": 0,\n                \"shipping\": 0,\n                \"priority\": \"string\",\n                \"lines\": [\n                    {\n                        \"line_item_uuid\": \"b9cc5c2e-53d2-47fd-9521-e1f120370f20\",\n                        \"invoiceitem_quantity\": 0,\n                        \"invoiceitem_unitprice\": 0,\n                        \"glaccount_number\": \"string\",\n                        \"unit_id_alt\": \"string\",\n                        \"utilityusagetype_name\": \"string\",\n                        \"utilityaccount_accountnumber\": \"string\",\n                        \"invoiceitem_description\": \"string\",\n                        \"property_id_alt\": \"string\",\n                        \"invoiceitem_taxflag\": \"N\",\n                        \"universal_field1\": \"string\",\n                        \"universal_field2\": \"string\",\n                        \"universal_field3\": \"string\",\n                        \"universal_field4\": \"string\",\n                        \"universal_field5\": \"string\",\n                        \"universal_field6\": \"string\",\n                        \"universal_field7\": \"string\",\n                        \"universal_field8\": \"string\"\n                    }\n                ],\n                \"integration_package_name\": \"JDE\",\n                \"property_id_alt\": \"12345\",\n                \"vendor_id_alt\": \"12345\",\n                \"userprofile_username\": \"EWServices\",\n                \"invoice_datetm\": \"2020-12-10\",\n                \"invoice_ref\": \"string\",\n                \"invoice_duedate\": \"2020-12-10\",\n                \"invoice_period\": \"2020-12-10\",\n                \"control_amount\": 0,\n                \"remit_advice\": 0,\n                \"invoice_private\": 0,\n                \"currency_code\": \"string\",\n                \"country_code\": \"string\",\n                \"invoice_cycle_from\": \"2020-12-10\",\n                \"invoice_cycle_to\": \"2020-12-10\",\n                \"invoice_note\": \"string\",\n                \"invoice_budgetoverage_note\": \"string\",\n                \"universal_field1\": \"string\",\n                \"universal_field2\": \"string\",\n                \"universal_field3\": \"string\",\n                \"universal_field4\": \"string\",\n                \"universal_field5\": \"string\",\n                \"universal_field6\": \"string\",\n                \"universal_field7\": \"string\",\n                \"universal_field8\": \"string\",\n                \"invoicepayment_type\": \"string\"\n            }\n        }\n    }\n]"}],"_postman_id":"54e8d00e-47ea-4f69-a48b-bf3eb49260cf"},{"name":"Retrieve Generic Statement Revisions","id":"dd27d44b-3656-4ab9-a51d-801853dbccd9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{gateway-ap-api}}/generic/{{statementId}}/revisions","description":"<p>A <code>GET</code> request will list all of a Generic statement's revisions*.* If a response is null, the statement was deleted.</p>\n<p><em>Response Body Structure</em></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Path</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>[].response</code></td>\n<td><code>Generic Statement Model</code></td>\n<td>The statement's raw body at a given revision</td>\n</tr>\n<tr>\n<td><code>[].timestamp</code></td>\n<td><code>Timestamp</code></td>\n<td>The timestamp for a statement's revision</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":true,"source":{"_postman_id":"fd28e1dd-5f8a-4ca5-968f-35e9b053b3cf","id":"fd28e1dd-5f8a-4ca5-968f-35e9b053b3cf","name":"WatchWire API","type":"collection"}},"urlObject":{"path":["generic","{{statementId}}","revisions"],"host":["{{gateway-ap-api}}"],"query":[],"variable":[]}},"response":[{"id":"8b9515e3-9f3b-440a-92c5-9cb703739181","name":"Retrieve Generic Statement Revisions","originalRequest":{"method":"GET","header":[],"url":"{{gateway-ap-api}}/generic/{{statementId}}/revisions"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Thu, 06 Jan 2022 14:39:04 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"timestamp\": \"2022-01-06T14:33:06.721+00:00\",\n        \"response\": {\n            \"uuid\": \"1d4e2181-eb9d-4229-88fa-6c332387336c\",\n            \"statementId\": 0,\n            \"accountId\": 0,\n            \"clientId\": 0,\n            \"accountCode\": \"string\",\n            \"commodity\": \"CHILLEDWATER\",\n            \"glCode\": \"string\",\n            \"chargeAmount\": 0,\n            \"status\": \"ERROR\",\n            \"statusMessage\": \"string\",\n            \"pdfUrl\": \"string\",\n            \"property\": \"string\",\n            \"vendor\": \"string\",\n            \"serviceAddress\": \"string\",\n            \"city\": \"string\",\n            \"state\": \"string\",\n            \"zipCode\": \"string\",\n            \"currency\": \"string\",\n            \"startDate\": \"01/01/2021\",\n            \"endDate\": \"01/01/2021\",\n            \"month\": 0,\n            \"year\": 0,\n            \"dueDate\": \"01/01/2021\",\n            \"newCharges\": 0,\n            \"totalAmountDue\": 0,\n            \"glSettings\": {},\n            \"lines\": [\n                {\n                    \"lineItemUuid\": \"f364a5b9-0981-4434-badf-e750880effab\",\n                    \"statementUuid\": \"1d4e2181-eb9d-4229-88fa-6c332387336c\",\n                    \"statementId\": 0,\n                    \"chargeName\": \"string\",\n                    \"chargeAmount\": 0,\n                    \"chargeClassification\": \"string\"\n                }\n            ]\n        }\n    }\n]"}],"_postman_id":"dd27d44b-3656-4ab9-a51d-801853dbccd9"}],"id":"e329baea-7ccf-421b-9fa7-9621654a369f","_postman_id":"e329baea-7ccf-421b-9fa7-9621654a369f","description":"","auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":true,"source":{"_postman_id":"fd28e1dd-5f8a-4ca5-968f-35e9b053b3cf","id":"fd28e1dd-5f8a-4ca5-968f-35e9b053b3cf","name":"WatchWire API","type":"collection"}}},{"name":"Nexus Statements","item":[{"name":"Search Nexus Statements","id":"7c7d5bc0-7aaa-4ed3-a9ff-67be86f913ef","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{gateway-ap-api}}/statement/nexus?status=NEW","description":"<p>Searches system for Nexus statements. At least one search parameter is required.</p>\n<blockquote>\n<p>Note: Results are returned in page sizes of 500 records, use the page parameter to paginate through full result set.</p>\n</blockquote>\n<p><em>Response Body Structure</em></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Path</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>[].uuid</code></td>\n<td><code>UUID</code></td>\n<td>EnergyWatch universally unique identifier</td>\n</tr>\n<tr>\n<td><code>[].status</code></td>\n<td><code>Enum</code></td>\n<td>Available values : ERROR, NEW, PROCESSED, RETRIEVED, SYSTEM_UPDATED, UPDATED</td>\n</tr>\n<tr>\n<td><code>[].ww_account_id</code></td>\n<td><code>Integer</code></td>\n<td>EnergyWatch account identifier</td>\n</tr>\n<tr>\n<td><code>[].ww_statement_id</code></td>\n<td><code>Integer</code></td>\n<td>EnergyWatch statement identifier</td>\n</tr>\n<tr>\n<td><code>[].ww_client_id</code></td>\n<td><code>Integer</code></td>\n<td>EnergyWatch client node identifier</td>\n</tr>\n<tr>\n<td><code>[].ww_control_code</code></td>\n<td><code>String</code></td>\n<td>EnergyWatch Control Code identifier for PDFs</td>\n</tr>\n<tr>\n<td><code>[].status_message</code></td>\n<td><code>String</code></td>\n<td>Status message</td>\n</tr>\n<tr>\n<td><code>[].nexus_json</code></td>\n<td><code>Nexus Statement Model</code></td>\n<td>The statement's raw body</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":true,"source":{"_postman_id":"fd28e1dd-5f8a-4ca5-968f-35e9b053b3cf","id":"fd28e1dd-5f8a-4ca5-968f-35e9b053b3cf","name":"WatchWire API","type":"collection"}},"urlObject":{"path":["statement","nexus"],"host":["{{gateway-ap-api}}"],"query":[{"disabled":true,"description":{"content":"<p>Integer - EnergyWatch account identifier</p>\n","type":"text/plain"},"key":"accountId","value":"12345"},{"disabled":true,"description":{"content":"<p>Integer - EnergyWatch client node identifier</p>\n","type":"text/plain"},"key":"clientId","value":"12345"},{"disabled":true,"description":{"content":"<p>Number - The invoice total</p>\n","type":"text/plain"},"key":"controlAmount","value":"101.99"},{"disabled":true,"description":{"content":"<p>String - EnergyWatch Control Code identifier for PDFs</p>\n","type":"text/plain"},"key":"controlCode","value":"Sample.pdf"},{"disabled":true,"description":{"content":"<p>String - Name of the integration package</p>\n","type":"text/plain"},"key":"integrationPackageName","value":"JD Edwards"},{"disabled":true,"description":{"content":"<p>String - Budget overage notes</p>\n","type":"text/plain"},"key":"invoiceBudgetOverageNote","value":"Example string"},{"disabled":true,"description":{"content":"<p>Date (yyyy-mm-dd) - An invoice date</p>\n","type":"text/plain"},"key":"invoiceDateTm","value":"2020-12-10"},{"disabled":true,"description":{"content":"<p>Date (yyyy-mm-dd) - A due date</p>\n","type":"text/plain"},"key":"invoiceDueDate","value":"2020-12-10"},{"disabled":true,"description":{"content":"<p>String - Notes</p>\n","type":"text/plain"},"key":"invoiceNote","value":"Example string"},{"disabled":true,"description":{"content":"<p>Date (yyyy-mm-dd) - Period for the invoice in (where day is always 01)</p>\n","type":"text/plain"},"key":"invoicePeriod","value":"2020-12-01"},{"disabled":true,"description":{"content":"<p>String - The invoice number</p>\n","type":"text/plain"},"key":"invoiceRef","value":"1234567891-12/22"},{"disabled":true,"description":{"content":"<p>String - Property code</p>\n","type":"text/plain"},"key":"propertyIdAlt","value":"12345"},{"disabled":true,"description":{"content":"<p>Number - The total shipping amount for the invoice</p>\n","type":"text/plain"},"key":"shipping","value":"101.99"},{"disabled":true,"description":{"content":"<p>Integer - EnergyWatch statement identifier</p>\n","type":"text/plain"},"key":"statementId","value":"12345"},{"description":{"content":"<p>Enum - Available values : ERROR, NEW, PROCESSED, RETRIEVED, SYSTEM_UPDATED, UPDATED</p>\n","type":"text/plain"},"key":"status","value":"NEW"},{"disabled":true,"description":{"content":"<p>String - Status message</p>\n","type":"text/plain"},"key":"statusMessage","value":"Statement has been processed successfully"},{"disabled":true,"description":{"content":"<p>Number - The total tax amount for the invoice</p>\n","type":"text/plain"},"key":"tax","value":"101.99"},{"disabled":true,"description":{"content":"<p>String - Value for a custom field</p>\n","type":"text/plain"},"key":"universalField1","value":"Example string"},{"disabled":true,"description":{"content":"<p>String - Value for a custom field</p>\n","type":"text/plain"},"key":"universalField2","value":"Example string"},{"disabled":true,"description":{"content":"<p>String - Value for a custom field</p>\n","type":"text/plain"},"key":"universalField3","value":"Example string"},{"disabled":true,"description":{"content":"<p>String - Value for a custom field</p>\n","type":"text/plain"},"key":"universalField4","value":"Example string"},{"disabled":true,"description":{"content":"<p>String - Value for a custom field</p>\n","type":"text/plain"},"key":"universalField5","value":"Example string"},{"disabled":true,"description":{"content":"<p>String - Value for a custom field</p>\n","type":"text/plain"},"key":"universalField6","value":"Example string"},{"disabled":true,"description":{"content":"<p>String - Value for a custom field</p>\n","type":"text/plain"},"key":"universalField7","value":"Example string"},{"disabled":true,"description":{"content":"<p>String - Value for a custom field</p>\n","type":"text/plain"},"key":"universalField8","value":"Example string"},{"disabled":true,"description":{"content":"<p>String - The username of the user who will be considered the creator of the invoice</p>\n","type":"text/plain"},"key":"userProfileUsername","value":"EWServices"},{"disabled":true,"description":{"content":"<p>UUID - Energywatch universally unique identifier</p>\n","type":"text/plain"},"key":"uuid","value":"3fa85f64-5717-4562-b3fc-2c963f66afa6"},{"disabled":true,"description":{"content":"<p>String - Vendor code</p>\n","type":"text/plain"},"key":"vendorIdAlt","value":"12345"},{"disabled":true,"description":{"content":"<p>(Optional) order by clause when searching statements, useful during paginated requests</p>\n","type":"text/plain"},"key":"orderBy","value":"invoicePeriod"},{"disabled":true,"description":{"content":"<p>(Optional) used to paginate through large resultset, NOTE: results come back in page sizes of 500 records</p>\n","type":"text/plain"},"key":"page","value":"1"}],"variable":[]}},"response":[{"id":"f958e8f3-9787-48e1-b2d6-13632e5352d0","name":"Search Nexus Statements with New Status","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{gateway-ap-api}}/statement/nexus?status=NEW","host":["{{gateway-ap-api}}"],"path":["statement","nexus"],"query":[{"key":"accountId","value":"12345","type":"text","description":"Integer","disabled":true},{"key":"clientId","value":"12345","type":"text","description":"Integer","disabled":true},{"key":"controlAmount","value":"0","type":"text","description":"Number","disabled":true},{"key":"controlCode","value":"","type":"text","description":"String","disabled":true},{"key":"integrationPackageName","value":"","type":"text","description":"String","disabled":true},{"key":"invoiceBudgetOverageNote","value":"","type":"text","description":"String","disabled":true},{"key":"invoiceDateTm","value":"2020-12-10","type":"text","description":"Date (YYYY-MM-DD)","disabled":true},{"key":"invoiceDueDate","value":"2020-12-10","type":"text","description":"Date (YYYY-MM-DD)","disabled":true},{"key":"invoiceNote","value":"","type":"text","description":"String","disabled":true},{"key":"invoicePeriod","value":"","type":"text","description":"String","disabled":true},{"key":"invoiceRef","value":"","type":"text","description":"String","disabled":true},{"key":"propertyIdAlt","value":"","type":"text","description":"String","disabled":true},{"key":"shipping","value":"0","type":"text","description":"Number","disabled":true},{"key":"statementId","value":"12345","type":"text","description":"Integer","disabled":true},{"key":"status","value":"NEW","description":"Available values : ERROR, NEW, PROCESSED, RETRIEVED, SYSTEM_UPDATED, UPDATED"},{"key":"statusMessage","value":"","type":"text","description":"String","disabled":true},{"key":"tax","value":"0","type":"text","description":"Number","disabled":true},{"key":"universalField1","value":"","type":"text","description":"String","disabled":true},{"key":"universalField2","value":"","type":"text","description":"String","disabled":true},{"key":"universalField3","value":"","type":"text","description":"String","disabled":true},{"key":"universalField4","value":"","type":"text","description":"String","disabled":true},{"key":"universalField5","value":"","type":"text","description":"String","disabled":true},{"key":"universalField6","value":"","type":"text","description":"String","disabled":true},{"key":"universalField7","value":"","type":"text","description":"String","disabled":true},{"key":"universalField8","value":"","type":"text","description":"String","disabled":true},{"key":"userProfileUsername","value":"","type":"text","description":"String","disabled":true},{"key":"uuid","value":"3fa85f64-5717-4562-b3fc-2c963f66afa6","type":"text","description":"Universally Unique Identifier (UUID)","disabled":true},{"key":"vendorIdAlt","value":"","type":"text","description":"String","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Thu, 06 Jan 2022 14:39:40 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"uuid\": \"83c2d4bf-febc-44bd-9a97-fdb387f4199b\",\n        \"status\": \"NEW\",\n        \"ww_account_id\": 0,\n        \"ww_statement_id\": 0,\n        \"ww_client_id\": 0,\n        \"ww_control_code\": \"string\",\n        \"status_message\": \"string\",\n        \"nexus_json\": {\n            \"tax\": 0,\n            \"shipping\": 0,\n            \"priority\": \"string\",\n            \"lines\": [\n                {\n                    \"line_item_uuid\": \"b9cc5c2e-53d2-47fd-9521-e1f120370f20\",\n                    \"invoiceitem_quantity\": 0,\n                    \"invoiceitem_unitprice\": 0,\n                    \"glaccount_number\": \"string\",\n                    \"unit_id_alt\": \"string\",\n                    \"utilityusagetype_name\": \"string\",\n                    \"utilityaccount_accountnumber\": \"string\",\n                    \"invoiceitem_description\": \"string\",\n                    \"property_id_alt\": \"string\",\n                    \"invoiceitem_taxflag\": \"N\",\n                    \"universal_field1\": \"string\",\n                    \"universal_field2\": \"string\",\n                    \"universal_field3\": \"string\",\n                    \"universal_field4\": \"string\",\n                    \"universal_field5\": \"string\",\n                    \"universal_field6\": \"string\",\n                    \"universal_field7\": \"string\",\n                    \"universal_field8\": \"string\"\n                }\n            ],\n            \"integration_package_name\": \"JDE\",\n            \"property_id_alt\": \"12345\",\n            \"vendor_id_alt\": \"12345\",\n            \"userprofile_username\": \"EWServices\",\n            \"invoice_datetm\": \"2020-12-10\",\n            \"invoice_ref\": \"string\",\n            \"invoice_duedate\": \"2020-12-10\",\n            \"invoice_period\": \"2020-12-10\",\n            \"control_amount\": 0,\n            \"remit_advice\": 0,\n            \"invoice_private\": 0,\n            \"currency_code\": \"string\",\n            \"country_code\": \"string\",\n            \"invoice_cycle_from\": \"2020-12-10\",\n            \"invoice_cycle_to\": \"2020-12-10\",\n            \"invoice_note\": \"string\",\n            \"invoice_budgetoverage_note\": \"string\",\n            \"universal_field1\": \"string\",\n            \"universal_field2\": \"string\",\n            \"universal_field3\": \"string\",\n            \"universal_field4\": \"string\",\n            \"universal_field5\": \"string\",\n            \"universal_field6\": \"string\",\n            \"universal_field7\": \"string\",\n            \"universal_field8\": \"string\",\n            \"invoicepayment_type\": \"string\"\n        }\n    }\n]"}],"_postman_id":"7c7d5bc0-7aaa-4ed3-a9ff-67be86f913ef"},{"name":"Search Nexus Statements IDs","id":"32df2f87-6a25-4c6d-9ca5-eb35f0507cb8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{gateway-ap-api}}/statement/nexus/ids?status=NEW","description":"<p>Searches system for Nexus statement IDs. At least one search parameter is required.</p>\n<p><em>Response Body Structure</em></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>Array</code></td>\n<td>List of AP Nexus Statement IDs</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":true,"source":{"_postman_id":"fd28e1dd-5f8a-4ca5-968f-35e9b053b3cf","id":"fd28e1dd-5f8a-4ca5-968f-35e9b053b3cf","name":"WatchWire API","type":"collection"}},"urlObject":{"path":["statement","nexus","ids"],"host":["{{gateway-ap-api}}"],"query":[{"disabled":true,"description":{"content":"<p>Integer - EnergyWatch account identifier</p>\n","type":"text/plain"},"key":"accountId","value":"12345"},{"disabled":true,"description":{"content":"<p>Integer - EnergyWatch client node identifier</p>\n","type":"text/plain"},"key":"clientId","value":"12345"},{"disabled":true,"description":{"content":"<p>Number - The invoice total</p>\n","type":"text/plain"},"key":"controlAmount","value":"101.99"},{"disabled":true,"description":{"content":"<p>String - EnergyWatch Control Code identifier for PDFs</p>\n","type":"text/plain"},"key":"controlCode","value":"Sample.pdf"},{"disabled":true,"description":{"content":"<p>String - Name of the integration package</p>\n","type":"text/plain"},"key":"integrationPackageName","value":"JD Edwards"},{"disabled":true,"description":{"content":"<p>String - Budget overage notes</p>\n","type":"text/plain"},"key":"invoiceBudgetOverageNote","value":"Example string"},{"disabled":true,"description":{"content":"<p>Date (yyyy-mm-dd) - An invoice date</p>\n","type":"text/plain"},"key":"invoiceDateTm","value":"2020-12-10"},{"disabled":true,"description":{"content":"<p>Date (yyyy-mm-dd) - A due date</p>\n","type":"text/plain"},"key":"invoiceDueDate","value":"2020-12-10"},{"disabled":true,"description":{"content":"<p>String - Notes</p>\n","type":"text/plain"},"key":"invoiceNote","value":"example string"},{"disabled":true,"description":{"content":"<p>Date (yyyy-mm-dd) - Period for the invoice in (where day is always 01)</p>\n","type":"text/plain"},"key":"invoicePeriod","value":"2020-12-01"},{"disabled":true,"description":{"content":"<p>String - The invoice number</p>\n","type":"text/plain"},"key":"invoiceRef","value":"1234567891-12/22"},{"disabled":true,"description":{"content":"<p>String - Property code</p>\n","type":"text/plain"},"key":"propertyIdAlt","value":"12345"},{"disabled":true,"description":{"content":"<p>Number - The total shipping amount for the invoice</p>\n","type":"text/plain"},"key":"shipping","value":"101.99"},{"disabled":true,"description":{"content":"<p>Integer - EnergyWatch statement identifier</p>\n","type":"text/plain"},"key":"statementId","value":"12345"},{"description":{"content":"<p>Enum - Available values : ERROR, NEW, PROCESSED, RETRIEVED, SYSTEM_UPDATED, UPDATED</p>\n","type":"text/plain"},"key":"status","value":"NEW"},{"disabled":true,"description":{"content":"<p>String - Status message</p>\n","type":"text/plain"},"key":"statusMessage","value":"Statement has been processed successfully"},{"disabled":true,"description":{"content":"<p>Number - The total tax amount for the invoice</p>\n","type":"text/plain"},"key":"tax","value":"101.99"},{"disabled":true,"description":{"content":"<p>String - Value for a custom field</p>\n","type":"text/plain"},"key":"universalField1","value":"Example string"},{"disabled":true,"description":{"content":"<p>String - Value for a custom field</p>\n","type":"text/plain"},"key":"universalField2","value":"Example string"},{"disabled":true,"description":{"content":"<p>String - Value for a custom field</p>\n","type":"text/plain"},"key":"universalField3","value":"Example string"},{"disabled":true,"description":{"content":"<p>String - Value for a custom field</p>\n","type":"text/plain"},"key":"universalField4","value":"Example string"},{"disabled":true,"description":{"content":"<p>String - Value for a custom field</p>\n","type":"text/plain"},"key":"universalField5","value":"Example string"},{"disabled":true,"description":{"content":"<p>String - Value for a custom field</p>\n","type":"text/plain"},"key":"universalField6","value":"Example string"},{"disabled":true,"description":{"content":"<p>String - Value for a custom field</p>\n","type":"text/plain"},"key":"universalField7","value":"Example string"},{"disabled":true,"description":{"content":"<p>String - Value for a custom field</p>\n","type":"text/plain"},"key":"universalField8","value":"Example string"},{"disabled":true,"description":{"content":"<p>String - The username of the user who will be considered the creator of the invoice</p>\n","type":"text/plain"},"key":"userProfileUsername","value":"EWServices"},{"disabled":true,"description":{"content":"<p>UUID - Energywatch universally unique identifier</p>\n","type":"text/plain"},"key":"uuid","value":"3fa85f64-5717-4562-b3fc-2c963f66afa6"},{"disabled":true,"description":{"content":"<p>String - Vendor code</p>\n","type":"text/plain"},"key":"vendorIdAlt","value":"12345"}],"variable":[]}},"response":[{"id":"52e05b53-634e-4898-9cd9-a51131dd5d1a","name":"Search Nexus Statements IDs with New Status","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{gateway-ap-api}}/statement/nexus/ids?status=NEW","host":["{{gateway-ap-api}}"],"path":["statement","nexus","ids"],"query":[{"key":"accountId","value":"12345","description":"Integer","disabled":true},{"key":"clientId","value":"12345","description":"Integer","disabled":true},{"key":"controlAmount","value":"0","description":"Number","type":"default","disabled":true},{"key":"controlCode","value":"string","description":"String","type":"default","disabled":true},{"key":"integrationPackageName","value":"string","description":"String","type":"default","disabled":true},{"key":"invoiceBudgetOverageNote","value":"string","description":"String","type":"default","disabled":true},{"key":"invoiceDateTm","value":"2020-12-10","description":"Date (YYYY-MM-DD)","type":"default","disabled":true},{"key":"invoiceDueDate","value":"2020-12-10","description":"Date (YYYY-MM-DD)","type":"default","disabled":true},{"key":"invoiceNote","value":"string","description":"String","type":"default","disabled":true},{"key":"invoicePeriod","value":"string","description":"String","type":"default","disabled":true},{"key":"invoiceRef","value":"string","description":"String","type":"default","disabled":true},{"key":"propertyIdAlt","value":"string","description":"String","type":"default","disabled":true},{"key":"shipping","value":"0","description":"Number","type":"default","disabled":true},{"key":"statementId","value":"12345","description":"Integer","type":"default","disabled":true},{"key":"status","value":"NEW","description":"Available values : ERROR, NEW, PROCESSED, RETRIEVED, SYSTEM_UPDATED, UPDATED"},{"key":"statusMessage","value":"","description":"String","type":"default","disabled":true},{"key":"tax","value":"0","description":"Number","type":"default","disabled":true},{"key":"universalField1","value":"","description":"String","type":"default","disabled":true},{"key":"universalField2","value":"","description":"String","type":"default","disabled":true},{"key":"universalField3","value":"","description":"String","type":"default","disabled":true},{"key":"universalField4","value":"","description":"String","type":"default","disabled":true},{"key":"universalField5","value":"","description":"String","type":"default","disabled":true},{"key":"universalField6","value":"","description":"String","type":"default","disabled":true},{"key":"universalField7","value":"","description":"String","type":"default","disabled":true},{"key":"universalField8","value":"","description":"String","type":"default","disabled":true},{"key":"userProfileUsername","value":"","description":"String","type":"default","disabled":true},{"key":"uuid","value":"3fa85f64-5717-4562-b3fc-2c963f66afa6","description":"Universally Unique Identifier (UUID)","type":"default","disabled":true},{"key":"vendorIdAlt","value":"","description":"String","type":"default","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Thu, 06 Jan 2022 14:41:03 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"[\n    123,\n    112233,\n    0\n]"}],"_postman_id":"32df2f87-6a25-4c6d-9ca5-eb35f0507cb8"},{"name":"Retrieve Nexus Statement","id":"4d428a31-d4be-4620-a07c-0c6fb2bf5be2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{gateway-ap-api}}/statement/nexus/{{statementId}}","description":"<p>Retrieves a Nexus statement from the system.</p>\n<p><em>Response Body Structure</em></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Path</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>uuid</code></td>\n<td><code>UUID</code></td>\n<td>EnergyWatch universally unique identifier</td>\n</tr>\n<tr>\n<td><code>status</code></td>\n<td><code>Enum</code></td>\n<td>Available values : ERROR, NEW, PROCESSED, RETRIEVED, SYSTEM_UPDATED, UPDATED</td>\n</tr>\n<tr>\n<td><code>ww_account_id</code></td>\n<td><code>Integer</code></td>\n<td>EnergyWatch account identifier</td>\n</tr>\n<tr>\n<td><code>ww_statement_id</code></td>\n<td><code>Integer</code></td>\n<td>EnergyWatch statement identifier</td>\n</tr>\n<tr>\n<td><code>ww_client_id</code></td>\n<td><code>Integer</code></td>\n<td>EnergyWatch client node identifier</td>\n</tr>\n<tr>\n<td><code>ww_control_code</code></td>\n<td><code>String</code></td>\n<td>EnergyWatch Control Code identifier for PDFs</td>\n</tr>\n<tr>\n<td><code>status_message</code></td>\n<td><code>String</code></td>\n<td>Status message</td>\n</tr>\n<tr>\n<td><code>nexus_json</code></td>\n<td><code>Nexus Statement Model</code></td>\n<td>The statement's raw body</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":true,"source":{"_postman_id":"fd28e1dd-5f8a-4ca5-968f-35e9b053b3cf","id":"fd28e1dd-5f8a-4ca5-968f-35e9b053b3cf","name":"WatchWire API","type":"collection"}},"urlObject":{"path":["statement","nexus","{{statementId}}"],"host":["{{gateway-ap-api}}"],"query":[],"variable":[]}},"response":[{"id":"ed7466a6-19e3-4506-aa9f-a67b833d3bfa","name":"Retrieve Nexus Statement","originalRequest":{"method":"GET","header":[],"url":"{{gateway-ap-api}}/statement/nexus/{{statementId}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Thu, 06 Jan 2022 14:41:18 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"uuid\": \"83c2d4bf-febc-44bd-9a97-fdb387f4199b\",\n    \"status\": \"NEW\",\n    \"ww_account_id\": 0,\n    \"ww_statement_id\": 0,\n    \"ww_client_id\": 0,\n    \"ww_control_code\": \"string\",\n    \"status_message\": \"string\",\n    \"nexus_json\": {\n        \"tax\": 0,\n        \"shipping\": 0,\n        \"priority\": \"string\",\n        \"lines\": [\n            {\n                \"line_item_uuid\": \"b9cc5c2e-53d2-47fd-9521-e1f120370f20\",\n                \"invoiceitem_quantity\": 0,\n                \"invoiceitem_unitprice\": 0,\n                \"glaccount_number\": \"string\",\n                \"unit_id_alt\": \"string\",\n                \"utilityusagetype_name\": \"string\",\n                \"utilityaccount_accountnumber\": \"string\",\n                \"invoiceitem_description\": \"string\",\n                \"property_id_alt\": \"string\",\n                \"invoiceitem_taxflag\": \"N\",\n                \"universal_field1\": \"string\",\n                \"universal_field2\": \"string\",\n                \"universal_field3\": \"string\",\n                \"universal_field4\": \"string\",\n                \"universal_field5\": \"string\",\n                \"universal_field6\": \"string\",\n                \"universal_field7\": \"string\",\n                \"universal_field8\": \"string\"\n            }\n        ],\n        \"integration_package_name\": \"JDE\",\n        \"property_id_alt\": \"12345\",\n        \"vendor_id_alt\": \"12345\",\n        \"userprofile_username\": \"EWServices\",\n        \"invoice_datetm\": \"2020-12-10\",\n        \"invoice_ref\": \"string\",\n        \"invoice_duedate\": \"2020-12-10\",\n        \"invoice_period\": \"2020-12-10\",\n        \"control_amount\": 0,\n        \"remit_advice\": 0,\n        \"invoice_private\": 0,\n        \"currency_code\": \"string\",\n        \"country_code\": \"string\",\n        \"invoice_cycle_from\": \"2020-12-10\",\n        \"invoice_cycle_to\": \"2020-12-10\",\n        \"invoice_note\": \"string\",\n        \"invoice_budgetoverage_note\": \"string\",\n        \"universal_field1\": \"string\",\n        \"universal_field2\": \"string\",\n        \"universal_field3\": \"string\",\n        \"universal_field4\": \"string\",\n        \"universal_field5\": \"string\",\n        \"universal_field6\": \"string\",\n        \"universal_field7\": \"string\",\n        \"universal_field8\": \"string\",\n        \"invoicepayment_type\": \"string\"\n    }\n}"}],"_postman_id":"4d428a31-d4be-4620-a07c-0c6fb2bf5be2"},{"name":"Delete Nexus Statement","id":"4845cb58-8cf1-4ca5-a866-24b2b9b6b26f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{gateway-ap-api}}/statement/nexus/{{statementId}}","description":"<p>Deletes a Nexus statement from the system.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":true,"source":{"_postman_id":"fd28e1dd-5f8a-4ca5-968f-35e9b053b3cf","id":"fd28e1dd-5f8a-4ca5-968f-35e9b053b3cf","name":"WatchWire API","type":"collection"}},"urlObject":{"path":["statement","nexus","{{statementId}}"],"host":["{{gateway-ap-api}}"],"query":[],"variable":[]}},"response":[{"id":"58bab714-5db5-4389-83da-024fab4eae78","name":"Delete Nexus Statement","originalRequest":{"method":"DELETE","header":[],"url":"{{gateway-ap-api}}/statement/nexus/{{statementId}}"},"status":"No Content","code":204,"_postman_previewlanguage":"plain","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Date","value":"Thu, 06 Jan 2022 14:41:30 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"4845cb58-8cf1-4ca5-a866-24b2b9b6b26f"},{"name":"Update Nexus Statement","id":"f5bd8fac-25a8-47f1-989e-c4b10b300fe8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n  \"nexus_json\": {\n    \"control_amount\": 0,\n    \"country_code\": \"string\",\n    \"currency_code\": \"string\",\n    \"integration_package_name\": \"JDE\",\n    \"invoice_budgetoverage_note\": \"string\",\n    \"invoice_cycle_from\": \"2020-12-10\",\n    \"invoice_cycle_to\": \"2020-12-10\",\n    \"invoice_datetm\": \"2020-12-10\",\n    \"invoice_duedate\": \"2020-12-10\",\n    \"invoice_note\": \"string\",\n    \"invoice_period\": \"2020-12-10\",\n    \"invoice_private\": 0,\n    \"invoice_ref\": \"string\",\n    \"invoicepayment_type\": \"string\",\n    \"lines\": [\n      {\n        \"glaccount_number\": \"string\",\n        \"invoiceitem_description\": \"string\",\n        \"invoiceitem_quantity\": 0,\n        \"invoiceitem_taxflag\": \"N\",\n        \"invoiceitem_unitprice\": 0,\n        \"line_item_uuid\": \"53a8a01d-2a8d-4832-88cb-5b09826feae6\",\n        \"property_id_alt\": \"string\",\n        \"unit_id_alt\": \"string\",\n        \"universal_field1\": \"string\",\n        \"universal_field2\": \"string\",\n        \"universal_field3\": \"string\",\n        \"universal_field4\": \"string\",\n        \"universal_field5\": \"string\",\n        \"universal_field6\": \"string\",\n        \"universal_field7\": \"string\",\n        \"universal_field8\": \"string\",\n        \"utilityaccount_accountnumber\": \"string\",\n        \"utilityusagetype_name\": \"string\"\n      }\n    ],\n    \"priority\": \"string\",\n    \"property_id_alt\": 12345,\n    \"remit_advice\": 0,\n    \"shipping\": 0,\n    \"tax\": 0,\n    \"universal_field1\": \"string\",\n    \"universal_field2\": \"string\",\n    \"universal_field3\": \"string\",\n    \"universal_field4\": \"string\",\n    \"universal_field5\": \"string\",\n    \"universal_field6\": \"string\",\n    \"universal_field7\": \"string\",\n    \"universal_field8\": \"string\",\n    \"userprofile_username\": \"EWServices\",\n    \"vendor_id_alt\": 12345\n  },\n  \"status\": \"ERROR\",\n  \"status_message\": \"string\",\n  \"ww_account_id\": 0,\n  \"ww_control_code\": \"string\"\n}\n","options":{"raw":{"language":"json"}}},"url":"{{gateway-ap-api}}/statement/nexus/{{statementId}}","description":"<p>Updates a Nexus statement from the system. Note that statement ID and client ID are not editable</p>\n<p><em>Request Body Structure</em></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Path</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>uuid</code></td>\n<td><code>UUID</code></td>\n<td>EnergyWatch universally unique identifier</td>\n</tr>\n<tr>\n<td><code>status</code></td>\n<td><code>Enum</code></td>\n<td>Available values : ERROR, NEW, PROCESSED, RETRIEVED, SYSTEM_UPDATED, UPDATED</td>\n</tr>\n<tr>\n<td><code>ww_account_id</code></td>\n<td><code>Integer</code></td>\n<td>EnergyWatch account identifier</td>\n</tr>\n<tr>\n<td><code>ww_control_code</code></td>\n<td><code>String</code></td>\n<td>EnergyWatch Control Code identifier for PDFs</td>\n</tr>\n<tr>\n<td><code>status_message</code></td>\n<td><code>String</code></td>\n<td>Status message</td>\n</tr>\n<tr>\n<td><code>nexus_json</code></td>\n<td><code>Nexus Statement Model</code></td>\n<td>The statement's raw body</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":true,"source":{"_postman_id":"fd28e1dd-5f8a-4ca5-968f-35e9b053b3cf","id":"fd28e1dd-5f8a-4ca5-968f-35e9b053b3cf","name":"WatchWire API","type":"collection"}},"urlObject":{"path":["statement","nexus","{{statementId}}"],"host":["{{gateway-ap-api}}"],"query":[],"variable":[]}},"response":[{"id":"ad24dc79-d244-46fc-8507-122d029d9fda","name":"Update Nexus Statement Status","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n  \"status\": \"ERROR\",\n  \"status_message\": \"Error occurred.\"\n}\n","options":{"raw":{"language":"json"}}},"url":"{{gateway-ap-api}}/statement/nexus/{{statementId}}"},"status":"OK","code":200,"_postman_previewlanguage":"plain","header":[{"key":"Set-Cookie","value":"JSESSIONID=3BDFD74D90A4A60E605589C8715121B2; Path=/; HttpOnly"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"0"},{"key":"Date","value":"Thu, 06 Jan 2022 14:54:56 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":null},{"id":"e4e1542f-85d4-40e6-83eb-73e70058403f","name":"Update Nexus Statement","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n  \"nexus_json\": {\n    \"control_amount\": 0,\n    \"country_code\": \"string\",\n    \"currency_code\": \"string\",\n    \"integration_package_name\": \"JDE\",\n    \"invoice_budgetoverage_note\": \"string\",\n    \"invoice_cycle_from\": \"2020-12-10\",\n    \"invoice_cycle_to\": \"2020-12-10\",\n    \"invoice_datetm\": \"2020-12-10\",\n    \"invoice_duedate\": \"2020-12-10\",\n    \"invoice_note\": \"string\",\n    \"invoice_period\": \"2020-12-10\",\n    \"invoice_private\": 0,\n    \"invoice_ref\": \"string\",\n    \"invoicepayment_type\": \"string\",\n    \"lines\": [\n      {\n        \"glaccount_number\": \"string\",\n        \"invoiceitem_description\": \"string\",\n        \"invoiceitem_quantity\": 0,\n        \"invoiceitem_taxflag\": \"N\",\n        \"invoiceitem_unitprice\": 0,\n        \"line_item_uuid\": \"53a8a01d-2a8d-4832-88cb-5b09826feae6\",\n        \"property_id_alt\": \"string\",\n        \"unit_id_alt\": \"string\",\n        \"universal_field1\": \"string\",\n        \"universal_field2\": \"string\",\n        \"universal_field3\": \"string\",\n        \"universal_field4\": \"string\",\n        \"universal_field5\": \"string\",\n        \"universal_field6\": \"string\",\n        \"universal_field7\": \"string\",\n        \"universal_field8\": \"string\",\n        \"utilityaccount_accountnumber\": \"string\",\n        \"utilityusagetype_name\": \"string\"\n      }\n    ],\n    \"priority\": \"string\",\n    \"property_id_alt\": 12345,\n    \"remit_advice\": 0,\n    \"shipping\": 0,\n    \"tax\": 0,\n    \"universal_field1\": \"string\",\n    \"universal_field2\": \"string\",\n    \"universal_field3\": \"string\",\n    \"universal_field4\": \"string\",\n    \"universal_field5\": \"string\",\n    \"universal_field6\": \"string\",\n    \"universal_field7\": \"string\",\n    \"universal_field8\": \"string\",\n    \"userprofile_username\": \"EWServices\",\n    \"vendor_id_alt\": 12345\n  },\n  \"status\": \"ERROR\",\n  \"status_message\": \"string\",\n  \"ww_account_id\": 0,\n  \"ww_control_code\": \"string\"\n}\n","options":{"raw":{"language":"json"}}},"url":"{{gateway-ap-api}}/statement/nexus/{{statementId}}"},"status":"OK","code":200,"_postman_previewlanguage":"plain","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"0"},{"key":"Date","value":"Thu, 06 Jan 2022 16:50:05 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"f5bd8fac-25a8-47f1-989e-c4b10b300fe8"}],"id":"e0411adc-0444-407c-a814-197924540c22","_postman_id":"e0411adc-0444-407c-a814-197924540c22","description":"","auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":true,"source":{"_postman_id":"fd28e1dd-5f8a-4ca5-968f-35e9b053b3cf","id":"fd28e1dd-5f8a-4ca5-968f-35e9b053b3cf","name":"WatchWire API","type":"collection"}}},{"name":"Standard Statements","item":[{"name":"Search Standard Statements","id":"21b5b156-ae06-4319-a605-b4263fbb1a73","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{gateway-ap-api}}/statement/standard?status=NEW&orderBy=startDate&page=1","description":"<p>Searches system for Generic Statements. At least one search parameter is required.</p>\n<blockquote>\n<p>Note: Results are returned in page sizes of 500 records, use the page parameter to paginate through full result set.</p>\n</blockquote>\n<p><em>Response Body Structure</em></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Path</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>[].uuid</code></td>\n<td><code>UUID</code></td>\n<td>EnergyWatch universally unique identifier</td>\n</tr>\n<tr>\n<td><code>[].statementId</code></td>\n<td><code>Integer</code></td>\n<td>EnergyWatch statement identifier</td>\n</tr>\n<tr>\n<td><code>[].accountId</code></td>\n<td><code>Integer</code></td>\n<td>EnergyWatch account identifier</td>\n</tr>\n<tr>\n<td><code>[].clientNodeId</code></td>\n<td><code>Integer</code></td>\n<td>EnergyWatch client node identifier</td>\n</tr>\n<tr>\n<td><code>[].accountCode</code></td>\n<td><code>String</code></td>\n<td>EnergyWatch account number</td>\n</tr>\n<tr>\n<td><code>[].commodity</code></td>\n<td><code>Enum</code></td>\n<td>Available values : CHILLEDWATER, ELECTRIC, NATURALGAS, STEAM, WATERSEWER</td>\n</tr>\n<tr>\n<td><code>[].glCode</code></td>\n<td><code>String</code></td>\n<td>EnergyWatch GL mapping identifier</td>\n</tr>\n<tr>\n<td><code>[].chargeAmount</code></td>\n<td><code>Number</code></td>\n<td>Charge amount for statement</td>\n</tr>\n<tr>\n<td><code>[].status</code></td>\n<td><code>Enum</code></td>\n<td>Available values : ERROR, NEW, PROCESSED, RETRIEVED, SYSTEM_UPDATED, UPDATED</td>\n</tr>\n<tr>\n<td><code>[].statusMessage</code></td>\n<td><code>String</code></td>\n<td>Status message</td>\n</tr>\n<tr>\n<td><code>[].pdfUrl</code></td>\n<td><code>String</code></td>\n<td>EnergyWatch Control Code identifier for PDFs</td>\n</tr>\n<tr>\n<td><code>[].property</code></td>\n<td><code>String</code></td>\n<td>Property name for statement</td>\n</tr>\n<tr>\n<td><code>[].vendor</code></td>\n<td><code>String</code></td>\n<td>Supply vendor</td>\n</tr>\n<tr>\n<td><code>[].serviceAddress</code></td>\n<td><code>String</code></td>\n<td>Service address for property</td>\n</tr>\n<tr>\n<td><code>[].city</code></td>\n<td><code>String</code></td>\n<td>City name for property</td>\n</tr>\n<tr>\n<td><code>[].state</code></td>\n<td><code>String</code></td>\n<td>2-letter state abbreviation</td>\n</tr>\n<tr>\n<td><code>[].zipCode</code></td>\n<td><code>String</code></td>\n<td>Zip code / postal code</td>\n</tr>\n<tr>\n<td><code>[].currency</code></td>\n<td><code>String</code></td>\n<td>Currency code</td>\n</tr>\n<tr>\n<td><code>[].startDate</code></td>\n<td><code>Date (MM/dd/yyyy)</code></td>\n<td>Start date for statement</td>\n</tr>\n<tr>\n<td><code>[].endDate</code></td>\n<td><code>Date (MM/dd/yyyy)</code></td>\n<td>End date for statement</td>\n</tr>\n<tr>\n<td><code>[].month</code></td>\n<td><code>Integer</code></td>\n<td>Month for statement</td>\n</tr>\n<tr>\n<td><code>[].year</code></td>\n<td><code>Integer</code></td>\n<td>Year for statement</td>\n</tr>\n<tr>\n<td><code>[].dueDate</code></td>\n<td><code>Date (MM/dd/yyyy)</code></td>\n<td>The due date</td>\n</tr>\n<tr>\n<td><code>[].newCharges</code></td>\n<td><code>Number</code></td>\n<td>New charges for statement</td>\n</tr>\n<tr>\n<td><code>[].totalAmountDue</code></td>\n<td><code>Number</code></td>\n<td>The invoice total due</td>\n</tr>\n<tr>\n<td><code>[].glSettings</code></td>\n<td><code>Json Object</code></td>\n<td>Open-ended GL mappings</td>\n</tr>\n<tr>\n<td><code>[].lines</code></td>\n<td><code>Generic Line Item Model</code></td>\n<td>The statement's line items</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":true,"source":{"_postman_id":"fd28e1dd-5f8a-4ca5-968f-35e9b053b3cf","id":"fd28e1dd-5f8a-4ca5-968f-35e9b053b3cf","name":"WatchWire API","type":"collection"}},"urlObject":{"path":["statement","standard"],"host":["{{gateway-ap-api}}"],"query":[{"disabled":true,"description":{"content":"<p>String - EnergyWatch account number</p>\n","type":"text/plain"},"key":"accountCode","value":"1234567891234567891"},{"disabled":true,"description":{"content":"<p>Integer - EnergyWatch account identifier</p>\n","type":"text/plain"},"key":"accountId","value":"12345"},{"disabled":true,"description":{"content":"<p>Number - Charge amount for statement</p>\n","type":"text/plain"},"key":"chargeAmount","value":"101.99"},{"disabled":true,"description":{"content":"<p>String - City name for property</p>\n","type":"text/plain"},"key":"city","value":"New York City"},{"disabled":true,"description":{"content":"<p>Integer - EnergyWatch client node identifier</p>\n","type":"text/plain"},"key":"clientNodeId","value":"12345"},{"disabled":true,"description":{"content":"<p>Enum - Available values : CHILLEDWATER, ELECTRIC, NATURALGAS, STEAM, WATERSEWER</p>\n","type":"text/plain"},"key":"commodity","value":"ELECTRIC"},{"disabled":true,"description":{"content":"<p>String - Currency code</p>\n","type":"text/plain"},"key":"currency","value":"USD"},{"disabled":true,"description":{"content":"<p>Date (MM/dd/yyyy)</p>\n","type":"text/plain"},"key":"dueDate","value":"12/10/2020"},{"disabled":true,"description":{"content":"<p>Date (MM/dd/yyyy)</p>\n","type":"text/plain"},"key":"endDate","value":"12/10/2020"},{"disabled":true,"description":{"content":"<p>String - EnergyWatch GL mapping identifier</p>\n","type":"text/plain"},"key":"glCode","value":"11-11111-11111"},{"disabled":true,"description":{"content":"<p>Integer - Month for statement</p>\n","type":"text/plain"},"key":"month","value":"12"},{"disabled":true,"description":{"content":"<p>Number - New charges for statement</p>\n","type":"text/plain"},"key":"newCharges","value":"101.99"},{"disabled":true,"description":{"content":"<p>String - EnergyWatch Control Code identifier for PDFs</p>\n","type":"text/plain"},"key":"pdfUrl","value":"Sample.pdf"},{"disabled":true,"description":{"content":"<p>String - Property name for statement</p>\n","type":"text/plain"},"key":"property","value":"Empire State Building"},{"disabled":true,"description":{"content":"<p>String - Service address for property</p>\n","type":"text/plain"},"key":"serviceAddress","value":"20 W 34th St, New York, NY 10001"},{"disabled":true,"description":{"content":"<p>Date (MM/dd/yyyy)</p>\n","type":"text/plain"},"key":"startDate","value":"12/10/2020"},{"disabled":true,"description":{"content":"<p>String - 2-letter state abbreviation</p>\n","type":"text/plain"},"key":"state","value":"NY"},{"disabled":true,"description":{"content":"<p>Integer - EnergyWatch statement identifier</p>\n","type":"text/plain"},"key":"statementId","value":"12345"},{"description":{"content":"<p>Available values : ERROR, NEW, PROCESSED, RETRIEVED, SYSTEM_UPDATED, UPDATED</p>\n","type":"text/plain"},"key":"status","value":"NEW"},{"disabled":true,"description":{"content":"<p>String - Status message</p>\n","type":"text/plain"},"key":"statusMessage","value":"Statement has been processed successfully"},{"disabled":true,"description":{"content":"<p>Number - The invoice total</p>\n","type":"text/plain"},"key":"totalAmountDue","value":"101.99"},{"disabled":true,"description":{"content":"<p>UUID - Energywatch universally unique identifier</p>\n","type":"text/plain"},"key":"uuid","value":"3fa85f64-5717-4562-b3fc-2c963f66afa6"},{"disabled":true,"description":{"content":"<p>String - Supply vendor</p>\n","type":"text/plain"},"key":"vendor","value":"EnergyWatch"},{"disabled":true,"description":{"content":"<p>Integer - Year for statement</p>\n","type":"text/plain"},"key":"year","value":"2022"},{"disabled":true,"description":{"content":"<p>String - Zip code / postal code</p>\n","type":"text/plain"},"key":"zipCode","value":"10001"},{"description":{"content":"<p>(Optional) order by clause when searching statements, useful during paginated requests</p>\n","type":"text/plain"},"key":"orderBy","value":"startDate"},{"description":{"content":"<p>(Optional) used to paginate through large resultset, NOTE: results come back in page sizes of 500 records</p>\n","type":"text/plain"},"key":"page","value":"1"}],"variable":[]}},"response":[{"id":"d8b697e3-bd3e-4322-a2d8-af126d2e15c7","name":"Search Standard Statements with Error Status","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{gateway-ap-api}}/statement/standard?status=ERROR","host":["{{gateway-ap-api}}"],"path":["statement","standard"],"query":[{"key":"status","value":"ERROR","description":"Available values : ERROR, NEW, PROCESSED, RETRIEVED, SYSTEM_UPDATED, UPDATED"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Thu, 06 Jan 2022 14:42:33 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"uuid\": \"1d4e2181-eb9d-4229-88fa-6c332387336c\",\n        \"statementId\": 0,\n        \"accountId\": 0,\n        \"clientId\": 0,\n        \"accountCode\": \"string\",\n        \"commodity\": \"CHILLEDWATER\",\n        \"glCode\": \"string\",\n        \"chargeAmount\": 0,\n        \"status\": \"ERROR\",\n        \"statusMessage\": \"string\",\n        \"property\": \"string\",\n        \"vendor\": \"string\",\n        \"serviceAddress\": \"string\",\n        \"city\": \"string\",\n        \"state\": \"string\",\n        \"zipCode\": \"string\",\n        \"currency\": \"string\",\n        \"startDate\": \"01/01/2021\",\n        \"endDate\": \"01/01/2021\",\n        \"month\": 0,\n        \"year\": 0,\n        \"dueDate\": \"01/01/2021\",\n        \"newCharges\": 0,\n        \"totalAmountDue\": 0,\n        \"glSettings\": {},\n        \"lines\": [\n            {\n                \"lineItemUuid\": \"f364a5b9-0981-4434-badf-e750880effab\",\n                \"statementUuid\": \"1d4e2181-eb9d-4229-88fa-6c332387336c\",\n                \"statementId\": 0,\n                \"chargeName\": \"string\",\n                \"chargeAmount\": 0,\n                \"chargeClassification\": \"string\"\n            }\n        ]\n    }\n]"}],"_postman_id":"21b5b156-ae06-4319-a605-b4263fbb1a73"},{"name":"Retrieve Standard Statement","id":"43b4f938-8899-4364-91bb-812abddd3af0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{gateway-ap-api}}/statement/standard/{{statementId}}","description":"<p>Retrieves a Generic statement from the system.</p>\n<p><em>Response Body Structure</em></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Path</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>uuid</code></td>\n<td><code>UUID</code></td>\n<td>EnergyWatch universally unique identifier</td>\n</tr>\n<tr>\n<td><code>statementId</code></td>\n<td><code>Integer</code></td>\n<td>EnergyWatch statement identifier</td>\n</tr>\n<tr>\n<td><code>accountId</code></td>\n<td><code>Integer</code></td>\n<td>EnergyWatch account identifier</td>\n</tr>\n<tr>\n<td><code>clientId</code></td>\n<td><code>Integer</code></td>\n<td>EnergyWatch client node identifier</td>\n</tr>\n<tr>\n<td><code>accountCode</code></td>\n<td><code>String</code></td>\n<td>EnergyWatch account number</td>\n</tr>\n<tr>\n<td><code>commodity</code></td>\n<td><code>Enum</code></td>\n<td>Available values : CHILLEDWATER, ELECTRIC, NATURALGAS, STEAM, WATERSEWER</td>\n</tr>\n<tr>\n<td><code>glCode</code></td>\n<td><code>String</code></td>\n<td>EnergyWatch GL mapping identifier</td>\n</tr>\n<tr>\n<td><code>chargeAmount</code></td>\n<td><code>Number</code></td>\n<td>Charge amount for statement</td>\n</tr>\n<tr>\n<td><code>status</code></td>\n<td><code>Enum</code></td>\n<td>Available values : ERROR, NEW, PROCESSED, RETRIEVED, SYSTEM_UPDATED, UPDATED</td>\n</tr>\n<tr>\n<td><code>statusMessage</code></td>\n<td><code>String</code></td>\n<td>Status message</td>\n</tr>\n<tr>\n<td><code>pdfUrl</code></td>\n<td><code>String</code></td>\n<td>EnergyWatch Control Code identifier for PDFs</td>\n</tr>\n<tr>\n<td><code>property</code></td>\n<td><code>String</code></td>\n<td>Property name for statement</td>\n</tr>\n<tr>\n<td><code>vendor</code></td>\n<td><code>String</code></td>\n<td>Supply vendor</td>\n</tr>\n<tr>\n<td><code>serviceAddress</code></td>\n<td><code>String</code></td>\n<td>Service address for property</td>\n</tr>\n<tr>\n<td><code>city</code></td>\n<td><code>String</code></td>\n<td>City name for property</td>\n</tr>\n<tr>\n<td><code>state</code></td>\n<td><code>String</code></td>\n<td>2-letter state abbreviation</td>\n</tr>\n<tr>\n<td><code>zipCode</code></td>\n<td><code>String</code></td>\n<td>Zip code / postal code</td>\n</tr>\n<tr>\n<td><code>currency</code></td>\n<td><code>String</code></td>\n<td>Currency code</td>\n</tr>\n<tr>\n<td><code>startDate</code></td>\n<td><code>Date (MM/dd/yyyy)</code></td>\n<td>Start date for statement</td>\n</tr>\n<tr>\n<td><code>endDate</code></td>\n<td><code>Date (MM/dd/yyyy)</code></td>\n<td>End date for statement</td>\n</tr>\n<tr>\n<td><code>month</code></td>\n<td><code>Integer</code></td>\n<td>Month for statement</td>\n</tr>\n<tr>\n<td><code>year</code></td>\n<td><code>Integer</code></td>\n<td>Year for statement</td>\n</tr>\n<tr>\n<td><code>dueDate</code></td>\n<td><code>Date (MM/dd/yyyy)</code></td>\n<td>The due date</td>\n</tr>\n<tr>\n<td><code>newCharges</code></td>\n<td><code>Number</code></td>\n<td>New charges for statement</td>\n</tr>\n<tr>\n<td><code>totalAmountDue</code></td>\n<td><code>Number</code></td>\n<td>The invoice total due</td>\n</tr>\n<tr>\n<td><code>glSettings</code></td>\n<td><code>Json Object</code></td>\n<td>Open-ended GL mappings</td>\n</tr>\n<tr>\n<td><code>lines</code></td>\n<td><code>Generic Line Item Model</code></td>\n<td>The statement's line items</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":true,"source":{"_postman_id":"fd28e1dd-5f8a-4ca5-968f-35e9b053b3cf","id":"fd28e1dd-5f8a-4ca5-968f-35e9b053b3cf","name":"WatchWire API","type":"collection"}},"urlObject":{"path":["statement","standard","{{statementId}}"],"host":["{{gateway-ap-api}}"],"query":[],"variable":[]}},"response":[{"id":"b5279152-b237-4d83-8321-8d29fc4188ad","name":"Retrieve Generic Statement","originalRequest":{"method":"GET","header":[],"url":"{{gateway-ap-api}}/statement/standard/{{statementId}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Thu, 06 Jan 2022 14:42:52 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"uuid\": \"1d4e2181-eb9d-4229-88fa-6c332387336c\",\n    \"statementId\": 0,\n    \"accountId\": 0,\n    \"clientId\": 0,\n    \"accountCode\": \"string\",\n    \"commodity\": \"CHILLEDWATER\",\n    \"glCode\": \"string\",\n    \"chargeAmount\": 0,\n    \"status\": \"ERROR\",\n    \"statusMessage\": \"string\",\n    \"pdfUrl\": \"string\",\n    \"property\": \"string\",\n    \"vendor\": \"string\",\n    \"serviceAddress\": \"string\",\n    \"city\": \"string\",\n    \"state\": \"string\",\n    \"zipCode\": \"string\",\n    \"currency\": \"string\",\n    \"startDate\": \"01/01/2021\",\n    \"endDate\": \"01/01/2021\",\n    \"month\": 0,\n    \"year\": 0,\n    \"dueDate\": \"01/01/2021\",\n    \"newCharges\": 0,\n    \"totalAmountDue\": 0,\n    \"glSettings\": {},\n    \"lines\": [\n        {\n            \"lineItemUuid\": \"f364a5b9-0981-4434-badf-e750880effab\",\n            \"statementUuid\": \"1d4e2181-eb9d-4229-88fa-6c332387336c\",\n            \"statementId\": 0,\n            \"chargeName\": \"string\",\n            \"chargeAmount\": 0,\n            \"chargeClassification\": \"string\"\n        }\n    ]\n}"}],"_postman_id":"43b4f938-8899-4364-91bb-812abddd3af0"},{"name":"Delete Standard Statement","id":"fbc7a161-80fd-48e6-9456-14abe730af98","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{gateway-ap-api}}/statement/generic/{{statementId}}","description":"<p>Deletes a Generic statement from the system.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":true,"source":{"_postman_id":"fd28e1dd-5f8a-4ca5-968f-35e9b053b3cf","id":"fd28e1dd-5f8a-4ca5-968f-35e9b053b3cf","name":"WatchWire API","type":"collection"}},"urlObject":{"path":["statement","generic","{{statementId}}"],"host":["{{gateway-ap-api}}"],"query":[],"variable":[]}},"response":[{"id":"642a13a5-711c-4258-826c-34649ef205fa","name":"Delete Standard Statement","originalRequest":{"method":"DELETE","header":[],"url":"{{gateway-ap-api}}/statement/standard/{{statementId}}"},"status":"No Content","code":204,"_postman_previewlanguage":"plain","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Date","value":"Thu, 06 Jan 2022 14:42:59 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"fbc7a161-80fd-48e6-9456-14abe730af98"},{"name":"Update Standard Statement","id":"5fb642d3-48ae-4b1e-9073-bd426f560ee2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n  \"accountCode\": \"string\",\n  \"accountId\": 0,\n  \"chargeLineItems\": [\n    {\n      \"charge_amount\": 0,\n      \"charge_classification\": \"string\",\n      \"charge_name\": \"string\",\n      \"line_item_uuid\": \"12d1c91d-5982-4a5a-b9be-565fed3b5c66\"\n    }\n  ],\n  \"city\": \"string\",\n  \"commodity\": \"CHILLEDWATER\",\n  \"currency\": \"string\",\n  \"dueDate\": \"01/01/2021\",\n  \"endDate\": \"01/01/2021\",\n  \"glCode\": \"string\",\n  \"glMapping\": {},\n  \"month\": 0,\n  \"newCharges\": 0,\n  \"pdfUrl\": \"string\",\n  \"property\": \"string\",\n  \"serviceAddress\": \"string\",\n  \"startDate\": \"01/01/2021\",\n  \"state\": \"string\",\n  \"status\": \"ERROR\",\n  \"statusMessage\": \"string\",\n  \"totalAmountDue\": 0,\n  \"vendor\": \"string\",\n  \"year\": 0,\n  \"zipCode\": \"string\"\n}","options":{"raw":{"language":"json"}}},"url":"{{gateway-ap-api}}/statement/standard/{{statementId}}","description":"<p>Updates a Generic statement in the system. Note that statement ID and client ID are not editable.</p>\n<p><em>Request Body Structure</em></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Path</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>uuid</code></td>\n<td><code>UUID</code></td>\n<td>EnergyWatch universally unique identifier</td>\n</tr>\n<tr>\n<td><code>accountId</code></td>\n<td><code>Integer</code></td>\n<td>EnergyWatch account identifier</td>\n</tr>\n<tr>\n<td><code>accountCode</code></td>\n<td><code>String</code></td>\n<td>EnergyWatch account number</td>\n</tr>\n<tr>\n<td><code>commodity</code></td>\n<td><code>Enum</code></td>\n<td>Available values : CHILLEDWATER, ELECTRIC, NATURALGAS, STEAM, WATERSEWER</td>\n</tr>\n<tr>\n<td><code>glCode</code></td>\n<td><code>String</code></td>\n<td>EnergyWatch GL mapping identifier</td>\n</tr>\n<tr>\n<td><code>chargeAmount</code></td>\n<td><code>Number</code></td>\n<td>Charge amount for statement</td>\n</tr>\n<tr>\n<td><code>status</code></td>\n<td><code>Enum</code></td>\n<td>Available values : ERROR, NEW, PROCESSED, RETRIEVED, SYSTEM_UPDATED, UPDATED</td>\n</tr>\n<tr>\n<td><code>statusMessage</code></td>\n<td><code>String</code></td>\n<td>Status message</td>\n</tr>\n<tr>\n<td><code>pdfUrl</code></td>\n<td><code>String</code></td>\n<td>EnergyWatch Control Code identifier for PDFs</td>\n</tr>\n<tr>\n<td><code>property</code></td>\n<td><code>String</code></td>\n<td>Property name for statement</td>\n</tr>\n<tr>\n<td><code>vendor</code></td>\n<td><code>String</code></td>\n<td>Supply vendor</td>\n</tr>\n<tr>\n<td><code>serviceAddress</code></td>\n<td><code>String</code></td>\n<td>Service address for property</td>\n</tr>\n<tr>\n<td><code>city</code></td>\n<td><code>String</code></td>\n<td>City name for property</td>\n</tr>\n<tr>\n<td><code>state</code></td>\n<td><code>String</code></td>\n<td>2-letter state abbreviation</td>\n</tr>\n<tr>\n<td><code>zipCode</code></td>\n<td><code>String</code></td>\n<td>Zip code / postal code</td>\n</tr>\n<tr>\n<td><code>currency</code></td>\n<td><code>String</code></td>\n<td>Currency code</td>\n</tr>\n<tr>\n<td><code>startDate</code></td>\n<td><code>Date (MM/dd/yyyy)</code></td>\n<td>Start date for statement</td>\n</tr>\n<tr>\n<td><code>endDate</code></td>\n<td><code>Date (MM/dd/yyyy)</code></td>\n<td>End date for statement</td>\n</tr>\n<tr>\n<td><code>month</code></td>\n<td><code>Integer</code></td>\n<td>Month for statement</td>\n</tr>\n<tr>\n<td><code>year</code></td>\n<td><code>Integer</code></td>\n<td>Year for statement</td>\n</tr>\n<tr>\n<td><code>dueDate</code></td>\n<td><code>Date (MM/dd/yyyy)</code></td>\n<td>The due date</td>\n</tr>\n<tr>\n<td><code>newCharges</code></td>\n<td><code>Number</code></td>\n<td>New charges for statement</td>\n</tr>\n<tr>\n<td><code>totalAmountDue</code></td>\n<td><code>Number</code></td>\n<td>The invoice total due</td>\n</tr>\n<tr>\n<td><code>glSettings</code></td>\n<td><code>Json Object</code></td>\n<td>Open-ended GL mappings</td>\n</tr>\n<tr>\n<td><code>lines</code></td>\n<td><code>Generic Line Item Model</code></td>\n<td>The statement's line items</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":true,"source":{"_postman_id":"fd28e1dd-5f8a-4ca5-968f-35e9b053b3cf","id":"fd28e1dd-5f8a-4ca5-968f-35e9b053b3cf","name":"WatchWire API","type":"collection"}},"urlObject":{"path":["statement","standard","{{statementId}}"],"host":["{{gateway-ap-api}}"],"query":[],"variable":[]}},"response":[{"id":"f48da174-e2f4-4b71-b82d-639d36731223","name":"Update Standard Statement Status","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n  \"status\": \"ERROR\",\n  \"statusMessage\": \"Error occurred.\"\n}\n","options":{"raw":{"language":"json"}}},"url":"{{gateway-ap-api}}/statement/standard/{{statementId}}"},"status":"OK","code":200,"_postman_previewlanguage":"plain","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"0"},{"key":"Date","value":"Thu, 06 Jan 2022 14:55:22 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":null},{"id":"1d2cf877-77c9-4697-8d9b-fb819785da15","name":"Update Standard Statement","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n  \"accountCode\": \"string\",\n  \"accountId\": 0,\n  \"chargeLineItems\": [\n    {\n      \"charge_amount\": 0,\n      \"charge_classification\": \"string\",\n      \"charge_name\": \"string\",\n      \"line_item_uuid\": \"12d1c91d-5982-4a5a-b9be-565fed3b5c66\"\n    }\n  ],\n  \"city\": \"string\",\n  \"commodity\": \"CHILLEDWATER\",\n  \"currency\": \"string\",\n  \"dueDate\": \"01/01/2021\",\n  \"endDate\": \"01/01/2021\",\n  \"glCode\": \"string\",\n  \"glMapping\": {},\n  \"month\": 0,\n  \"newCharges\": 0,\n  \"pdfUrl\": \"string\",\n  \"property\": \"string\",\n  \"serviceAddress\": \"string\",\n  \"startDate\": \"01/01/2021\",\n  \"state\": \"string\",\n  \"status\": \"ERROR\",\n  \"statusMessage\": \"string\",\n  \"totalAmountDue\": 0,\n  \"vendor\": \"string\",\n  \"year\": 0,\n  \"zipCode\": \"string\"\n}","options":{"raw":{"language":"json"}}},"url":"{{gateway-ap-api}}/statement/standard/{{statementId}}"},"status":"OK","code":200,"_postman_previewlanguage":"plain","header":[{"key":"Set-Cookie","value":"JSESSIONID=A77F1DE9DCEC4540699CADC58665F9AE; Path=/; HttpOnly"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"0"},{"key":"Date","value":"Thu, 06 Jan 2022 16:47:46 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"5fb642d3-48ae-4b1e-9073-bd426f560ee2"}],"id":"ab26d1fe-7413-4f27-8d56-b9edcb265575","_postman_id":"ab26d1fe-7413-4f27-8d56-b9edcb265575","description":"","auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":true,"source":{"_postman_id":"fd28e1dd-5f8a-4ca5-968f-35e9b053b3cf","id":"fd28e1dd-5f8a-4ca5-968f-35e9b053b3cf","name":"WatchWire API","type":"collection"}}},{"name":"Statement PDFs","item":[{"name":"Download Statement PDF","id":"90cbd587-c129-4625-a066-06d95e93ba70","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{}},"request":{"method":"GET","header":[],"url":"{{gateway-ap-api}}/statement/{{statementId}}/pdf","description":"<p>To download the PDF file in Postman, click \"Save Response\" and select \"Save to a file\".</p>\n","auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":true,"source":{"_postman_id":"fd28e1dd-5f8a-4ca5-968f-35e9b053b3cf","id":"fd28e1dd-5f8a-4ca5-968f-35e9b053b3cf","name":"WatchWire API","type":"collection"}},"urlObject":{"path":["statement","{{statementId}}","pdf"],"host":["{{gateway-ap-api}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"90cbd587-c129-4625-a066-06d95e93ba70"}],"id":"51cec648-c70a-4bfd-8eb6-663b5fc0c528","_postman_id":"51cec648-c70a-4bfd-8eb6-663b5fc0c528","description":"","auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":true,"source":{"_postman_id":"fd28e1dd-5f8a-4ca5-968f-35e9b053b3cf","id":"fd28e1dd-5f8a-4ca5-968f-35e9b053b3cf","name":"WatchWire API","type":"collection"}}}],"id":"98bde7af-0397-4d82-99a9-383e7507ffbf","_postman_id":"98bde7af-0397-4d82-99a9-383e7507ffbf","description":"","auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":true,"source":{"_postman_id":"fd28e1dd-5f8a-4ca5-968f-35e9b053b3cf","id":"fd28e1dd-5f8a-4ca5-968f-35e9b053b3cf","name":"WatchWire API","type":"collection"}}},{"name":"Invoice API","item":[{"name":"Reference IDs","item":[{"name":"Returns the ids, names and general information about your properties, accounts, projects, etc.","id":"d3206069-0884-403c-b08a-6f49bbfe0d79","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"key":"<key>","value":"<value>"},"isInherited":false},"method":"POST","header":[{"description":"<p>(Required) authentication token received from login</p>\n","key":"Token","value":"culpa anim sunt irure"}],"url":"{{portal-api-baseurl}}/info/all","description":"<p>Returns ids and descriptions for various assets, which will be used for querying for further detailed information</p>\n","urlObject":{"path":["info","all"],"host":["{{portal-api-baseurl}}"],"query":[],"variable":[]}},"response":[{"id":"6e8dbfef-8b1f-4976-bb75-45f43422636e","name":"successful operation","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: apikey","key":"Token","value":"<API Key>"},{"description":"(Required) authentication token received from login","key":"Token","value":"culpa anim sunt irure"}],"url":"{{portal-api-baseurl}}/info/all"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n \"reportNodeTree\": [\n  {\n   \"id\": 45149752,\n   \"code\": \"ut\",\n   \"name\": \"adipisicing anim qui\",\n   \"children\": [\n    {\n     \"id\": -98701781,\n     \"name\": \"sit incididunt \",\n     \"code\": \"nostrud officia sit\",\n     \"address\": \"ipsum fugiat Lorem Excepteur\",\n     \"city\": \"et dolore veniam\",\n     \"state\": \"ex\",\n     \"zip\": \"amet consectetur quis in\",\n     \"squareFootage\": -37629055\n    },\n    {\n     \"id\": -56567230,\n     \"name\": \"ea ut culpa\",\n     \"code\": \"nisi \",\n     \"address\": \"qui cupidatat\",\n     \"city\": \"officia\",\n     \"state\": \"aliquip et esse laboris ea\",\n     \"zip\": \"cillum\",\n     \"squareFootage\": 23094427\n    }\n   ]\n  },\n  {\n   \"id\": 52903632,\n   \"code\": \"aliqua commodo\",\n   \"name\": \"magna officia labore\",\n   \"children\": [\n    {\n     \"id\": -43621547,\n     \"name\": \"esse ad amet aliquip laborum\",\n     \"code\": \"sint in enim ea ad\",\n     \"address\": \"ea sunt veniam ut\",\n     \"city\": \"aliqua occaecat sunt labore\",\n     \"state\": \"ipsum consequat\",\n     \"zip\": \"eiusmod nisi\",\n     \"squareFootage\": 95928745\n    },\n    {\n     \"id\": 57173735,\n     \"name\": \"ven\",\n     \"code\": \"enim pariatur fugiat irure commodo\",\n     \"address\": \"dolor\",\n     \"city\": \"do in voluptate qui\",\n     \"state\": \"aliqua proident ex\",\n     \"zip\": \"id Ut\",\n     \"squareFootage\": -13599390\n    }\n   ]\n  }\n ],\n \"accountList\": [\n  {\n   \"id\": 50052223,\n   \"accountCode\": \"velit id\",\n   \"accountAddress\": \"proident elit\",\n   \"propertyName\": \"adipisicing irure Duis\",\n   \"accountName\": \"dolore dolore\",\n   \"commodity\": \"anim\"\n  },\n  {\n   \"id\": -53330467,\n   \"accountCode\": \"sit Lorem officia\",\n   \"accountAddress\": \"Lorem proident adipisicing labore elit\",\n   \"propertyName\": \"ut\",\n   \"accountName\": \"aute\",\n   \"commodity\": \"officia \"\n  }\n ],\n \"commodityList\": [\n  \"ELECTRIC\",\n  \"NATURAL_GAS\",\n  \"STEAM\"\n ],\n \"mvProjectList\": [\n  {\n   \"id\": 69012274,\n   \"name\": \"sunt\",\n   \"installDate\": \"Jan 2016\",\n   \"accountId\": 10620131,\n   \"nodeId\": -21796823\n  },\n  {\n   \"id\": 21571336,\n   \"name\": \"incididunt et irure\",\n   \"installDate\": \"Jan 2016\",\n   \"accountId\": 60101774,\n   \"nodeId\": -57639789\n  }\n ]\n}"}],"_postman_id":"d3206069-0884-403c-b08a-6f49bbfe0d79"}],"id":"45c5c08c-92df-4f96-9fdd-0f4790890af5","description":"<p><strong>Overview</strong></p>\n<ul>\n<li>This endpoint returns ids for all configured assets in the WatchWire platform including:<ul>\n<li>Properties</li>\n<li>Accounts</li>\n<li>Nodes</li>\n<li>M&amp;V Projects</li>\n</ul>\n</li>\n<li>The ids are returned both in hierarchical format (as seen in WW) and as a list of accounts / M&amp;V ids.</li>\n<li>The ids are unique and required in both <strong>Invoice</strong> and <strong>M&amp;V</strong> APIs</li>\n</ul>\n","_postman_id":"45c5c08c-92df-4f96-9fdd-0f4790890af5","auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":true,"source":{"_postman_id":"fd28e1dd-5f8a-4ca5-968f-35e9b053b3cf","id":"fd28e1dd-5f8a-4ca5-968f-35e9b053b3cf","name":"WatchWire API","type":"collection"}}},{"name":"Invoice","item":[{"name":"Request invoice details for a node","id":"37ee04ed-1e7f-4f19-872f-b1fc260793fe","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"description":"<p>(Required) authentication token received from login</p>\n","key":"Token","value":"culpa anim sunt irure"}],"url":"{{portal-api-baseurl}}/invoice/node/:nodeId/:commodityCodes/:startDate/:endDate","description":"<p>Request invoice details for a single nodeId and specific list of commodities (ie. ELECTRIC) and filter on invoices that have a statement date between start and end dates.  See Commodity model for full list of possible commodityCodes.  Please note, that you can only filter on commodities available for that node, since not all nodes have all commodities. This can be verified by a call to the info API endpoint</p>\n","auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":true,"source":{"_postman_id":"fd28e1dd-5f8a-4ca5-968f-35e9b053b3cf","id":"fd28e1dd-5f8a-4ca5-968f-35e9b053b3cf","name":"WatchWire API","type":"collection"}},"urlObject":{"path":["invoice","node",":nodeId",":commodityCodes",":startDate",":endDate"],"host":["{{portal-api-baseurl}}"],"query":[],"variable":[{"description":{"content":"<p>(Required) ID for a specific node (property/region etc.) as found in the response from info API endpoint</p>\n","type":"text/plain"},"type":"any","value":"-2846842","key":"nodeId"},{"description":{"content":"<p>(Required) Comma separated list of commodity codes, ie. ELECTRIC,NATURAL_GAS (full list found as enum in the Commodity model)</p>\n","type":"text/plain"},"type":"any","value":"culpa irure ut","key":"commodityCodes"},{"description":{"content":"<p>(Required) Used to limit query to invoices with statement dates after start date (yyyy-mm-dd)</p>\n","type":"text/plain"},"type":"any","value":"2021-01-01","key":"startDate"},{"description":{"content":"<p>(Required) Used to limit query to invoices with statement dates before end date (yyyy-mm-dd)</p>\n","type":"text/plain"},"type":"any","value":"2021-12-31","key":"endDate"}]}},"response":[{"id":"722474cd-6ce8-4a9c-b83f-19f611e100e4","name":"successful operation","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: apikey","key":"Token","value":"<API Key>"},{"description":"(Required) authentication token received from login","key":"Token","value":"culpa anim sunt irure"}],"url":{"raw":"{{portal-api-baseurl}}/invoice/node/:nodeId/:commodityCodes/:startDate/:endDate","host":["{{portal-api-baseurl}}"],"path":["invoice","node",":nodeId",":commodityCodes",":startDate",":endDate"],"variable":[{"key":"nodeId","value":"-2846842","description":"(Required) ID for a specific node (property/region etc.) as found in the response from info API endpoint"},{"key":"commodityCodes","value":"culpa irure ut","description":"(Required) Comma separated list of commodity codes, ie. ELECTRIC,NATURAL_GAS (full list found as enum in the Commodity model)"},{"key":"startDate","value":"2021-01-01","description":"(Required) Used to limit query to invoices with statement dates after start date (yyyy-mm-dd)"},{"key":"endDate","value":"2021-12-31","description":"(Required) Used to limit query to invoices with statement dates before end date (yyyy-mm-dd)"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{}"},{"id":"f7cba4b8-cf80-45db-b95a-cf955820ac8d","name":"Invalid ID supplied","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: apikey","key":"Token","value":"<API Key>"},{"description":"(Required) authentication token received from login","key":"Token","value":"culpa anim sunt irure"}],"url":{"raw":"{{portal-api-baseurl}}/invoice/node/:nodeId/:commodityCodes/:startDate/:endDate","host":["{{portal-api-baseurl}}"],"path":["invoice","node",":nodeId",":commodityCodes",":startDate",":endDate"],"variable":[{"key":"nodeId","value":"-2846842","description":"(Required) ID for a specific node (property/region etc.) as found in the response from info API endpoint"},{"key":"commodityCodes","value":"culpa irure ut","description":"(Required) Comma separated list of commodity codes, ie. ELECTRIC,NATURAL_GAS (full list found as enum in the Commodity model)"},{"key":"startDate","value":"2021-01-01","description":"(Required) Used to limit query to invoices with statement dates after start date (yyyy-mm-dd)"},{"key":"endDate","value":"2021-12-31","description":"(Required) Used to limit query to invoices with statement dates before end date (yyyy-mm-dd)"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"text","header":[{"key":"Content-Type","value":"text/plain"}],"cookie":[],"responseTime":null,"body":""},{"id":"9b344454-52c2-42e7-82fc-0ab50504f97a","name":"Unauthorized access to id","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: apikey","key":"Token","value":"<API Key>"},{"description":"(Required) authentication token received from login","key":"Token","value":"culpa anim sunt irure"}],"url":{"raw":"{{portal-api-baseurl}}/invoice/node/:nodeId/:commodityCodes/:startDate/:endDate","host":["{{portal-api-baseurl}}"],"path":["invoice","node",":nodeId",":commodityCodes",":startDate",":endDate"],"variable":[{"key":"nodeId","value":"-2846842","description":"(Required) ID for a specific node (property/region etc.) as found in the response from info API endpoint"},{"key":"commodityCodes","value":"culpa irure ut","description":"(Required) Comma separated list of commodity codes, ie. ELECTRIC,NATURAL_GAS (full list found as enum in the Commodity model)"},{"key":"startDate","value":"2021-01-01","description":"(Required) Used to limit query to invoices with statement dates after start date (yyyy-mm-dd)"},{"key":"endDate","value":"2021-12-31","description":"(Required) Used to limit query to invoices with statement dates before end date (yyyy-mm-dd)"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"text","header":[{"key":"Content-Type","value":"text/plain"}],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"37ee04ed-1e7f-4f19-872f-b1fc260793fe"}],"id":"9aa19f2e-c134-450c-beea-cc0a0e6bf616","_postman_id":"9aa19f2e-c134-450c-beea-cc0a0e6bf616","description":"","auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":true,"source":{"_postman_id":"fd28e1dd-5f8a-4ca5-968f-35e9b053b3cf","id":"fd28e1dd-5f8a-4ca5-968f-35e9b053b3cf","name":"WatchWire API","type":"collection"}}}],"id":"37d44ef8-eca7-4990-8514-04a816dbd03f","description":"<h1 id=\"invoice-api-overview\">Invoice API Overview</h1>\n<p>WatchWire's Invoice API includes read only access to all your Invoice data. This is typically used as a reporting tool to gather invoices and relevant analytics.</p>\n<blockquote>\n<p>**Note:**This API is not intended for posting or updating Invoice data nor is it intended to allow for configurations of Utility Accounts or Properties. Those activities are only accessible via the platform.</p>\n</blockquote>\n<h2 id=\"authentication\"><strong>Authentication</strong></h2>\n<p>As with all our APIs you will need a login for authentication in order to use the API - it is the same credentials as your WatchWire login. The initial login will send a <strong>Token</strong> that needs to be included in the header of every subsequent request. The token renews with each request and <strong>expires after 60 minutes of inactivity</strong> (at which point you will need to re-authenticate and get a new token). Please contact the EnergyWatch development team for any questions.</p>\n<h2 id=\"api-usage-instructions\"><strong>API Usage Instructions</strong></h2>\n<p>The typical API flow is as follows:</p>\n<ol>\n<li>Authenticate (obtain token)</li>\n<li>Query <code>/info/all</code> endpoint to get IDs of properties, accounts or nodes</li>\n<li>Query detail endpoints such as <code>/invoice/node/:nodeId/:commodityCodes/:startDate/:endDate</code> to get invoice data for specific nodes with ids obtained from prior step</li>\n</ol>\n<h2 id=\"terminology\"><strong>Terminology</strong></h2>\n<p><strong>Please note the following common terms used throughout the document:</strong></p>\n<ul>\n<li><p><strong>Account:</strong> refers to the utility account such as Con Edison Electric Account #1234 (<em>not to be confused with user account used for login</em>).</p>\n</li>\n<li><p><strong>Node:</strong> refers to a hierarchy level within the organization of a portfolio of properties, can be a specific Property or a collection of properties which can be grouped by a region such as New York or California. The groupings can be n-levels deep and is specific to your organization. Each node has an id which can be used to query for a specific data set.</p>\n</li>\n<li><p><strong>Property:</strong> this is self-explanatory, it refers to a specific property/building and has an id that can be used to query data for further info. This will also include some general property information such as address, square footage, and commodities being tracked at each property.</p>\n</li>\n<li><p><strong>Commodity:</strong> There are specific commodity codes used in certain requests, such as \"ELECTRIC\" - which can be used to query only electricity data. See the <em>Commodity</em> model which has a full list of possible commodity codes listed as an enum. The commodities listed at each property node indicate valid codes that can be used to filter certain endpoints such as <em>invoice</em> for a node - pass in for commodityCode parameter</p>\n</li>\n<li><p><strong>Carbon Impact (GHG Emissions):</strong> Emissions factor calculated based on the usage amount in the invoice, location of property and year of invoice. We use eGRID emission rates per year of invoice and eGRID subregion (determined by the zip code of property). For example, a May 2014 invoice of a NYC property would look up 2014 eGRID rate for NYCW, and multiply that rate times usage (MWh). All results are converted to Mton per pound - so they can be compared across commodities. All eGRID data are available from the publications on their site: <a href=\"https://www.epa.gov/energy/emissions-generation-resource-integrated-database-egrid\">https://www.epa.gov/energy/emissions-generation-resource-integrated-database-egrid</a><br />Above eGRID rates are only for electric, the following commodities are not in that list and have a standard rate across all regions:</p>\n</li><li><p>Natural Gas Emissions Rate (per MMBtu): 118.1235396</p></li><li><p>team Emissions Rate (per MMBtu): 146.3757449</p></li>\n</ul>\n","_postman_id":"37d44ef8-eca7-4990-8514-04a816dbd03f","auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":true,"source":{"_postman_id":"fd28e1dd-5f8a-4ca5-968f-35e9b053b3cf","id":"fd28e1dd-5f8a-4ca5-968f-35e9b053b3cf","name":"WatchWire API","type":"collection"}}},{"name":"Measurement & Verification API","item":[{"name":"Reference IDs","item":[{"name":"Returns the ids, names and general information about your properties, accounts, projects, etc.","id":"4b3769e4-9baf-4c55-ba7b-550abaf93aa0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"key":"<key>","value":"<value>"},"isInherited":false},"method":"POST","header":[{"description":"<p>(Required) authentication token received from login</p>\n","key":"Token","value":"culpa anim sunt irure"}],"url":"{{invoice-api}}/info/all","description":"<p>Returns ids and descriptions for various assets, which will be used for querying for further detailed information</p>\n","urlObject":{"path":["info","all"],"host":["{{invoice-api}}"],"query":[],"variable":[]}},"response":[{"id":"fba516c9-81a9-4111-a2b0-5ed4f01e4694","name":"successful operation","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: apikey","key":"Token","value":"<API Key>"},{"description":"(Required) authentication token received from login","key":"Token","value":"culpa anim sunt irure"}],"url":"{{baseUrl}}/info/all"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n \"reportNodeTree\": [\n  {\n   \"id\": 45149752,\n   \"code\": \"ut\",\n   \"name\": \"adipisicing anim qui\",\n   \"children\": [\n    {\n     \"id\": -98701781,\n     \"name\": \"sit incididunt \",\n     \"code\": \"nostrud officia sit\",\n     \"address\": \"ipsum fugiat Lorem Excepteur\",\n     \"city\": \"et dolore veniam\",\n     \"state\": \"ex\",\n     \"zip\": \"amet consectetur quis in\",\n     \"squareFootage\": -37629055\n    },\n    {\n     \"id\": -56567230,\n     \"name\": \"ea ut culpa\",\n     \"code\": \"nisi \",\n     \"address\": \"qui cupidatat\",\n     \"city\": \"officia\",\n     \"state\": \"aliquip et esse laboris ea\",\n     \"zip\": \"cillum\",\n     \"squareFootage\": 23094427\n    }\n   ]\n  },\n  {\n   \"id\": 52903632,\n   \"code\": \"aliqua commodo\",\n   \"name\": \"magna officia labore\",\n   \"children\": [\n    {\n     \"id\": -43621547,\n     \"name\": \"esse ad amet aliquip laborum\",\n     \"code\": \"sint in enim ea ad\",\n     \"address\": \"ea sunt veniam ut\",\n     \"city\": \"aliqua occaecat sunt labore\",\n     \"state\": \"ipsum consequat\",\n     \"zip\": \"eiusmod nisi\",\n     \"squareFootage\": 95928745\n    },\n    {\n     \"id\": 57173735,\n     \"name\": \"ven\",\n     \"code\": \"enim pariatur fugiat irure commodo\",\n     \"address\": \"dolor\",\n     \"city\": \"do in voluptate qui\",\n     \"state\": \"aliqua proident ex\",\n     \"zip\": \"id Ut\",\n     \"squareFootage\": -13599390\n    }\n   ]\n  }\n ],\n \"accountList\": [\n  {\n   \"id\": 50052223,\n   \"accountCode\": \"velit id\",\n   \"accountAddress\": \"proident elit\",\n   \"propertyName\": \"adipisicing irure Duis\",\n   \"accountName\": \"dolore dolore\",\n   \"commodity\": \"anim\"\n  },\n  {\n   \"id\": -53330467,\n   \"accountCode\": \"sit Lorem officia\",\n   \"accountAddress\": \"Lorem proident adipisicing labore elit\",\n   \"propertyName\": \"ut\",\n   \"accountName\": \"aute\",\n   \"commodity\": \"officia \"\n  }\n ],\n \"commodityList\": [\n  \"ELECTRIC\",\n  \"NATURAL_GAS\",\n  \"STEAM\"\n ],\n \"mvProjectList\": [\n  {\n   \"id\": 69012274,\n   \"name\": \"sunt\",\n   \"installDate\": \"Jan 2016\",\n   \"accountId\": 10620131,\n   \"nodeId\": -21796823\n  },\n  {\n   \"id\": 21571336,\n   \"name\": \"incididunt et irure\",\n   \"installDate\": \"Jan 2016\",\n   \"accountId\": 60101774,\n   \"nodeId\": -57639789\n  }\n ]\n}"}],"_postman_id":"4b3769e4-9baf-4c55-ba7b-550abaf93aa0"}],"id":"6ef6f0f5-8886-44be-ae41-8394872cfe06","description":"<p><strong>Overview</strong></p>\n<ul>\n<li>This endpoint returns ids for all configured assets in the WatchWire platform including:<ul>\n<li>Properties</li>\n<li>Accounts</li>\n<li>Nodes</li>\n<li>M&amp;V Projects</li>\n</ul>\n</li>\n<li>The ids are returned both in hierarchical format (as seen in WW) and as a list of accounts / M&amp;V ids.</li>\n<li>The ids are unique and required in both <strong>Invoice</strong> and <strong>M&amp;V</strong> APIs</li>\n</ul>\n","_postman_id":"6ef6f0f5-8886-44be-ae41-8394872cfe06","auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":true,"source":{"_postman_id":"fd28e1dd-5f8a-4ca5-968f-35e9b053b3cf","id":"fd28e1dd-5f8a-4ca5-968f-35e9b053b3cf","name":"WatchWire API","type":"collection"}}},{"name":"M&V","item":[{"name":"Measurement and verification project details for a list of projectIds","id":"07f49fcd-384f-489c-8425-8f40bf0e99e3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"description":"<p>(Required) authentication token received from login</p>\n","key":"Token","value":"culpa anim sunt irure"}],"url":"{{invoice-api}}/mv/projects/:projectIds","description":"<p>Request measurement and verification project details for a list of projectIds</p>\n","auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":true,"source":{"_postman_id":"fd28e1dd-5f8a-4ca5-968f-35e9b053b3cf","id":"fd28e1dd-5f8a-4ca5-968f-35e9b053b3cf","name":"WatchWire API","type":"collection"}},"urlObject":{"path":["mv","projects",":projectIds"],"host":["{{invoice-api}}"],"query":[],"variable":[{"id":"673ea17f-3595-4fa6-b7b2-d696453dcad3","description":{"content":"<p>(Required) Comma separated Project IDs of measurement and verification projects</p>\n","type":"text/plain"},"type":"any","value":"-7715460,91613607","key":"projectIds"}]}},"response":[{"id":"18f2a5ee-8399-4940-927f-36b0cde49311","name":"List of mv project results","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: apikey","key":"Token","value":"<API Key>"},{"description":"(Required) authentication token received from login","key":"Token","value":"culpa anim sunt irure"}],"url":{"raw":"{{baseUrl}}/mv/projects/:projectIds","host":["{{baseUrl}}"],"path":["mv","projects",":projectIds"],"variable":[{"key":"projectIds","value":"-7715460,91613607","description":"(Required) Comma separated Project IDs of measurement and verification projects"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n \"projects\": [\n  {\n   \"projectId\": 74368858,\n   \"energyUnit\": \"fugiat sunt aliquip\",\n   \"name\": \"quis et cillum laborum\",\n   \"energyRate\": -10376013.663538113,\n   \"energyCommitment\": 46421382.33169901,\n   \"remainingCommitment\": 57966680.93217087,\n   \"totalUsageSavings\": -87605593.80103698,\n   \"totalCostAvoidance\": 63427154.611405015,\n   \"totalCarbonImpact\": 76694930.27435297,\n   \"totalRetainedSavings\": 16681948.501847848,\n   \"monthlyBreakdown\": [\n    {\n     \"monthYear\": \"Jan 2016\",\n     \"monthlyProjectedUsage\": -39728550.587629564,\n     \"monthlyBaseline\": 16282316.62023434,\n     \"monthlyWeatherAdj\": -22461828.00309664,\n     \"useSavings\": 62942300.17243886,\n     \"costSavings\": -81156836.01591104,\n     \"costPerKwh\": 96065775.08208582,\n     \"projectedCost\": 32191853.3848387,\n     \"historicalBaseline\": -87727260.33971949,\n     \"historicalWeatherAdj\": 55965201.22681245,\n     \"carbonImpact\": -73111776.74431999,\n     \"actualUsage\": -27365353.86962165,\n     \"actualCost\": 35043112.33222467,\n     \"savedEnergyPayment\": -46629989.27023927,\n     \"retainedSavings\": -72818250.28728974,\n     \"month\": -87008828,\n     \"year\": -29197503\n    },\n    {\n     \"monthYear\": \"Jan 2016\",\n     \"monthlyProjectedUsage\": 56895668.79387921,\n     \"monthlyBaseline\": -51285695.29076254,\n     \"monthlyWeatherAdj\": -54988933.05986194,\n     \"useSavings\": 97848624.4150199,\n     \"costSavings\": 84863942.00183436,\n     \"costPerKwh\": -70543537.68022472,\n     \"projectedCost\": 98137865.73537886,\n     \"historicalBaseline\": 89377028.83313677,\n     \"historicalWeatherAdj\": 86284345.89581141,\n     \"carbonImpact\": 56964249.35124043,\n     \"actualUsage\": 12129842.864602745,\n     \"actualCost\": -70881723.33412385,\n     \"savedEnergyPayment\": 66691473.57262802,\n     \"retainedSavings\": -57073300.022587635,\n     \"month\": 45570462,\n     \"year\": 94744483\n    }\n   ]\n  },\n  {\n   \"projectId\": 28546585,\n   \"energyUnit\": \"qui amet\",\n   \"name\": \"proident et deserunt mollit\",\n   \"energyRate\": 64279288.80981305,\n   \"energyCommitment\": -1848940.994296372,\n   \"remainingCommitment\": 44547551.681853294,\n   \"totalUsageSavings\": -74632011.07590698,\n   \"totalCostAvoidance\": -82753053.96270238,\n   \"totalCarbonImpact\": 65723406.85715997,\n   \"totalRetainedSavings\": 9712558.54563351,\n   \"monthlyBreakdown\": [\n    {\n     \"monthYear\": \"Jan 2016\",\n     \"monthlyProjectedUsage\": -5752162.823140457,\n     \"monthlyBaseline\": -12775301.545746893,\n     \"monthlyWeatherAdj\": 91055212.11819029,\n     \"useSavings\": -57515997.23140464,\n     \"costSavings\": 59357953.81562984,\n     \"costPerKwh\": 79111928.84987104,\n     \"projectedCost\": -85311714.70438585,\n     \"historicalBaseline\": 20500629.102307722,\n     \"historicalWeatherAdj\": 60196076.80017379,\n     \"carbonImpact\": -8891599.166372195,\n     \"actualUsage\": 483643.9663822353,\n     \"actualCost\": -41046175.432894975,\n     \"savedEnergyPayment\": 76029917.57341671,\n     \"retainedSavings\": -11887138.463920802,\n     \"month\": 40872174,\n     \"year\": 13393803\n    },\n    {\n     \"monthYear\": \"Jan 2016\",\n     \"monthlyProjectedUsage\": -47901195.260541126,\n     \"monthlyBaseline\": -63097216.669512376,\n     \"monthlyWeatherAdj\": 95169688.86135659,\n     \"useSavings\": 35239542.4250294,\n     \"costSavings\": 44275184.78087196,\n     \"costPerKwh\": 94503942.82022628,\n     \"projectedCost\": -60126469.62185104,\n     \"historicalBaseline\": 50446647.320964515,\n     \"historicalWeatherAdj\": -14584169.12376,\n     \"carbonImpact\": 29997023.999359667,\n     \"actualUsage\": 33863448.13748093,\n     \"actualCost\": -73646192.6820032,\n     \"savedEnergyPayment\": 73045047.29642525,\n     \"retainedSavings\": 90650787.27621052,\n     \"month\": -88834475,\n     \"year\": -63527046\n    }\n   ]\n  }\n ]\n}"},{"id":"2f6a4965-a32b-4159-99cc-a393411c316f","name":"Invalid ID supplied","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: apikey","key":"Token","value":"<API Key>"},{"description":"(Required) authentication token received from login","key":"Token","value":"culpa anim sunt irure"}],"url":{"raw":"{{baseUrl}}/mv/projects/:projectIds","host":["{{baseUrl}}"],"path":["mv","projects",":projectIds"],"variable":[{"key":"projectIds","value":"-7715460,91613607","description":"(Required) Comma separated Project IDs of measurement and verification projects"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"text","header":[{"key":"Content-Type","value":"text/plain"}],"cookie":[],"responseTime":null,"body":""},{"id":"0625ee84-9d73-4dca-8c54-b4468f05159b","name":"Unauthorized access to id","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: apikey","key":"Token","value":"<API Key>"},{"description":"(Required) authentication token received from login","key":"Token","value":"culpa anim sunt irure"}],"url":{"raw":"{{baseUrl}}/mv/projects/:projectIds","host":["{{baseUrl}}"],"path":["mv","projects",":projectIds"],"variable":[{"key":"projectIds","value":"-7715460,91613607","description":"(Required) Comma separated Project IDs of measurement and verification projects"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"text","header":[{"key":"Content-Type","value":"text/plain"}],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"07f49fcd-384f-489c-8425-8f40bf0e99e3"},{"name":"Get Projects - initial time","event":[{"listen":"test","script":{"id":"48be473c-c757-488e-b180-ce5f91c8465e","exec":["try {\r","    var schema = pm.variables.get(\"schema\");\r","  \r","    if(schema) {\r","        const jsonData = pm.response.json();\r","        if(jsonData) {\r","            var Ajv = require('ajv');\r","            ajv = new Ajv({ logger: console, allErrors: true });\r","  \r","            pm.test('Schema is valid', function() {\r","                var result = tv4.validateMultiple(jsonData, schema);\r","                console.log(result);\r","                pm.expect(result.valid).to.be.true;\r","            });\r","       }\r","    }\r","}\r","catch(e) {\r","    console.log(e);\r","}\r","\r","pm.test(\"Status code is 200\", function () {\r","    pm.response.to.have.status(200);\r","});\r","\r","const jsonData = pm.response.json();\r","pm.test(\"Projects not empty\", function(){\r","    pm.expect(jsonData.projects).to.be.not.empty;\r","});\r","\r","pm.test(\"Status OK \", function(){\r","    pm.expect(jsonData.status).to.equal(\"OK\");\r","});\r","\r","\r","pm.test(\"Response time is less than 1000 ms\", function () {\r","    pm.expect(pm.response.responseTime).to.be.below(1000);\r","});"],"type":"text/javascript"}},{"listen":"prerequest","script":{"id":"ebb61b7c-217a-4fbd-b727-57655e91f3bb","exec":["var schema = \r","{\r","  \"$schema\": \"http://json-schema.org/draft-07/schema#\",\r","  \"title\": \"Generated schema for Root\",\r","  \"type\": \"object\",\r","  \"properties\": {\r","    \"projects\": {\r","      \"type\": \"array\",\r","      \"items\": {\r","        \"type\": \"object\",\r","        \"properties\": {\r","          \"id\": {\r","            \"type\": \"number\"\r","          },\r","          \"name\": {\r","            \"type\": \"string\"\r","          },\r","          \"accountNumber\": {\r","            \"type\": \"string\"\r","          },\r","          \"property\": {\r","            \"type\": \"object\",\r","            \"properties\": {\r","              \"propertyId\": {\r","                \"type\": \"number\"\r","              },\r","              \"name\": {\r","                \"type\": \"string\"\r","              }\r","            },\r","            \"required\": [\r","              \"propertyId\",\r","              \"name\"\r","            ]\r","          },\r","          \"commodity\": {\r","            \"type\": \"string\"\r","          },\r","          \"stage\": {\r","            \"type\": \"string\"\r","          },\r","          \"classification\": {\r","            \"type\": \"string\"\r","          },\r","          \"description\": {\r","            \"type\": \"string\"\r","          },\r","          \"vendor\": {\r","            \"type\": \"string\"\r","          },\r","          \"estimatedCompletionDate\": {\r","            \"type\": \"string\"\r","          },\r","          \"startDate\": {\r","            \"type\": \"string\"\r","          },\r","          \"analysisStart\": {\r","            \"type\": \"string\"\r","          },\r","          \"actualCompletionDate\": {\r","            \"type\": \"string\"\r","          },\r","          \"baselineEndDate\": {\r","            \"type\": \"string\"\r","          },\r","          \"estimatedCost\": {\r","            \"type\": \"number\"\r","          },\r","          \"actualCost\": {\r","            \"type\": \"number\"\r","          },\r","          \"measurementType\": {\r","            \"type\": \"string\"\r","          },\r","          \"projectedSavings\": {\r","            \"type\": \"number\"\r","          },\r","          \"projectedEnergyUnitSavings\": {\r","            \"type\": \"number\"\r","          },\r","          \"dataSource\": {\r","            \"type\": \"object\",\r","            \"properties\": {\r","              \"id\": {\r","                \"type\": \"number\"\r","              },\r","              \"name\": {\r","                \"type\": \"string\"\r","              }\r","            },\r","            \"required\": [\r","              \"id\",\r","              \"name\"\r","            ]\r","          }\r","        },\r","        \"required\": [\r","          \"id\",\r","          \"name\",\r","          \"commodity\",\r","          \"stage\",\r","          \"classification\",\r","          \"estimatedCompletionDate\",\r","          \"startDate\",\r","          \"analysisStart\",\r","          \"actualCompletionDate\",\r","          \"baselineEndDate\",\r","          \"measurementType\",\r","          \"dataSource\"\r","        ]\r","      }\r","    },\r","    \"status\": {\r","      \"type\": \"string\"\r","    }\r","  },\r","  \"required\": [\r","    \"projects\",\r","    \"status\"\r","  ]\r","}\r","\r","pm.variables.set(\"schema\", schema);\r",""],"type":"text/javascript"}}],"id":"ac128d9d-eccc-4880-8b43-c9aee4879311","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json;charset=UTF-8","type":"text"},{"key":"token","value":"{{token}}","type":"text"},{"key":"referer","value":"{{watchwire}}/measure//menu","type":"text"}],"body":{"mode":"raw","raw":"{\"nodeId\":4403}","options":{"raw":{"language":"json"}}},"url":"{{watchwire}}/Measure/GetProjects","auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":true,"source":{"_postman_id":"fd28e1dd-5f8a-4ca5-968f-35e9b053b3cf","id":"fd28e1dd-5f8a-4ca5-968f-35e9b053b3cf","name":"WatchWire API","type":"collection"}},"urlObject":{"path":["Measure","GetProjects"],"host":["{{watchwire}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"ac128d9d-eccc-4880-8b43-c9aee4879311"},{"name":"Save Project","event":[{"listen":"test","script":{"id":"11e4c15c-aa62-4eb0-b26c-11a646d67341","exec":["try {\r","    var schema = pm.variables.get(\"schema\");\r","  \r","    if(schema) {\r","        const jsonData = pm.response.json();\r","        if(jsonData) {\r","            var Ajv = require('ajv');\r","            ajv = new Ajv({ logger: console, allErrors: true });\r","  \r","            pm.test('Schema is valid', function() {\r","                var result = tv4.validateMultiple(jsonData, schema);\r","                console.log(result);\r","                pm.expect(result.valid).to.be.true;\r","            });\r","       }\r","    }\r","}\r","catch(e) {\r","    console.log(e);\r","}\r","\r","\r","const jsonData = pm.response.json();\r","//pm.collectionVariables.set(\"meterId\", jsonData.client.id );\r","\r","pm.test(\"Status code is 200\", function () {\r","    pm.response.to.have.status(200);\r","});\r","\r","\r","pm.test(\"Status OK \", function(){\r","    pm.expect(jsonData.status).to.equal(\"OK\");\r","});\r","\r","pm.test(\"Message OK \", function(){\r","    pm.expect(jsonData.message).to.equal(\"The project has been saved as in progress.\");\r","});\r","\r",""],"type":"text/javascript"}},{"listen":"prerequest","script":{"id":"caae566e-f814-4db6-a9dc-545046c4eb13","exec":["var schema =\r","{\r","    \"$schema\": \"http://json-schema.org/draft-06/schema#\",\r","    \"$ref\": \"#/definitions/Welcome10\",\r","    \"definitions\": {\r","        \"Welcome10\": {\r","            \"type\": \"object\",\r","            \"additionalProperties\": false,\r","            \"properties\": {\r","                \"status\": {\r","                    \"type\": \"string\"\r","                },\r","                \"message\": {\r","                    \"type\": \"string\"\r","                }\r","            },\r","            \"required\": [\r","                \"message\",\r","                \"status\"\r","            ],\r","            \"title\": \"Welcome10\"\r","        }\r","    }\r","}\r","\r","pm.variables.set(\"schema\", schema);\r","\r","const timestamp = Date.now();\r","pm.environment.set(\"idRand\", timestamp);"],"type":"text/javascript"}}],"id":"1e0a0213-2352-4d13-a794-51fa44a2dd2a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json;charset=UTF-8","type":"text"},{"key":"token","value":"{{token}}","type":"text"},{"key":"referer","value":"{{watchwire}}/measure//menu","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Jose_test_16032023_v8\",\r\n    \"description\": \"description test8\",\r\n    \"vendor\": \"vendor test8\",\r\n    \"estimatedCost\": \"15000\",\r\n    \"commodity\": \"Electric\",\r\n    \"classification\": \"Technical assessment\",\r\n    \"measurementType\": \"Stipulated Savings\",\r\n    \"stage\": \"Implementation\",\r\n    \"property\": {\r\n        \"hasBetaMeters\": true,\r\n        \"hasMeters\": false,\r\n        \"nodeGroupDetails\": {},\r\n        \"id\": 4446,\r\n        \"name\": \"22201 Jarrod Skyway\",\r\n        \"address\": \"null\",\r\n        \"city\": \"Bethesda\",\r\n        \"state\": \"MD\",\r\n        \"zip\": \"20814\",\r\n        \"squareFootage\": 133639,\r\n        \"propertyId\": 3734,\r\n        \"isProperty\": true,\r\n        \"propertyIsActive\": true,\r\n        \"commodities\": [\r\n            \"ELECTRIC\",\r\n            \"RECYCLING\",\r\n            \"WATERSEWER\",\r\n            \"REFUSE\"\r\n        ],\r\n        \"isDisplayable\": true\r\n    },\r\n    \"projectedEnergyUnitSavings\": \"1000\",\r\n    \"projectedSavings\": \"20000\",\r\n    \"startDate\": \"Wed Mar 01 2023\",\r\n    \"estimatedCompletionDate\": \"Thu Aug 31 2023\",\r\n    \"analysisStart\": \"Fri Apr 01 2022\",\r\n    \"baselineEndDate\": \"Thu Mar 31 2022\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{watchwire}}/Measure/SaveProject","auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":true,"source":{"_postman_id":"fd28e1dd-5f8a-4ca5-968f-35e9b053b3cf","id":"fd28e1dd-5f8a-4ca5-968f-35e9b053b3cf","name":"WatchWire API","type":"collection"}},"urlObject":{"path":["Measure","SaveProject"],"host":["{{watchwire}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"1e0a0213-2352-4d13-a794-51fa44a2dd2a"},{"name":"Get Projects - checking time","event":[{"listen":"test","script":{"id":"48be473c-c757-488e-b180-ce5f91c8465e","exec":["try {\r","    var schema = pm.variables.get(\"schema\");\r","  \r","    if(schema) {\r","        const jsonData = pm.response.json();\r","        if(jsonData) {\r","            var Ajv = require('ajv');\r","            ajv = new Ajv({ logger: console, allErrors: true });\r","  \r","            pm.test('Schema is valid', function() {\r","                var result = tv4.validateMultiple(jsonData, schema);\r","                console.log(result);\r","                pm.expect(result.valid).to.be.true;\r","            });\r","       }\r","    }\r","}\r","catch(e) {\r","    console.log(e);\r","}\r","\r","pm.test(\"Status code is 200\", function () {\r","    pm.response.to.have.status(200);\r","});\r","\r","const jsonData = pm.response.json();\r","pm.test(\"Projects not empty\", function(){\r","    pm.expect(jsonData.projects).to.be.not.empty;\r","});\r","\r","pm.test(\"Status OK \", function(){\r","    pm.expect(jsonData.status).to.equal(\"OK\");\r","});\r","\r","pm.test(\"Response time is less than 1000ms\", function () {\r","    pm.expect(pm.response.responseTime).to.be.below(1000);\r","});\r","\r","//get last id\r","let getId = jsonData.projects.length -1;\r","pm.collectionVariables.set(\"projectId\", jsonData.projects[getId].id );\r","\r","\r",""],"type":"text/javascript"}},{"listen":"prerequest","script":{"id":"ebb61b7c-217a-4fbd-b727-57655e91f3bb","exec":["var schema = \r","{\r","    \"$schema\": \"http://json-schema.org/draft-06/schema#\",\r","    \"$ref\": \"#/definitions/Welcome2\",\r","    \"definitions\": {\r","        \"Welcome2\": {\r","            \"type\": \"object\",\r","            \"additionalProperties\": false,\r","            \"properties\": {\r","                \"projects\": {\r","                    \"type\": \"array\",\r","                    \"items\": {\r","                        \"$ref\": \"#/definitions/Project\"\r","                    }\r","                },\r","                \"status\": {\r","                    \"type\": \"string\"\r","                }\r","            },\r","            \"required\": [\r","                \"projects\",\r","                \"status\"\r","            ],\r","            \"title\": \"Welcome2\"\r","        },\r","        \"Project\": {\r","            \"type\": \"object\",\r","            \"additionalProperties\": false,\r","            \"properties\": {\r","                \"id\": {\r","                    \"type\": \"integer\"\r","                },\r","                \"name\": {\r","                    \"type\": \"string\"\r","                },\r","                \"accountNumber\": {\r","                    \"type\": \"string\"\r","                },\r","                \"property\": {\r","                    \"$ref\": \"#/definitions/Property\"\r","                },\r","                \"commodity\": {\r","                    \"type\": \"string\"\r","                },\r","                \"stage\": {\r","                    \"type\": \"string\"\r","                },\r","                \"classification\": {\r","                    \"type\": \"string\"\r","                },\r","                \"description\": {\r","                    \"anyOf\": [\r","                        {\r","                            \"type\": \"null\"\r","                        },\r","                        {\r","                            \"type\": \"string\"\r","                        }\r","                    ]\r","                },\r","                \"vendor\": {\r","                    \"anyOf\": [\r","                        {\r","                            \"type\": \"null\"\r","                        },\r","                        {\r","                            \"type\": \"string\"\r","                        }\r","                    ]\r","                },\r","                \"estimatedCompletionDate\": {\r","                    \"type\": \"string\"\r","                },\r","                \"startDate\": {\r","                    \"type\": \"string\"\r","                },\r","                \"analysisStart\": {\r","                    \"type\": \"string\"\r","                },\r","                \"actualCompletionDate\": {\r","                    \"type\": \"string\"\r","                },\r","                \"baselineEndDate\": {\r","                    \"type\": \"string\"\r","                },\r","                \"estimatedCost\": {\r","                    \"type\": \"number\"\r","                },\r","                \"actualCost\": {\r","                    \"anyOf\": [\r","                        {\r","                            \"type\": \"number\"\r","                        },\r","                        {\r","                            \"type\": \"null\"\r","                        }\r","                    ]\r","                },\r","                \"measurementType\": {\r","                    \"type\": \"string\"\r","                },\r","                \"projectedSavings\": {\r","                    \"type\": \"number\"\r","                },\r","                \"projectedEnergyUnitSavings\": {\r","                    \"type\": \"number\"\r","                },\r","                \"dataSource\": {\r","                    \"$ref\": \"#/definitions/DataSource\"\r","                }\r","            },\r","            \"required\": [\r","                \"actualCompletionDate\",\r","                \"actualCost\",\r","                \"analysisStart\",\r","                \"baselineEndDate\",\r","                \"classification\",\r","                \"commodity\",\r","                \"dataSource\",\r","                \"description\",\r","                \"estimatedCompletionDate\",\r","                \"estimatedCost\",\r","                \"id\",\r","                \"measurementType\",\r","                \"name\",\r","                \"projectedEnergyUnitSavings\",\r","                \"projectedSavings\",\r","                \"property\",\r","                \"stage\",\r","                \"startDate\",\r","                \"vendor\"\r","            ],\r","            \"title\": \"Project\"\r","        },\r","        \"DataSource\": {\r","            \"type\": \"object\",\r","            \"additionalProperties\": false,\r","            \"properties\": {\r","                \"id\": {\r","                    \"type\": \"integer\"\r","                },\r","                \"name\": {\r","                    \"type\": \"string\"\r","                }\r","            },\r","            \"required\": [\r","                \"id\",\r","                \"name\"\r","            ],\r","            \"title\": \"DataSource\"\r","        },\r","        \"Property\": {\r","            \"type\": \"object\",\r","            \"additionalProperties\": false,\r","            \"properties\": {\r","                \"propertyId\": {\r","                    \"type\": \"integer\"\r","                },\r","                \"name\": {\r","                    \"type\": \"string\"\r","                }\r","            },\r","            \"required\": [\r","                \"name\",\r","                \"propertyId\"\r","            ],\r","            \"title\": \"Property\"\r","        }\r","    }\r","}\r","\r","pm.variables.set(\"schema\", schema);\r",""],"type":"text/javascript"}}],"id":"18ce74fc-bd3d-4f38-b335-bdfde7c2d4c2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json;charset=UTF-8","type":"text"},{"key":"token","value":"{{token}}","type":"text"},{"key":"referer","value":"{{watchwire}}/measure//menu","type":"text"}],"body":{"mode":"raw","raw":"{\"nodeId\":4403}","options":{"raw":{"language":"json"}}},"url":"{{watchwire}}/Measure/GetProjects","auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":true,"source":{"_postman_id":"fd28e1dd-5f8a-4ca5-968f-35e9b053b3cf","id":"fd28e1dd-5f8a-4ca5-968f-35e9b053b3cf","name":"WatchWire API","type":"collection"}},"urlObject":{"path":["Measure","GetProjects"],"host":["{{watchwire}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"18ce74fc-bd3d-4f38-b335-bdfde7c2d4c2"},{"name":"Delete Project","event":[{"listen":"test","script":{"id":"ef26aa73-a23d-4205-8ce7-5d9d795ffd38","exec":["pm.test(\"Status code is 200\", function () {\r","    pm.response.to.have.status(200);\r","});\r","\r","pm.test(\"Response time is less than 200ms\", function () {\r","    pm.expect(pm.response.responseTime).to.be.below(200);\r","});\r","\r","const jsonData = pm.response.json();\r","pm.test(\"Status OK \", function(){\r","    pm.expect(jsonData.status).to.equal(\"OK\");\r","});\r",""],"type":"text/javascript"}}],"id":"d014b8b0-7de9-4565-aed8-c4571adebdd4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json;charset=UTF-8","type":"text"},{"key":"token","value":"{{token}}","type":"text"},{"key":"Referer","value":"{{watchwire}}/measure//menu","type":"text"}],"body":{"mode":"raw","raw":"{\"ids\":[{{projectId}}]}","options":{"raw":{"language":"json"}}},"url":"{{watchwire}}/Measure/DeleteProjects","auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":true,"source":{"_postman_id":"fd28e1dd-5f8a-4ca5-968f-35e9b053b3cf","id":"fd28e1dd-5f8a-4ca5-968f-35e9b053b3cf","name":"WatchWire API","type":"collection"}},"urlObject":{"path":["Measure","DeleteProjects"],"host":["{{watchwire}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"d014b8b0-7de9-4565-aed8-c4571adebdd4"}],"id":"f899e9eb-a3c4-469f-a575-8d37eed840bb","_postman_id":"f899e9eb-a3c4-469f-a575-8d37eed840bb","description":"","auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":true,"source":{"_postman_id":"fd28e1dd-5f8a-4ca5-968f-35e9b053b3cf","id":"fd28e1dd-5f8a-4ca5-968f-35e9b053b3cf","name":"WatchWire API","type":"collection"}}}],"id":"6af12a9c-0832-48c9-a190-2f3efb4eaf52","description":"<h1 id=\"measurement--verification-api-overview\">Measurement &amp; Verification API Overview</h1>\n<p>WatchWire's Measurement &amp; Verification API includes read only access to all your M&amp;V projects data. This is typically used as a reporting tool to gather data and relevant analytics.</p>\n<blockquote>\n<p>**Note:**This API is not intended for posting or updating data nor is it intended to allow for configurations of M&amp;V projects.</p>\n<p>M&amp;V Projects should be setup in the platform.</p>\n</blockquote>\n<h2 id=\"authentication\"><strong>Authentication</strong></h2>\n<p>As with all our APIs you will need a login for authentication in order to use the API - it is the same credentials as your WatchWire login. The initial login will send a <strong>Token</strong> that needs to be included in the header of every subsequent request. The token renews with each request and <strong>expires after 60 minutes of inactivity</strong> (at which point you will need to re-authenticate and get a new token). Please contact the EnergyWatch development team for any questions.</p>\n<h2 id=\"api-usage-instructions\"><strong>API Usage Instructions</strong></h2>\n<p>The typical API flow is as follows:</p>\n<ol>\n<li>Authenticate (obtain token)</li>\n<li>Query <code>/info/all</code> endpoint to get IDs of M&amp;V projects</li>\n<li>Query detail endpoint <code>/mv/projects/:projectIds</code> to get M&amp;V project results</li>\n</ol>\n<h2 id=\"terminology\"><strong>Terminology</strong></h2>\n<p><strong>Please note the following common terms used throughout the document:</strong><br /><strong>Account:</strong> refers to the utility account such as Con Edison Electric Account #1234 (not user account used for login).</p>\n<ul>\n<li><p><strong>Measurement and Verification (mv):</strong> these queries provide data about the performance of your energy efficiency projects being implemented at various properties. It has an id that can be used to query data for further info</p>\n</li>\n<li><p><strong>Carbon Impact (GHG Emissions):</strong> Emissions factor calculated based on the usage amount in the invoice, location of property and year of invoice. We use eGRID emission rates per year of invoice and eGRID subregion (determined by the zip code of property). For example, a May 2014 invoice of a NYC property would look up 2014 eGRID rate for NYCW, and multiply that rate times usage (MWh). All results are converted to Mton per pound - so they can be compared across commodities. All eGRID data are available from the publications on their site: <a href=\"https://www.epa.gov/energy/emissions-generation-resource-integrated-database-egrid\">https://www.epa.gov/energy/emissions-generation-resource-integrated-database-egrid</a><br />Above eGRID rates are only for electric, the following commodities are not in that list and have a standard rate across all regions:</p>\n</li><li><p>Natural Gas Emissions Rate (per MMBtu): 118.1235396</p></li><li><p>team Emissions Rate (per MMBtu): 146.3757449</p></li>\n</ul>\n","_postman_id":"6af12a9c-0832-48c9-a190-2f3efb4eaf52","auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":true,"source":{"_postman_id":"fd28e1dd-5f8a-4ca5-968f-35e9b053b3cf","id":"fd28e1dd-5f8a-4ca5-968f-35e9b053b3cf","name":"WatchWire API","type":"collection"}}},{"name":"Import csv file - Web Socket pending","event":[{"listen":"test","script":{"id":"1f8a599b-eed4-410d-9d1f-2e5e67efa5fe","exec":["pm.test(\"Status code is 200\", function () {\r","    pm.response.to.have.status(200);\r","});\r","\r","const jsonData = pm.response.json();\r","pm.test(\"Status OK \", function(){\r","    pm.expect(jsonData.status).to.equal(\"OK\");\r","});"],"type":"text/javascript"}}],"id":"888b6b26-213b-4fd4-b881-1f1e3360e32d","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{}},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"POST","header":[{"key":"origin","value":"{{watchwire}}","type":"text"},{"key":"referer","value":"{{watchwire}}","type":"text"},{"key":"token","value":"{{token}}","type":"text"},{"key":"authorization","value":"Bearer {{token}}","type":"text"},{"warning":"This is a duplicate header and will be overridden by the Content-Type header generated by Postman.","key":"Content-Type","value":"multipart/form-data","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"file","type":"file","src":"/E:/Truelogic/WATX123/postmanMeterReadingImport.csv"},{"key":"meterId","value":"","type":"text"},{"key":"userEmail","value":"{{emailapi1}}","type":"text"},{"key":"overwrite","value":"false","type":"text"},{"key":"token","value":"{{token}}","type":"text"}]},"url":"{{watchwire}}/uploads/generic","urlObject":{"path":["uploads","generic"],"host":["{{watchwire}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"888b6b26-213b-4fd4-b881-1f1e3360e32d"}],"auth":{"type":"bearer","bearer":{"token":"{{token}}"}},"event":[{"listen":"prerequest","script":{"id":"ef381c5b-758f-4547-bea3-9f04cb36eb8d","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"0fc28d52-74ca-408c-bbaf-28b8b7438127","type":"text/javascript","exec":[""]}}],"variable":[{"key":"meterId","value":""}]}