{"info":{"_postman_id":"079deec4-7e5b-42eb-b43d-df1739365471","name":"Jellyfish Energy - Medusa API","description":"<html><head></head><body><p>Seamlessly integrate our Medusa API into your systems to access real-time pricing, contracts, payouts and more. You can connect to the live endpoint at <a href=\"https://medusa.jellyfish.rest\">https://medusa.jellyfish.rest</a> to retrieve this data.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"9702688","collectionId":"079deec4-7e5b-42eb-b43d-df1739365471","publishedId":"2sA3JKei9T","public":true,"customColor":{"top-bar":"212121","right-sidebar":"303030","highlight":"e72e6f"},"publishDate":"2024-05-09T14:04:59.000Z"},"item":[{"name":"Authentication","item":[{"name":"/auth","id":"16410cb7-6426-4bbe-99b1-69102db1cf02","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"shortCode\": \"JELLYFISH\", // your partner short code\n    \"key\": \"{{JELLYFISHING}}\"\n}","options":{"raw":{"language":"json"}}},"url":"{{MEDUSA_ENDPOINT}}auth","description":"<h3 id=\"auth-request\">Auth Request</h3>\n<p>This endpoint is used to authenticate the partner using a short code and key.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<ul>\n<li><code>shortCode</code> (string): Your partner short code</li>\n<li><code>key</code> (string): Partner key for authentication</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>The response is a JSON object with the following properties:</p>\n<ul>\n<li><code>success</code> (boolean): Indicates the success of the authentication</li>\n<li><code>data</code> (object): Contains the authentication token and its expiration time<ul>\n<li><code>token</code> (string): Authentication token</li>\n<li><code>exp</code> (string): Token expiration time</li>\n</ul>\n</li>\n<li><code>errors</code>: Indicates any errors in the authentication process, will be null if no errors occurred</li>\n</ul>\n<h4 id=\"example\">Example</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"success\": true,\n    \"data\": {\n        \"token\": \"\",\n        \"exp\": \"\"\n    },\n    \"errors\": null\n}\n\n</code></pre>\n","urlObject":{"host":["{{MEDUSA_ENDPOINT}}auth"],"query":[],"variable":[]}},"response":[{"id":"d0b7d17c-b25e-49c7-b139-f86c672fab0b","name":"/auth","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"shortCode\": \"JELLYFISH\", // your partner short code\n    \"key\": \"{{JELLYFISHING}}\"\n}","options":{"raw":{"language":"json"}}},"url":"{{MEDUSA_ENDPOINT}}auth"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"X-RateLimit-Limit","value":"100"},{"key":"X-RateLimit-Remaining","value":"95"},{"key":"Date","value":"Thu, 09 May 2024 10:31:13 GMT"},{"key":"X-RateLimit-Reset","value":"1715250674"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"386"},{"key":"ETag","value":"W/\"182-QrT+sGJGAtzHJvc9gfPEjpVdbDw\""},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6Ikp...\",\n        \"exp\": \"2024-05-10T10:31:13.857Z\"\n    },\n    \"errors\": null\n}"}],"_postman_id":"16410cb7-6426-4bbe-99b1-69102db1cf02"},{"name":"/auth/check","id":"b290ec2d-80b5-4449-9894-e45c00e3f7db","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JELLYFISHING_BEARER}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{MEDUSA_ENDPOINT}}auth/check","description":"<h3 id=\"auth-check\">Auth Check</h3>\n<p>This endpoint is used to check the authentication status.</p>\n<p><strong>Request</strong></p>\n<ul>\n<li>Method: GET</li>\n<li>URL: <code>{{MEDUSA_ENDPOINT}}auth/check</code></li>\n</ul>\n<p><strong>Response</strong></p>\n<ul>\n<li><p>Body:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">  {\n      \"success\": true,\n      \"data\": {\n          \"id\": 0,\n          \"name\": \"\",\n          \"partnerId\": 0,\n          \"partner\": {\n              \"name\": \"\",\n              \"shortCode\": \"\",\n              \"createdAt\": \"\",\n              \"appLogo\": true,\n              \"documentLogo\": true,\n              \"appHue\": null,\n              \"frozen\": true\n          },\n          \"api\": true\n      },\n      \"errors\": null\n  }\n\n</code></pre>\n</li>\n</ul>\n","urlObject":{"path":["check"],"host":["{{MEDUSA_ENDPOINT}}auth"],"query":[],"variable":[]}},"response":[{"id":"c60839ce-fa2d-401f-becb-7b6f5ef8d6bb","name":"/auth/check","originalRequest":{"method":"GET","header":[],"url":"{{MEDUSA_ENDPOINT}}auth/check"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"X-RateLimit-Limit","value":"100"},{"key":"X-RateLimit-Remaining","value":"99"},{"key":"Date","value":"Thu, 09 May 2024 11:28:46 GMT"},{"key":"X-RateLimit-Reset","value":"1715254135"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"254"},{"key":"ETag","value":"W/\"fe-s8mte56ng2rYWrZTFnb1wmaWQkA\""},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"id\": 2,\n        \"name\": \"jelly2\",\n        \"partnerId\": 3,\n        \"partner\": {\n            \"name\": \"Jellyfish Energy\",\n            \"shortCode\": \"JELLYFISH\",\n            \"createdAt\": \"2023-04-17T13:07:18.606Z\",\n            \"appLogo\": false,\n            \"documentLogo\": false,\n            \"appHue\": null,\n            \"frozen\": false\n        },\n        \"api\": true\n    },\n    \"errors\": null\n}"}],"_postman_id":"b290ec2d-80b5-4449-9894-e45c00e3f7db"}],"id":"e77792a8-f5a6-4b8e-b1b5-fbfabcc5dc0d","description":"<p>Use your short code and API key to authenticate with our platform.</p>\n","_postman_id":"e77792a8-f5a6-4b8e-b1b5-fbfabcc5dc0d"},{"name":"Searches","item":[{"name":"/searches","id":"2d7925b3-8b72-4958-b4ed-b91783774e12","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JELLYFISHING_BEARER}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"reference\": null,\n    \"energy\": \"electricity\",\n    \"usage\": 50000,\n    \"mpxn\": \"1800020687927\",\n    \"startDate\": \"2024-06-01\",\n    \"commission\": 1.05,\n    \"promotionCode\": \"TEST\",\n    \"riskScore\": 90\n}","options":{"raw":{"language":"json"}}},"url":"{{MEDUSA_ENDPOINT}}searches","description":"<p>Create a new search to instantly view available products.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<ul>\n<li><p><code>reference</code> (string, optional): The reference for the search.</p>\n</li>\n<li><p><code>energy</code> (string): The energy type for the search.</p>\n</li>\n<li><p><code>usage</code> (number): The usage amount for the search.</p>\n</li>\n<li><p><code>mpxn</code> (string): The MPXN for the search.</p>\n</li>\n<li><p><code>startDate</code> (string): The start date for the search.</p>\n</li>\n<li><p><code>commission</code> (number): The commission amount for the search against the unit rate (per kWh).</p>\n</li>\n<li><p><code>standingUplift</code> (number): The commission amount for the search against the standing charge (per day).</p>\n</li>\n<li><p><code>promotionCode</code> (string, optional): The promotion code for the search.</p>\n</li>\n<li><p><code>riskScore</code> (number, optional): The risk score for the search.</p>\n</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>The response is in JSON format and has the following schema:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"success\": true,\n  \"data\": {\n    \"reference\": \"\"\n  },\n  \"errors\": null\n}\n\n</code></pre>\n<ul>\n<li><p><code>success</code> (boolean): Indicates if the request was successful.</p>\n</li>\n<li><p><code>data</code> (object): Contains the data related to the search.</p>\n<ul>\n<li><code>reference</code> (string): The reference for the search.</li>\n</ul>\n</li>\n<li><p><code>errors</code>: Indicates any errors in the response.</p>\n</li>\n</ul>\n","urlObject":{"host":["{{MEDUSA_ENDPOINT}}searches"],"query":[],"variable":[]}},"response":[{"id":"ce63455a-d2b8-4e46-9c93-2b24ff723e94","name":"/searches","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"reference\": null,\n    \"energy\": \"electricity\",\n    \"usage\": 50000,\n    \"mpxn\": \"1800020687927\",\n    \"startDate\": \"2024-06-01\",\n    \"commission\": 1.05,\n    \"standingUplift\": 10.00,\n    \"promotionCode\": \"TEST\",\n    \"riskScore\": 90\n}","options":{"raw":{"language":"json"}}},"url":"{{MEDUSA_ENDPOINT}}searches"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"X-RateLimit-Limit","value":"100"},{"key":"X-RateLimit-Remaining","value":"99"},{"key":"Date","value":"Thu, 09 May 2024 15:43:00 GMT"},{"key":"X-RateLimit-Reset","value":"1715269387"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"67"},{"key":"ETag","value":"W/\"43-5dB7VNHCQHUiRNFDf5DIyHJFeJ8\""},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"reference\": \"1800020687927\"\n    },\n    \"errors\": null\n}"}],"_postman_id":"2d7925b3-8b72-4958-b4ed-b91783774e12"},{"name":"/searches","id":"6bb9afd5-0b46-4a3a-ad1c-616d2790a269","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JELLYFISHING_BEARER}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{MEDUSA_ENDPOINT}}searches","description":"<p>This endpoint retrieves search results from the Medusa system.</p>\n<h4 id=\"request\">Request</h4>\n<ul>\n<li>Method: GET</li>\n<li>URL: {{MEDUSA_ENDPOINT}}searches</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<ul>\n<li><p>Status: 200</p>\n</li>\n<li><p>Content-Type: application/json</p>\n</li>\n<li><p>Body:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">  {\n    \"success\":true,\n    \"data\":[\n      {\n        \"ts\":\"\",\n        \"params\":{\n          \"reference\":\"\",\n          \"mpxn\":\"\",\n          \"usage\":0,\n          \"energy\":\"\",\n          \"startDate\":\"\",\n          \"commission\":0,\n          \"retentionRating\":0\n        },\n        \"user\":\"\"\n      }\n    ],\n    \"errors\":null\n  }\n\n</code></pre>\n</li>\n</ul>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>The response contains a \"success\" flag indicating the success of the request, along with \"data\" containing search results in the form of an array of objects. Each object includes \"ts\", \"params\", and \"user\" fields. The \"errors\" field is null, indicating no errors.\n\n</code></pre>","urlObject":{"host":["{{MEDUSA_ENDPOINT}}searches"],"query":[],"variable":[]}},"response":[{"id":"4edaaa8f-ed38-4f6b-8ee4-735ef326ee1c","name":"/searches","originalRequest":{"method":"GET","header":[],"url":"{{MEDUSA_ENDPOINT}}searches"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"X-RateLimit-Limit","value":"100"},{"key":"X-RateLimit-Remaining","value":"98"},{"key":"Date","value":"Thu, 09 May 2024 11:33:53 GMT"},{"key":"X-RateLimit-Reset","value":"1715254438"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"2194"},{"key":"ETag","value":"W/\"892-UJy+9wonatHsZHwQ1zE6eZ5vRCI\""},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": [\n        {\n            \"ts\": \"2024-05-07T20:04:52.610Z\",\n            \"params\": {\n                \"reference\": \"2380000426690\",\n                \"mpxn\": \"2380000426690\",\n                \"usage\": 5585,\n                \"energy\": \"electricity\",\n                \"startDate\": \"2024-07-18\",\n                \"commission\": 1,\n                \"retentionRating\": 5\n            },\n            \"user\": \"Aidon Hudson\",\n            \"api\": true\n        }\n    ],\n    \"errors\": null\n}"}],"_postman_id":"6bb9afd5-0b46-4a3a-ad1c-616d2790a269"},{"name":"/searches/:id","id":"5eee0bae-b482-4893-aa0e-f5e5cb421dae","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JELLYFISHING_BEARER}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{MEDUSA_ENDPOINT}}searches/2380000426690","description":"<h3 id=\"search-endpoint\">Search Endpoint</h3>\n<p>This endpoint retrieves information for a specific search by providing the search reference in the URL.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<p>This is a GET request and does not require a request body.</p>\n<h4 id=\"response\">Response</h4>\n<ul>\n<li><code>success</code> (boolean): Indicates if the request was successful.</li>\n<li><code>data</code> (object): Contains the search details and product information.<ul>\n<li><code>search</code> (object): Details of the search.<ul>\n<li><code>ts</code> (string): Timestamp.</li>\n<li><code>params</code> (object): Parameters used for the search.<ul>\n<li><code>reference</code> (string): Reference information.</li>\n<li><code>mpxn</code> (string): MPXN information.</li>\n<li><code>usage</code> (number): Usage value.</li>\n<li><code>energy</code> (string): Energy information.</li>\n<li><code>startDate</code> (string): Start date.</li>\n<li><code>commission</code> (number): Commission value.</li>\n<li><code>retentionRating</code> (number): Retention rating.</li>\n</ul>\n</li>\n<li><code>user</code> (string): User information.</li>\n</ul>\n</li>\n<li><code>products</code> (array): List of products.<ul>\n<li><code>id</code> (number): Product ID.</li>\n<li><code>name</code> (string): Product name.</li>\n<li><code>description</code> (string): Product description.</li>\n<li><code>facts</code> (array): List of facts.</li>\n<li><code>fixed</code> (boolean): Indicates if the product is fixed.</li>\n<li><code>term</code> (number): Term value.</li>\n<li><code>allOrDayUnitRate</code> (number): All or day unit rate.</li>\n<li><code>nightRate</code> (number): Night rate.</li>\n<li><code>eveningWeekendRate</code> (number): Evening/weekend rate.</li>\n<li><code>standingCharge</code> (number): Standing charge.</li>\n<li><code>meterType</code> (string): Type of meter.</li>\n<li><code>riskScoreExclusive</code> (boolean): Indicates if risk score is exclusive.</li>\n<li><code>retentionExclusive</code> (boolean): Indicates if retention is exclusive.</li>\n<li><code>costs</code> (object): Cost details.<ul>\n<li><code>annualCost</code> (number): Annual cost.</li>\n<li><code>annualCommission</code> (number): Annual commission.</li>\n<li><code>monthlyCost</code> (number): Monthly cost.</li>\n<li><code>monthlyCommission</code> (number): Monthly commission.</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n</li>\n<li><code>errors</code>: Indicates any errors, if present.</li>\n</ul>\n<p>An example response:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"success\": true,\n    \"data\": {\n        \"search\": {\n            \"ts\": \"\",\n            \"params\": {\n                \"reference\": \"\",\n                \"mpxn\": \"\",\n                \"usage\": 0,\n                \"energy\": \"\",\n                \"startDate\": \"\",\n                \"commission\": 0,\n                \"retentionRating\": 0\n            },\n            \"user\": \"\",\n            \"api\": true\n        },\n        \"products\": [\n            {\n                \"id\": 0,\n                \"name\": \"\",\n                \"description\": \"\",\n                \"facts\": [\"\"],\n                \"fixed\": true,\n                \"term\": 0,\n                \"allOrDayUnitRate\": 0,\n                \"nightRate\": null,\n                \"eveningWeekendRate\": null,\n                \"standingCharge\": 0,\n                \"meterType\": \"\",\n                \"riskScoreExclusive\": true,\n                \"retentionExclusive\": true,\n                \"costs\": {\n                    \"annualCost\": 0,\n                    \"annualCommission\": 0,\n                    \"monthlyCost\": 0,\n                    \"monthlyCommission\": 0\n                }\n            }\n        ]\n    },\n    \"errors\": null\n}\n\n</code></pre>\n","urlObject":{"path":["2380000426690"],"host":["{{MEDUSA_ENDPOINT}}searches"],"query":[],"variable":[]}},"response":[{"id":"03c62583-266c-432e-b295-628abcba3a44","name":"/searches/:id","originalRequest":{"method":"GET","header":[],"url":"{{MEDUSA_ENDPOINT}}searches/2380000426690"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"X-RateLimit-Limit","value":"100"},{"key":"X-RateLimit-Remaining","value":"99"},{"key":"Date","value":"Thu, 09 May 2024 15:51:25 GMT"},{"key":"X-RateLimit-Reset","value":"1715269887"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"8836"},{"key":"ETag","value":"W/\"2284-sqaALRQkag9bSpl9UxoDVY/JOtA\""},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"search\": {\n            \"ts\": \"2024-05-07T20:04:52.610Z\",\n            \"params\": {\n                \"reference\": \"2380000426690\",\n                \"mpxn\": \"2380000426690\",\n                \"usage\": 5585,\n                \"energy\": \"electricity\",\n                \"startDate\": \"2024-07-18\",\n                \"commission\": 1,\n                \"retentionRating\": 5\n            },\n            \"user\": \"Aidon Hudson\",\n            \"api\": true\n        },\n        \"products\": [\n            {\n                \"id\": 13443,\n                \"name\": \"Crystal 12 Month (v15)\",\n                \"description\": \"Renewable non-credit checked product\",\n                \"facts\": [\n                    \"Rates locked in\",\n                    \"Renewable sources\",\n                    \"Jellyfish rewards\"\n                ],\n                \"fixed\": true,\n                \"term\": 12,\n                \"allOrDayUnitRate\": 29.178650556000004,\n                \"nightRate\": null,\n                \"eveningWeekendRate\": null,\n                \"standingCharge\": 65,\n                \"meterType\": \"DAY\",\n                \"riskScoreExclusive\": false,\n                \"retentionExclusive\": false,\n                \"costs\": {\n                    \"annualCost\": 1866.8776335526002,\n                    \"annualCommission\": 55.85,\n                    \"monthlyCost\": 155.57313612938336,\n                    \"monthlyCommission\": 4.654166666666667\n                }\n            }\n        ]\n    },\n    \"errors\": null\n}"}],"_postman_id":"5eee0bae-b482-4893-aa0e-f5e5cb421dae"},{"name":"/searches/:id","id":"c4829316-366b-4ecf-af0e-691772a4961c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JELLYFISHING_BEARER}}"}]},"isInherited":false},"method":"DELETE","header":[],"url":"{{MEDUSA_ENDPOINT}}searches/1800020687927","description":"<p>Delete a search.</p>\n<h3 id=\"response\">Response</h3>\n<ul>\n<li>Status: 200</li>\n<li>Content-Type: application/json</li>\n</ul>\n<p>Example response body:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"success\":true,\n    \"data\":true,\n    \"errors\":null\n}\n\n</code></pre>\n","urlObject":{"path":["1800020687927"],"host":["{{MEDUSA_ENDPOINT}}searches"],"query":[],"variable":[]}},"response":[{"id":"a43e3ecc-0ac4-4218-aea9-f00436ba8500","name":"/searches/:id","originalRequest":{"method":"DELETE","header":[],"url":"{{MEDUSA_ENDPOINT}}searches/1800020687927"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"X-RateLimit-Limit","value":"100"},{"key":"X-RateLimit-Remaining","value":"98"},{"key":"Date","value":"Thu, 09 May 2024 11:37:42 GMT"},{"key":"X-RateLimit-Reset","value":"1715254668"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"42"},{"key":"ETag","value":"W/\"2a-iWr0zGyyc3ZtRXqgYkHyioaJzUQ\""},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": true,\n    \"errors\": null\n}"}],"_postman_id":"c4829316-366b-4ecf-af0e-691772a4961c"}],"id":"40f2e427-9a59-413b-abe7-0b424765b709","description":"<p>Create a new search to instantly view available products. Stored for 7 days.</p>\n","_postman_id":"40f2e427-9a59-413b-abe7-0b424765b709"},{"name":"Bulk Searches","item":[{"name":"/bulk-searches","id":"363e810f-fa96-4f7a-8759-9b07ab6de0e0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JELLYFISHING_BEARER}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"reference\": \"testing123\",\n    \"data\": [\n        {\n            \"energy\": \"electricity\",\n            \"usage\": 50000,\n            \"mpxn\": \"1800020687927\",\n            \"startDate\": \"2024-06-01\",\n            \"commission\": 1.05,\n            \"promotionCode\": \"TEST\",\n            \"riskScore\": 90\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"{{MEDUSA_ENDPOINT}}bulk-searches","description":"<p>For multi-site searches.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<ul>\n<li><p>The request body should be in raw format and should include an array of objects with the following parameters:</p>\n<ul>\n<li><p><code>reference</code> (string, required): A reference value.</p>\n</li>\n<li><p><code>data</code> (array, required): An array of objects containing the following parameters:</p>\n<ul>\n<li><p><code>energy</code> (string, required): Energy type.</p>\n</li>\n<li><p><code>usage</code> (number, required): Usage value.</p>\n</li>\n<li><p><code>mpxn</code> (string, required): MPXN value.</p>\n</li>\n<li><p><code>startDate</code> (string, required): Start date.</p>\n</li>\n<li><p><code>commission</code> (number, required): Commission value.</p>\n</li>\n<li><p><code>promotionCode</code> (string, optional): Promotion code.</p>\n</li>\n<li><p><code>riskScore</code> (number, optional): Risk score value.</p>\n</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>The response will be in JSON format with the following schema:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"success\": true,\n  \"data\": {\n    \"reference\": \"\"\n  },\n  \"errors\": null\n}\n\n</code></pre>\n<ul>\n<li><code>success</code> (boolean): Indicates if the request was successful.</li>\n<li><code>data</code> (object): Contains the reference value.<ul>\n<li><code>reference</code> (string): A reference value.</li>\n</ul>\n</li>\n<li><code>errors</code>: Indicates any errors, if present.</li>\n</ul>\n","urlObject":{"host":["{{MEDUSA_ENDPOINT}}bulk-searches"],"query":[],"variable":[]}},"response":[{"id":"9510e2a5-e764-46fc-9f53-330a6e1d4be6","name":"/bulk-searches","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"reference\": \"testing123\",\n    \"data\": [\n        {\n            \"energy\": \"electricity\",\n            \"usage\": 50000,\n            \"mpxn\": \"1800020687927\",\n            \"startDate\": \"2024-06-01\",\n            \"commission\": 1.05,\n            \"promotionCode\": \"TEST\",\n            \"riskScore\": 90\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"{{MEDUSA_ENDPOINT}}bulk-searches"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"X-RateLimit-Limit","value":"100"},{"key":"X-RateLimit-Remaining","value":"99"},{"key":"Date","value":"Thu, 09 May 2024 16:26:17 GMT"},{"key":"X-RateLimit-Reset","value":"1715271982"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"64"},{"key":"ETag","value":"W/\"40-0BbfEQ52f7cS4Xqiacn/LrFeEiA\""},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"reference\": \"testing123\"\n    },\n    \"errors\": null\n}"}],"_postman_id":"363e810f-fa96-4f7a-8759-9b07ab6de0e0"},{"name":"/bulk-searches","id":"aa69448b-5986-4302-b515-45fcf906c5af","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JELLYFISHING_BEARER}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{MEDUSA_ENDPOINT}}bulk-searches","description":"<h4 id=\"request\">Request</h4>\n<ul>\n<li>Method: GET</li>\n<li>URL: {{MEDUSA_ENDPOINT}}bulk-searches</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>Upon successful execution, the response will be in JSON format with a status code of 200. The response will contain the following fields:</p>\n<ul>\n<li><code>success</code> (boolean): Indicates whether the request was successful.</li>\n<li><code>data</code> (array): An array of objects containing search data.<ul>\n<li><code>ts</code>: Timestamp of the search.</li>\n<li><code>user</code>: User associated with the search.</li>\n<li><code>api</code> (boolean): Indicates if the search was performed via API.</li>\n<li><code>reference</code>: Reference information for the search.</li>\n<li><code>meters</code> (number): Number of meters associated with the search.</li>\n</ul>\n</li>\n<li><code>errors</code>: Indicates any errors encountered during the request.</li>\n</ul>\n<h4 id=\"example-response\">Example Response</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"success\":true,\n    \"data\":[\n        {\n            \"ts\":\"\",\n            \"user\":\"\",\n            \"api\":true,\n            \"reference\":\"\",\n            \"meters\":0\n        }\n    ],\n    \"errors\":null\n}\n\n</code></pre>\n","urlObject":{"host":["{{MEDUSA_ENDPOINT}}bulk-searches"],"query":[],"variable":[]}},"response":[{"id":"a7b4f75d-b4a0-4f6e-ace5-8ce2c0cb04e1","name":"/bulk-searches","originalRequest":{"method":"GET","header":[],"url":"{{MEDUSA_ENDPOINT}}bulk-searches"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"X-RateLimit-Limit","value":"100"},{"key":"X-RateLimit-Remaining","value":"99"},{"key":"Date","value":"Thu, 09 May 2024 11:52:29 GMT"},{"key":"X-RateLimit-Reset","value":"1715255559"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"627"},{"key":"ETag","value":"W/\"273-+0IuzombV8yieLg5V9R8z0DzE+8\""},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": [\n        {\n            \"ts\": \"2024-05-09T11:51:32.023Z\",\n            \"user\": \"jelly2\",\n            \"api\": true,\n            \"reference\": \"testing123\",\n            \"meters\": 1\n        }\n    ],\n    \"errors\": null\n}"}],"_postman_id":"aa69448b-5986-4302-b515-45fcf906c5af"},{"name":"/bulk-searches/:id","id":"74dd6af3-2ad1-428f-bad7-44b0aa89f3e7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JELLYFISHING_BEARER}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{MEDUSA_ENDPOINT}}bulk-searches/testing123","description":"<h4 id=\"response\">Response</h4>\n<ul>\n<li>Status: 200</li>\n<li>Content-Type: application/json</li>\n</ul>\n<h5 id=\"response-body\">Response Body</h5>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"success\": true,\n    \"data\": {\n        \"ts\": \"\",\n        \"params\": {\n            \"data\": [\n                {\n                    \"mpxn\": \"\",\n                    \"energy\": \"\",\n                    \"commission\": 0,\n                    \"usage\": 0,\n                    \"startDate\": \"\",\n                    \"promotionCode\": \"\",\n                    \"products\": [],\n                    \"errors\": [\"\"]\n                }\n            ],\n            \"dataFilters\": {},\n            \"reference\": \"\"\n        },\n        \"user\": \"\",\n        \"api\": true\n    },\n    \"errors\": null\n}\n\n</code></pre>\n","urlObject":{"path":["testing123"],"host":["{{MEDUSA_ENDPOINT}}bulk-searches"],"query":[],"variable":[]}},"response":[{"id":"e422fc56-f177-4edd-884d-b9c7d5ff618a","name":"/bulk-searches/:id","originalRequest":{"method":"GET","header":[],"url":"{{MEDUSA_ENDPOINT}}bulk-searches/testing123"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"X-RateLimit-Limit","value":"100"},{"key":"X-RateLimit-Remaining","value":"99"},{"key":"Date","value":"Thu, 09 May 2024 11:52:58 GMT"},{"key":"X-RateLimit-Reset","value":"1715255589"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"366"},{"key":"ETag","value":"W/\"16e-uvL0sw1ssHvLhlCP+PF2wxq5s3M\""},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"ts\": \"2024-05-09T11:51:32.023Z\",\n        \"params\": {\n            \"data\": [\n                {\n                    \"mpxn\": \"1800020687927\",\n                    \"energy\": \"electricity\",\n                    \"commission\": 1.05,\n                    \"usage\": 50000,\n                    \"startDate\": \"Invalid date\",\n                    \"promotionCode\": \"TEST\",\n                    \"products\": [],\n                    \"errors\": [\n                        \"Missing or invalid value for field 'startDate'\"\n                    ]\n                }\n            ],\n            \"dataFilters\": {},\n            \"reference\": \"testing123\"\n        },\n        \"user\": \"jelly2\",\n        \"api\": true\n    },\n    \"errors\": null\n}"}],"_postman_id":"74dd6af3-2ad1-428f-bad7-44b0aa89f3e7"},{"name":"/bulk-searches/:id/refresh","id":"27d3b0db-7aa7-442b-8619-28b9ad779a1a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JELLYFISHING_BEARER}}"}]},"isInherited":false},"method":"POST","header":[],"url":"{{MEDUSA_ENDPOINT}}bulk-searches/testing123/refresh","description":"<p>Refresh products for the bulk search reference.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"success\": true,\n  \"data\": true,\n  \"errors\": null\n}\n\n</code></pre>\n<p>This JSON schema represents the response structure for the request, where:</p>\n<ul>\n<li>\"success\": indicates if the request was successful.</li>\n<li>\"data\": provides information about the data retrieval status.</li>\n<li>\"errors\": represents any errors encountered during the request, which will be null if no errors occurred.</li>\n</ul>\n","urlObject":{"path":["testing123","refresh"],"host":["{{MEDUSA_ENDPOINT}}bulk-searches"],"query":[],"variable":[]}},"response":[{"id":"65261559-91a5-43f5-b63a-1c901131b7b5","name":"/bulk-searches/:id/refresh","originalRequest":{"method":"POST","header":[],"url":"{{MEDUSA_ENDPOINT}}bulk-searches/testing123/refresh"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"X-RateLimit-Limit","value":"100"},{"key":"X-RateLimit-Remaining","value":"99"},{"key":"Date","value":"Thu, 09 May 2024 11:54:21 GMT"},{"key":"X-RateLimit-Reset","value":"1715255669"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"42"},{"key":"ETag","value":"W/\"2a-iWr0zGyyc3ZtRXqgYkHyioaJzUQ\""},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": true,\n    \"errors\": null\n}"}],"_postman_id":"27d3b0db-7aa7-442b-8619-28b9ad779a1a"},{"name":"/bulk-searches/:id","id":"a1fd731f-64c2-49ae-81af-623e755fe83e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JELLYFISHING_BEARER}}"}]},"isInherited":false},"method":"DELETE","header":[],"url":"{{MEDUSA_ENDPOINT}}bulk-searches/1800020687927","description":"<p>Delete a bulk search.</p>\n<p>Upon successful execution, the endpoint returns a JSON response with a status code of 200 and a content type of <code>application/json</code>. The response body follows the schema below:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"type\": \"object\",\n    \"properties\": {\n        \"success\": {\n            \"type\": \"boolean\"\n        },\n        \"data\": {\n            \"type\": \"boolean\"\n        },\n        \"errors\": {\n            \"type\": \"null\"\n        }\n    },\n    \"required\": [\"success\", \"data\", \"errors\"]\n}\n\n</code></pre>\n<p>This schema describes the structure of the response object, where the <code>success</code> and <code>data</code> properties are of type boolean, and the <code>errors</code> property is of type null.</p>\n","urlObject":{"path":["1800020687927"],"host":["{{MEDUSA_ENDPOINT}}bulk-searches"],"query":[],"variable":[]}},"response":[{"id":"6db7af70-5324-45b8-98a2-42bcdfc9f7f2","name":"/bulk-searches/:id","originalRequest":{"method":"DELETE","header":[],"url":"{{MEDUSA_ENDPOINT}}bulk-searches/1800020687927"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"X-RateLimit-Limit","value":"100"},{"key":"X-RateLimit-Remaining","value":"99"},{"key":"Date","value":"Thu, 09 May 2024 11:54:58 GMT"},{"key":"X-RateLimit-Reset","value":"1715255709"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"42"},{"key":"ETag","value":"W/\"2a-iWr0zGyyc3ZtRXqgYkHyioaJzUQ\""},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": true,\n    \"errors\": null\n}"}],"_postman_id":"a1fd731f-64c2-49ae-81af-623e755fe83e"}],"id":"4b546b2e-6b7f-4db1-ba53-68f32cf4d4dd","description":"<p>Create a new search to instantly view available products. Stored for 7 days. Products will be cached unless /refresh is called.</p>\n","_postman_id":"4b546b2e-6b7f-4db1-ba53-68f32cf4d4dd"},{"name":"Contracts","item":[{"name":"/contracts","id":"6557fb71-f36c-454f-9a3e-e30dd9c93881","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JELLYFISHING_BEARER}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{MEDUSA_ENDPOINT}}contracts?stage=PENDING_SIGNATURE","description":"<h4 id=\"request\">Request</h4>\n<ul>\n<li>Parameters<ul>\n<li>stage<ul>\n<li><code>INFORMATION_REQUIRED</code></li>\n<li><code>PENDING_SIGNATURE</code></li>\n<li><code>PENDING_APPROVAL</code></li>\n<li><code>REJECTED</code></li>\n<li><code>CONTRACT_EXPIRED</code></li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>The response is a JSON object with the following schema:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"success\": boolean,\n    \"data\": [\n        {\n            \"id\": number,\n            \"companyName\": string,\n            \"reference\": string,\n            \"startDate\": string,\n            \"mpxn\": string,\n            \"energy\": string,\n            \"metadata\": {\n                \"partner_user\": string\n            }\n        }\n    ],\n    \"errors\": null\n}\n\n</code></pre>\n<p>The <code>success</code> field indicates if the request was successful. The <code>data</code> array contains contract details including <code>id</code>, <code>companyName</code>, <code>reference</code>, <code>startDate</code>, <code>mpxn</code>, <code>energy</code>, and <code>metadata</code> with <code>partner_user</code>. The <code>errors</code> field is null if there are no errors.</p>\n<h4 id=\"example\">Example</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"success\": true,\n    \"data\": [\n        {\n            \"id\": 0,\n            \"companyName\": \"\",\n            \"reference\": \"\",\n            \"startDate\": \"\",\n            \"mpxn\": \"\",\n            \"energy\": \"\",\n            \"metadata\": {\n                \"partner_user\": \"\"\n            }\n        }\n    ],\n    \"errors\": null\n}\n\n</code></pre>\n","urlObject":{"host":["{{MEDUSA_ENDPOINT}}contracts"],"query":[{"key":"stage","value":"PENDING_SIGNATURE"}],"variable":[]}},"response":[{"id":"3db1b6db-4fae-41b9-80c2-5d1a92f2dba2","name":"/contracts","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{MEDUSA_ENDPOINT}}contracts?stage=PENDING_SIGNATURE","host":["{{MEDUSA_ENDPOINT}}contracts"],"query":[{"key":"stage","value":"PENDING_SIGNATURE"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"X-RateLimit-Limit","value":"100"},{"key":"X-RateLimit-Remaining","value":"99"},{"key":"Date","value":"Thu, 09 May 2024 11:59:48 GMT"},{"key":"X-RateLimit-Reset","value":"1715255999"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1051"},{"key":"ETag","value":"W/\"41b-03rqb4az6g16DVkx+MXe30/rOjI\""},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": [\n        {\n            \"id\": 3813,\n            \"companyName\": \"Client 1\",\n            \"reference\": \"friendly-warthog-35\",\n            \"startDate\": \"2024-05-09T00:00:00.000Z\",\n            \"mpxn\": \"2447349406\",\n            \"energy\": \"gas\",\n            \"metadata\": {\n                \"partner_user\": \"jelly2\"\n            }\n        }\n    ],\n    \"errors\": null\n}"}],"_postman_id":"6557fb71-f36c-454f-9a3e-e30dd9c93881"},{"name":"/contracts","id":"bcb1e128-0896-473e-87ab-d964464c1ee7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JELLYFISHING_BEARER}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"productId\": 14385,\n    \"search\": {\n        \"ts\": \"2024-05-09T15:43:00.723Z\",\n        \"params\": {\n            \"reference\": \"1800020687927\",\n            \"energy\": \"electricity\",\n            \"usage\": 50000,\n            \"mpxn\": \"1800020687927\",\n            \"startDate\": \"2024-06-01\",\n            \"commission\": 1.05,\n            \"promotionCode\": \"TEST\",\n            \"riskScore\": 90\n        },\n        \"user\": \"jelly2\",\n        \"api\": true\n    },\n    \"companyName\": \"Company 1\",\n    \"reference\": \"bright-turtle-96\",\n    \"loa\": \"JVBERi0xLjYKJeLjz9M...\"\n}","options":{"raw":{"language":"json"}}},"url":"{{MEDUSA_ENDPOINT}}contracts","description":"<p>This endpoint allows the creation of contracts. The request should be sent as an HTTP POST to {{MEDUSA_ENDPOINT}}/contracts with the following payload in raw request body type:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"productId\": 0,\n  \"search\": {\n    \"ts\": \"\",\n    \"params\": {\n      \"reference\": \"\",\n      \"energy\": \"\",\n      \"usage\": 0,\n      \"mpxn\": \"\",\n      \"startDate\": \"\",\n      \"commission\": 0,\n      \"promotionCode\": \"\",\n      \"riskScore\": 0\n    },\n    \"user\": \"\",\n    \"api\": true\n  },\n  \"companyName\": \"\",\n  \"reference\": \"\",\n  \"loa\": \"\"\n}\n\n</code></pre>\n<h3 id=\"response\">Response</h3>\n<p>The response for this request is a JSON object with the following schema:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"success\": true,\n  \"data\": {\n    \"id\": 0\n  },\n  \"errors\": null\n}\n\n</code></pre>\n<p>The <code>success</code> field indicates whether the request was successful. If successful, the <code>data</code> field contains the contract ID. The <code>errors</code> field will be null if there are no errors.</p>\n<p>Example response:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"success\": true,\n  \"data\": {\n    \"id\": 0\n  },\n  \"errors\": null\n}\n\n</code></pre>\n","urlObject":{"host":["{{MEDUSA_ENDPOINT}}contracts"],"query":[],"variable":[]}},"response":[{"id":"e075b34a-6c5f-4f0c-a601-3910d4b9b557","name":"/contracts","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"productId\": 14385,\n    \"search\": {\n        \"ts\": \"2024-05-09T15:43:00.723Z\",\n        \"params\": {\n            \"reference\": \"1800020687927\",\n            \"energy\": \"electricity\",\n            \"usage\": 50000,\n            \"mpxn\": \"1800020687927\",\n            \"startDate\": \"2024-06-01\",\n            \"commission\": 1.05,\n            \"promotionCode\": \"TEST\",\n            \"riskScore\": 90\n        },\n        \"user\": \"jelly2\",\n        \"api\": true\n    },\n    \"companyName\": \"Company 1\",\n    \"reference\": \"bright-turtle-96\",\n    \"loa\": \"JVBERi0xLjYKJeLjz9M...\"\n}","options":{"raw":{"language":"json"}}},"url":"{{MEDUSA_ENDPOINT}}contracts"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"X-RateLimit-Limit","value":"100"},{"key":"X-RateLimit-Remaining","value":"99"},{"key":"Date","value":"Thu, 09 May 2024 19:01:32 GMT"},{"key":"X-RateLimit-Reset","value":"1715281298"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"49"},{"key":"ETag","value":"W/\"31-TJkuU39gf0pojO+H2/mpjpADE5w\""},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"id\": 3924\n    },\n    \"errors\": null\n}"}],"_postman_id":"bcb1e128-0896-473e-87ab-d964464c1ee7"},{"name":"/contracts/:id","id":"759f79c6-0172-4dbc-b34f-7da2b4cae737","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JELLYFISHING_BEARER}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{MEDUSA_ENDPOINT}}contracts/3813","description":"<p>The endpoint retrieves contract information for a specific contract. The response is in JSON format and has a schema as follows:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"type\": \"object\",\n    \"properties\": {\n        \"success\": {\n            \"type\": \"boolean\"\n        },\n        \"data\": {\n            \"type\": \"object\",\n            \"properties\": {\n                \"id\": {\n                    \"type\": \"integer\"\n                },\n                \"stage\": {\n                    \"type\": \"string\"\n                },\n                \"companyName\": {\n                    \"type\": \"string\"\n                },\n                \"companyRegistrationNumber\": {\n                    \"type\": \"string\"\n                },\n                \"reference\": {\n                    \"type\": \"string\"\n                },\n                \"startDate\": {\n                    \"type\": \"string\"\n                },\n                \"endDate\": {\n                    \"type\": \"string\"\n                },\n                \"contactTitle\": {\n                    \"type\": \"string\"\n                },\n                \"contactFirstName\": {\n                    \"type\": \"string\"\n                },\n                \"contactLastName\": {\n                    \"type\": \"string\"\n                },\n                \"contactPosition\": {\n                    \"type\": \"string\"\n                },\n                \"contactEmail\": {\n                    \"type\": \"string\"\n                },\n                \"contactPhone\": {\n                    \"type\": \"string\"\n                },\n                \"contactAltPhone\": {\n                    \"type\": [\"string\", \"null\"]\n                },\n                \"mpxn\": {\n                    \"type\": \"string\"\n                },\n                \"bankAccountName\": {\n                    \"type\": \"string\"\n                },\n                \"bankAccountNumber\": {\n                    \"type\": \"string\"\n                },\n                \"bankAccountSortCode\": {\n                    \"type\": \"string\"\n                },\n                \"commissionPerUnit\": {\n                    \"type\": \"integer\"\n                },\n                \"estimatedAnnualUsage\": {\n                    \"type\": \"integer\"\n                },\n                \"metadata\": {\n                    \"type\": \"object\",\n                    \"properties\": {\n                        \"partner_user\": {\n                            \"type\": \"string\"\n                        }\n                    }\n                },\n                \"productId\": {\n                    \"type\": \"integer\"\n                },\n                \"energy\": {\n                    \"type\": \"string\"\n                },\n                \"active\": {\n                    \"type\": \"boolean\"\n                },\n                \"contractDocumentId\": {\n                    \"type\": [\"string\", \"null\"]\n                },\n                \"creditsafeId\": {\n                    \"type\": [\"string\", \"null\"]\n                },\n                \"cot\": {\n                    \"type\": \"boolean\"\n                },\n                \"createdAt\": {\n                    \"type\": \"string\"\n                },\n                \"updatedAt\": {\n                    \"type\": \"string\"\n                },\n                \"partnerId\": {\n                    \"type\": \"integer\"\n                }\n            }\n        },\n        \"errors\": {\n            \"type\": [\"array\", \"null\"],\n            \"items\": {}\n        }\n    }\n}\n\n</code></pre>\n","urlObject":{"path":["3813"],"host":["{{MEDUSA_ENDPOINT}}contracts"],"query":[],"variable":[]}},"response":[{"id":"edce7710-3e48-42db-a1b0-686983f5bbf8","name":"/contracts/:id","originalRequest":{"method":"GET","header":[],"url":"{{MEDUSA_ENDPOINT}}contracts/3813"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"X-RateLimit-Limit","value":"100"},{"key":"X-RateLimit-Remaining","value":"99"},{"key":"Date","value":"Thu, 09 May 2024 12:00:37 GMT"},{"key":"X-RateLimit-Reset","value":"1715256039"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"882"},{"key":"ETag","value":"W/\"372-/8yDFXn8s9XyrsL0lSShSkhPBEw\""},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"id\": 3813,\n        \"stage\": \"PENDING_SIGNATURE\",\n        \"companyName\": \"SWITCH BUSINESS GAS AND POWER LTD\",\n        \"companyRegistrationNumber\": \"09310083\",\n        \"reference\": \"friendly-warthog-35\",\n        \"startDate\": \"2024-05-09T00:00:00.000Z\",\n        \"endDate\": \"2027-05-08T00:00:00.000Z\",\n        \"contactTitle\": \"Mr\",\n        \"contactFirstName\": \"John\",\n        \"contactLastName\": \"Smith\",\n        \"contactPosition\": \"Manager\",\n        \"contactEmail\": \"tech@jellyfish.energy\",\n        \"contactPhone\": \"012345556666\",\n        \"contactAltPhone\": null,\n        \"mpxn\": \"2447349406\",\n        \"bankAccountName\": \"John Smith\",\n        \"bankAccountNumber\": \"\",\n        \"bankAccountSortCode\": \"\",\n        \"commissionPerUnit\": 3,\n        \"estimatedAnnualUsage\": 17504,\n        \"metadata\": {\n            \"partner_user\": \"jelly2\"\n        },\n        \"productId\": 1932,\n        \"energy\": \"gas\",\n        \"active\": true,\n        \"contractDocumentId\": null,\n        \"creditsafeId\": null,\n        \"cot\": false,\n        \"createdAt\": \"2024-05-01T13:55:49.932Z\",\n        \"updatedAt\": \"2024-05-01T13:59:09.168Z\",\n        \"partnerId\": 3\n    },\n    \"errors\": null\n}"}],"_postman_id":"759f79c6-0172-4dbc-b34f-7da2b4cae737"},{"name":"/contracts/:id","id":"0dfda91c-8450-46e5-ab49-d6f4af31835b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JELLYFISHING_BEARER}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"companyName\": \"Company 1\"\n}","options":{"raw":{"language":"json"}}},"url":"{{MEDUSA_ENDPOINT}}contracts/3813","description":"<p>This endpoint is used to update the contract object. Note that stages will automatically update. You can use the parameters found in the contract object.</p>\n<p><strong>Company Type Options</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">[\n  \"limited-company\",\n  \"sole-trader\",\n  \"partnership\",\n  \"llp\",\n  \"plc\",\n  \"charity\",\n  \"other\"\n]\n\n</code></pre>\n<h4 id=\"response\">Response</h4>\n<ul>\n<li><p>Status: 200</p>\n</li>\n<li><p>Content-Type: application/json</p>\n</li>\n</ul>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"success\": true,\n  \"data\": true,\n  \"errors\": null\n}\n\n</code></pre>\n<h4 id=\"response-json-schema\">Response JSON Schema</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"type\": \"object\",\n  \"properties\": {\n    \"success\": {\n      \"type\": \"boolean\"\n    },\n    \"data\": {\n      \"type\": \"boolean\"\n    },\n    \"errors\": {\n      \"type\": \"null\"\n    }\n  }\n}\n\n</code></pre>\n","urlObject":{"path":["3813"],"host":["{{MEDUSA_ENDPOINT}}contracts"],"query":[],"variable":[]}},"response":[{"id":"ea848c19-c5a5-407b-a51b-c7ea544d4b8f","name":"/contracts/:id","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n        \"companyName\": \"test\",\n        \"companyRegistrationNumber\": null,\n        \"companyType\": \"sole-trader\",\n        \"contactTitle\": \"Mr\",\n        \"contactFirstName\": \"John\",\n        \"contactLastName\": \"Smith\",\n        \"contactPosition\": \"Director\",\n        \"contactEmail\": \"hello@jellyfish.energy\",\n        \"contactPhone\": \"+447477700000\",\n        \"contactAltPhone\": null,\n        \"mpxn\": \"123456789\",\n        \"bankAccountName\": null,\n        \"bankAccountNumber\": null,\n        \"bankAccountSortCode\": null,\n        \"cot\": false\n    }","options":{"raw":{"language":"json"}}},"url":"{{MEDUSA_ENDPOINT}}contracts/3813"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"X-RateLimit-Limit","value":"100"},{"key":"X-RateLimit-Remaining","value":"99"},{"key":"Date","value":"Thu, 09 May 2024 19:14:01 GMT"},{"key":"X-RateLimit-Reset","value":"1715282047"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"42"},{"key":"ETag","value":"W/\"2a-iWr0zGyyc3ZtRXqgYkHyioaJzUQ\""},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": true,\n    \"errors\": null\n}"}],"_postman_id":"0dfda91c-8450-46e5-ab49-d6f4af31835b"},{"name":"/contracts/:id/selected-product","id":"2d09c83c-a44f-45f5-9041-a66283f6cd9a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JELLYFISHING_BEARER}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{MEDUSA_ENDPOINT}}contracts/3813/selected-product","description":"<p>This endpoint retrieves the selected product for the contract.</p>\n<p>The response for this request is a JSON object with the following schema:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"success\": boolean,\n  \"data\": {\n    \"id\": integer,\n    \"name\": string,\n    \"description\": string,\n    \"facts\": array,\n    \"region\": string,\n    \"standingCharge\": number,\n    \"unitRate\": number,\n    \"minAq\": number,\n    \"maxAq\": number,\n    \"effectiveFrom\": string,\n    \"effectiveTo\": string,\n    \"fixed\": boolean,\n    \"term\": integer,\n    \"active\": boolean,\n    \"broker\": boolean,\n    \"retention\": boolean,\n    \"online\": boolean,\n    \"riskScoreFloor\": number,\n    \"riskScoreCeiling\": number,\n    \"retentionRating\": null or string,\n    \"brokerShortCode\": null or string,\n    \"promotionCode\": null or string\n  },\n  \"errors\": null\n}\n\n</code></pre>\n<p>The <code>success</code> field indicates whether the request was successful. The <code>data</code> field contains information about the selected product, including its ID, name, description, pricing details, and other attributes. The <code>errors</code> field is null when the request is successful.</p>\n","urlObject":{"path":["3813","selected-product"],"host":["{{MEDUSA_ENDPOINT}}contracts"],"query":[],"variable":[]}},"response":[{"id":"06c13190-6cf9-4550-9484-54042c4a8d0b","name":"/contracts/:id/selected-product","originalRequest":{"method":"GET","header":[],"url":"{{MEDUSA_ENDPOINT}}contracts/3813/selected-product"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"X-RateLimit-Limit","value":"100"},{"key":"X-RateLimit-Remaining","value":"99"},{"key":"Date","value":"Thu, 09 May 2024 12:10:58 GMT"},{"key":"X-RateLimit-Reset","value":"1715256669"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"530"},{"key":"ETag","value":"W/\"212-V/v1UYgGXbz5sgAYBGVOEqQ5ORc\""},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"id\": 1932,\n        \"name\": \"Blue 36 Month (v4)\",\n        \"description\": \"Exclusive credit checked product\",\n        \"facts\": [\n            \"Rates locked in\",\n            \"Jellyfish rewards\"\n        ],\n        \"region\": \"WM\",\n        \"standingCharge\": 35,\n        \"unitRate\": 5.94766,\n        \"minAq\": 1,\n        \"maxAq\": 250000,\n        \"effectiveFrom\": \"2024-03-01T00:00:00.000Z\",\n        \"effectiveTo\": \"2025-05-01T00:00:00.000Z\",\n        \"fixed\": true,\n        \"term\": 36,\n        \"active\": true,\n        \"broker\": true,\n        \"retention\": false,\n        \"online\": false,\n        \"riskScoreFloor\": 40,\n        \"riskScoreCeiling\": 100,\n        \"retentionRating\": null,\n        \"brokerShortCode\": null,\n        \"promotionCode\": null\n    },\n    \"errors\": null\n}"}],"_postman_id":"2d09c83c-a44f-45f5-9041-a66283f6cd9a"},{"name":"/contracts/:id/onboarding-notes","id":"90076ee1-de20-4c09-a1f4-0dba8a4a0023","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JELLYFISHING_BEARER}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{MEDUSA_ENDPOINT}}contracts/3813/onboarding-notes","description":"<p>This endpoint retrieves the onboarding notes for the contract.</p>\n","urlObject":{"path":["3813","onboarding-notes"],"host":["{{MEDUSA_ENDPOINT}}contracts"],"query":[],"variable":[]}},"response":[{"id":"67f80fed-44e4-4151-99e5-9d9629755a02","name":"/contracts/:id/onboarding-notes","originalRequest":{"method":"GET","header":[],"url":"{{MEDUSA_ENDPOINT}}contracts/3813/onboarding-notes"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"X-RateLimit-Limit","value":"100"},{"key":"X-RateLimit-Remaining","value":"99"},{"key":"Date","value":"Thu, 09 May 2024 12:10:58 GMT"},{"key":"X-RateLimit-Reset","value":"1715256669"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"530"},{"key":"ETag","value":"W/\"212-V/v1UYgGXbz5sgAYBGVOEqQ5ORc\""},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": [{\n        \"note\": \"ABC\",\n        \"date\": \"2025-01-01\"\n    }],\n    \"errors\": null\n}"}],"_postman_id":"90076ee1-de20-4c09-a1f4-0dba8a4a0023"},{"name":"/contracts/:id/client","id":"15ff6e0f-f680-4218-a01c-ce137b43f390","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JELLYFISHING_BEARER}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{MEDUSA_ENDPOINT}}contracts/4444/client","description":"<h3 id=\"retrieve-contract-client-information\">Retrieve Contract Client Information</h3>\n<p>This endpoint retrieves the client information for the specified contract. The contract must be in an ACCEPTED state.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<p>This is a GET request and does not require a request body.</p>\n<h4 id=\"response-body\">Response Body</h4>\n<p>The response for this request is a JSON object with the following schema:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"success\": boolean,\n  \"data\": {\n    \"account\": string,\n    \"address\": string,\n    \"balance\": number,\n    \"contacts\": [\n      {\n        \"name\": string,\n        \"email\": string,\n        \"telephone\": string,\n        \"mobile\": string\n      }\n    ],\n    \"name\": string,\n    \"rating\": number,\n    \"status\": string,\n    \"lastBill\": {\n      \"amount\": number,\n      \"date\": string,\n      \"id\": number\n    },\n    \"lastPayment\": {\n      \"amount\": number,\n      \"date\": string\n    },\n    \"lastReading\": {\n      \"value\": number,\n      \"date\": string\n    },\n    \"nextProduct\": {\n      \"description\": string,\n      \"rate\": number,\n      \"commission\": number,\n      \"name\": string,\n      \"start\": string,\n      \"end\": string\n    },\n    \"mandate\": {\n      \"status\": string,\n      \"id\": string\n    },\n    \"pendingPayments\": number,\n    \"product\": [\n      {\n        \"description\": string,\n        \"rate\": number,\n        \"commission\": number,\n        \"name\": string,\n        \"start\": string,\n        \"end\": string\n      }\n    ],\n    \"estimatedAnnualUsage\": number,\n    \"mpxn\": string,\n    \"type\": string,\n    \"pendingRenewalContracts\": [\n      {\n        \"id\": number,\n        \"reference\": string,\n        \"metadata\": {\n          \"partner_user\": string\n        },\n        \"stage\": string\n      }\n    ]\n  },\n  \"errors\": null\n}\n\n</code></pre>\n<p>The <code>success</code> field indicates whether the request was successful. The <code>data</code> field contains detailed client information, including account details, address, balance, contact details, billing and payment history, product details, and more. The <code>errors</code> field is null when the request is successful.</p>\n","urlObject":{"path":["4444","client"],"host":["{{MEDUSA_ENDPOINT}}contracts"],"query":[],"variable":[]}},"response":[{"id":"993a8787-7613-48dc-9abd-fb97d93b14d1","name":"/contracts/:id/client","originalRequest":{"method":"GET","header":[],"url":"{{MEDUSA_ENDPOINT}}contracts/4444/client"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"X-RateLimit-Limit","value":"100"},{"key":"X-RateLimit-Remaining","value":"99"},{"key":"Date","value":"Wed, 05 Jun 2024 19:21:56 GMT"},{"key":"X-RateLimit-Reset","value":"1717615318"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1299"},{"key":"ETag","value":"W/\"513-whMrdeXV2jqBQgq5s2xcL5qkGyg\""},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"account\": \"200054\",\n        \"address\": \"Baird House, Scotswood Rd, Newcastle, NE4 7DF\",\n        \"balance\": -152.94,\n        \"contacts\": [\n            {\n                \"name\": \"Mr John Smith\",\n                \"email\": \"tech@jellyfish.energy\",\n                \"telephone\": \"01234445555\",\n                \"mobile\": \"01234445555\"\n            }\n        ],\n        \"name\": \"Client 1\",\n        \"rating\": 4,\n        \"status\": \"Live\",\n        \"lastBill\": {\n            \"amount\": 152.94,\n            \"date\": \"2024-05-07T01:00:13.363Z\",\n            \"id\": 33243\n        },\n        \"lastPayment\": {\n            \"amount\": 171.43,\n            \"date\": \"2024-04-18T15:41:03.193Z\"\n        },\n        \"lastReading\": {\n            \"value\": 24305,\n            \"date\": \"2024-02-19T00:00:00.000Z\"\n        },\n        \"nextProduct\": null,\n        \"mandate\": {\n            \"status\": \"active\",\n            \"id\": \"MD0029HJF6N0WH\"\n        },\n        \"pendingPayments\": 341.82,\n        \"product\": [\n            {\n                \"description\": \"Standing Charge\",\n                \"rate\": 35,\n                \"commission\": 0,\n                \"name\": \"CON01\",\n                \"start\": \"2023-07-01T00:00:00.000Z\",\n                \"end\": \"2024-06-30T00:00:00.000Z\"\n            },\n            {\n                \"description\": \"All Units\",\n                \"rate\": 8.654,\n                \"commission\": 0,\n                \"name\": \"CON01\",\n                \"start\": \"2023-07-01T00:00:00.000Z\",\n                \"end\": \"2024-06-30T00:00:00.000Z\"\n            }\n        ],\n        \"estimatedAnnualUsage\": 13355,\n        \"mpxn\": \"1591058900229\",\n        \"type\": \"electricity\",\n        \"pendingRenewalContracts\": [\n            {\n                \"id\": 14,\n                \"reference\": \"pretty-turtle-48\",\n                \"metadata\": {\n                    \"partner_user\": \"jelly2\"\n                },\n                \"stage\": \"PENDING_SIGNATURE\"\n            }\n        ]\n    },\n    \"errors\": null\n}"}],"_postman_id":"15ff6e0f-f680-4218-a01c-ce137b43f390"},{"name":"/contracts/:id/esign","id":"b3e2b494-4de9-421f-a99a-7a6f1950b063","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JELLYFISHING_BEARER}}"}]},"isInherited":false},"method":"POST","header":[],"url":"{{MEDUSA_ENDPOINT}}contracts/3813/esign","description":"<p>This endpoint is used to initiate the electronic signing process for a specific contract. Upon successful execution, it returns a JSON response with a status code of 200 and the following structure:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"success\": true,\n  \"data\": true,\n  \"errors\": null\n}\n\n</code></pre>\n","urlObject":{"path":["3813","esign"],"host":["{{MEDUSA_ENDPOINT}}contracts"],"query":[],"variable":[]}},"response":[{"id":"ba33d2b4-64bb-4330-858b-be99d04d1de7","name":"/contracts/:id/esign","originalRequest":{"method":"POST","header":[],"url":"{{MEDUSA_ENDPOINT}}contracts/3813/esign"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"X-RateLimit-Limit","value":"100"},{"key":"X-RateLimit-Remaining","value":"99"},{"key":"Date","value":"Thu, 09 May 2024 19:19:54 GMT"},{"key":"X-RateLimit-Reset","value":"1715282400"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"42"},{"key":"ETag","value":"W/\"2a-iWr0zGyyc3ZtRXqgYkHyioaJzUQ\""},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": true,\n    \"errors\": null\n}"}],"_postman_id":"b3e2b494-4de9-421f-a99a-7a6f1950b063"},{"name":"/contracts/:id/esign/status","id":"1fa3cd95-388d-4b5d-b073-46458d085209","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JELLYFISHING_BEARER}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{MEDUSA_ENDPOINT}}contracts/3813/esign/status","description":"<p>This endpoint retrieves the e-sign status for the contract.</p>\n<h4 id=\"request\">Request</h4>\n<p>No request body is required for this endpoint.</p>\n<h4 id=\"response\">Response</h4>\n<p>The response for this request is a JSON object with the following schema:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"type\": \"object\",\n  \"properties\": {\n    \"success\": {\n      \"type\": \"boolean\"\n    },\n    \"data\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"status\": {\n          \"type\": \"string\"\n        },\n        \"sent\": {\n          \"type\": [\"date\", \"null\"]\n        }\n      }\n    },\n    \"errors\": {\n      \"type\": [\"array\", \"null\"]\n    }\n  }\n}\n\n</code></pre>\n<p>The response contains a boolean value indicating the success status, an object with the e-sign status and sent date, and an array of errors if any.</p>\n<h4 id=\"example-response\">Example Response</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"success\": true,\n  \"data\": {\n    \"status\": \"\",\n    \"sent\": null\n  },\n  \"errors\": null\n}\n\n</code></pre>\n","urlObject":{"path":["3813","esign","status"],"host":["{{MEDUSA_ENDPOINT}}contracts"],"query":[],"variable":[]}},"response":[{"id":"63853923-703a-4779-ace3-73d354598370","name":"/contracts/esign/status","originalRequest":{"method":"GET","header":[],"url":"{{MEDUSA_ENDPOINT}}contracts/3813/esign/status"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"X-RateLimit-Limit","value":"100"},{"key":"X-RateLimit-Remaining","value":"99"},{"key":"Date","value":"Thu, 09 May 2024 12:16:15 GMT"},{"key":"X-RateLimit-Reset","value":"1715256981"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"71"},{"key":"ETag","value":"W/\"47-Kl7fmA6jdeJkFE7IpNkQ8k3wd2Q\""},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"status\": \"Not Sent\",\n        \"sent\": null\n    },\n    \"errors\": null\n}"}],"_postman_id":"1fa3cd95-388d-4b5d-b073-46458d085209"},{"name":"/contracts/:id/document","id":"35859f90-af0c-42c3-a007-9761eb93c085","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JELLYFISHING_BEARER}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{MEDUSA_ENDPOINT}}contracts/3813/document","description":"<p>Returns a pre-filled contract PDF as file data.</p>\n","urlObject":{"path":["3813","document"],"host":["{{MEDUSA_ENDPOINT}}contracts"],"query":[],"variable":[]}},"response":[],"_postman_id":"35859f90-af0c-42c3-a007-9761eb93c085"},{"name":"/contracts/:id/document","id":"78638c01-ea45-4e76-8750-7a3f0f74c4a6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JELLYFISHING_BEARER}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"file\": \"JVBERi0xLj...\"\n}","options":{"raw":{"language":"json"}}},"url":"{{MEDUSA_ENDPOINT}}contracts/3813/document","description":"<p>This endpoint is used to upload a document for the contract. This will automatically send the contract to Jellyfish Energy for approval.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<ul>\n<li><code>file</code> (file): The document file to be uploaded.</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>Upon successful execution, the API returns a JSON object with the following fields:</p>\n<ul>\n<li><code>success</code> (boolean): Indicates if the request was successful.</li>\n<li><code>data</code> (boolean): Indicates if the document upload was successful.</li>\n<li><code>errors</code> (null): Null if there are no errors.</li>\n</ul>\n<p>Example response:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"success\": true,\n    \"data\": true,\n    \"errors\": null\n}\n\n</code></pre>\n","urlObject":{"path":["3813","document"],"host":["{{MEDUSA_ENDPOINT}}contracts"],"query":[],"variable":[]}},"response":[{"id":"57dcee75-2eb2-4fb4-a7c2-5fa49b9a3244","name":"/contracts/:id/document","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"file\": \"JVBERi0xLj...\"\n}","options":{"raw":{"language":"json"}}},"url":"{{MEDUSA_ENDPOINT}}contracts/3813/document"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"X-RateLimit-Limit","value":"100"},{"key":"X-RateLimit-Remaining","value":"99"},{"key":"Date","value":"Thu, 09 May 2024 19:41:44 GMT"},{"key":"X-RateLimit-Reset","value":"1715283711"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"42"},{"key":"ETag","value":"W/\"2a-iWr0zGyyc3ZtRXqgYkHyioaJzUQ\""},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": true,\n    \"errors\": null\n}"}],"_postman_id":"78638c01-ea45-4e76-8750-7a3f0f74c4a6"}],"id":"7a85b42a-f1f3-444c-89c6-4b83559af7c1","description":"<p>Create and prepare contracts from a search. Then upload/send signed contracts for approval by Jellyfish Energy.</p>\n","_postman_id":"7a85b42a-f1f3-444c-89c6-4b83559af7c1"},{"name":"Renewal Contracts","item":[{"name":"/renewal-contracts","id":"4d790f95-0e63-4c09-b275-1e6c2d52f4ec","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JELLYFISHING_BEARER}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{MEDUSA_ENDPOINT}}renewal-contracts?stage=PENDING_SIGNATURE","urlObject":{"host":["{{MEDUSA_ENDPOINT}}renewal-contracts"],"query":[{"key":"stage","value":"PENDING_SIGNATURE"}],"variable":[]}},"response":[],"_postman_id":"4d790f95-0e63-4c09-b275-1e6c2d52f4ec"},{"name":"/renewal-contracts","id":"95169375-9f06-4e72-8a65-a069a073753b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JELLYFISHING_BEARER}}"}]},"isInherited":false},"method":"POST","header":[],"url":"{{MEDUSA_ENDPOINT}}renewal-contracts","urlObject":{"host":["{{MEDUSA_ENDPOINT}}renewal-contracts"],"query":[],"variable":[]}},"response":[],"_postman_id":"95169375-9f06-4e72-8a65-a069a073753b"},{"name":"/renewal-contracts/:id","id":"9d2ac51b-c016-42a8-867e-5a93dfa1ea97","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JELLYFISHING_BEARER}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{MEDUSA_ENDPOINT}}renewal-contracts/21","urlObject":{"path":["21"],"host":["{{MEDUSA_ENDPOINT}}renewal-contracts"],"query":[],"variable":[]}},"response":[],"_postman_id":"9d2ac51b-c016-42a8-867e-5a93dfa1ea97"},{"name":"/renewal-contracts/:id","id":"c1640038-b583-4e53-a3be-d789593a1696","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JELLYFISHING_BEARER}}"}]},"isInherited":false},"method":"POST","header":[],"url":"{{MEDUSA_ENDPOINT}}renewal-contracts/3813","urlObject":{"path":["3813"],"host":["{{MEDUSA_ENDPOINT}}renewal-contracts"],"query":[],"variable":[]}},"response":[],"_postman_id":"c1640038-b583-4e53-a3be-d789593a1696"},{"name":"/renewal-contracts/:id/selected-product","id":"9676892b-164d-4f1a-9165-ca375a0cfb8b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JELLYFISHING_BEARER}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{MEDUSA_ENDPOINT}}renewal-contracts/21/selected-product","urlObject":{"path":["21","selected-product"],"host":["{{MEDUSA_ENDPOINT}}renewal-contracts"],"query":[],"variable":[]}},"response":[],"_postman_id":"9676892b-164d-4f1a-9165-ca375a0cfb8b"},{"name":"/renewal-contracts/:id/esign","id":"d4566321-9b3c-4e78-b4b8-2e2a5504ebfc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JELLYFISHING_BEARER}}"}]},"isInherited":false},"method":"POST","header":[],"url":"{{MEDUSA_ENDPOINT}}renewal-contracts/3813/esign","urlObject":{"path":["3813","esign"],"host":["{{MEDUSA_ENDPOINT}}renewal-contracts"],"query":[],"variable":[]}},"response":[],"_postman_id":"d4566321-9b3c-4e78-b4b8-2e2a5504ebfc"},{"name":"/renewal-contracts/:id/esign/status","id":"a8b82fad-1e76-4161-af66-1d5e00a4656c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JELLYFISHING_BEARER}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{MEDUSA_ENDPOINT}}renewal-contracts/3813/esign/status","urlObject":{"path":["3813","esign","status"],"host":["{{MEDUSA_ENDPOINT}}renewal-contracts"],"query":[],"variable":[]}},"response":[],"_postman_id":"a8b82fad-1e76-4161-af66-1d5e00a4656c"},{"name":"/renewal-contracts/:id/document","id":"776f0590-52bd-43b5-ba43-b4561ee83681","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JELLYFISHING_BEARER}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{MEDUSA_ENDPOINT}}renewal-contracts/21/document","urlObject":{"path":["21","document"],"host":["{{MEDUSA_ENDPOINT}}renewal-contracts"],"query":[],"variable":[]}},"response":[],"_postman_id":"776f0590-52bd-43b5-ba43-b4561ee83681"},{"name":"/renewal-contracts/:id/document","id":"feffddb9-5a98-45be-9208-eda8188ae3b4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JELLYFISHING_BEARER}}"}]},"isInherited":false},"method":"POST","header":[],"url":"{{MEDUSA_ENDPOINT}}renewal-contracts/3813/document","urlObject":{"path":["3813","document"],"host":["{{MEDUSA_ENDPOINT}}renewal-contracts"],"query":[],"variable":[]}},"response":[],"_postman_id":"feffddb9-5a98-45be-9208-eda8188ae3b4"}],"id":"301c780b-bb37-43d0-b7bc-bb69eae341cc","description":"<p>Create and prepare contracts from a search. Then upload/send signed contracts for approval by Jellyfish Energy. Live accounts only.</p>\n","_postman_id":"301c780b-bb37-43d0-b7bc-bb69eae341cc"},{"name":"Bulk Contracts","item":[{"name":"/bulk-contracts","id":"58032de9-eb11-4353-96fb-1ae46dfb3dd0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JELLYFISHING_BEARER}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{MEDUSA_ENDPOINT}}bulk-contracts?stage=PENDING_SIGNATURE","urlObject":{"host":["{{MEDUSA_ENDPOINT}}bulk-contracts"],"query":[{"key":"stage","value":"PENDING_SIGNATURE"}],"variable":[]}},"response":[],"_postman_id":"58032de9-eb11-4353-96fb-1ae46dfb3dd0"},{"name":"/bulk-contracts","id":"ac797d03-a764-422e-8c75-f55010d8488a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JELLYFISHING_BEARER}}"}]},"isInherited":false},"method":"POST","header":[],"url":"{{MEDUSA_ENDPOINT}}bulk-contracts","urlObject":{"host":["{{MEDUSA_ENDPOINT}}bulk-contracts"],"query":[],"variable":[]}},"response":[],"_postman_id":"ac797d03-a764-422e-8c75-f55010d8488a"},{"name":"/bulk-contracts/:id","id":"66363620-7bb0-490b-bed3-aeb7bbc736ca","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JELLYFISHING_BEARER}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{MEDUSA_ENDPOINT}}bulk-contracts/21","urlObject":{"path":["21"],"host":["{{MEDUSA_ENDPOINT}}bulk-contracts"],"query":[],"variable":[]}},"response":[],"_postman_id":"66363620-7bb0-490b-bed3-aeb7bbc736ca"},{"name":"/bulk-contracts/:id","id":"b1e0c885-1ae1-4eda-9764-c73a8b45c895","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JELLYFISHING_BEARER}}"}]},"isInherited":false},"method":"POST","header":[],"url":"{{MEDUSA_ENDPOINT}}bulk-contracts/3813","urlObject":{"path":["3813"],"host":["{{MEDUSA_ENDPOINT}}bulk-contracts"],"query":[],"variable":[]}},"response":[],"_postman_id":"b1e0c885-1ae1-4eda-9764-c73a8b45c895"},{"name":"/bulk-contracts/:id/meters","id":"d45e69b3-6cae-4ec4-b043-6b268bc61258","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JELLYFISHING_BEARER}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{MEDUSA_ENDPOINT}}bulk-contracts/21/meters","urlObject":{"path":["21","meters"],"host":["{{MEDUSA_ENDPOINT}}bulk-contracts"],"query":[],"variable":[]}},"response":[],"_postman_id":"d45e69b3-6cae-4ec4-b043-6b268bc61258"},{"name":"/bulk-contracts/:id/document","id":"7a25743f-3cff-4da7-bfe1-cf93ce2ada8f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JELLYFISHING_BEARER}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{MEDUSA_ENDPOINT}}bulk-contracts/21/document","urlObject":{"path":["21","document"],"host":["{{MEDUSA_ENDPOINT}}bulk-contracts"],"query":[],"variable":[]}},"response":[],"_postman_id":"7a25743f-3cff-4da7-bfe1-cf93ce2ada8f"},{"name":"/bulk-contracts/:id/document","id":"fd87d0f6-efdb-424e-a49b-4b9803b35daf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JELLYFISHING_BEARER}}"}]},"isInherited":false},"method":"POST","header":[],"url":"{{MEDUSA_ENDPOINT}}bulk-contracts/3813/document","urlObject":{"path":["3813","document"],"host":["{{MEDUSA_ENDPOINT}}bulk-contracts"],"query":[],"variable":[]}},"response":[],"_postman_id":"fd87d0f6-efdb-424e-a49b-4b9803b35daf"}],"id":"217f50b8-854e-4247-be5e-151dca3779a0","description":"<p>Create and prepare contracts from a bulk search. Then upload/send signed contracts for approval by Jellyfish Energy.</p>\n","_postman_id":"217f50b8-854e-4247-be5e-151dca3779a0"},{"name":"Clients","item":[{"name":"/clients","id":"abfc5086-0e8c-46a0-b8e6-171ebc7a18a3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JELLYFISHING_BEARER}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{MEDUSA_ENDPOINT}}clients?stage=LIVE","description":"<p>This endpoint makes an HTTP GET request to fetch live clients from the Medusa API.</p>\n<h4 id=\"request-parameters\">Request Parameters</h4>\n<ul>\n<li><p><code>stage</code> (query parameter): Indicates the stage of the clients to retrieve.</p>\n<ul>\n<li><p><code>LIVE</code></p>\n</li>\n<li><p><code>ONBOARDING</code></p>\n</li>\n<li><p><code>LOSING</code></p>\n</li>\n<li><p><code>FAILED</code></p>\n</li>\n<li><p><code>READING_REQUIRED</code></p>\n</li>\n</ul>\n</li>\n<li><p><code>mpxn</code> (query parameter): Indicates the MPAN/MPRN of the client to retrieve.</p>\n</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>The API returns a JSON object with the following fields:</p>\n<ul>\n<li><p><code>success</code> (boolean): Indicates whether the request was successful.</p>\n</li>\n<li><p><code>data</code> (array): Contains an array of objects, each representing a live client. Each object includes the following fields:</p>\n<ul>\n<li><p><code>account</code> (string): The account information of the client.</p>\n</li>\n<li><p><code>type</code> (string): The type of the client.</p>\n</li>\n<li><p><code>name</code> (string): The name of the client.</p>\n</li>\n<li><p><code>mpxn</code> (string): The MPXN (Meter Point Administration Number) of the client.</p>\n</li>\n<li><p><code>address</code> (string): The address of the client.</p>\n</li>\n<li><p><code>postcode</code> (string): The postcode of the client.</p>\n</li>\n</ul>\n</li>\n<li><p><code>errors</code> (null): Indicates any errors encountered during the request.</p>\n</li>\n</ul>\n<h4 id=\"example\">Example</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"success\": true,\n    \"data\": [\n        {\n            \"account\": \"\",\n            \"type\": \"\",\n            \"name\": \"\",\n            \"mpxn\": \"\",\n            \"address\": \"\",\n            \"postcode\": \"\"\n        }\n    ],\n    \"errors\": null\n}\n\n</code></pre>\n","urlObject":{"host":["{{MEDUSA_ENDPOINT}}clients"],"query":[{"key":"stage","value":"LIVE"},{"disabled":true,"key":"mpxn","value":"1591058900229"}],"variable":[]}},"response":[{"id":"35bb1e5d-049d-48da-9603-f980e0dd6cdd","name":"/clients","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{MEDUSA_ENDPOINT}}clients?stage=LIVE","host":["{{MEDUSA_ENDPOINT}}clients"],"query":[{"key":"stage","value":"LIVE"},{"key":"mpxn","value":"1591058900229","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"X-RateLimit-Limit","value":"100"},{"key":"X-RateLimit-Remaining","value":"99"},{"key":"Date","value":"Thu, 09 May 2024 17:35:18 GMT"},{"key":"X-RateLimit-Reset","value":"1715276127"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1171"},{"key":"ETag","value":"W/\"493-EKxB+hdWIQtYnNSA5elpwIyJ6j8\""},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": [\n        {\n            \"account\": \"200054\",\n            \"type\": \"electricity\",\n            \"name\": \"Client 1\",\n            \"mpxn\": \"1591058900229\",\n            \"address\": \"Baird House, Scotswood Rd, Newcastle\",\n            \"postcode\": \"NE1 3RQ\"\n        }\n    ],\n    \"errors\": null\n}"}],"_postman_id":"abfc5086-0e8c-46a0-b8e6-171ebc7a18a3"},{"name":"/clients/:id","id":"4ca63be7-9279-4604-9f1c-2eaec2f287cf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JELLYFISHING_BEARER}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{MEDUSA_ENDPOINT}}clients/200054","description":"<p>This endpoint makes an HTTP GET request to retrieve client information for the specified client ID. The response will include details such as account information, address, balance, contacts, rating, last bill, last payment, last reading, pending payments, product details, estimated annual usage, MPXN, client type, and pending renewal contracts.</p>\n<h3 id=\"request-body\">Request Body</h3>\n<p>This request does not include a request body.</p>\n<h3 id=\"response-body\">Response Body</h3>\n<ul>\n<li><p><code>success</code> (boolean): Indicates if the request was successful.</p>\n</li>\n<li><p><code>data</code> (object): Contains the client information including account, address, balance, contacts, name, rating, status, last bill, last payment, last reading, next product, mandate, pending payments, product details, estimated annual usage, MPXN, client type, and pending renewal contracts.</p>\n<ul>\n<li>Status: Live, Joining, Losing, Objection, Objected, Rejected, Withdrawn</li>\n</ul>\n</li>\n<li><p><code>errors</code> (null): Indicates any errors in the response, which is null if no errors occurred.</p>\n</li>\n</ul>\n<p>The response will include the specified client's details in the <code>data</code> object if the request is successful.</p>\n","urlObject":{"path":["200054"],"host":["{{MEDUSA_ENDPOINT}}clients"],"query":[],"variable":[]}},"response":[{"id":"fc148759-c143-442b-a9a3-53e95ccfbdd6","name":"/clients/:id","originalRequest":{"method":"GET","header":[],"url":"{{MEDUSA_ENDPOINT}}clients/200054"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"X-RateLimit-Limit","value":"100"},{"key":"X-RateLimit-Remaining","value":"97"},{"key":"Date","value":"Thu, 09 May 2024 11:45:36 GMT"},{"key":"X-RateLimit-Reset","value":"1715255141"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1440"},{"key":"ETag","value":"W/\"5a0-mNfxAdcfkqsQIWA83YTbbkdoEhk\""},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"account\": \"200054\",\n        \"address\": \"Baird House, Scotswood Rd, Newcastle, NE4 7DF\",\n        \"balance\": -152.94,\n        \"contacts\": [\n            {\n                \"name\": \"Mr John Smith\",\n                \"email\": \"tech@jellyfish.energy\",\n                \"telephone\": \"01234445555\",\n                \"mobile\": \"01234445555\"\n            }\n        ],\n        \"name\": \"Client 1\",\n        \"rating\": 4,\n        \"status\": \"Live\",\n        \"lastBill\": {\n            \"amount\": 152.94,\n            \"date\": \"2024-05-07T01:00:13.363Z\",\n            \"id\": 33243\n        },\n        \"lastPayment\": {\n            \"amount\": 171.43,\n            \"date\": \"2024-04-18T15:41:03.193Z\"\n        },\n        \"lastReading\": {\n            \"value\": 24305,\n            \"date\": \"2024-02-19T00:00:00.000Z\"\n        },\n        \"nextProduct\": null,\n        \"mandate\": {\n            \"status\": \"active\",\n            \"id\": \"MD0029HJF6N0WH\"\n        },\n        \"pendingPayments\": 341.82,\n        \"product\": [\n            {\n                \"description\": \"Standing Charge\",\n                \"rate\": 35,\n                \"commission\": 0,\n                \"name\": \"CON01\",\n                \"start\": \"2023-07-01T00:00:00.000Z\",\n                \"end\": \"2024-06-30T00:00:00.000Z\"\n            },\n            {\n                \"description\": \"All Units\",\n                \"rate\": 8.654,\n                \"commission\": 0,\n                \"name\": \"CON01\",\n                \"start\": \"2023-07-01T00:00:00.000Z\",\n                \"end\": \"2024-06-30T00:00:00.000Z\"\n            }\n        ],\n        \"estimatedAnnualUsage\": 13355,\n        \"mpxn\": \"1591058900229\",\n        \"type\": \"electricity\",\n        \"pendingRenewalContracts\": [\n            {\n                \"id\": 14,\n                \"reference\": \"pretty-turtle-48\",\n                \"metadata\": {\n                    \"partner_user\": \"jelly2\"\n                },\n                \"stage\": \"PENDING_SIGNATURE\"\n            }\n        ]\n    },\n    \"errors\": null\n}"}],"_postman_id":"4ca63be7-9279-4604-9f1c-2eaec2f287cf"},{"name":"/clients/:id/bills","id":"5d7c51a3-4bdc-4c8f-a4fb-fb1c16129a91","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JELLYFISHING_BEARER}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{MEDUSA_ENDPOINT}}clients/200054/bills","description":"<p>All released client bills with the related payout ID if applicable.</p>\n<p>The response is in JSON format and has the following schema:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"type\": \"object\",\n    \"properties\": {\n        \"success\": {\n            \"type\": \"boolean\"\n        },\n        \"data\": {\n            \"type\": \"array\",\n            \"items\": {\n                \"type\": \"object\",\n                \"properties\": {\n                    \"id\": {\n                        \"type\": \"integer\"\n                    },\n                    \"reference\": {\n                        \"type\": \"integer\"\n                    },\n                    \"amount\": {\n                        \"type\": \"integer\"\n                    },\n                    \"start\": {\n                        \"type\": \"string\"\n                    },\n                    \"end\": {\n                        \"type\": \"string\"\n                    },\n                    \"payoutId\": {\n                        \"type\": [\"integer\", \"null\"]\n                    }\n                }\n            }\n        },\n        \"errors\": {\n            \"type\": [\"array\", \"null\"]\n        }\n    }\n}\n\n</code></pre>\n","urlObject":{"path":["200054","bills"],"host":["{{MEDUSA_ENDPOINT}}clients"],"query":[],"variable":[]}},"response":[{"id":"254317cc-8915-42c0-a49c-dea24b020974","name":"/clients/:id/bills","originalRequest":{"method":"GET","header":[],"url":"{{MEDUSA_ENDPOINT}}clients/200054/bills"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"X-RateLimit-Limit","value":"100"},{"key":"X-RateLimit-Remaining","value":"99"},{"key":"Date","value":"Thu, 09 May 2024 11:46:21 GMT"},{"key":"X-RateLimit-Reset","value":"1715255191"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1737"},{"key":"ETag","value":"W/\"6c9-bG3b+lkiFh3b3pMJ7V3z4jeWQhY\""},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": [\n        {\n            \"id\": 33243,\n            \"reference\": 41938,\n            \"amount\": 152.94,\n            \"start\": \"2024-04-07T00:00:00.000Z\",\n            \"end\": \"2024-05-06T00:00:00.000Z\",\n            \"payoutId\": null\n        }\n    ],\n    \"errors\": null\n}"}],"_postman_id":"5d7c51a3-4bdc-4c8f-a4fb-fb1c16129a91"},{"name":"/clients/:id/bills/:bid/lines","id":"883c3f18-a7d4-44fd-992a-55df951016b4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JELLYFISHING_BEARER}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{MEDUSA_ENDPOINT}}clients/200578/bills/34010/lines","description":"<p>This endpoint retrieves the consumption and standing charge lines for the client bill.</p>\n<h4 id=\"response\">Response</h4>\n<p>The response is a JSON object with the following schema:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"type\": \"object\",\n  \"properties\": {\n    \"success\": {\n      \"type\": \"boolean\"\n    },\n    \"data\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"consumption\": {\n          \"type\": \"array\",\n          \"items\": {\n            \"type\": \"object\",\n            \"properties\": {\n              \"timeBand\": {\n                \"type\": \"string\"\n              },\n              \"start\": {\n                \"type\": \"string\"\n              },\n              \"end\": {\n                \"type\": \"string\"\n              },\n              \"startRead\": {\n                \"type\": \"number\"\n              },\n              \"endRead\": {\n                \"type\": \"number\"\n              },\n              \"units\": {\n                \"type\": \"number\"\n              },\n              \"rate\": {\n                \"type\": \"number\"\n              },\n              \"charge\": {\n                \"type\": \"number\"\n              },\n              \"startReadType\": {\n                \"type\": \"string\"\n              },\n              \"endReadType\": {\n                \"type\": \"string\"\n              }\n            }\n          }\n        },\n        \"standingCharge\": {\n          \"type\": \"array\",\n          \"items\": {\n            \"type\": \"object\",\n            \"properties\": {\n              \"start\": {\n                \"type\": \"string\"\n              },\n              \"end\": {\n                \"type\": \"string\"\n              },\n              \"units\": {\n                \"type\": \"number\"\n              },\n              \"rate\": {\n                \"type\": \"number\"\n              },\n              \"charge\": {\n                \"type\": \"number\"\n              }\n            }\n          }\n        }\n      }\n    },\n    \"errors\": {\n      \"type\": [\"null\", \"object\"]\n    }\n  }\n}\n\n</code></pre>\n","urlObject":{"path":["200578","bills","34010","lines"],"host":["{{MEDUSA_ENDPOINT}}clients"],"query":[],"variable":[]}},"response":[{"id":"5ee4414a-a3d9-43c2-afe2-6e77e5fcad0f","name":"/clients/:id/bills/:bid/lines","originalRequest":{"method":"GET","header":[],"url":"{{MEDUSA_ENDPOINT}}clients/200578/bills/34010/lines"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"X-RateLimit-Limit","value":"100"},{"key":"X-RateLimit-Remaining","value":"99"},{"key":"Date","value":"Mon, 27 May 2024 19:25:39 GMT"},{"key":"X-RateLimit-Reset","value":"1716837942"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"398"},{"key":"ETag","value":"W/\"18e-aKpHmTsT8MbRyRuhayYEMU3NEw4\""},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"consumption\": [\n            {\n                \"timeBand\": \"All Units\",\n                \"start\": \"2024-04-20T00:00:00.000Z\",\n                \"end\": \"2024-05-19T00:00:00.000Z\",\n                \"startRead\": 3448,\n                \"endRead\": 3742,\n                \"units\": 294,\n                \"rate\": 26.3798,\n                \"charge\": 77.56,\n                \"startReadType\": \"Estimate\",\n                \"endReadType\": \"Estimate\"\n            }\n        ],\n        \"standingCharge\": [\n            {\n                \"start\": \"2024-04-20T00:00:00.000Z\",\n                \"end\": \"2024-05-19T00:00:00.000Z\",\n                \"units\": 30,\n                \"rate\": 65,\n                \"charge\": 19.5\n            }\n        ]\n    },\n    \"errors\": null\n}"}],"_postman_id":"883c3f18-a7d4-44fd-992a-55df951016b4"},{"name":"/clients/:id/search","id":"b15a2419-99ad-44b4-b436-7806a403840a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JELLYFISHING_BEARER}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{MEDUSA_ENDPOINT}}clients/200054/search","description":"<p>Generate a search automatically from client data.</p>\n<p>The response is in JSON format and has the following schema:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"type\": \"object\",\n    \"properties\": {\n        \"success\": {\n            \"type\": \"boolean\"\n        },\n        \"data\": {\n            \"type\": \"object\",\n            \"properties\": {\n                \"reference\": {\n                    \"type\": \"string\"\n                }\n            },\n            \"required\": [\"reference\"]\n        },\n        \"errors\": {\n            \"type\": [\"object\", \"null\"]\n        }\n    },\n    \"required\": [\"success\", \"data\", \"errors\"]\n}\n\n</code></pre>\n","urlObject":{"path":["200054","search"],"host":["{{MEDUSA_ENDPOINT}}clients"],"query":[],"variable":[]}},"response":[{"id":"b56bb979-997e-41d8-a93a-6ff375e6c0b8","name":"/clients/:id/search","originalRequest":{"method":"GET","header":[],"url":"{{MEDUSA_ENDPOINT}}clients/200054/search"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"X-RateLimit-Limit","value":"100"},{"key":"X-RateLimit-Remaining","value":"99"},{"key":"Date","value":"Thu, 09 May 2024 17:53:11 GMT"},{"key":"X-RateLimit-Reset","value":"1715277194"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"67"},{"key":"ETag","value":"W/\"43-aY7hMiPxfLpr4EM7bl4UrrlSQc4\""},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"reference\": \"1591058900229\"\n    },\n    \"errors\": null\n}"}],"_postman_id":"b15a2419-99ad-44b4-b436-7806a403840a"}],"id":"f3ea775e-d151-4427-bf00-bbb5f435a9d3","description":"<p>View and analyse live contracts placed with Jellyfish Energy.</p>\n","_postman_id":"f3ea775e-d151-4427-bf00-bbb5f435a9d3"},{"name":"Payouts","item":[{"name":"/payouts","id":"8e383346-a71f-455e-8a9e-3613c45a8be5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JELLYFISHING_BEARER}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{MEDUSA_ENDPOINT}}payouts","description":"<p><strong>Request Body</strong><br />This is a GET request and does not require a request body.</p>\n<p><strong>Response</strong></p>\n<ul>\n<li><code>success</code> (boolean): Indicates if the request was successful.</li>\n<li><code>data</code> (array): An array of payout objects, each containing the following fields:<ul>\n<li><code>id</code> (integer): The ID of the payout.</li>\n<li><code>period</code> (string): The period for the payout.</li>\n<li><code>amount</code> (integer): The amount of the payout.</li>\n<li><code>invoiceUploaded</code> (boolean): Indicates if the invoice is uploaded.</li>\n<li><code>partnerId</code> (integer): The ID of the partner.</li>\n<li><code>billCount</code> (integer): The count of bills for the payout.</li>\n<li><code>stage</code> (string): The stage of the payout.</li>\n</ul>\n</li>\n<li><code>errors</code> (null): Indicates any errors, if present.</li>\n</ul>\n<p><strong>Example Response</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"success\": true,\n    \"data\": [\n        {\n            \"id\": 0,\n            \"period\": \"\",\n            \"amount\": 0,\n            \"invoiceUploaded\": true,\n            \"partnerId\": 0,\n            \"billCount\": 0,\n            \"stage\": \"\"\n        }\n    ],\n    \"errors\": null\n}\n\n</code></pre>\n","urlObject":{"host":["{{MEDUSA_ENDPOINT}}payouts"],"query":[],"variable":[]}},"response":[{"id":"c2ec9dd7-571b-44ef-9272-5d86b999cfe1","name":"/payouts","originalRequest":{"method":"GET","header":[],"url":"{{MEDUSA_ENDPOINT}}payouts"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"X-RateLimit-Limit","value":"100"},{"key":"X-RateLimit-Remaining","value":"99"},{"key":"Date","value":"Thu, 09 May 2024 11:39:12 GMT"},{"key":"X-RateLimit-Reset","value":"1715254761"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1501"},{"key":"ETag","value":"W/\"5dd-+qnbOe+HR4B49Q1+C2ix0wvKPzQ\""},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": [\n        {\n            \"id\": 3009,\n            \"period\": \"2024-04-15T00:00:00.000Z\",\n            \"amount\": 1334.12,\n            \"invoiceUploaded\": true,\n            \"partnerId\": 3,\n            \"billCount\": 100,\n            \"stage\": \"No Action Required\"\n        }\n    ],\n    \"errors\": null\n}"}],"_postman_id":"8e383346-a71f-455e-8a9e-3613c45a8be5"},{"name":"/payouts/:id","id":"5dfbd541-7806-47b6-a3f5-c0abc8189d1a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JELLYFISHING_BEARER}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{MEDUSA_ENDPOINT}}payouts/3009","description":"<p>This endpoint retrieves the payout details for a specific payout ID.</p>\n<h4 id=\"request\">Request</h4>\n<ul>\n<li>Method: GET</li>\n<li>Endpoint: {{MEDUSA_ENDPOINT}}/payouts/3009</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<ul>\n<li><p>Status: 200</p>\n</li>\n<li><p>Content-Type: application/json</p>\n</li>\n<li><p>Body:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">  {\n      \"success\": true,\n      \"data\": {\n          \"id\": 0,\n          \"period\": \"\",\n          \"amount\": 0,\n          \"invoiceUploaded\": true,\n          \"partnerId\": 0,\n          \"backing\": [\n              {\n                  \"id\": 0,\n                  \"start\": \"\",\n                  \"end\": \"\",\n                  \"account\": \"\",\n                  \"name\": \"\",\n                  \"mpxn\": \"\",\n                  \"cancelled\": true\n              }\n          ],\n          \"stage\": \"\"\n      },\n      \"errors\": null\n  }\n\n</code></pre>\n</li>\n</ul>\n","urlObject":{"path":["3009"],"host":["{{MEDUSA_ENDPOINT}}payouts"],"query":[],"variable":[]}},"response":[{"id":"e67a7b0f-afe7-4303-9506-36aae4e5fae7","name":"/payouts/:id","originalRequest":{"method":"GET","header":[],"url":"{{MEDUSA_ENDPOINT}}payouts/3009"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"X-RateLimit-Limit","value":"100"},{"key":"X-RateLimit-Remaining","value":"99"},{"key":"Date","value":"Thu, 09 May 2024 17:21:46 GMT"},{"key":"X-RateLimit-Reset","value":"1715275315"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"351"},{"key":"ETag","value":"W/\"15f-SKkEt7RZTukC5gls61UqPaPwxyg\""},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"id\": 3009,\n        \"period\": \"2024-04-15T00:00:00.000Z\",\n        \"amount\": 13.12,\n        \"invoiceUploaded\": true,\n        \"partnerId\": 3,\n        \"backing\": [\n            {\n                \"id\": 31413,\n                \"start\": \"2024-02-27T00:00:00.000Z\",\n                \"end\": \"2024-03-26T00:00:00.000Z\",\n                \"account\": \"200179\",\n                \"name\": \"Forge Financial Solutions\",\n                \"mpxn\": \"2228493807\",\n                \"cancelled\": false\n            }\n        ],\n        \"stage\": \"No Action Required\"\n    },\n    \"errors\": null\n}"}],"_postman_id":"5dfbd541-7806-47b6-a3f5-c0abc8189d1a"},{"name":"/payouts/on-hold","id":"9a471fbd-62a1-40d1-882f-c2f6b629f325","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JELLYFISHING_BEARER}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{MEDUSA_ENDPOINT}}payouts/on-hold","description":"<p>This endpoint retrieves the payout lines that are currently on hold.</p>\n<h4 id=\"request\">Request</h4>\n<p>No request body is required for this endpoint.</p>\n<h4 id=\"response\">Response</h4>\n<p>The response will be a JSON object with the following schema:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"success\": boolean,\n    \"data\": [\n        {\n            \"account\": string,\n            \"name\": string,\n            \"mpxn\": string,\n            \"commission\": number,\n            \"haltedDueToPayment\": boolean,\n            \"haltedDueToReads\": boolean\n        }\n    ],\n    \"errors\": null\n}\n\n</code></pre>\n<p>The <code>success</code> field indicates whether the request was successful. The <code>data</code> field contains an array of objects, each representing a payout on hold, with details such as account, name, MPXN, commission, and flags indicating if the payout is halted due to payment or reads. The <code>errors</code> field will be null if there are no errors.</p>\n<h4 id=\"example\">Example</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"success\": true,\n    \"data\": [\n        {\n            \"account\": \"\",\n            \"name\": \"\",\n            \"mpxn\": \"\",\n            \"commission\": 0,\n            \"haltedDueToPayment\": true,\n            \"haltedDueToReads\": true\n        }\n    ],\n    \"errors\": null\n}\n\n</code></pre>\n","urlObject":{"path":["on-hold"],"host":["{{MEDUSA_ENDPOINT}}payouts"],"query":[],"variable":[]}},"response":[{"id":"d25ebc37-53b8-4fda-978c-bfb2bd8267c9","name":"/payouts/:id Copy","originalRequest":{"method":"GET","header":[],"url":"{{MEDUSA_ENDPOINT}}payouts/on-hold"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"X-RateLimit-Limit","value":"100"},{"key":"X-RateLimit-Remaining","value":"99"},{"key":"Date","value":"Thu, 09 May 2024 11:42:38 GMT"},{"key":"X-RateLimit-Reset","value":"1715254961"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"326"},{"key":"ETag","value":"W/\"146-mcFmLGnZ//Jnxcaabkcc3y/kBes\""},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": [\n        {\n            \"account\": \"200173\",\n            \"name\": \"Client 1\",\n            \"mpxn\": \"1580000138470\",\n            \"commission\": 198.82,\n            \"haltedDueToPayment\": true,\n            \"haltedDueToReads\": false\n        },\n        {\n            \"account\": \"200179\",\n            \"name\": \"Client 2\",\n            \"mpxn\": \"2228493807\",\n            \"commission\": 13.92,\n            \"haltedDueToPayment\": false,\n            \"haltedDueToReads\": true\n        }\n    ],\n    \"errors\": null\n}"}],"_postman_id":"9a471fbd-62a1-40d1-882f-c2f6b629f325"}],"id":"a9988707-dd0c-4ff2-9f91-d7258e7223e4","description":"<p>View and analyse commission payout statements from Jellyfish Energy.</p>\n","_postman_id":"a9988707-dd0c-4ff2-9f91-d7258e7223e4"},{"name":"Reports","item":[{"name":"/reports/renewals","id":"ff240985-bdcd-4e71-a5d2-5949b01eb709","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JELLYFISHING_BEARER}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{MEDUSA_ENDPOINT}}reports/renewals","description":"<p>All upcoming renewal dates and the stage.</p>\n<p>Response:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"type\": \"object\",\n  \"properties\": {\n    \"success\": {\n      \"type\": \"boolean\"\n    },\n    \"data\": {\n      \"type\": \"array\",\n      \"items\": {\n        \"type\": \"object\",\n        \"properties\": {\n          \"account\": {\n            \"type\": \"string\"\n          },\n          \"name\": {\n            \"type\": \"string\"\n          },\n          \"stage\": {\n            \"type\": \"string\"\n          },\n          \"date\": {\n            \"type\": \"string\"\n          }\n        }\n      }\n    },\n    \"errors\": {\n      \"type\": [\"null\", \"object\"]\n    }\n  }\n}\n\n</code></pre>\n","urlObject":{"path":["renewals"],"host":["{{MEDUSA_ENDPOINT}}reports"],"query":[],"variable":[]}},"response":[{"id":"d9321b22-2464-4b86-b474-67b91f18e3cf","name":"/reports/renewals","originalRequest":{"method":"GET","header":[],"url":"{{MEDUSA_ENDPOINT}}reports/renewals"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"X-RateLimit-Limit","value":"100"},{"key":"X-RateLimit-Remaining","value":"99"},{"key":"Date","value":"Thu, 09 May 2024 11:57:13 GMT"},{"key":"X-RateLimit-Reset","value":"1715255839"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"638"},{"key":"ETag","value":"W/\"27e-CFr/OmDkwLiPH9jZVorBZLArk34\""},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": [\n        {\n            \"account\": \"200054\",\n            \"name\": \"Client 1\",\n            \"stage\": \"P\", // Pending\n            \"date\": \"2024-06-30T00:00:00.000Z\"\n        },\n        {\n            \"account\": \"200173\",\n            \"name\": \"Client 2\",\n            \"stage\": \"N\", // Nothing Found\n            \"date\": \"2025-01-20T00:00:00.000Z\"\n        },\n        {\n            \"account\": \"200174\",\n            \"name\": \"Client 3\",\n            \"stage\": \"L\", // Locked In\n            \"date\": \"2025-01-20T00:00:00.000Z\"\n        }\n    ],\n    \"errors\": null\n}"}],"_postman_id":"ff240985-bdcd-4e71-a5d2-5949b01eb709"},{"name":"/reports/objections","id":"15e77a41-2539-4a5d-955c-36896db846b0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JELLYFISHING_BEARER}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{MEDUSA_ENDPOINT}}reports/objections","description":"<p>This request retrieves recent objections (&lt;= 7 days from now) from the Medusa API. The response will have a \"success\" field indicating the success status of the request, and a \"data\" field containing an array of objection report objects. Each objection report object includes \"account\", \"name\", \"mpxn\", \"proposedStart\", and \"status\" fields. The \"errors\" field will be null if there are no errors in the response. No specific headers are mentioned for this request.</p>\n","urlObject":{"path":["objections"],"host":["{{MEDUSA_ENDPOINT}}reports"],"query":[],"variable":[]}},"response":[{"id":"45135824-29ab-426a-93a9-82e6963e9f92","name":"/reports/objections","originalRequest":{"method":"GET","header":[],"url":"{{MEDUSA_ENDPOINT}}reports/objections"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"X-RateLimit-Limit","value":"100"},{"key":"X-RateLimit-Remaining","value":"99"},{"key":"Date","value":"Wed, 05 Jun 2024 19:33:47 GMT"},{"key":"X-RateLimit-Reset","value":"1717616037"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"277"},{"key":"ETag","value":"W/\"115-fUv8dHhe1+U6zpOOFrcdCUcsdqE\""},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": [\n        {\n            \"account\": \"123456\",\n            \"name\": \"Company 134\",\n            \"mpxn\": \"1800027039999\",\n            \"proposedStart\": \"17/10/2024\",\n            \"status\": \"Rejected\"\n        }\n    ],\n    \"errors\": null\n}"}],"_postman_id":"15e77a41-2539-4a5d-955c-36896db846b0"},{"name":"/reports/client-ratings","id":"c0e3345b-748d-4f7a-833e-f0eeea15d2da","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JELLYFISHING_BEARER}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{MEDUSA_ENDPOINT}}reports/client-ratings","description":"<p>Returns an array of objects (account, rating, weight) which is the backing data for the partner rating.</p>\n","urlObject":{"path":["client-ratings"],"host":["{{MEDUSA_ENDPOINT}}reports"],"query":[],"variable":[]}},"response":[],"_postman_id":"c0e3345b-748d-4f7a-833e-f0eeea15d2da"}],"id":"470ac8c6-4abe-4583-988f-db8d1185430f","description":"<p>View pre-made reports via API.</p>\n","_postman_id":"470ac8c6-4abe-4583-988f-db8d1185430f"}]}