{"info":{"_postman_id":"b706719b-01bf-4bcd-a779-bafe03b5cf45","name":"CDR Status and Outages API Reference","description":"<html><head></head><body><h1 id=\"purpose\">Purpose</h1>\n<p>Explains the standards, rules, context, conventions, parameters, and methods for the Consumer Data Right (CDR) Status and Outage APIs.</p>\n<p>This public API is used to monitor the health status and scheduled outages for CDR.</p>\n<h1 id=\"audience\">Audience</h1>\n<p>Consumer Data Right for Energy Participants which includes Retailers and Accredited Data Recipients.</p>\n<h1 id=\"status\">Status</h1>\n<p>This documentation presents the API evolving design. It is updated as the technical requirements are streamlined.</p>\n<p>The design is not ready for participants’ builds.</p>\n<h1 id=\"related-rules-and-procedures\">Related rules and procedures</h1>\n\n<ul>\n<li><p><a href=\"https://aemo.com.au/energy-systems/electricity/national-electricity-market-nem/market-operations/retail-and-metering/metering-procedures-guidelines-and-processes\">Meter Data File Format Specification</a></p>\n</li>\n<li><p><a href=\"https://aemo.com.au/energy-systems/electricity/national-electricity-market-nem/market-operations/retail-and-metering/market-settlement-and-transfer-solutions-msats\">MSATS Procedures</a></p>\n</li>\n<li><p><a href=\"https://www.legislation.sa.gov.au/lz?path=/c/r/national\">National Energy Retail Regulations</a></p>\n</li>\n<li><p><a href=\"https://aemo.com.au/-/media/files/electricity/nem/retail_and_metering/metering-procedures/2021/retail-electricity-market-procedures-glossary-and-framework-v331.pdf?la=en\">Retail Electricity Market Glossary and Framework</a></p>\n</li>\n</ul>\n<h1 id=\"standards\">Standards</h1>\n<p>The <a href=\"https://consumerdatastandardsaustralia.github.io/standards\">Consumer Data Standards</a> are developed, maintained, and owned by the Data Standards Body (DSB). Response payload specifications are included in this guide to provide additional context and commentary to assist with the interpretation and processing of returned data.</p>\n<p><strong>Where there are any discrepancies between this guide and the Consumer Data Standards, the Consumer Data Standards take precedence.</strong></p>\n<h1 id=\"assumed-knowledge\">Assumed knowledge</h1>\n<p>An understanding of the following is required:</p>\n<ol>\n<li>API and JSON fundamentals</li>\n<li><a href=\"https://visualisations.aemo.com.au/aemo/web-help/Content/API_Reference/API_introduction.htm\">API Reference</a></li>\n<li>RESTful programming architecture</li>\n<li>The <a href=\"https://consumerdatastandardsaustralia.github.io/standards\">Consumer Data Standards</a></li>\n<li>The <a href=\"https://aemo.com.au/energy-systems/electricity/national-electricity-market-nem/market-operations/retail-and-metering/market-settlement-and-transfer-solutions-msats\">MSATS Procedures</a></li>\n<li>The <a href=\"https://aemo.com.au/energy-systems/electricity/national-electricity-market-nem\">operation of the NEM Retail Market</a></li>\n<li><a href=\"https://aemo.com.au/energy-systems/electricity/national-electricity-market-nem/market-operations/retail-and-metering/market-settlement-and-transfer-solutions-msats\">Standing Data for MSATS</a></li>\n</ol>\n<h1 id=\"prerequisites\">Prerequisites</h1>\n<p>Before you can use the Consumer Data Right (CDR) Status and Outages API, you should test your submission in the pre-production environment before submitting to production. AEMO encourages participants to use the pre-production environment to test procedures and train staff.</p>\n<h1 id=\"resources\">Resources</h1>\n<ul>\n<li><p><a href=\"https://consumerdatastandardsaustralia.github.io/standards\">Consumer Data Standards</a></p>\n</li>\n<li><p><a href=\"https://aemo.com.au/energy-systems/electricity/der-register/data-der\">DER Register</a></p>\n</li>\n<li><p><a href=\"https://visualisations.aemo.com.au/aemo/web-help/Content/API_Reference/API_introduction.htm\">API Reference</a></p>\n</li>\n<li><p><a href=\"https://visualisations.aemo.com.au/aemo/apps/web-glossary/Content/IndustryTerminology/IndustryTerminology.htm\">Industry Terminology</a></p>\n</li>\n<li><p><a href=\"https://aemo.com.au/energy-systems/electricity/national-electricity-market-nem/market-operations/retail-and-metering/metering-procedures-guidelines-and-processes\">Meter Data File Format Specification</a></p>\n</li>\n<li><p><a href=\"https://aemo.com.au/energy-systems/electricity/national-electricity-market-nem/market-operations/retail-and-metering/market-settlement-and-transfer-solutions-msats\">MSATS Procedures</a></p>\n</li>\n<li><p><a href=\"https://www.legislation.sa.gov.au/lz?path=/c/r/national\">National Energy Retail Regulations</a></p>\n</li>\n<li><p><a href=\"https://aemo.com.au/energy-systems/electricity/national-electricity-market-nem\">Operation of the NEM Retail Market</a></p>\n</li>\n<li><p><a href=\"https://aemo.com.au/-/media/files/electricity/nem/retail_and_metering/metering-procedures/2021/retail-electricity-market-procedures-glossary-and-framework-v331.pdf?la=en\">Retail Electricity Market Glossary and Framework</a></p>\n</li>\n<li><p><a href=\"https://aemo.com.au/energy-systems/electricity/national-electricity-market-nem/market-operations/retail-and-metering/market-settlement-and-transfer-solutions-msats\">Standing Data for MSATS</a></p>\n</li>\n<li><p><a href=\"https://visualisations.aemo.com.au/aemo/web-help/Content/MSATSTechnicalGuide/Technical_Guide_to_MSATS.htm\">Technical Guide to MSATS</a></p>\n</li>\n</ul>\n<h1 id=\"api-access\">API access</h1>\n<p>CDR Status and Outage APIs are accessible over the internet. For details, see the <a href=\"https://visualisations.aemo.com.au/aemo/web-help/Content/API_Reference/API_introduction.htm\">API Reference</a>.</p>\n<h1 id=\"authentication\">Authentication</h1>\n<ul>\n<li>All communications between AEMO’s API gateway and participants’ gateways use HTTPS. AEMO APIs do not support HTTP.</li>\n</ul>\n<h1 id=\"aemo-api-portal\">AEMO API portal</h1>\n<p>At the scheduled release time, API details, including Swagger/OAS files are available from AEMO’s API Portal:</p>\n<ul>\n<li><p><a href=\"https://dev.preprod.aemo.com.au/\">Pre-production</a></p>\n</li>\n<li><p><a href=\"https://dev.aemo.com.au/\">Production</a></p>\n</li>\n</ul>\n<h1 id=\"base-urls\">Base URLs</h1>\n<p>Participants can connect to the AEMO API Gateway through the internet.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Environment</strong></th>\n<th><strong>Base URL</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Pre-production</td>\n<td><a href=\"https://api.preprod.aemo.com.au/NEMRetail/cds-au/v1/\">https://api.preprod.aemo.com.au/NEMRetail/cds-au/v1/</a></td>\n</tr>\n<tr>\n<td>Production</td>\n<td><a href=\"https://api.aemo.com.au/NEMRetail/cds-au/v1/\">https://api.aemo.com.au/NEMRetail/cds-au/v1/</a></td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"api-format\">API format</h1>\n<p>JSON</p>\n<h1 id=\"api-naming\">API naming</h1>\n<p>The CDR Status and Outage APIs follow the naming conventions as defined by the Consumer Data Standards body.</p>\n<h1 id=\"compression\">Compression</h1>\n<p>AEMO APIs support HTTP protocol compression controlled by the HTTP request header attributes, allowing compression before sending and responding.</p>\n<h1 id=\"throttling\">Throttling</h1>\n<p>AEMO implements the following throttling on API calls:· 3600 requests per minute.</p>\n<h1 id=\"response-codes\">Response codes</h1>\n<table><tbody><tr><th><p>Code</p></th><th><p>Description</p></th><th><p>Scenario</p></th></tr><tr><td><div><p>200</p></div><div><div><div><div></div></div></div><div></div></div></td><td><div><p>OK</p></div><div><div><div><div></div></div></div><div></div></div></td><td><div><p>The request is processed</p><p>The data payload is included</p></div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div><p>400</p></div><div><div><div><div></div></div></div><div></div></div></td><td><div>Missing required header</div><div><div><div><div></div></div></div><div></div></div></td><td><div>A required field is missing from the request header. See Header parameters</div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div><p>400</p></div><div><div><div><div></div></div></div><div></div></div></td><td><div>Invalid header</div><div><div><div><div></div></div></div><div></div></div></td><td><div>An invalid field is provided in the request header. Either an unexpected field is included in the request or the value provided is improperly formed. See Header parameters</div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div>400</div><div><div><div><div></div></div></div><div></div></div></td><td><div>Invalid page size</div><div><div><div><div></div></div></div><div></div></div></td><td><div>The page size provided is non-numeric or greater than the maximum allowed page size. See Query parameters</div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div>400</div><div><div><div><div></div></div></div><div></div></div></td><td><div>Invalid version</div><div><div><div><div></div></div></div><div></div></div></td><td><div>An invalid version is requested. See Header parameters</div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div><p>404</p></div><div><div><div><div></div></div></div><div></div></div></td><td><div><p>Not found</p></div><div><div><div><div></div></div></div><div></div></div></td><td><div><p>The requested URL is not a valid API endpoint. See API endpoints and response details</p></div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div><p>405</p></div><div><div><div><div></div></div></div><div></div></div></td><td><div><p>Method not allowed</p></div><div><div><div><div></div></div></div><div></div></div></td><td><div><p>Expected a GET method and received a POST method</p></div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div>406</div><div><div><div><div></div></div></div><div></div></div></td><td><div>Unsupported version</div><div><div><div><div></div></div></div><div></div></div></td><td><div>The version requested is not supported. See Header parameters</div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div>422</div><div><div><div><div></div></div></div><div></div></div></td><td><div>Invalid page</div><div><div><div><div></div></div></div><div></div></div></td><td><div>No data exists for the requested page. See Query parameters</div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div><p>429</p></div><div><div><div><div></div></div></div><div></div></div></td><td><div><p>Too many requests</p></div><div><div><div><div></div></div></div><div></div></div></td><td><div><p>The total number of inbound CDR API requests received within a minute have exceeded the Participant ID threshold. Wait 1 minute before resubmitting</p></div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div><p>500</p></div><div><div><div><div></div></div></div><div></div></div></td><td><div><p>Unexpected error encountered or internal server error</p></div><div><div><div><div></div></div></div><div></div></div></td><td><div><p>An unforeseen error occurred processing the request</p></div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div><p>503</p></div><div><div><div><div></div></div></div><div></div></div></td><td><div><p>Service unavailable</p></div><div><div><div><div></div></div></div><div></div></div></td><td><div><p>Service unavailable</p></div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div><p>504</p></div><div><div><div><div></div></div></div><div></div></div></td><td><div><p>Gateway Timeout</p></div><div><div><div><div></div></div></div><div></div></div></td><td><div><p>Request timed out</p></div><div><div><div><div></div></div></div><div></div></div></td></tr></tbody></table>\n\n<h1 id=\"api-endpoints-and-response-details\">API endpoints and response details</h1>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"Purpose","slug":"purpose"},{"content":"Audience","slug":"audience"},{"content":"Status","slug":"status"},{"content":"Related rules and procedures","slug":"related-rules-and-procedures"},{"content":"Standards","slug":"standards"},{"content":"Assumed knowledge","slug":"assumed-knowledge"},{"content":"Prerequisites","slug":"prerequisites"},{"content":"Resources","slug":"resources"},{"content":"API access","slug":"api-access"},{"content":"Authentication","slug":"authentication"},{"content":"AEMO API portal","slug":"aemo-api-portal"},{"content":"Base URLs","slug":"base-urls"},{"content":"API format","slug":"api-format"},{"content":"API naming","slug":"api-naming"},{"content":"Compression","slug":"compression"},{"content":"Throttling","slug":"throttling"},{"content":"Response codes","slug":"response-codes"},{"content":"API endpoints and response details","slug":"api-endpoints-and-response-details"}],"owner":"26491644","collectionId":"b706719b-01bf-4bcd-a779-bafe03b5cf45","publishedId":"2s9YJXYjrV","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"492249","highlight":"b766C2"},"publishDate":"2023-11-23T01:38:17.000Z"},"item":[{"name":"getStatus","event":[{"listen":"test","script":{"id":"a429479f-4bff-4944-b2fa-cfa937b97e76","exec":["var res = pm.response.json();\r","//************************** STATUS CODE VARIFICATOIN******************** */\r","pm.test(\"Status code is 200\", function () {\r","    pm.response.to.have.status(200);\r","});\r","\r","//************************** HEADER VERIFICATOIN ******************** */\r","pm.test(\"Content-Type header is application/json\",  function () {\r","  pm.response.to.have.header(\"Content-Type\");\r","  pm.expect(pm.response.headers.get('Content-Type')).to.contain('application/json');\r","});\r","\r","var version = pm.environment.get('CurrentVersion');\r","pm.test(\"x-v is present\", function () {\r","  pm.response.to.have.header(\"x-v\");\r","  pm.expect(pm.response.headers.get('x-v')).to.eql(version);\r","});\r","\r","//**************************RESPONSE PAYLOAD VERIFICATOIN******************** */\r","\r","pm.test(\"Verify data\", function () {\r","    //mandatory\r","    pm.expect(res.data).to.have.property('status', \"OK\");\r","    pm.expect(res.data).to.have.property('explanation', \"All CDR APIs available\");\r","    pm.expect(res.data).not.to.have.property('detectionTime');\r","    pm.expect(res.data).not.to.have.property('expectedResolutionTime');\r","    pm.expect(res.data).to.have.property('updateTime');\r","});\r","\r","var FinalURL = pm.request.url.toString();\r","pm.test(\"Verify links & meta\", function(){\r","    pm.expect(res.links).to.have.property('self',  FinalURL);\r","    pm.expect(res.meta).to.exist;\r","      \r","});\r","\r",""],"type":"text/javascript"}}],"id":"6f3a5e56-7f04-4fca-bbe7-ebef8f941dcf","protocolProfileBehavior":{"disabledSystemHeaders":{"accept-encoding":true},"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-v","value":"{{CurrentVersion}}","type":"text","description":"<p>The version of the requested API endpoint. The highest available supported version between x-min-v and x-v returns. If neither x-min-v and x-v are acceptable, the HTTP response code 406 Not Acceptable returns. Required, type: positive integer.</p>\n"},{"key":"x-min-v","value":"{{CurrentVersion}}","type":"text","description":"<p>The minimum version the requesting party can accept. Optional.</p>\n"}],"url":"https://api.preprod.aemo.com.au/NEMRetail/cds-au/v1/discovery/status","description":"<p>Obtain a health check status for the CDR API.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"b706719b-01bf-4bcd-a779-bafe03b5cf45","id":"b706719b-01bf-4bcd-a779-bafe03b5cf45","name":"CDR Status and Outages API Reference","type":"collection"}},"urlObject":{"path":["discovery","status"],"host":["https://api.preprod.aemo.com.au/NEMRetail/cds-au/v1"],"query":[],"variable":[]}},"response":[{"id":"5547da6d-ee33-4190-88cc-f694fb120e1b","name":"Success","originalRequest":{"method":"GET","header":[{"key":"x-v","value":"1.0","type":"text","description":"The version of the requested API endpoint. The highest available supported version between x-min-v and x-v returns. If neither x-min-v and x-v are acceptable, the HTTP response code 406 Not Acceptable returns. Required, type: positive integer."},{"key":"x-min-v","value":"1.0","type":"text"}],"url":"https://mrkt-cdr-02-tst-fna-aue.azurewebsites.net/cds-au/v1/discovery/status"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"210"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Mon, 18 Sep 2023 06:03:36 GMT"},{"key":"Request-Context","value":"appId=cid-v1:ba1102a1-c753-4ed6-95e0-c46c20777171"},{"key":"x-v","value":"1"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"status\": \"string\",\n        \"explanation\": \"string\",\n        \"updateTime\": \"2023-09-18T16:00:06+10:00\"\n    },\n    \"links\": {\n        \"self\": \"string\"\n    },\n    \"meta\": {}\n}"},{"id":"29f036f1-a540-465d-963e-bf45a9016a18","name":"Success - All Up","originalRequest":{"method":"GET","header":[{"key":"x-v","value":"1.0","type":"text","description":"The version of the requested API endpoint. The highest available supported version between x-min-v and x-v returns. If neither x-min-v and x-v are acceptable, the HTTP response code 406 Not Acceptable returns. Required, type: positive integer."},{"key":"x-min-v","value":"1.0","type":"text","description":"The minimum version the requesting party can accept. Optional.\n"}],"url":"https://mrkt-cdr-02-tst-fna-aue.azurewebsites.net/cds-au/v1/discovery/status"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"210"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Mon, 18 Sep 2023 06:03:36 GMT"},{"key":"Request-Context","value":"appId=cid-v1:ba1102a1-c753-4ed6-95e0-c46c20777171"},{"key":"x-v","value":"1"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"status\": \"OK\",\n        \"explanation\": \"All CDR APIs available\",\n        \"updateTime\": \"2023-09-18T16:00:06+10:00\"\n    },\n    \"links\": {\n        \"self\": \"string\"\n    },\n    \"meta\": {}\n}"},{"id":"a3527ca5-85c0-44a6-8576-e6832e356f09","name":"Success - All Fail","originalRequest":{"method":"GET","header":[{"key":"x-v","value":"1.0","type":"text","description":"The version of the requested API endpoint. The highest available supported version between x-min-v and x-v returns. If neither x-min-v and x-v are acceptable, the HTTP response code 406 Not Acceptable returns. Required, type: positive integer."},{"key":"x-min-v","value":"1.0","type":"text","description":"The minimum version the requesting party can accept. Optional.\n"}],"url":"https://api.preprod.aemo.com.au/NEMRetail/cds-au/v1/discovery/status"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Encoding","value":"gzip"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Request-Context","value":"appId=cid-v1:e3463960-2e43-4a96-9465-6a739bd561b2"},{"key":"x-v","value":"1"},{"key":"Date","value":"Mon, 18 Sep 2023 04:46:03 GMT"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"status\": \"UNAVAILABLE\",\n        \"explanation\": \"All CDR APIs are unavailable\",\n        \"detectionTime\": \"2023-09-18T14:45:00+10:00\",\n        \"updateTime\": \"2023-09-18T14:45:00+10:00\"\n    },\n    \"links\": {\n        \"self\": \"string\"\n    },\n    \"meta\": {}\n}"},{"id":"467b66f8-c0b1-4649-8a9a-da21f8b0341b","name":"Success - Partial","originalRequest":{"method":"GET","header":[{"key":"x-v","value":"1.0","type":"text","description":"The version of the requested API endpoint. The highest available supported version between x-min-v and x-v returns. If neither x-min-v and x-v are acceptable, the HTTP response code 406 Not Acceptable returns. Required, type: positive integer."},{"key":"x-min-v","value":"1.0","type":"text","description":"The minimum version the requesting party can accept. Optional.\n"}],"url":"https://api.preprod.aemo.com.au/NEMRetail/cds-au/v1/discovery/status"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Encoding","value":"gzip"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Request-Context","value":"appId=cid-v1:e3463960-2e43-4a96-9465-6a739bd561b2"},{"key":"x-v","value":"1"},{"key":"Date","value":"Mon, 18 Sep 2023 05:08:18 GMT"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"status\": \"PARTIAL_FAILURE\",\n        \"explanation\": \"The following APIs are unavailable: getDERforSpecificServicePoints, getDERforServicePoint\",\n        \"detectionTime\": \"2023-09-18T15:05:18+10:00\",\n        \"updateTime\": \"2023-09-18T15:05:18+10:00\"\n    },\n    \"links\": {\n        \"self\": \"string\"\n    },\n    \"meta\": {}\n}"},{"id":"f1f26892-001b-4405-9996-7ce81ed2790a","name":"Success - Outage","originalRequest":{"method":"GET","header":[{"key":"x-v","value":"{{CurrentVersion}}","type":"text"},{"key":"x-min-v","value":"{{MinVersion}}","type":"text"}],"url":{"raw":"https://api.preprod.aemo.com.au/NEMRetail/cds-au/v1/discovery/status?&","host":["https://api.preprod.aemo.com.au/NEMRetail/cds-au/v1"],"path":["discovery","status"],"query":[{"key":"","value":null,"description":"The version of the requested API endpoint. The highest available supported version between x-min-v and x-v returns. If neither x-min-v and x-v are acceptable, the HTTP response code 406 Not Acceptable returns. Required, type: positive integer."},{"key":null,"value":null,"description":"The minimum version the requesting party can accept. Optional.","type":"text"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Encoding","value":"gzip"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Request-Context","value":"appId=cid-v1:e3463960-2e43-4a96-9465-6a739bd561b2"},{"key":"x-v","value":"1"},{"key":"Date","value":"Fri, 15 Sep 2023 06:02:59 GMT"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"status\": \"SCHEDULED_OUTAGE\",\n        \"explanation\": \"A Scheduled Outage is currently active\",\n        \"expectedResolutionTime\": \"2023-09-15T16:40:00+10:00\",\n        \"updateTime\": \"2023-09-07 01:25:06\"\n    },\n    \"links\": {\n        \"self\": \"string\"\n    },\n    \"meta\": {}\n}"}],"_postman_id":"6f3a5e56-7f04-4fca-bbe7-ebef8f941dcf"},{"name":"getOutages","event":[{"listen":"test","script":{"id":"a429479f-4bff-4944-b2fa-cfa937b97e76","exec":["var res = pm.response.json();\r","//************************** STATUS CODE VARIFICATOIN******************** */\r","pm.test(\"Status code is 200\", function () {\r","    pm.response.to.have.status(200);\r","});\r","\r","//************************** HEADER VERIFICATOIN ******************** */\r","pm.test(\"Content-Type header is application/json\",  function () {\r","  pm.response.to.have.header(\"Content-Type\");\r","  pm.expect(pm.response.headers.get('Content-Type')).to.contain('application/json');\r","});\r","\r","var version = pm.environment.get('CurrentVersion');\r","pm.test(\"x-v is present\", function () {\r","  pm.response.to.have.header(\"x-v\");\r","  pm.expect(pm.response.headers.get('x-v')).to.eql(version);\r","});\r","\r","//**************************RESPONSE PAYLOAD VERIFICATOIN******************** */\r","\r","pm.test(\"Verify data\", function () {\r","    //mandatory\r","    pm.expect(res.data).to.have.property('status', \"OK\");\r","    pm.expect(res.data).to.have.property('explanation', \"All CDR APIs available\");\r","    pm.expect(res.data).not.to.have.property('detectionTime');\r","    pm.expect(res.data).not.to.have.property('expectedResolutionTime');\r","    pm.expect(res.data).to.have.property('updateTime');\r","});\r","\r","var FinalURL = pm.request.url.toString();\r","pm.test(\"Verify links & meta\", function(){\r","    pm.expect(res.links).to.have.property('self',  FinalURL);\r","    pm.expect(res.meta).to.exist;\r","      \r","});\r","\r",""],"type":"text/javascript"}}],"id":"72375d88-a990-4f4d-902c-6c706de136e3","protocolProfileBehavior":{"disabledSystemHeaders":{"accept-encoding":true},"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-v","value":"{{CurrentVersion}}","type":"text","description":"<p>The version of the requested API endpoint. The highest available supported version between x-min-v and x-v returns. If neither x-min-v and x-v are acceptable, the HTTP response code 406 Not Acceptable returns. Required, type: positive integer.</p>\n"},{"key":"x-min-v","value":"{{CurrentVersion}}","type":"text","description":"<p>The minimum version the requesting party can accept. Optional.</p>\n"}],"url":"https://api.preprod.aemo.com.au/NEMRetail/cds-au/v1/discovery/outages","description":"<p>Obtain a list of scheduled outages for the CDR API.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"b706719b-01bf-4bcd-a779-bafe03b5cf45","id":"b706719b-01bf-4bcd-a779-bafe03b5cf45","name":"CDR Status and Outages API Reference","type":"collection"}},"urlObject":{"path":["discovery","outages"],"host":["https://api.preprod.aemo.com.au/NEMRetail/cds-au/v1"],"query":[],"variable":[]}},"response":[{"id":"50919827-b37d-4397-8536-e78335f2b7c9","name":"Success","originalRequest":{"method":"GET","header":[{"key":"x-v","value":"1.0","type":"text","description":"The version of the requested API endpoint. The highest available supported version between x-min-v and x-v returns. If neither x-min-v and x-v are acceptable, the HTTP response code 406 Not Acceptable returns. Required, type: positive integer."},{"key":"x-min-v","value":"1.0","type":"text","description":"The minimum version the requesting party can accept. Optional.\n"}],"url":"https://api.preprod.aemo.com.au/NEMRetail/cds-au/v1/discovery/outages"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"outages\": [\n            {\n                \"outageTime\": \"string\",\n                \"duration\": \"string\",\n                \"isPartial\": true,\n                \"explanation\": \"string\"\n            }\n        ]\n    },\n    \"links\": {\n        \"self\": \"string\"\n    },\n    \"meta\": {}\n}"},{"id":"7616e970-edaf-4486-b548-2bcc94ec4675","name":"Success - Current","originalRequest":{"method":"GET","header":[{"key":"x-v","value":"1.0","type":"text","description":"The version of the requested API endpoint. The highest available supported version between x-min-v and x-v returns. If neither x-min-v and x-v are acceptable, the HTTP response code 406 Not Acceptable returns. Required, type: positive integer."},{"key":"x-min-v","value":"1.0","type":"text","description":"The minimum version the requesting party can accept. Optional.\n"}],"url":"https://api.preprod.aemo.com.au/NEMRetail/cds-au/v1/discovery/outages"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"outages\": [\n            {\n                \"explanation\": \"DER\",\n                \"isPartial\": true,\n                \"outageTime\": \"2023-12-04T10:00:00+10:00\",\n                \"duration\": \"P10DT4H\"\n            }\n        ]\n    },\n    \"links\": {\n        \"self\": \"https://mrkt-cdr-02-tst-fna-aue.azurewebsites.net/cds-au/v1/discovery/outages\"\n    },\n    \"meta\": {}\n}"},{"id":"d3e24e90-46b6-42c3-9e30-e9958684066d","name":"Success - Current and future","originalRequest":{"method":"GET","header":[{"key":"x-v","value":"1.0","type":"text","description":"The version of the requested API endpoint. The highest available supported version between x-min-v and x-v returns. If neither x-min-v and x-v are acceptable, the HTTP response code 406 Not Acceptable returns. Required, type: positive integer."},{"key":"x-min-v","value":"1.0","type":"text","description":"The minimum version the requesting party can accept. Optional.\n"}],"url":"https://api.preprod.aemo.com.au/NEMRetail/cds-au/v1/discovery/outages"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"outages\": [\n            {\n                \"explanation\": \"NEM25 Retail R2 SAPS PRODUCTION Retail Project Release\",\n                \"isPartial\": false,\n                \"outageTime\": \"2023-05-28T10:00:00+10:00\",\n                \"duration\": \"P140DT6H\"\n            },\n            {\n                \"explanation\": \"Pre-Prod - Expedited NEM 2025 Retail R2 SAPS  Project Release\",\n                \"isPartial\": false,\n                \"outageTime\": \"2023-10-11T15:00:00+10:00\",\n                \"duration\": \"P1DT4H\"\n            },\n            {\n                \"explanation\": \"\",\n                \"isPartial\": false,\n                \"outageTime\": \"2023-12-04T10:00:00+10:00\",\n                \"duration\": \"P10DT4H\"\n            }\n        ]\n    },\n    \"links\": {\n        \"self\": \"https://mrkt-cdr-02-tst-fna-aue.azurewebsites.net/cds-au/v1/discovery/outages\"\n    },\n    \"meta\": {}\n}"}],"_postman_id":"72375d88-a990-4f4d-902c-6c706de136e3"}],"auth":{"type":"basic","basic":{"basicConfig":[]}},"event":[{"listen":"prerequest","script":{"id":"e90eae04-c029-4460-8f75-da618f2defa4","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"121edd12-7394-429e-a889-f1ec40a68705","type":"text/javascript","exec":[""]}}],"variable":[{"key":"baseUrl","value":"https://api.preprod.aemo.com.au/NEMRetail/cds-au/v1"}]}