{"info":{"_postman_id":"35d34234-65b2-4f75-862b-67a32db9acfd","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":"35d34234-65b2-4f75-862b-67a32db9acfd","publishedId":"2sBYHXPdA9","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2026-10-31T11:36:20.000Z"},"item":[{"name":"Authentication","item":[{"name":"/auth","id":"50556d04-0771-4e1f-949d-7541ae43a424","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"shortCode\": \"EXAMPLE\",\n  \"key\": \"{{MEDUSA_API_KEY}}\"\n}","options":{"raw":{"language":"json"}}},"url":"https://medusa.jellyfish.rest/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\": \"{{MEDUSA_TOKEN}}\",\n    \"exp\": \"2026-11-01T12:00:00.000Z\"\n  },\n  \"errors\": null\n}\n</code></pre>\n","urlObject":{"protocol":"https","path":["auth"],"host":["medusa","jellyfish","rest"],"query":[],"variable":[]}},"response":[{"id":"23436322-bea5-44cb-b7e8-00ffa9c60b46","name":"Authenticate an example partner (dummy data)","originalRequest":{"auth":{"type":"noauth"},"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"shortCode\": \"EXAMPLE\",\n  \"key\": \"{{MEDUSA_API_KEY}}\"\n}","options":{"raw":{"language":"json"}}},"url":"https://medusa.jellyfish.rest/auth"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"token\": \"{{MEDUSA_TOKEN}}\",\n    \"exp\": \"2026-11-01T12:00:00.000Z\"\n  },\n  \"errors\": null\n}"}],"_postman_id":"50556d04-0771-4e1f-949d-7541ae43a424"},{"name":"/auth/check","id":"acb4e163-d074-4307-9ed3-32bb5fe56159","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{MEDUSA_TOKEN}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"}],"url":"https://medusa.jellyfish.rest/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<p>  ```json</p>\n</li>\n</ul>\n<p>{\n  \"success\": true,\n  \"data\": {\n    \"id\": 1,\n    \"name\": \"Example API User\",\n    \"partnerId\": 1,\n    \"partner\": {\n      \"name\": \"Example Partner Ltd\",\n      \"shortCode\": \"EXAMPLE\",\n      \"createdAt\": \"2026-01-01T00:00:00.000Z\",\n      \"appLogo\": false,\n      \"documentLogo\": false,\n      \"appHue\": null,\n      \"frozen\": false\n    },\n    \"api\": true\n  },\n  \"errors\": null\n}\n```</p>\n","urlObject":{"protocol":"https","path":["auth","check"],"host":["medusa","jellyfish","rest"],"query":[],"variable":[]}},"response":[{"id":"6c25eb5c-4bd5-4e86-86ad-aa46d44b2890","name":"Check the authenticated partner (dummy data)","originalRequest":{"auth":{"type":"bearer","bearer":{"token":"{{MEDUSA_TOKEN}}"}},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"}],"url":"https://medusa.jellyfish.rest/auth/check"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 1,\n    \"name\": \"Example API User\",\n    \"partnerId\": 1,\n    \"partner\": {\n      \"name\": \"Example Partner Ltd\",\n      \"shortCode\": \"EXAMPLE\",\n      \"createdAt\": \"2026-01-01T00:00:00.000Z\",\n      \"appLogo\": false,\n      \"documentLogo\": false,\n      \"appHue\": null,\n      \"frozen\": false\n    },\n    \"api\": true\n  },\n  \"errors\": null\n}"}],"_postman_id":"acb4e163-d074-4307-9ed3-32bb5fe56159"}],"id":"0491e2bd-be05-4e31-91fe-315034e34e18","description":"<p>Use your short code and API key to authenticate with our platform.</p>\n","_postman_id":"0491e2bd-be05-4e31-91fe-315034e34e18"},{"name":"Searches","item":[{"name":"/searches","id":"56e36fdf-ba35-4a79-85e3-3f2459dd1ae0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{MEDUSA_TOKEN}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"reference\": \"example-electricity-quote\",\n  \"energy\": \"electricity\",\n  \"mpxn\": \"0000000000000\",\n  \"usage\": 50000,\n  \"startDate\": \"2027-02-01\",\n  \"commission\": 0,\n  \"standingUplift\": 0,\n  \"terms\": [\n    12\n  ],\n  \"priceHoldHours\": 24,\n  \"overrideUsage\": false,\n  \"overrideCapacity\": false\n}","options":{"raw":{"language":"json"}}},"url":"https://medusa.jellyfish.rest/searches","description":"<p>Save a single-meter search. This endpoint returns its reference; retrieve products with <code>GET /searches/:id</code>.</p>\n<h3 id=\"availability\">Availability</h3>\n<p>These search and contract options are available to all partners. Partner identity is derived from authentication.</p>\n<h3 id=\"request-body\">Request body</h3>\n<p><code>reference</code> is optional and defaults to <code>mpxn</code>; bespoke references must contain 1–200 characters and no control characters. A repeated reference replaces the saved search.</p>\n<h3 id=\"meter-inputs\">Meter inputs</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Meaning</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>energy</td>\n<td>string, required</td>\n<td><code>electricity</code> or <code>gas</code>.</td>\n</tr>\n<tr>\n<td>mpxn</td>\n<td>string, required</td>\n<td>13-digit MPAN or 6–10-digit MPRN. Keep meter identifiers as strings.</td>\n</tr>\n<tr>\n<td>usage</td>\n<td>number</td>\n<td>Annual kWh. Gas needs positive usage/AQ after account enrichment. Electricity may obtain verified industry/account usage when omitted. Existing customers can supply account EAC/AQ.</td>\n</tr>\n<tr>\n<td>commission</td>\n<td>number</td>\n<td>Non-negative unit commission, in p/kWh; default 0 in bespoke pricing.</td>\n</tr>\n<tr>\n<td>standingUplift</td>\n<td>number</td>\n<td>Non-negative standing uplift, in p/day; default 0.</td>\n</tr>\n<tr>\n<td>availableCapacity</td>\n<td>number</td>\n<td>Electricity kVA, where applicable.</td>\n</tr>\n<tr>\n<td>overrideUsage</td>\n<td>boolean</td>\n<td>Electricity: <code>true</code> retains explicitly supplied annual usage instead of automatic HH usage.</td>\n</tr>\n<tr>\n<td>overrideCapacity</td>\n<td>boolean</td>\n<td>Electricity: <code>true</code> retains explicitly supplied capacity instead of automatic HH capacity.</td>\n</tr>\n<tr>\n<td>nightSplit</td>\n<td>number</td>\n<td>Electricity night usage as a percentage from 0 to 100. Prefer this field to avoid fraction/percentage ambiguity.</td>\n</tr>\n<tr>\n<td>nightPercentage</td>\n<td>number</td>\n<td>Alias: values up to 1 are fractions; values greater than 1 are divided by 100.</td>\n</tr>\n<tr>\n<td>retentionRating</td>\n<td>number or string</td>\n<td>Customer retention rating 1–5, or poor/bronze/silver/gold/platinum. 0, null or blank means unrated. This is separate from the broker rating.</td>\n</tr>\n</tbody>\n</table>\n</div><p>HH electricity can derive annual usage, night split and estimated kVA from industry HH data. A complete profile is sent to pricing for forecasting; usable partial data can be annualised. Explicit usage/capacity overrides and a supplied night split are respected. If no HH split is available, the pricing path can use its estimated fallback; inspect returned source fields. Non-HH electricity does not trigger an HH consumption lookup.</p>\n<h3 id=\"period-and-price-hold\">Period and price hold</h3>\n<ul>\n<li><p><code>terms</code>: array of 3, 6, 9, 12, 24 or 36 months; default <code>[12]</code>. <code>term</code> is accepted as a scalar alias.</p>\n</li>\n<li><p><code>endDate</code>: optional inclusive common end date in <code>YYYY-MM-DD</code>; <code>commonEndDate</code> is an alias. It must be more than three months after today in UK time and after the meter start date. A supplied end date takes precedence over terms.</p>\n</li>\n<li><p><code>startDate</code>: <code>YYYY-MM-DD</code> (<code>DD/MM/YYYY</code> is also accepted by bespoke pricing), or <code>asap</code>. Missing/<code>asap</code> dates resolve to five weekdays after today in UK time. Existing-customer searches may use their renewal start date from the account record.</p>\n</li>\n<li><p><code>priceHoldHours</code>: 4, 24, 48 or 72; default 24. The server owns the resulting <code>priceHold</code> timestamps. Use returned <code>expiresAt</code> rather than calculating a deadline yourself.</p>\n</li>\n<li><p>Saved bespoke searches persist until deleted. The pricing snapshot is cached for 90 minutes; this cache lifetime is separate from the contract price hold.</p>\n</li>\n</ul>\n<p>Optional existing fields: <code>promotionCode</code>, <code>riskScore</code> (0–100), <code>creditBand</code> and <code>creditsafeId</code>. A credit check on retrieval can refresh the score.</p>\n<h3 id=\"instant-quote\">Instant quote</h3>\n<p><code>instantQuote:true</code> is a single-search option for any unfrozen partner. Send <code>energy</code> and <code>mpxn</code>; the server resets the request to ASAP, 12 months, 24-hour hold and zero commission/uplift, ignoring other supplied quote settings. <code>instantQuote</code> must be a boolean.</p>\n<h3 id=\"example\">Example</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"reference\": \"example-electricity-quote\",\n  \"energy\": \"electricity\",\n  \"mpxn\": \"0000000000000\",\n  \"usage\": 50000,\n  \"startDate\": \"2027-02-01\",\n  \"commission\": 0,\n  \"standingUplift\": 0,\n  \"terms\": [\n    12\n  ],\n  \"priceHoldHours\": 24,\n  \"overrideUsage\": false,\n  \"overrideCapacity\": false\n}\n</code></pre>\n<h3 id=\"response\">Response</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"success\": true,\n  \"data\": {\n    \"reference\": \"example-electricity-quote\"\n  },\n  \"errors\": null\n}\n</code></pre>\n<h3 id=\"errors\">Errors</h3>\n<p>Bespoke validation and selection failures return HTTP 400, 403, 404, 409 or 503 with <code>{success:false,data:null,errors:[message],errorCode}</code>. Inspect <code>success</code> and <code>errors</code> even on HTTP 200: legacy endpoints can return application errors with that status. Individual meter/term pricing failures can appear inside a successful search response.</p>\n","urlObject":{"protocol":"https","path":["searches"],"host":["medusa","jellyfish","rest"],"query":[],"variable":[]}},"response":[{"id":"86023f07-168a-4129-9b6e-f6380617e36b","name":"Quote electricity for 12 months (dummy data)","originalRequest":{"auth":{"type":"bearer","bearer":{"token":"{{MEDUSA_TOKEN}}"}},"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"reference\": \"example-electricity-quote\",\n  \"energy\": \"electricity\",\n  \"mpxn\": \"0000000000000\",\n  \"usage\": 50000,\n  \"startDate\": \"2027-02-01\",\n  \"commission\": 0,\n  \"standingUplift\": 0,\n  \"terms\": [\n    12\n  ],\n  \"priceHoldHours\": 24,\n  \"overrideUsage\": false,\n  \"overrideCapacity\": false\n}","options":{"raw":{"language":"json"}}},"url":"https://medusa.jellyfish.rest/searches"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"reference\": \"example-electricity-quote\"\n  },\n  \"errors\": null\n}"},{"id":"5e255866-6f21-4ff3-9d0c-628313810bc6","name":"Quote gas for 12 months (dummy data)","originalRequest":{"auth":{"type":"bearer","bearer":{"token":"{{MEDUSA_TOKEN}}"}},"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"reference\": \"example-gas-quote\",\n  \"energy\": \"gas\",\n  \"mpxn\": \"0000000001\",\n  \"usage\": 100000,\n  \"startDate\": \"2027-02-01\",\n  \"commission\": 0,\n  \"standingUplift\": 0,\n  \"terms\": [\n    12\n  ],\n  \"priceHoldHours\": 24\n}","options":{"raw":{"language":"json"}}},"url":"https://medusa.jellyfish.rest/searches"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"reference\": \"example-gas-quote\"\n  },\n  \"errors\": null\n}"},{"id":"58ae5045-925b-4336-a1ee-790f8c35f13c","name":"Request an instant electricity quote (dummy data)","originalRequest":{"auth":{"type":"bearer","bearer":{"token":"{{MEDUSA_TOKEN}}"}},"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"energy\": \"electricity\",\n  \"mpxn\": \"0000000000000\",\n  \"instantQuote\": true\n}","options":{"raw":{"language":"json"}}},"url":"https://medusa.jellyfish.rest/searches"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"reference\": \"0000000000000\"\n  },\n  \"errors\": null\n}"}],"_postman_id":"56e36fdf-ba35-4a79-85e3-3f2459dd1ae0"},{"name":"/searches","id":"2f71053f-3359-418a-b3ce-9ae542fe2777","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{MEDUSA_TOKEN}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"}],"url":"https://medusa.jellyfish.rest/searches","description":"<p>This endpoint retrieves search results from the Medusa system.</p>\n<h4 id=\"request\">Request</h4>\n<ul>\n<li><p>Method: GET</p>\n</li>\n<li><p>URL: {{MEDUSA_ENDPOINT}}searches</p>\n</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>{ \"success\":true, \"data\":[ { \"ts\":\"\", \"params\":{ \"reference\":\"\", \"mpxn\":\"\", \"usage\":0, \"energy\":\"\", \"startDate\":\"\", \"commission\":0, \"retentionRating\":0 }, \"user\":\"\" } ], \"errors\":null }</p>\n</li>\n</ul>\n<p>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.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>### Bespoke searches\nResults expose `pricingMode:bespoke`; saved bespoke searches persist until explicitly deleted. The existing quoting-user filter still applies.\n\n</code></pre>","urlObject":{"protocol":"https","path":["searches"],"host":["medusa","jellyfish","rest"],"query":[],"variable":[]}},"response":[{"id":"3ff44ea0-099e-41b7-9808-a75cfe8d435e","name":"List saved searches (dummy data)","originalRequest":{"auth":{"type":"bearer","bearer":{"token":"{{MEDUSA_TOKEN}}"}},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"}],"url":"https://medusa.jellyfish.rest/searches"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": [\n    {\n      \"ts\": \"2026-10-31T12:00:00.000Z\",\n      \"params\": {\n        \"reference\": \"example-electricity-quote\",\n        \"energy\": \"electricity\",\n        \"mpxn\": \"0000000000000\",\n        \"usage\": 50000,\n        \"startDate\": \"2027-02-01\",\n        \"commission\": 0,\n        \"standingUplift\": 0,\n        \"terms\": [\n          12\n        ],\n        \"priceHoldHours\": 24,\n        \"overrideUsage\": false,\n        \"overrideCapacity\": false\n      },\n      \"user\": \"example.user\",\n      \"api\": true,\n      \"pricingMode\": \"bespoke\",\n      \"errors\": [],\n      \"pricingCache\": {\n        \"pricedAt\": \"2026-10-31T12:00:00.000Z\",\n        \"refreshAt\": \"2026-10-31T13:30:00.000Z\"\n      }\n    }\n  ],\n  \"errors\": null\n}"}],"_postman_id":"2f71053f-3359-418a-b3ce-9ae542fe2777"},{"name":"/searches/:id","id":"34075d3c-4332-483f-b4a3-cd6bd464e10f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{MEDUSA_TOKEN}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"}],"url":"https://medusa.jellyfish.rest/searches/example-electricity-quote","description":"<p>Retrieve the saved search and available products. <code>:id</code> is the URL-encoded search reference.</p>\n<h3 id=\"availability\">Availability</h3>\n<p>These search and contract options are available to all partners. Partner identity is derived from authentication.</p>\n<p>For bespoke searches, <code>data</code> is <code>{search,products}</code>: <code>search.pricingMode</code> is <code>bespoke</code>, <code>search.params</code> contains effective inputs and derived usage, <code>search.errors</code> contains per-term pricing failures, and <code>search.pricingCache</code> contains snapshot timestamps. A successful response can contain an empty products array with pricing errors; inspect both.</p>\n<h3 id=\"returned-prices\">Returned prices</h3>\n<p>Products expose an opaque <code>id</code> (for example <code>bs-…</code>), product name, dates/term, selling rates and retail <code>costs</code>. Use <code>id</code> as the selection's <code>productId</code>; a catalogue value such as <code>blue</code> is not interchangeable with it. Unit/day/night/evening-weekend rates are p/kWh, <code>standingCharge</code> is p/day and <code>capacityRate</code> is p/kVA/day. Retail costs are GBP. <code>commissionIncluded:true</code> means returned selling rates already include the selected commission. Deemed products are excluded.</p>\n<p><code>pricingCache.pricedAt</code> and <code>refreshAt</code> describe the cached snapshot. Usage/capacity/night source fields can identify provided, account, industry or Electralink-derived values.</p>\n<h3 id=\"create-a-contract\">Create a contract</h3>\n<p>Send the chosen returned <code>products[].id</code> with the meter number in <code>searchSelection</code> to <code>POST /dynamic-product-contracts</code>. See Dynamic Contracts. Do not submit a client-edited product/rates payload as the source of truth.</p>\n<h3 id=\"errors\">Errors</h3>\n<p>Bespoke validation and selection failures return HTTP 400, 403, 404, 409 or 503 with <code>{success:false,data:null,errors:[message],errorCode}</code>. Inspect <code>success</code> and <code>errors</code> even on HTTP 200: legacy endpoints can return application errors with that status. Individual meter/term pricing failures can appear inside a successful search response.</p>\n","urlObject":{"protocol":"https","path":["searches","example-electricity-quote"],"host":["medusa","jellyfish","rest"],"query":[],"variable":[]}},"response":[{"id":"f655b03f-b25b-449e-a1c7-f2c3f571af3b","name":"Read current electricity offers (dummy data)","originalRequest":{"auth":{"type":"bearer","bearer":{"token":"{{MEDUSA_TOKEN}}"}},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"}],"url":"https://medusa.jellyfish.rest/searches/example-electricity-quote"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"search\": {\n      \"ts\": \"2026-10-31T12:00:00.000Z\",\n      \"params\": {\n        \"reference\": \"example-electricity-quote\",\n        \"energy\": \"electricity\",\n        \"mpxn\": \"0000000000000\",\n        \"usage\": 50000,\n        \"startDate\": \"2027-02-01\",\n        \"commission\": 0,\n        \"standingUplift\": 0,\n        \"terms\": [\n          12\n        ],\n        \"priceHoldHours\": 24,\n        \"overrideUsage\": false,\n        \"overrideCapacity\": false\n      },\n      \"user\": \"example.user\",\n      \"api\": true,\n      \"pricingMode\": \"bespoke\",\n      \"errors\": [],\n      \"pricingCache\": {\n        \"pricedAt\": \"2026-10-31T12:00:00.000Z\",\n        \"refreshAt\": \"2026-10-31T13:30:00.000Z\"\n      }\n    },\n    \"products\": [\n      {\n        \"id\": \"bs-00000000000000000000000000000001\",\n        \"name\": \"Blue 12 Month\",\n        \"term\": 12,\n        \"startDate\": \"2027-02-01\",\n        \"endDate\": \"2028-01-31\",\n        \"energy\": \"electricity\",\n        \"fuel\": \"electricity\",\n        \"fixed\": true,\n        \"pricingMode\": \"bespoke\",\n        \"annualUsage\": 50000,\n        \"priceHold\": {\n          \"hours\": 24,\n          \"quotedAt\": \"2026-10-31T12:00:00.000Z\",\n          \"expiresAt\": \"2026-11-01T12:00:00.000Z\"\n        },\n        \"allOrDayUnitRate\": 28.5,\n        \"nightRate\": null,\n        \"eveningWeekendRate\": null,\n        \"standingCharge\": 70,\n        \"capacityRate\": null,\n        \"commissionIncluded\": true,\n        \"costs\": {\n          \"annualCost\": 14505.5,\n          \"monthlyCost\": 1208.79,\n          \"annualCommission\": 0,\n          \"monthlyCommission\": 0\n        }\n      }\n    ]\n  },\n  \"errors\": null\n}"},{"id":"fe9a9d26-ca88-4a2e-b676-5e133001067c","name":"Read a saved gas quote (dummy data)","originalRequest":{"auth":{"type":"bearer","bearer":{"token":"{{MEDUSA_TOKEN}}"}},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"}],"url":"https://medusa.jellyfish.rest/searches/example-gas-quote"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"search\": {\n      \"ts\": \"2026-10-31T12:00:00.000Z\",\n      \"params\": {\n        \"reference\": \"example-gas-quote\",\n        \"energy\": \"gas\",\n        \"mpxn\": \"0000000001\",\n        \"usage\": 100000,\n        \"startDate\": \"2027-02-01\",\n        \"commission\": 0,\n        \"standingUplift\": 0,\n        \"terms\": [\n          12\n        ],\n        \"priceHoldHours\": 24\n      },\n      \"user\": \"example.user\",\n      \"api\": true,\n      \"pricingMode\": \"bespoke\",\n      \"errors\": [],\n      \"pricingCache\": {\n        \"pricedAt\": \"2026-10-31T12:00:00.000Z\",\n        \"refreshAt\": \"2026-10-31T13:30:00.000Z\"\n      }\n    },\n    \"products\": [\n      {\n        \"id\": \"bs-00000000000000000000000000000002\",\n        \"name\": \"Blue 12 Month\",\n        \"term\": 12,\n        \"startDate\": \"2027-02-01\",\n        \"endDate\": \"2028-01-31\",\n        \"energy\": \"gas\",\n        \"fuel\": \"gas\",\n        \"fixed\": true,\n        \"pricingMode\": \"bespoke\",\n        \"annualUsage\": 100000,\n        \"priceHold\": {\n          \"hours\": 24,\n          \"quotedAt\": \"2026-10-31T12:00:00.000Z\",\n          \"expiresAt\": \"2026-11-01T12:00:00.000Z\"\n        },\n        \"allOrDayUnitRate\": 7.25,\n        \"nightRate\": null,\n        \"eveningWeekendRate\": null,\n        \"standingCharge\": 125,\n        \"capacityRate\": null,\n        \"commissionIncluded\": true,\n        \"costs\": {\n          \"annualCost\": 7706.25,\n          \"monthlyCost\": 642.19,\n          \"annualCommission\": 0,\n          \"monthlyCommission\": 0\n        }\n      }\n    ]\n  },\n  \"errors\": null\n}"}],"_postman_id":"34075d3c-4332-483f-b4a3-cd6bd464e10f"},{"name":"/searches/:id","id":"067c4c11-5b82-425c-8d1d-03637b303985","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{MEDUSA_TOKEN}}"}]},"isInherited":false},"method":"DELETE","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"}],"url":"https://medusa.jellyfish.rest/searches/example-electricity-quote","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</code></pre>\n","urlObject":{"protocol":"https","path":["searches","example-electricity-quote"],"host":["medusa","jellyfish","rest"],"query":[],"variable":[]}},"response":[{"id":"f93763ce-ecb5-4891-9f19-5e2f286c35a1","name":"Delete the saved search (dummy data)","originalRequest":{"auth":{"type":"bearer","bearer":{"token":"{{MEDUSA_TOKEN}}"}},"method":"DELETE","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"}],"url":"https://medusa.jellyfish.rest/searches/example-electricity-quote"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": true,\n  \"errors\": null\n}"}],"_postman_id":"067c4c11-5b82-425c-8d1d-03637b303985"},{"name":"/searches/:id","id":"d518c71c-1824-48b5-af18-0b867d6c957b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{MEDUSA_TOKEN}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"terms\": [\n    12,\n    24\n  ],\n  \"priceHoldHours\": 48\n}","options":{"raw":{"language":"json"}}},"url":"https://medusa.jellyfish.rest/searches/example-electricity-quote","description":"<p>Update a saved search using a partial body. For bespoke searches, inputs are normalised and the cached pricing snapshot is invalidated. Sending terms/term/endDate/commonEndDate replaces the previous period choice. Changing the supply clears stale customer credit/comparison data and resolves the new customer retention rating. Retrieve the search again and select a current product ID. The stored reference identifies this resource; do not use this operation to rename it.</p>\n<h3 id=\"period-and-price-hold\">Period and price hold</h3>\n<ul>\n<li><code>terms</code>: array of 3, 6, 9, 12, 24 or 36 months; default <code>[12]</code>. <code>term</code> is accepted as a scalar alias.</li>\n<li><code>endDate</code>: optional inclusive common end date in <code>YYYY-MM-DD</code>; <code>commonEndDate</code> is an alias. It must be more than three months after today in UK time and after the meter start date. A supplied end date takes precedence over terms.</li>\n<li><code>startDate</code>: <code>YYYY-MM-DD</code> (<code>DD/MM/YYYY</code> is also accepted by bespoke pricing), or <code>asap</code>. Missing/<code>asap</code> dates resolve to five weekdays after today in UK time. Existing-customer searches may use their renewal start date from the account record.</li>\n<li><code>priceHoldHours</code>: 4, 24, 48 or 72; default 24. The server owns the resulting <code>priceHold</code> timestamps. Use returned <code>expiresAt</code> rather than calculating a deadline yourself.</li>\n<li>Saved bespoke searches persist until deleted. The pricing snapshot is cached for 90 minutes; this cache lifetime is separate from the contract price hold.</li>\n</ul>\n<h3 id=\"meter-inputs\">Meter inputs</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Meaning</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>energy</td>\n<td>string, required</td>\n<td><code>electricity</code> or <code>gas</code>.</td>\n</tr>\n<tr>\n<td>mpxn</td>\n<td>string, required</td>\n<td>13-digit MPAN or 6–10-digit MPRN. Keep meter identifiers as strings.</td>\n</tr>\n<tr>\n<td>usage</td>\n<td>number</td>\n<td>Annual kWh. Gas needs positive usage/AQ after account enrichment. Electricity may obtain verified industry/account usage when omitted. Existing customers can supply account EAC/AQ.</td>\n</tr>\n<tr>\n<td>commission</td>\n<td>number</td>\n<td>Non-negative unit commission, in p/kWh; default 0 in bespoke pricing.</td>\n</tr>\n<tr>\n<td>standingUplift</td>\n<td>number</td>\n<td>Non-negative standing uplift, in p/day; default 0.</td>\n</tr>\n<tr>\n<td>availableCapacity</td>\n<td>number</td>\n<td>Electricity kVA, where applicable.</td>\n</tr>\n<tr>\n<td>overrideUsage</td>\n<td>boolean</td>\n<td>Electricity: <code>true</code> retains explicitly supplied annual usage instead of automatic HH usage.</td>\n</tr>\n<tr>\n<td>overrideCapacity</td>\n<td>boolean</td>\n<td>Electricity: <code>true</code> retains explicitly supplied capacity instead of automatic HH capacity.</td>\n</tr>\n<tr>\n<td>nightSplit</td>\n<td>number</td>\n<td>Electricity night usage as a percentage from 0 to 100. Prefer this field to avoid fraction/percentage ambiguity.</td>\n</tr>\n<tr>\n<td>nightPercentage</td>\n<td>number</td>\n<td>Alias: values up to 1 are fractions; values greater than 1 are divided by 100.</td>\n</tr>\n<tr>\n<td>retentionRating</td>\n<td>number or string</td>\n<td>Customer retention rating 1–5, or poor/bronze/silver/gold/platinum. 0, null or blank means unrated. This is separate from the broker rating.</td>\n</tr>\n</tbody>\n</table>\n</div><p>HH electricity can derive annual usage, night split and estimated kVA from industry HH data. A complete profile is sent to pricing for forecasting; usable partial data can be annualised. Explicit usage/capacity overrides and a supplied night split are respected. If no HH split is available, the pricing path can use its estimated fallback; inspect returned source fields. Non-HH electricity does not trigger an HH consumption lookup.</p>\n<p>This is the API's normal lookup behaviour. The separate portfolio CSV's rule to use DB EAC/AQ for non-HH meters is not a new API-wide setting.</p>\n<h3 id=\"errors\">Errors</h3>\n<p>Bespoke validation and selection failures return HTTP 400, 403, 404, 409 or 503 with <code>{success:false,data:null,errors:[message],errorCode}</code>. Inspect <code>success</code> and <code>errors</code> even on HTTP 200: legacy endpoints can return application errors with that status. Individual meter/term pricing failures can appear inside a successful search response.</p>\n","urlObject":{"protocol":"https","path":["searches","example-electricity-quote"],"host":["medusa","jellyfish","rest"],"query":[],"variable":[]}},"response":[{"id":"9c4fa1c4-252f-4d6c-9c71-a798853d1d64","name":"Change the quote terms and price hold (dummy data)","originalRequest":{"auth":{"type":"bearer","bearer":{"token":"{{MEDUSA_TOKEN}}"}},"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"terms\": [\n    12,\n    24\n  ],\n  \"priceHoldHours\": 48\n}","options":{"raw":{"language":"json"}}},"url":"https://medusa.jellyfish.rest/searches/example-electricity-quote"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": true,\n  \"errors\": null\n}"}],"_postman_id":"d518c71c-1824-48b5-af18-0b867d6c957b"},{"name":"/searches/:id/refresh","id":"01e7132e-fb84-4211-9eb6-27f645df36e8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{MEDUSA_TOKEN}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"}],"url":"https://medusa.jellyfish.rest/searches/example-electricity-quote/refresh","description":"<p>Invalidate the cached quote snapshot, then call GET /searches/:id to fetch current offers. No request body. Success: {success:true,data:true,errors:null}.</p>\n<h3 id=\"errors\">Errors</h3>\n<p>Bespoke validation and selection failures return HTTP 400, 403, 404, 409 or 503 with <code>{success:false,data:null,errors:[message],errorCode}</code>. Inspect <code>success</code> and <code>errors</code> even on HTTP 200: legacy endpoints can return application errors with that status. Individual meter/term pricing failures can appear inside a successful search response.</p>\n","urlObject":{"protocol":"https","path":["searches","example-electricity-quote","refresh"],"host":["medusa","jellyfish","rest"],"query":[],"variable":[]}},"response":[{"id":"2a1a436c-3348-409b-b4a0-10bd7a5a5621","name":"Invalidate cached quotes before repricing (dummy data)","originalRequest":{"auth":{"type":"bearer","bearer":{"token":"{{MEDUSA_TOKEN}}"}},"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"}],"url":"https://medusa.jellyfish.rest/searches/example-electricity-quote/refresh"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": true,\n  \"errors\": null\n}"}],"_postman_id":"01e7132e-fb84-4211-9eb6-27f645df36e8"}],"id":"94a4f940-36a8-42f5-9b97-19da1f996006","description":"<p>Single-meter searches.</p>\n<h3 id=\"availability\">Availability</h3>\n<p>These search and contract options are available to all partners. Partner identity is derived from authentication.</p>\n<p>Create → retrieve products → select an opaque offer ID → create a Dynamic Contract. New update and refresh requests are included.</p>\n<h3 id=\"period-and-price-hold\">Period and price hold</h3>\n<ul>\n<li><code>terms</code>: array of 3, 6, 9, 12, 24 or 36 months; default <code>[12]</code>. <code>term</code> is accepted as a scalar alias.</li>\n<li><code>endDate</code>: optional inclusive common end date in <code>YYYY-MM-DD</code>; <code>commonEndDate</code> is an alias. It must be more than three months after today in UK time and after the meter start date. A supplied end date takes precedence over terms.</li>\n<li><code>startDate</code>: <code>YYYY-MM-DD</code> (<code>DD/MM/YYYY</code> is also accepted by bespoke pricing), or <code>asap</code>. Missing/<code>asap</code> dates resolve to five weekdays after today in UK time. Existing-customer searches may use their renewal start date from the account record.</li>\n<li><code>priceHoldHours</code>: 4, 24, 48 or 72; default 24. The server owns the resulting <code>priceHold</code> timestamps. Use returned <code>expiresAt</code> rather than calculating a deadline yourself.</li>\n<li>Saved bespoke searches persist until deleted. The pricing snapshot is cached for 90 minutes; this cache lifetime is separate from the contract price hold.</li>\n</ul>\n","_postman_id":"94a4f940-36a8-42f5-9b97-19da1f996006"},{"name":"Bulk Searches","item":[{"name":"/bulk-searches","id":"976a6a3b-6ff4-4356-a444-270c31473997","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{MEDUSA_TOKEN}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"reference\": \"example-mixed-fuel-quote\",\n  \"terms\": [\n    12\n  ],\n  \"priceHoldHours\": 24,\n  \"data\": [\n    {\n      \"energy\": \"electricity\",\n      \"mpxn\": \"0000000000000\",\n      \"usage\": 50000,\n      \"startDate\": \"2027-02-01\",\n      \"commission\": 0,\n      \"standingUplift\": 0\n    },\n    {\n      \"energy\": \"gas\",\n      \"mpxn\": \"0000000001\",\n      \"usage\": 100000,\n      \"startDate\": \"2027-02-01\",\n      \"commission\": 0,\n      \"standingUplift\": 0\n    }\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://medusa.jellyfish.rest/bulk-searches","description":"<p>Save a bulk search, then retrieve it with GET /bulk-searches/:id.</p>\n<h3 id=\"availability\">Availability</h3>\n<p>These search and contract options are available to all partners. Partner identity is derived from authentication.</p>\n<h3 id=\"request-body\">Request body</h3>\n<p><code>reference</code> is required (1–200 characters for bespoke searches). <code>data</code> contains 1–250 meter rows. Duplicate MPXNs are collapsed to the first row; use distinct meter identifiers. Reusing a reference replaces that saved search.</p>\n<p>Each row accepts the meter inputs below; include numeric <code>commission</code> and <code>standingUplift</code> (use 0 explicitly). Row <code>startDate</code> is supported for bespoke searches; legacy spreadsheets can use <code>start</code> in DD/MM/YYYY. Existing customers may use their account renewal date and usage. Electricity overrides are retained.</p>\n<p>At the top level, <code>terms</code>, <code>endDate</code>/<code>commonEndDate</code>, <code>priceHoldHours</code>, <code>retentionRating</code> and <code>creditsafeId</code> can be supplied. A top-level common end date overrides row term choices; a row's own end date takes priority. Otherwise row terms override top-level terms. <code>priceHoldHours</code> belongs at the top level.</p>\n<h3 id=\"meter-inputs\">Meter inputs</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Meaning</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>energy</td>\n<td>string, required</td>\n<td><code>electricity</code> or <code>gas</code>.</td>\n</tr>\n<tr>\n<td>mpxn</td>\n<td>string, required</td>\n<td>13-digit MPAN or 6–10-digit MPRN. Keep meter identifiers as strings.</td>\n</tr>\n<tr>\n<td>usage</td>\n<td>number</td>\n<td>Annual kWh. Gas needs positive usage/AQ after account enrichment. Electricity may obtain verified industry/account usage when omitted. Existing customers can supply account EAC/AQ.</td>\n</tr>\n<tr>\n<td>commission</td>\n<td>number</td>\n<td>Non-negative unit commission, in p/kWh; default 0 in bespoke pricing.</td>\n</tr>\n<tr>\n<td>standingUplift</td>\n<td>number</td>\n<td>Non-negative standing uplift, in p/day; default 0.</td>\n</tr>\n<tr>\n<td>availableCapacity</td>\n<td>number</td>\n<td>Electricity kVA, where applicable.</td>\n</tr>\n<tr>\n<td>overrideUsage</td>\n<td>boolean</td>\n<td>Electricity: <code>true</code> retains explicitly supplied annual usage instead of automatic HH usage.</td>\n</tr>\n<tr>\n<td>overrideCapacity</td>\n<td>boolean</td>\n<td>Electricity: <code>true</code> retains explicitly supplied capacity instead of automatic HH capacity.</td>\n</tr>\n<tr>\n<td>nightSplit</td>\n<td>number</td>\n<td>Electricity night usage as a percentage from 0 to 100. Prefer this field to avoid fraction/percentage ambiguity.</td>\n</tr>\n<tr>\n<td>nightPercentage</td>\n<td>number</td>\n<td>Alias: values up to 1 are fractions; values greater than 1 are divided by 100.</td>\n</tr>\n<tr>\n<td>retentionRating</td>\n<td>number or string</td>\n<td>Customer retention rating 1–5, or poor/bronze/silver/gold/platinum. 0, null or blank means unrated. This is separate from the broker rating.</td>\n</tr>\n</tbody>\n</table>\n</div><p>HH electricity can derive annual usage, night split and estimated kVA from industry HH data. A complete profile is sent to pricing for forecasting; usable partial data can be annualised. Explicit usage/capacity overrides and a supplied night split are respected. If no HH split is available, the pricing path can use its estimated fallback; inspect returned source fields. Non-HH electricity does not trigger an HH consumption lookup.</p>\n<h3 id=\"period-and-price-hold\">Period and price hold</h3>\n<ul>\n<li><p><code>terms</code>: array of 3, 6, 9, 12, 24 or 36 months; default <code>[12]</code>. <code>term</code> is accepted as a scalar alias.</p>\n</li>\n<li><p><code>endDate</code>: optional inclusive common end date in <code>YYYY-MM-DD</code>; <code>commonEndDate</code> is an alias. It must be more than three months after today in UK time and after the meter start date. A supplied end date takes precedence over terms.</p>\n</li>\n<li><p><code>startDate</code>: <code>YYYY-MM-DD</code> (<code>DD/MM/YYYY</code> is also accepted by bespoke pricing), or <code>asap</code>. Missing/<code>asap</code> dates resolve to five weekdays after today in UK time. Existing-customer searches may use their renewal start date from the account record.</p>\n</li>\n<li><p><code>priceHoldHours</code>: 4, 24, 48 or 72; default 24. The server owns the resulting <code>priceHold</code> timestamps. Use returned <code>expiresAt</code> rather than calculating a deadline yourself.</p>\n</li>\n<li><p>Saved bespoke searches persist until deleted. The pricing snapshot is cached for 90 minutes; this cache lifetime is separate from the contract price hold.</p>\n</li>\n</ul>\n<h3 id=\"example\">Example</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"reference\": \"example-mixed-fuel-quote\",\n  \"terms\": [\n    12\n  ],\n  \"priceHoldHours\": 24,\n  \"data\": [\n    {\n      \"energy\": \"electricity\",\n      \"mpxn\": \"0000000000000\",\n      \"usage\": 50000,\n      \"startDate\": \"2027-02-01\",\n      \"commission\": 0,\n      \"standingUplift\": 0\n    },\n    {\n      \"energy\": \"gas\",\n      \"mpxn\": \"0000000001\",\n      \"usage\": 100000,\n      \"startDate\": \"2027-02-01\",\n      \"commission\": 0,\n      \"standingUplift\": 0\n    }\n  ]\n}\n</code></pre>\n<p>Success returns <code>{success:true,data:{reference},errors:null}</code>.</p>\n<h3 id=\"errors\">Errors</h3>\n<p>Bespoke validation and selection failures return HTTP 400, 403, 404, 409 or 503 with <code>{success:false,data:null,errors:[message],errorCode}</code>. Inspect <code>success</code> and <code>errors</code> even on HTTP 200: legacy endpoints can return application errors with that status. Individual meter/term pricing failures can appear inside a successful search response.</p>\n","urlObject":{"protocol":"https","path":["bulk-searches"],"host":["medusa","jellyfish","rest"],"query":[],"variable":[]}},"response":[{"id":"4c4441c2-c197-4f5d-851d-3063a4e65fc9","name":"Quote electricity and gas for 12 months (dummy data)","originalRequest":{"auth":{"type":"bearer","bearer":{"token":"{{MEDUSA_TOKEN}}"}},"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"reference\": \"example-mixed-fuel-quote\",\n  \"terms\": [\n    12\n  ],\n  \"priceHoldHours\": 24,\n  \"data\": [\n    {\n      \"energy\": \"electricity\",\n      \"mpxn\": \"0000000000000\",\n      \"usage\": 50000,\n      \"startDate\": \"2027-02-01\",\n      \"commission\": 0,\n      \"standingUplift\": 0\n    },\n    {\n      \"energy\": \"gas\",\n      \"mpxn\": \"0000000001\",\n      \"usage\": 100000,\n      \"startDate\": \"2027-02-01\",\n      \"commission\": 0,\n      \"standingUplift\": 0\n    }\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://medusa.jellyfish.rest/bulk-searches"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"reference\": \"example-mixed-fuel-quote\"\n  },\n  \"errors\": null\n}"}],"_postman_id":"976a6a3b-6ff4-4356-a444-270c31473997"},{"name":"/bulk-searches","id":"34203aec-b51b-461b-ba61-6952c7ddcc5f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{MEDUSA_TOKEN}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"}],"url":"https://medusa.jellyfish.rest/bulk-searches","description":"<h4 id=\"request\">Request</h4>\n<ul>\n<li><p>Method: GET</p>\n</li>\n<li><p>URL: {{MEDUSA_ENDPOINT}}bulk-searches</p>\n</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><p><code>success</code> (boolean): Indicates whether the request was successful.</p>\n</li>\n<li><p><code>data</code> (array): An array of objects containing search data.</p>\n<ul>\n<li><p><code>ts</code>: Timestamp of the search.</p>\n</li>\n<li><p><code>user</code>: User associated with the search.</p>\n</li>\n<li><p><code>api</code> (boolean): Indicates if the search was performed via API.</p>\n</li>\n<li><p><code>reference</code>: Reference information for the search.</p>\n</li>\n<li><p><code>meters</code> (number): Number of meters associated with the search.</p>\n</li>\n</ul>\n</li>\n<li><p><code>errors</code>: Indicates any errors encountered during the request.</p>\n</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\": \"2026-10-31T12:00:00.000Z\",\n      \"user\": \"example.user\",\n      \"api\": true,\n      \"reference\": \"example-mixed-fuel-quote\",\n      \"meters\": 2,\n      \"pricingMode\": \"bespoke\"\n    }\n  ],\n  \"errors\": null\n}\n</code></pre>\n<p>Summaries return <code>pricingMode:bespoke</code>. Saved bespoke searches persist until deleted.</p>\n","urlObject":{"protocol":"https","path":["bulk-searches"],"host":["medusa","jellyfish","rest"],"query":[],"variable":[]}},"response":[{"id":"2dd62cbb-5a05-4ab6-8007-27b025408a02","name":"List saved bulk searches (dummy data)","originalRequest":{"auth":{"type":"bearer","bearer":{"token":"{{MEDUSA_TOKEN}}"}},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"}],"url":"https://medusa.jellyfish.rest/bulk-searches"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": [\n    {\n      \"ts\": \"2026-10-31T12:00:00.000Z\",\n      \"user\": \"example.user\",\n      \"api\": true,\n      \"reference\": \"example-mixed-fuel-quote\",\n      \"meters\": 2,\n      \"pricingMode\": \"bespoke\"\n    }\n  ],\n  \"errors\": null\n}"}],"_postman_id":"34203aec-b51b-461b-ba61-6952c7ddcc5f"},{"name":"/bulk-searches/:id","id":"ae88788b-3ff7-429f-acef-22624d430785","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{MEDUSA_TOKEN}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"}],"url":"https://medusa.jellyfish.rest/bulk-searches/example-mixed-fuel-quote","description":"<p>Retrieve a saved bulk search by URL-encoded reference.</p>\n<h3 id=\"availability\">Availability</h3>\n<p>These search and contract options are available to all partners. Partner identity is derived from authentication.</p>\n<p>Bespoke <code>data</code> is the saved search object itself (not <code>{search,products}</code>). It includes <code>pricingMode:bespoke</code>, <code>pricingCache</code>, and <code>params.data[]</code>. Each meter row has its own <code>products[]</code>, <code>errors[]</code> and effective usage/capacity/night-source fields. A meter can fail while other meters succeed. An empty saved meter list is returned without pricing.</p>\n<h3 id=\"returned-prices\">Returned prices</h3>\n<p>Products expose an opaque <code>id</code> (for example <code>bs-…</code>), product name, dates/term, selling rates and retail <code>costs</code>. Use <code>id</code> as the selection's <code>productId</code>; a catalogue value such as <code>blue</code> is not interchangeable with it. Unit/day/night/evening-weekend rates are p/kWh, <code>standingCharge</code> is p/day and <code>capacityRate</code> is p/kVA/day. Retail costs are GBP. <code>commissionIncluded:true</code> means returned selling rates already include the selected commission. Deemed products are excluded.</p>\n<p><code>pricingCache.pricedAt</code> and <code>refreshAt</code> describe the cached snapshot. Usage/capacity/night source fields can identify provided, account, industry or Electralink-derived values.</p>\n<p>For contract creation use <code>searchSelection.bulk:true</code> and the chosen returned product ID for each selected meter. Persisted UI selections alone do not create a contract.</p>\n<h3 id=\"errors\">Errors</h3>\n<p>Bespoke validation and selection failures return HTTP 400, 403, 404, 409 or 503 with <code>{success:false,data:null,errors:[message],errorCode}</code>. Inspect <code>success</code> and <code>errors</code> even on HTTP 200: legacy endpoints can return application errors with that status. Individual meter/term pricing failures can appear inside a successful search response.</p>\n","urlObject":{"protocol":"https","path":["bulk-searches","example-mixed-fuel-quote"],"host":["medusa","jellyfish","rest"],"query":[],"variable":[]}},"response":[{"id":"314e19b0-8bb5-4b7b-acbf-be877fa5a7a8","name":"Read per-meter electricity and gas offers (dummy data)","originalRequest":{"auth":{"type":"bearer","bearer":{"token":"{{MEDUSA_TOKEN}}"}},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"}],"url":"https://medusa.jellyfish.rest/bulk-searches/example-mixed-fuel-quote"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"ts\": \"2026-10-31T12:00:00.000Z\",\n    \"params\": {\n      \"reference\": \"example-mixed-fuel-quote\",\n      \"terms\": [\n        12\n      ],\n      \"priceHoldHours\": 24,\n      \"data\": [\n        {\n          \"energy\": \"electricity\",\n          \"mpxn\": \"0000000000000\",\n          \"usage\": 50000,\n          \"startDate\": \"2027-02-01\",\n          \"commission\": 0,\n          \"standingUplift\": 0,\n          \"products\": [\n            {\n              \"id\": \"bs-00000000000000000000000000000001\",\n              \"name\": \"Blue 12 Month\",\n              \"term\": 12,\n              \"startDate\": \"2027-02-01\",\n              \"endDate\": \"2028-01-31\",\n              \"energy\": \"electricity\",\n              \"fuel\": \"electricity\",\n              \"fixed\": true,\n              \"pricingMode\": \"bespoke\",\n              \"annualUsage\": 50000,\n              \"priceHold\": {\n                \"hours\": 24,\n                \"quotedAt\": \"2026-10-31T12:00:00.000Z\",\n                \"expiresAt\": \"2026-11-01T12:00:00.000Z\"\n              },\n              \"allOrDayUnitRate\": 28.5,\n              \"nightRate\": null,\n              \"eveningWeekendRate\": null,\n              \"standingCharge\": 70,\n              \"capacityRate\": null,\n              \"commissionIncluded\": true,\n              \"costs\": {\n                \"annualCost\": 14505.5,\n                \"monthlyCost\": 1208.79,\n                \"annualCommission\": 0,\n                \"monthlyCommission\": 0\n              }\n            }\n          ],\n          \"errors\": []\n        },\n        {\n          \"energy\": \"gas\",\n          \"mpxn\": \"0000000001\",\n          \"usage\": 100000,\n          \"startDate\": \"2027-02-01\",\n          \"commission\": 0,\n          \"standingUplift\": 0,\n          \"products\": [\n            {\n              \"id\": \"bs-00000000000000000000000000000002\",\n              \"name\": \"Blue 12 Month\",\n              \"term\": 12,\n              \"startDate\": \"2027-02-01\",\n              \"endDate\": \"2028-01-31\",\n              \"energy\": \"gas\",\n              \"fuel\": \"gas\",\n              \"fixed\": true,\n              \"pricingMode\": \"bespoke\",\n              \"annualUsage\": 100000,\n              \"priceHold\": {\n                \"hours\": 24,\n                \"quotedAt\": \"2026-10-31T12:00:00.000Z\",\n                \"expiresAt\": \"2026-11-01T12:00:00.000Z\"\n              },\n              \"allOrDayUnitRate\": 7.25,\n              \"nightRate\": null,\n              \"eveningWeekendRate\": null,\n              \"standingCharge\": 125,\n              \"capacityRate\": null,\n              \"commissionIncluded\": true,\n              \"costs\": {\n                \"annualCost\": 7706.25,\n                \"monthlyCost\": 642.19,\n                \"annualCommission\": 0,\n                \"monthlyCommission\": 0\n              }\n            }\n          ],\n          \"errors\": []\n        }\n      ]\n    },\n    \"user\": \"example.user\",\n    \"api\": true,\n    \"pricingMode\": \"bespoke\",\n    \"pricingCache\": {\n      \"pricedAt\": \"2026-10-31T12:00:00.000Z\",\n      \"refreshAt\": \"2026-10-31T13:30:00.000Z\"\n    }\n  },\n  \"errors\": null\n}"}],"_postman_id":"ae88788b-3ff7-429f-acef-22624d430785"},{"name":"/bulk-searches/:id/refresh","id":"7bc89369-a6a7-4c12-b3a8-7ad497c8c390","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{MEDUSA_TOKEN}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"}],"url":"https://medusa.jellyfish.rest/bulk-searches/example-mixed-fuel-quote/refresh","description":"<p>Invalidate the saved bulk search pricing cache. This clears the cached pricing snapshot. Then GET /bulk-searches/:id to obtain current prices. No body. Success: {success:true,data:true,errors:null}.</p>\n<h3 id=\"errors\">Errors</h3>\n<p>Bespoke validation and selection failures return HTTP 400, 403, 404, 409 or 503 with <code>{success:false,data:null,errors:[message],errorCode}</code>. Inspect <code>success</code> and <code>errors</code> even on HTTP 200: legacy endpoints can return application errors with that status. Individual meter/term pricing failures can appear inside a successful search response.</p>\n","urlObject":{"protocol":"https","path":["bulk-searches","example-mixed-fuel-quote","refresh"],"host":["medusa","jellyfish","rest"],"query":[],"variable":[]}},"response":[{"id":"2e6061ec-931c-4a19-87c7-96a7b56de6c3","name":"Invalidate cached quotes before repricing (dummy data)","originalRequest":{"auth":{"type":"bearer","bearer":{"token":"{{MEDUSA_TOKEN}}"}},"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"}],"url":"https://medusa.jellyfish.rest/bulk-searches/example-mixed-fuel-quote/refresh"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": true,\n  \"errors\": null\n}"}],"_postman_id":"7bc89369-a6a7-4c12-b3a8-7ad497c8c390"},{"name":"/bulk-searches/:id","id":"568f7307-832f-4d55-919b-712ea0a17cde","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{MEDUSA_TOKEN}}"}]},"isInherited":false},"method":"DELETE","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"}],"url":"https://medusa.jellyfish.rest/bulk-searches/example-mixed-fuel-quote","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":{"protocol":"https","path":["bulk-searches","example-mixed-fuel-quote"],"host":["medusa","jellyfish","rest"],"query":[],"variable":[]}},"response":[{"id":"3530d339-e6a1-4fa7-a567-c276470febf7","name":"Delete the saved bulk search (dummy data)","originalRequest":{"auth":{"type":"bearer","bearer":{"token":"{{MEDUSA_TOKEN}}"}},"method":"DELETE","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"}],"url":"https://medusa.jellyfish.rest/bulk-searches/example-mixed-fuel-quote"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": true,\n  \"errors\": null\n}"}],"_postman_id":"568f7307-832f-4d55-919b-712ea0a17cde"},{"name":"/bulk-searches/:id","id":"56b548a7-49ce-4000-8a4b-7c84ae847ce8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{MEDUSA_TOKEN}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"ts\": \"2026-10-31T12:00:00.000Z\",\n  \"params\": {\n    \"reference\": \"example-mixed-fuel-quote\",\n    \"terms\": [\n      12\n    ],\n    \"priceHoldHours\": 24,\n    \"data\": [\n      {\n        \"energy\": \"electricity\",\n        \"mpxn\": \"0000000000000\",\n        \"usage\": 50000,\n        \"startDate\": \"2027-02-01\",\n        \"commission\": 0,\n        \"standingUplift\": 0\n      },\n      {\n        \"energy\": \"gas\",\n        \"mpxn\": \"0000000001\",\n        \"usage\": 100000,\n        \"startDate\": \"2027-02-01\",\n        \"commission\": 0,\n        \"standingUplift\": 0\n      }\n    ],\n    \"dataFilters\": {}\n  },\n  \"user\": \"example.user\",\n  \"api\": true,\n  \"pricingMode\": \"bespoke\"\n}","options":{"raw":{"language":"json"}}},"url":"https://medusa.jellyfish.rest/bulk-searches/example-mixed-fuel-quote","description":"<p>Replace the saved bulk-search document with a body containing params.data (not the top-level create payload). Preserve the saved document fields you want to keep; this route stores the submitted document. Meter inputs and periods are normalised for the saved search and pricing is invalidated. An empty params.data clears the meter list and filters while preserving the existing search document.</p>\n<h3 id=\"period-and-price-hold\">Period and price hold</h3>\n<ul>\n<li><p><code>terms</code>: array of 3, 6, 9, 12, 24 or 36 months; default <code>[12]</code>. <code>term</code> is accepted as a scalar alias.</p>\n</li>\n<li><p><code>endDate</code>: optional inclusive common end date in <code>YYYY-MM-DD</code>; <code>commonEndDate</code> is an alias. It must be more than three months after today in UK time and after the meter start date. A supplied end date takes precedence over terms.</p>\n</li>\n<li><p><code>startDate</code>: <code>YYYY-MM-DD</code> (<code>DD/MM/YYYY</code> is also accepted by bespoke pricing), or <code>asap</code>. Missing/<code>asap</code> dates resolve to five weekdays after today in UK time. Existing-customer searches may use their renewal start date from the account record.</p>\n</li>\n<li><p><code>priceHoldHours</code>: 4, 24, 48 or 72; default 24. The server owns the resulting <code>priceHold</code> timestamps. Use returned <code>expiresAt</code> rather than calculating a deadline yourself.</p>\n</li>\n<li><p>Saved bespoke searches persist until deleted. The pricing snapshot is cached for 90 minutes; this cache lifetime is separate from the contract price hold.</p>\n</li>\n</ul>\n<h3 id=\"errors\">Errors</h3>\n<p>Bespoke validation and selection failures return HTTP 400, 403, 404, 409 or 503 with <code>{success:false,data:null,errors:[message],errorCode}</code>. Inspect <code>success</code> and <code>errors</code> even on HTTP 200: legacy endpoints can return application errors with that status. Individual meter/term pricing failures can appear inside a successful search response.</p>\n","urlObject":{"protocol":"https","path":["bulk-searches","example-mixed-fuel-quote"],"host":["medusa","jellyfish","rest"],"query":[],"variable":[]}},"response":[{"id":"7362674e-d625-4b1d-abc9-d1ece258bac0","name":"Replace the saved bulk search meters (dummy data)","originalRequest":{"auth":{"type":"bearer","bearer":{"token":"{{MEDUSA_TOKEN}}"}},"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"ts\": \"2026-10-31T12:00:00.000Z\",\n  \"params\": {\n    \"reference\": \"example-mixed-fuel-quote\",\n    \"terms\": [\n      12\n    ],\n    \"priceHoldHours\": 24,\n    \"data\": [\n      {\n        \"energy\": \"electricity\",\n        \"mpxn\": \"0000000000000\",\n        \"usage\": 50000,\n        \"startDate\": \"2027-02-01\",\n        \"commission\": 0,\n        \"standingUplift\": 0\n      },\n      {\n        \"energy\": \"gas\",\n        \"mpxn\": \"0000000001\",\n        \"usage\": 100000,\n        \"startDate\": \"2027-02-01\",\n        \"commission\": 0,\n        \"standingUplift\": 0\n      }\n    ],\n    \"dataFilters\": {}\n  },\n  \"user\": \"example.user\",\n  \"api\": true,\n  \"pricingMode\": \"bespoke\"\n}","options":{"raw":{"language":"json"}}},"url":"https://medusa.jellyfish.rest/bulk-searches/example-mixed-fuel-quote"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": true,\n  \"errors\": null\n}"}],"_postman_id":"56b548a7-49ce-4000-8a4b-7c84ae847ce8"},{"name":"/bulk-searches/:id/selections","id":"420aed44-defb-40bf-a789-25def2763c54","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{MEDUSA_TOKEN}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"selections\": [\n    {\n      \"mpxn\": \"0000000000000\",\n      \"selectedProductId\": \"bs-00000000000000000000000000000001\"\n    }\n  ],\n  \"dataFilters\": {}\n}","options":{"raw":{"language":"json"}}},"url":"https://medusa.jellyfish.rest/bulk-searches/example-mixed-fuel-quote/selections","description":"<p>Save UI selections and optional dataFilters without rerunning pricing. Match a meter by mpxn or zero-based index. Each selection uses selectedProductId (different from productId inside contract searchSelection). Omit selectedProductId to clear it. These preferences do not validate current offers or create a contract; contract creation resolves searchSelection on the server.</p>\n<p>Success: {success:true,data:true,errors:null}.</p>\n","urlObject":{"protocol":"https","path":["bulk-searches","example-mixed-fuel-quote","selections"],"host":["medusa","jellyfish","rest"],"query":[],"variable":[]}},"response":[{"id":"ac35fd1d-c544-470f-85ae-3f9cb4ced0df","name":"Save the selected electricity offer (dummy data)","originalRequest":{"auth":{"type":"bearer","bearer":{"token":"{{MEDUSA_TOKEN}}"}},"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"selections\": [\n    {\n      \"mpxn\": \"0000000000000\",\n      \"selectedProductId\": \"bs-00000000000000000000000000000001\"\n    }\n  ],\n  \"dataFilters\": {}\n}","options":{"raw":{"language":"json"}}},"url":"https://medusa.jellyfish.rest/bulk-searches/example-mixed-fuel-quote/selections"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": true,\n  \"errors\": null\n}"}],"_postman_id":"420aed44-defb-40bf-a789-25def2763c54"}],"id":"0b87b9ec-26b8-474d-b086-36359c54baca","description":"<p>Bulk searches support up to 250 unique meters per saved search. All partners can use bespoke terms, common end dates, 4/24/48/72-hour price holds and per-meter HH inputs. Retrieve products/errors per meter, then create one dynamic contract from the selected current offers. See the endpoint documentation for top-level versus row inputs.</p>\n","_postman_id":"0b87b9ec-26b8-474d-b086-36359c54baca"},{"name":"Dynamic Contracts","item":[{"name":"/dynamic-product-contracts","id":"bc47ebf1-aa09-4cb6-ba68-a127f0ef2e68","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{MEDUSA_TOKEN}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"}],"url":"https://medusa.jellyfish.rest/dynamic-product-contracts?stage=ALL_ACTIVE&category=all","description":"<p>List current dynamic contracts. Requires a non-quoting Medusa partner user.</p>\n<h3 id=\"stage-filter\">Stage filter</h3>\n<p>The <code>stage</code> query parameter is required. <code>ALL_ACTIVE</code> returns <code>INFORMATION_REQUIRED</code>, <code>PENDING_SIGNATURE</code> and <code>PENDING_APPROVAL</code> together. Rejected and expired contracts are excluded from ALL_ACTIVE. A specific stage can still be requested, including <code>REJECTED</code> or <code>CONTRACT_EXPIRED</code>. All queries remain scoped to active records owned by the authenticated partner.</p>\n<h3 id=\"category\">Category</h3>\n<p>Optional <code>category</code>: <code>all</code> (default), <code>acquisition</code>, <code>renewal</code>, or <code>multi-site</code>. Acquisition/renewal apply to single-meter contracts; multi-site means more than one distinct meter. Renewal recognition uses registrations predating creation of the lead.</p>\n<p>Response data is an array containing id, stage, companyName, reference, metadata, energy and meter identifiers. Mixed contracts report energy:mixed. The mpans field is retained for compatibility and can contain gas identifiers; mprns identifies gas meters.</p>\n","urlObject":{"protocol":"https","path":["dynamic-product-contracts"],"host":["medusa","jellyfish","rest"],"query":[{"key":"stage","value":"ALL_ACTIVE"},{"key":"category","value":"all"}],"variable":[]}},"response":[{"id":"af11b6b9-43dd-4b71-93e4-2e10d3afcefb","name":"List all active dynamic contracts (dummy data)","originalRequest":{"auth":{"type":"bearer","bearer":{"token":"{{MEDUSA_TOKEN}}"}},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"}],"url":{"raw":"https://medusa.jellyfish.rest/dynamic-product-contracts?stage=ALL_ACTIVE&category=all","protocol":"https","host":["medusa","jellyfish","rest"],"path":["dynamic-product-contracts"],"query":[{"key":"stage","value":"ALL_ACTIVE"},{"key":"category","value":"all"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": [\n    {\n      \"id\": 1001,\n      \"stage\": \"PENDING_SIGNATURE\",\n      \"companyName\": \"Example Energy Customer Ltd\",\n      \"reference\": \"EXAMPLE-CONTRACT-001\",\n      \"metadata\": {\n        \"partner_user\": \"example.user\",\n        \"api\": true,\n        \"priceHold\": {\n          \"hours\": 24,\n          \"quotedAt\": \"2026-10-31T12:00:00.000Z\",\n          \"expiresAt\": \"2026-11-01T12:00:00.000Z\"\n        },\n        \"pricingRevision\": \"00000000-0000-4000-8000-000000000001\"\n      },\n      \"energy\": \"electricity\",\n      \"mpans\": [\n        \"0000000000000\"\n      ]\n    }\n  ],\n  \"errors\": null\n}"}],"_postman_id":"bc47ebf1-aa09-4cb6-ba68-a127f0ef2e68"},{"name":"/dynamic-product-contracts","id":"eacded1c-aed1-4c85-86bf-1a1cc352d748","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{MEDUSA_TOKEN}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"companyName\": \"Example Energy Customer Ltd\",\n  \"reference\": \"EXAMPLE-CONTRACT-001\",\n  \"loa\": \"\",\n  \"searchSelection\": {\n    \"reference\": \"example-electricity-quote\",\n    \"bulk\": false,\n    \"selections\": [\n      {\n        \"mpxn\": \"0000000000000\",\n        \"productId\": \"bs-00000000000000000000000000000001\"\n      }\n    ]\n  }\n}","options":{"raw":{"language":"json"}}},"url":"https://medusa.jellyfish.rest/dynamic-product-contracts","description":"<p>Create a dynamic contract from current, server-held bespoke offers.</p>\n<h3 id=\"required-body\">Required body</h3>\n<ul>\n<li><code>companyName</code>: non-empty string.</li>\n<li><code>loa</code>: PDF bytes encoded as base64, without a data-URL prefix.</li>\n<li><code>searchSelection</code>: {reference,bulk,selections}. <code>bulk</code> must be boolean; <code>selections</code> contains 1–250 unique meter entries.</li>\n<li>Each selection: <code>mpxn</code> (string) and <code>productId</code> (the opaque id returned by search products). Optional <code>commission</code> and <code>standingUplift</code> must both be numeric when adjusting commission: electricity 0–5 p/kWh, gas 0–3 p/kWh, standing uplift 0–200 p/day.</li>\n</ul>\n<p>Optional: <code>reference</code> (up to 120 letters/numbers/spaces/full stops/underscores/hyphens, starting alphanumeric), <code>companyRegistrationNumber</code>, <code>creditsafeId</code>. If omitted, the contract reference is generated.</p>\n<p>Use bulk:false for a single search or bulk:true for a bulk search. The server resolves current offer snapshots and creates one contract for the chosen electricity/gas meters, including mixed fuel. Client-supplied rates, product objects and partner identity are not used. Stale/unavailable selections fail rather than trusting edited prices. Duplicate references return 409.</p>\n<h3 id=\"result\">Result</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"success\": true,\n  \"data\": {\n    \"id\": 1001,\n    \"reference\": \"EXAMPLE-CONTRACT-001\",\n    \"contracts\": [\n      {\n        \"id\": 1001,\n        \"reference\": \"EXAMPLE-CONTRACT-001\",\n        \"energy\": \"electricity\"\n      }\n    ],\n    \"contractType\": \"dynamic\"\n  },\n  \"errors\": null\n}\n</code></pre>\n<p>The server starts at INFORMATION_REQUIRED and attaches an immutable metadata.priceHold. Treat returned hold timestamps as authoritative.</p>\n<h3 id=\"errors\">Errors</h3>\n<p>Bespoke validation and selection failures return HTTP 400, 403, 404, 409 or 503 with <code>{success:false,data:null,errors:[message],errorCode}</code>. Inspect <code>success</code> and <code>errors</code> even on HTTP 200: legacy endpoints can return application errors with that status. Individual meter/term pricing failures can appear inside a successful search response.</p>\n","urlObject":{"protocol":"https","path":["dynamic-product-contracts"],"host":["medusa","jellyfish","rest"],"query":[],"variable":[]}},"response":[{"id":"e9b039ce-2b02-4964-93be-d8143c7444d3","name":"Create an electricity contract from a returned offer (dummy data)","originalRequest":{"auth":{"type":"bearer","bearer":{"token":"{{MEDUSA_TOKEN}}"}},"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"companyName\": \"Example Energy Customer Ltd\",\n  \"reference\": \"EXAMPLE-CONTRACT-001\",\n  \"loa\": \"\",\n  \"searchSelection\": {\n    \"reference\": \"example-electricity-quote\",\n    \"bulk\": false,\n    \"selections\": [\n      {\n        \"mpxn\": \"0000000000000\",\n        \"productId\": \"bs-00000000000000000000000000000001\"\n      }\n    ]\n  }\n}","options":{"raw":{"language":"json"}}},"url":"https://medusa.jellyfish.rest/dynamic-product-contracts"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 1001,\n    \"reference\": \"EXAMPLE-CONTRACT-001\",\n    \"contracts\": [\n      {\n        \"id\": 1001,\n        \"reference\": \"EXAMPLE-CONTRACT-001\",\n        \"energy\": \"electricity\"\n      }\n    ],\n    \"contractType\": \"dynamic\"\n  },\n  \"errors\": null\n}"},{"id":"860ec3fe-8871-4285-a1da-a83276dc842a","name":"Create one electricity and gas contract (dummy data)","originalRequest":{"auth":{"type":"bearer","bearer":{"token":"{{MEDUSA_TOKEN}}"}},"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"companyName\": \"Example Energy Customer Ltd\",\n  \"reference\": \"EXAMPLE-MIXED-CONTRACT-001\",\n  \"loa\": \"\",\n  \"searchSelection\": {\n    \"reference\": \"example-mixed-fuel-quote\",\n    \"bulk\": true,\n    \"selections\": [\n      {\n        \"mpxn\": \"0000000000000\",\n        \"productId\": \"bs-00000000000000000000000000000001\"\n      },\n      {\n        \"mpxn\": \"0000000001\",\n        \"productId\": \"bs-00000000000000000000000000000002\"\n      }\n    ]\n  }\n}","options":{"raw":{"language":"json"}}},"url":"https://medusa.jellyfish.rest/dynamic-product-contracts"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 1001,\n    \"reference\": \"EXAMPLE-MIXED-CONTRACT-001\",\n    \"contracts\": [\n      {\n        \"id\": 1001,\n        \"reference\": \"EXAMPLE-MIXED-CONTRACT-001\",\n        \"energy\": \"mixed\"\n      }\n    ],\n    \"contractType\": \"dynamic\"\n  },\n  \"errors\": null\n}"}],"_postman_id":"eacded1c-aed1-4c85-86bf-1a1cc352d748"},{"name":"/dynamic-product-contracts/:id","id":"97f8abf4-1306-44f0-9440-6c1c8a2985f8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{MEDUSA_TOKEN}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"}],"url":"https://medusa.jellyfish.rest/dynamic-product-contracts/1001","description":"<p>Read a dynamic contract by numeric id or non-numeric reference. Returns company/contact details, stage, metadata, meter counts, contract/annual costs and electricity/gas usage aggregates. metadata.priceHold contains hours, quotedAt, expiresAt and signedAt when signed. metadata.pricingRevision identifies accepted refreshed prices. Metadata and signature evidence are server-owned.</p>\n","urlObject":{"protocol":"https","path":["dynamic-product-contracts","1001"],"host":["medusa","jellyfish","rest"],"query":[],"variable":[]}},"response":[{"id":"1ef5a658-c657-422b-869e-c358d519ef28","name":"Read the contract and current price hold (dummy data)","originalRequest":{"auth":{"type":"bearer","bearer":{"token":"{{MEDUSA_TOKEN}}"}},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"}],"url":"https://medusa.jellyfish.rest/dynamic-product-contracts/1001"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 1001,\n    \"reference\": \"EXAMPLE-CONTRACT-001\",\n    \"companyName\": \"Example Energy Customer Ltd\",\n    \"stage\": \"PENDING_SIGNATURE\",\n    \"energy\": \"electricity\",\n    \"startDate\": \"2027-02-01\",\n    \"endDate\": \"2028-01-31\",\n    \"contactFirstName\": \"Alex\",\n    \"contactLastName\": \"Taylor\",\n    \"contactEmail\": \"alex.taylor@example.com\",\n    \"contactPhone\": \"01632960000\",\n    \"metadata\": {\n      \"partner_user\": \"example.user\",\n      \"api\": true,\n      \"priceHold\": {\n        \"hours\": 24,\n        \"quotedAt\": \"2026-10-31T12:00:00.000Z\",\n        \"expiresAt\": \"2026-11-01T12:00:00.000Z\"\n      },\n      \"pricingRevision\": \"00000000-0000-4000-8000-000000000001\"\n    }\n  },\n  \"errors\": null\n}"}],"_postman_id":"97f8abf4-1306-44f0-9440-6c1c8a2985f8"},{"name":"/dynamic-product-contracts/:id","id":"c3b8092f-897b-4524-9bb5-9735d7911864","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{MEDUSA_TOKEN}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"companyName\": \"Example Energy Customer Ltd\",\n  \"companyType\": \"LTD\",\n  \"companyRegistrationNumber\": \"00000000\",\n  \"contactTitle\": \"Mx\",\n  \"contactFirstName\": \"Alex\",\n  \"contactLastName\": \"Taylor\",\n  \"contactPosition\": \"Director\",\n  \"contactEmail\": \"alex.taylor@example.com\",\n  \"contactPhone\": \"01632960000\"\n}","options":{"raw":{"language":"json"}}},"url":"https://medusa.jellyfish.rest/dynamic-product-contracts/1001","description":"<p>Update customer/business/contact/payment details on an unaccepted dynamic contract. Use a numeric id. Typical fields: companyName, companyType, companyRegistrationNumber, contactTitle, contactFirstName, contactLastName, contactPosition, contactEmail, contactPhone, contactAltPhone, bankAccountName, bankAccountNumber and bankAccountSortCode. Bank details are validated when a new account number is supplied. The server derives the stage. Partner edits cannot set stage, partnerId, acceptance timestamps, priceHold, pricingRevision or Dropbox Sign evidence. A refreshed or changed contract needs current paperwork. Success returns data:true.</p>\n","urlObject":{"protocol":"https","path":["dynamic-product-contracts","1001"],"host":["medusa","jellyfish","rest"],"query":[],"variable":[]}},"response":[{"id":"d515f925-9763-4466-b7c3-0b08981b19ef","name":"Update the customer and signing contact (dummy data)","originalRequest":{"auth":{"type":"bearer","bearer":{"token":"{{MEDUSA_TOKEN}}"}},"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"companyName\": \"Example Energy Customer Ltd\",\n  \"companyType\": \"LTD\",\n  \"companyRegistrationNumber\": \"00000000\",\n  \"contactTitle\": \"Mx\",\n  \"contactFirstName\": \"Alex\",\n  \"contactLastName\": \"Taylor\",\n  \"contactPosition\": \"Director\",\n  \"contactEmail\": \"alex.taylor@example.com\",\n  \"contactPhone\": \"01632960000\"\n}","options":{"raw":{"language":"json"}}},"url":"https://medusa.jellyfish.rest/dynamic-product-contracts/1001"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": true,\n  \"errors\": null\n}"}],"_postman_id":"c3b8092f-897b-4524-9bb5-9735d7911864"},{"name":"/dynamic-product-contracts/:id/meters","id":"b0367af4-ac05-4df1-affb-cc0dbffa652b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{MEDUSA_TOKEN}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"}],"url":"https://medusa.jellyfish.rest/dynamic-product-contracts/1001/meters","description":"<p>Read partner-visible meters for a dynamic contract by numeric id. Returns a data array with the meter identity/type, dates, term/common-end-date information, quoted annual usage, exact billed kVA where available, selling rates and retail costs. Private supplier pricing inputs and signed internal quote identities are not exposed. Gas identity is retained in the legacy mpan field internally; use meter fuel/type to interpret it.</p>\n","urlObject":{"protocol":"https","path":["dynamic-product-contracts","1001","meters"],"host":["medusa","jellyfish","rest"],"query":[],"variable":[]}},"response":[{"id":"3a3efdc7-74a2-4d1d-98bb-aad741d6ceeb","name":"Read the contract electricity meter (dummy data)","originalRequest":{"auth":{"type":"bearer","bearer":{"token":"{{MEDUSA_TOKEN}}"}},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"}],"url":"https://medusa.jellyfish.rest/dynamic-product-contracts/1001/meters"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": [\n    {\n      \"id\": 1,\n      \"energy\": \"electricity\",\n      \"mpan\": \"0000000000000\",\n      \"startDate\": \"2027-02-01\",\n      \"endDate\": \"2028-01-31\",\n      \"term\": 12,\n      \"eac\": 50000,\n      \"availableCapacity\": null,\n      \"meterType\": \"non-hh\",\n      \"product\": {\n        \"id\": \"bs-00000000000000000000000000000001\",\n        \"name\": \"Blue 12 Month\",\n        \"term\": 12,\n        \"startDate\": \"2027-02-01\",\n        \"endDate\": \"2028-01-31\",\n        \"energy\": \"electricity\",\n        \"fuel\": \"electricity\",\n        \"fixed\": true,\n        \"pricingMode\": \"bespoke\",\n        \"annualUsage\": 50000,\n        \"priceHold\": {\n          \"hours\": 24,\n          \"quotedAt\": \"2026-10-31T12:00:00.000Z\",\n          \"expiresAt\": \"2026-11-01T12:00:00.000Z\"\n        },\n        \"allOrDayUnitRate\": 28.5,\n        \"nightRate\": null,\n        \"eveningWeekendRate\": null,\n        \"standingCharge\": 70,\n        \"capacityRate\": null,\n        \"commissionIncluded\": true,\n        \"costs\": {\n          \"annualCost\": 14505.5,\n          \"monthlyCost\": 1208.79,\n          \"annualCommission\": 0,\n          \"monthlyCommission\": 0\n        }\n      }\n    }\n  ],\n  \"errors\": null\n}"}],"_postman_id":"b0367af4-ac05-4df1-affb-cc0dbffa652b"},{"name":"/dynamic-product-contracts/:id/document","id":"5576aa92-7914-4730-97a8-6a93b8d5a3c3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{MEDUSA_TOKEN}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"}],"url":"https://medusa.jellyfish.rest/dynamic-product-contracts/1001/document","description":"<p>Return the complete contract PDF and addendum as a base64 string in data. Numeric id or non-numeric reference is accepted. If the contract is signed, return the stored signed PDF; otherwise generate current paperwork. Unsigned price-held contracts require an unexpired price hold. Decode data to bytes and save as application/pdf.</p>\n<p>Price-hold failures return 409 with CONTRACT_PRICE_HOLD_* errorCode.</p>\n","urlObject":{"protocol":"https","path":["dynamic-product-contracts","1001","document"],"host":["medusa","jellyfish","rest"],"query":[],"variable":[]}},"response":[{"id":"e1fee43f-f828-4282-a287-6b81bc8510a5","name":"Download the complete contract PDF as base64 (dummy data)","originalRequest":{"auth":{"type":"bearer","bearer":{"token":"{{MEDUSA_TOKEN}}"}},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"}],"url":"https://medusa.jellyfish.rest/dynamic-product-contracts/1001/document"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": \"{{CONTRACT_PDF_BASE64}}\",\n  \"errors\": null\n}"}],"_postman_id":"5576aa92-7914-4730-97a8-6a93b8d5a3c3"},{"name":"/dynamic-product-contracts/:id/document","id":"be77c20c-07af-432d-9b62-41aa843cedf6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{MEDUSA_TOKEN}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"file\": \"\",\n  \"pricingRevision\": \"00000000-0000-4000-8000-000000000001\"\n}","options":{"raw":{"language":"json"}}},"url":"https://medusa.jellyfish.rest/dynamic-product-contracts/1001/document","description":"<p>Upload the complete manually signed contract PDF by numeric id. Body file is base64 PDF bytes without a data-URL prefix. Include pricingRevision from metadata.pricingRevision if present. The server records receipt time and requires receipt strictly before the price-hold expiry. A stale revision returns CONTRACT_PRICE_HOLD_CHANGED (409). Signing metadata is server-owned; valid price-held uploads advance to PENDING_APPROVAL. Do not upload only the signature page.</p>\n<p>Success returns data:true.</p>\n","urlObject":{"protocol":"https","path":["dynamic-product-contracts","1001","document"],"host":["medusa","jellyfish","rest"],"query":[],"variable":[]}},"response":[{"id":"34e9adb7-f3ac-4f8a-8438-f29feb5647a1","name":"Upload the complete signed contract PDF (dummy data)","originalRequest":{"auth":{"type":"bearer","bearer":{"token":"{{MEDUSA_TOKEN}}"}},"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"file\": \"\",\n  \"pricingRevision\": \"00000000-0000-4000-8000-000000000001\"\n}","options":{"raw":{"language":"json"}}},"url":"https://medusa.jellyfish.rest/dynamic-product-contracts/1001/document"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": true,\n  \"errors\": null\n}"}],"_postman_id":"be77c20c-07af-432d-9b62-41aa843cedf6"},{"name":"/dynamic-product-contracts/:id/esign","id":"b4851e98-993f-4643-b6ce-79a6a8a5414f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{MEDUSA_TOKEN}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"pricingRevision\": \"00000000-0000-4000-8000-000000000001\"\n}","options":{"raw":{"language":"json"}}},"url":"https://medusa.jellyfish.rest/dynamic-product-contracts/1001/esign","description":"<p>Send the current complete dynamic PDF and addendum through Dropbox Sign to the contactEmail saved on the contract. Requires PENDING_SIGNATURE, a valid customer name/email and an unexpired price hold. Use id or non-numeric reference. Include the current pricingRevision if one exists. The recipient and prices are resolved from the stored contract; email/test-mode switches are not body options. This action sends a real customer email when the provider is in live mode.</p>\n<p>Live mode is the default unless the server explicitly enables test mode. Inspect testMode in the result. Test signatures do not advance to supplier approval. Repeating an unchanged pending send can return alreadySent:true rather than send another email.</p>\n<p>Signature requests expire/cancel at the price-hold deadline: native Dropbox expiry is used when eligible, with server cancellation handling other deadlines. Late signatures cannot secure expired prices.</p>\n<p>Success returns the same structured status fields as GET esign/status. Errors include ESIGN_* and CONTRACT_PRICE_HOLD_* with explanatory errors and 4xx/503 status.</p>\n","urlObject":{"protocol":"https","path":["dynamic-product-contracts","1001","esign"],"host":["medusa","jellyfish","rest"],"query":[],"variable":[]}},"response":[{"id":"5a968d97-dd37-4c75-a032-7dde25511293","name":"Send current paperwork to the stored signing contact (dummy data)","originalRequest":{"auth":{"type":"bearer","bearer":{"token":"{{MEDUSA_TOKEN}}"}},"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"pricingRevision\": \"00000000-0000-4000-8000-000000000001\"\n}","options":{"raw":{"language":"json"}}},"url":"https://medusa.jellyfish.rest/dynamic-product-contracts/1001/esign"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"status\": \"Awaiting customer signature\",\n    \"state\": \"pending\",\n    \"sent\": \"2026-10-31T12:00:00.000Z\",\n    \"signerEmail\": \"alex.taylor@example.com\",\n    \"testMode\": false,\n    \"configured\": true,\n    \"canSend\": false\n  },\n  \"errors\": null\n}"}],"_postman_id":"b4851e98-993f-4643-b6ce-79a6a8a5414f"},{"name":"/dynamic-product-contracts/:id/esign/status","id":"0658eaae-16a7-40e8-9b26-4ac5b1c94cc7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{MEDUSA_TOKEN}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"}],"url":"https://medusa.jellyfish.rest/dynamic-product-contracts/1001/esign/status","description":"<p>Refresh Dropbox Sign status and signed-document processing for this dynamic contract. Use numeric id or non-numeric reference. The response data contains status (human-readable), state, sent (ISO timestamp or null), signerEmail, testMode, configured and canSend.</p>\n<p>States can include not_sent, pending, signed, completed, declined, error, expired, canceled, changed, late, test_signed, unconfirmed and canceling. signed means the PDF is still being prepared; completed means the signed PDF has been stored. Use canSend to control whether another send is currently allowed. Expired/changed requests need current contract prices/paperwork.</p>\n","urlObject":{"protocol":"https","path":["dynamic-product-contracts","1001","esign","status"],"host":["medusa","jellyfish","rest"],"query":[],"variable":[]}},"response":[{"id":"053b7661-5def-4248-80a9-64eb4dd33f28","name":"Read the pending signature status (dummy data)","originalRequest":{"auth":{"type":"bearer","bearer":{"token":"{{MEDUSA_TOKEN}}"}},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"}],"url":"https://medusa.jellyfish.rest/dynamic-product-contracts/1001/esign/status"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"status\": \"Awaiting customer signature\",\n    \"state\": \"pending\",\n    \"sent\": \"2026-10-31T12:00:00.000Z\",\n    \"signerEmail\": \"alex.taylor@example.com\",\n    \"testMode\": false,\n    \"configured\": true,\n    \"canSend\": false\n  },\n  \"errors\": null\n}"}],"_postman_id":"0658eaae-16a7-40e8-9b26-4ac5b1c94cc7"},{"name":"/dynamic-product-contracts/:id/refresh-prices","id":"0f56e0af-bf69-4393-a285-5eaf48359454","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{MEDUSA_TOKEN}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"action\": \"preview\"\n}","options":{"raw":{"language":"json"}}},"url":"https://medusa.jellyfish.rest/dynamic-product-contracts/1001/refresh-prices","description":"<p>Review and replace prices on an unsigned price-held dynamic contract. Available to all eligible partners.</p>\n<ol>\n<li><p>Send action:preview (default) to price current meters. Result: {token,reviewExpiresAt,previous,result}. No existing prices are changed.</p>\n</li>\n<li><p>Review the comparison, then send action:accept with that token to commit the refreshed rates and new price hold. Result: {id,priceHold,stage:INFORMATION_REQUIRED}. Complete details and prepare/send new paperwork; obtain the new metadata.pricingRevision.</p>\n</li>\n<li><p>Send action:decline with the token to discard the comparison (data:true).</p>\n</li>\n</ol>\n<p>A review token lasts up to 15 minutes and cannot outlive its quote price hold. It is bound to the partner, contract and unchanged contract/meter details. Changed/expired tokens return 409. Signed contracts cannot refresh prices.</p>\n","urlObject":{"protocol":"https","path":["dynamic-product-contracts","1001","refresh-prices"],"host":["medusa","jellyfish","rest"],"query":[],"variable":[]}},"response":[{"id":"abf24f7e-fa47-4bd9-bcad-059809624317","name":"Preview refreshed prices without changing the contract (dummy data)","originalRequest":{"auth":{"type":"bearer","bearer":{"token":"{{MEDUSA_TOKEN}}"}},"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"action\": \"preview\"\n}","options":{"raw":{"language":"json"}}},"url":"https://medusa.jellyfish.rest/dynamic-product-contracts/1001/refresh-prices"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"token\": \"00000000-0000-4000-8000-000000000002\",\n    \"reviewExpiresAt\": \"2026-10-31T12:15:00.000Z\",\n    \"previous\": {\n      \"pricingMode\": \"bespoke\",\n      \"params\": {\n        \"reference\": \"EXAMPLE-CONTRACT-001\",\n        \"data\": [\n          {\n            \"energy\": \"electricity\",\n            \"mpxn\": \"0000000000000\",\n            \"products\": [\n              {\n                \"id\": \"contract-meter-1\",\n                \"name\": \"Blue 12 Month\",\n                \"term\": 12,\n                \"startDate\": \"2027-02-01\",\n                \"endDate\": \"2028-01-31\",\n                \"energy\": \"electricity\",\n                \"fuel\": \"electricity\",\n                \"fixed\": true,\n                \"pricingMode\": \"bespoke\",\n                \"annualUsage\": 50000,\n                \"priceHold\": {\n                  \"hours\": 24,\n                  \"quotedAt\": \"2026-10-31T12:00:00.000Z\",\n                  \"expiresAt\": \"2026-11-01T12:00:00.000Z\"\n                },\n                \"allOrDayUnitRate\": 29.5,\n                \"nightRate\": null,\n                \"eveningWeekendRate\": null,\n                \"standingCharge\": 70,\n                \"capacityRate\": null,\n                \"commissionIncluded\": true,\n                \"costs\": {\n                  \"annualCost\": 15005.5,\n                  \"monthlyCost\": 1250.46,\n                  \"annualCommission\": 0,\n                  \"monthlyCommission\": 0\n                }\n              }\n            ]\n          }\n        ]\n      }\n    },\n    \"result\": {\n      \"pricingMode\": \"bespoke\",\n      \"params\": {\n        \"reference\": \"EXAMPLE-CONTRACT-001\",\n        \"data\": [\n          {\n            \"energy\": \"electricity\",\n            \"mpxn\": \"0000000000000\",\n            \"products\": [\n              {\n                \"id\": \"contract-meter-1\",\n                \"name\": \"Blue 12 Month\",\n                \"term\": 12,\n                \"startDate\": \"2027-02-01\",\n                \"endDate\": \"2028-01-31\",\n                \"energy\": \"electricity\",\n                \"fuel\": \"electricity\",\n                \"fixed\": true,\n                \"pricingMode\": \"bespoke\",\n                \"annualUsage\": 50000,\n                \"priceHold\": {\n                  \"hours\": 24,\n                  \"quotedAt\": \"2026-10-31T12:00:00.000Z\",\n                  \"expiresAt\": \"2026-11-01T12:00:00.000Z\"\n                },\n                \"allOrDayUnitRate\": 28.5,\n                \"nightRate\": null,\n                \"eveningWeekendRate\": null,\n                \"standingCharge\": 70,\n                \"capacityRate\": null,\n                \"commissionIncluded\": true,\n                \"costs\": {\n                  \"annualCost\": 14505.5,\n                  \"monthlyCost\": 1208.79,\n                  \"annualCommission\": 0,\n                  \"monthlyCommission\": 0\n                }\n              }\n            ]\n          }\n        ]\n      }\n    }\n  },\n  \"errors\": null\n}"},{"id":"7dff19c3-fa9b-45b4-b27c-019a144b2d1a","name":"Accept a returned price-review token (dummy data)","originalRequest":{"auth":{"type":"bearer","bearer":{"token":"{{MEDUSA_TOKEN}}"}},"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"action\": \"accept\",\n  \"token\": \"00000000-0000-4000-8000-000000000002\"\n}","options":{"raw":{"language":"json"}}},"url":"https://medusa.jellyfish.rest/dynamic-product-contracts/1001/refresh-prices"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 1001,\n    \"priceHold\": {\n      \"hours\": 24,\n      \"quotedAt\": \"2026-10-31T12:00:00.000Z\",\n      \"expiresAt\": \"2026-11-01T12:00:00.000Z\"\n    },\n    \"stage\": \"INFORMATION_REQUIRED\"\n  },\n  \"errors\": null\n}"},{"id":"4c92fd63-0ca9-4aaa-88c5-0c74427d2813","name":"Decline a returned price-review token (dummy data)","originalRequest":{"auth":{"type":"bearer","bearer":{"token":"{{MEDUSA_TOKEN}}"}},"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"action\": \"decline\",\n  \"token\": \"00000000-0000-4000-8000-000000000002\"\n}","options":{"raw":{"language":"json"}}},"url":"https://medusa.jellyfish.rest/dynamic-product-contracts/1001/refresh-prices"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": true,\n  \"errors\": null\n}"},{"id":"8fe5eb3b-7501-4cd9-a944-dd61a50a7750","name":"Handle an expired price-review token (dummy data)","originalRequest":{"auth":{"type":"bearer","bearer":{"token":"{{MEDUSA_TOKEN}}"}},"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"action\": \"accept\",\n  \"token\": \"00000000-0000-4000-8000-000000000003\"\n}","options":{"raw":{"language":"json"}}},"url":"https://medusa.jellyfish.rest/dynamic-product-contracts/1001/refresh-prices"},"status":"Conflict","code":409,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"data\": null,\n  \"errors\": [\n    \"This comparison has expired. Refresh contract prices again.\"\n  ],\n  \"errorCode\": \"CONTRACT_PRICE_HOLD_REFRESH_EXPIRED\"\n}"}],"_postman_id":"0f56e0af-bf69-4393-a285-5eaf48359454"},{"name":"/dynamic-product-contracts/:id/onboarding-notes","id":"7b4415b4-4849-478f-9fac-45d7fd3f89d3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{MEDUSA_TOKEN}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"}],"url":"https://medusa.jellyfish.rest/dynamic-product-contracts/1001/onboarding-notes","description":"<p>Read supplier onboarding notes for a dynamic contract in PENDING_APPROVAL, by numeric id or non-numeric reference. The contract must belong to the authenticated partner.</p>\n","urlObject":{"protocol":"https","path":["dynamic-product-contracts","1001","onboarding-notes"],"host":["medusa","jellyfish","rest"],"query":[],"variable":[]}},"response":[{"id":"41330677-8dcf-4a8b-ae05-246669d616b4","name":"Read supplier approval notes (dummy data)","originalRequest":{"auth":{"type":"bearer","bearer":{"token":"{{MEDUSA_TOKEN}}"}},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"}],"url":"https://medusa.jellyfish.rest/dynamic-product-contracts/1001/onboarding-notes"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": [],\n  \"errors\": null\n}"}],"_postman_id":"7b4415b4-4849-478f-9fac-45d7fd3f89d3"}],"id":"891b3412-7177-4313-a31f-e7c131b90b25","description":"<p>Current search-to-contract flow for all partners.</p>\n<ol>\n<li><p>Create a single or bulk search and retrieve its prices.</p>\n</li>\n<li><p>Submit one returned opaque product ID per selected meter in searchSelection.</p>\n</li>\n<li><p>Complete business/contact/payment details until the server advances the contract to PENDING_SIGNATURE.</p>\n</li>\n<li><p>Download/upload the signed PDF or send Dropbox Sign paperwork before metadata.priceHold.expiresAt.</p>\n</li>\n<li><p>Refresh expired prices using preview/accept and prepare new paperwork.</p>\n</li>\n</ol>\n<p>One contract can contain electricity, gas, or both. Mixed contracts use energy:mixed with fuel-specific meter details. Partner identity, selling rates, stage, price hold and signing metadata are server-owned. Quoting-only users cannot manage dynamic contracts. Frozen partners cannot send eSign requests or refresh contract prices.</p>\n<p>Verified against medusa-api on 31 October 2026.</p>\n","_postman_id":"891b3412-7177-4313-a31f-e7c131b90b25"},{"name":"Clients","item":[{"name":"/clients","id":"274ca846-8f40-4ec0-b74a-3b37282d7267","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{MEDUSA_TOKEN}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"}],"url":"https://medusa.jellyfish.rest/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\": \"EXAMPLE-ACCOUNT-001\",\n      \"type\": \"electricity\",\n      \"name\": \"Example Energy Customer Ltd\",\n      \"startDate\": \"2026-02-01\",\n      \"endDate\": \"2027-01-31\",\n      \"mpxn\": \"0000000000000\",\n      \"address\": \"1 Example Street, Exampleton, EX1 1AA\",\n      \"postcode\": \"EX1 1AA\",\n      \"rating\": 3\n    }\n  ],\n  \"errors\": null\n}\n</code></pre>\n","urlObject":{"protocol":"https","path":["clients"],"host":["medusa","jellyfish","rest"],"query":[{"key":"stage","value":"LIVE"}],"variable":[]}},"response":[{"id":"699ad0a5-c3d3-4d82-ae64-1c24eb293006","name":"List live customers (dummy data)","originalRequest":{"auth":{"type":"bearer","bearer":{"token":"{{MEDUSA_TOKEN}}"}},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"}],"url":{"raw":"https://medusa.jellyfish.rest/clients?stage=LIVE","protocol":"https","host":["medusa","jellyfish","rest"],"path":["clients"],"query":[{"key":"stage","value":"LIVE"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": [\n    {\n      \"account\": \"EXAMPLE-ACCOUNT-001\",\n      \"type\": \"electricity\",\n      \"name\": \"Example Energy Customer Ltd\",\n      \"startDate\": \"2026-02-01\",\n      \"endDate\": \"2027-01-31\",\n      \"mpxn\": \"0000000000000\",\n      \"address\": \"1 Example Street, Exampleton, EX1 1AA\",\n      \"postcode\": \"EX1 1AA\",\n      \"rating\": 3\n    }\n  ],\n  \"errors\": null\n}"}],"_postman_id":"274ca846-8f40-4ec0-b74a-3b37282d7267"},{"name":"/clients/:id","id":"af2ccebd-a4ef-4185-9ed3-d6fecd916e38","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{MEDUSA_TOKEN}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"}],"url":"https://medusa.jellyfish.rest/clients/EXAMPLE-ACCOUNT-001","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":{"protocol":"https","path":["clients","EXAMPLE-ACCOUNT-001"],"host":["medusa","jellyfish","rest"],"query":[],"variable":[]}},"response":[{"id":"8a49b7ea-f4c1-41c4-81f9-8e704f300389","name":"Read the example customer account (dummy data)","originalRequest":{"auth":{"type":"bearer","bearer":{"token":"{{MEDUSA_TOKEN}}"}},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"}],"url":"https://medusa.jellyfish.rest/clients/EXAMPLE-ACCOUNT-001"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"account\": \"EXAMPLE-ACCOUNT-001\",\n    \"address\": \"1 Example Street, Exampleton, EX1 1AA\",\n    \"balance\": 0,\n    \"contacts\": [\n      {\n        \"name\": \"Alex Taylor\",\n        \"email\": \"alex.taylor@example.com\",\n        \"telephone\": \"01632960000\",\n        \"mobile\": \"07700900000\"\n      }\n    ],\n    \"name\": \"Example Energy Customer Ltd\",\n    \"rating\": 3,\n    \"status\": \"LIVE\",\n    \"lastBill\": {\n      \"amount\": 1005,\n      \"date\": \"2026-10-15\",\n      \"id\": 5001\n    },\n    \"lastPayment\": {\n      \"amount\": 1005,\n      \"date\": \"2026-10-25\"\n    },\n    \"lastReading\": {\n      \"value\": 15000,\n      \"date\": \"2026-10-01\"\n    },\n    \"nextProduct\": null,\n    \"mandate\": {\n      \"status\": \"Active\",\n      \"id\": \"EXAMPLE-MANDATE-001\"\n    },\n    \"pendingPayments\": 0,\n    \"product\": [\n      {\n        \"description\": \"Electricity unit rate\",\n        \"rate\": 0.28,\n        \"commission\": 0,\n        \"name\": \"Blue 12 Month\",\n        \"start\": \"2026-02-01\",\n        \"end\": \"2027-01-31\"\n      }\n    ],\n    \"estimatedAnnualUsage\": 50000,\n    \"mpxn\": \"0000000000000\",\n    \"type\": \"electricity\",\n    \"pendingRenewalContracts\": []\n  },\n  \"errors\": null\n}"}],"_postman_id":"af2ccebd-a4ef-4185-9ed3-d6fecd916e38"},{"name":"/clients/:id/bills","id":"12d07cd8-d9f9-4643-9449-9a85149d087b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{MEDUSA_TOKEN}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"}],"url":"https://medusa.jellyfish.rest/clients/EXAMPLE-ACCOUNT-001/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":{"protocol":"https","path":["clients","EXAMPLE-ACCOUNT-001","bills"],"host":["medusa","jellyfish","rest"],"query":[],"variable":[]}},"response":[{"id":"edd37397-f980-42ee-b6f8-953ce93aac23","name":"List bills for the example customer (dummy data)","originalRequest":{"auth":{"type":"bearer","bearer":{"token":"{{MEDUSA_TOKEN}}"}},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"}],"url":"https://medusa.jellyfish.rest/clients/EXAMPLE-ACCOUNT-001/bills"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": [\n    {\n      \"id\": 5001,\n      \"reference\": 100001,\n      \"amount\": 1005,\n      \"start\": \"2026-09-01\",\n      \"end\": \"2026-09-30\",\n      \"payoutId\": 6001\n    }\n  ],\n  \"errors\": null\n}"}],"_postman_id":"12d07cd8-d9f9-4643-9449-9a85149d087b"},{"name":"/clients/:id/bills/:bid/lines","id":"b35f4b1f-7321-4e37-86cf-a2df8cd28a06","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{MEDUSA_TOKEN}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"}],"url":"https://medusa.jellyfish.rest/clients/EXAMPLE-ACCOUNT-001/bills/5001/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":{"protocol":"https","path":["clients","EXAMPLE-ACCOUNT-001","bills","5001","lines"],"host":["medusa","jellyfish","rest"],"query":[],"variable":[]}},"response":[{"id":"fd303482-8283-4697-a861-e70cf10e2a66","name":"Read the selected bill line items (dummy data)","originalRequest":{"auth":{"type":"bearer","bearer":{"token":"{{MEDUSA_TOKEN}}"}},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"}],"url":"https://medusa.jellyfish.rest/clients/EXAMPLE-ACCOUNT-001/bills/5001/lines"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"consumption\": [\n      {\n        \"timeBand\": \"Day\",\n        \"start\": \"2026-09-01\",\n        \"end\": \"2026-09-30\",\n        \"startRead\": 12000,\n        \"endRead\": 15000,\n        \"units\": 3000,\n        \"rate\": 0.28,\n        \"charge\": 840,\n        \"startReadType\": \"Actual\",\n        \"endReadType\": \"Actual\"\n      }\n    ],\n    \"standingCharge\": [\n      {\n        \"start\": \"2026-09-01\",\n        \"end\": \"2026-09-30\",\n        \"units\": 30,\n        \"rate\": 0.7,\n        \"charge\": 21\n      }\n    ]\n  },\n  \"errors\": null\n}"}],"_postman_id":"b35f4b1f-7321-4e37-86cf-a2df8cd28a06"},{"name":"/clients/:id/search","id":"43c4650a-6d79-4d00-b21d-9d89a981bde0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{MEDUSA_TOKEN}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"}],"url":"https://medusa.jellyfish.rest/clients/EXAMPLE-ACCOUNT-001/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":{"protocol":"https","path":["clients","EXAMPLE-ACCOUNT-001","search"],"host":["medusa","jellyfish","rest"],"query":[],"variable":[]}},"response":[{"id":"abed5212-ac5b-4d6f-8928-74f11d8bb360","name":"Create a renewal search from the customer account (dummy data)","originalRequest":{"auth":{"type":"bearer","bearer":{"token":"{{MEDUSA_TOKEN}}"}},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"}],"url":"https://medusa.jellyfish.rest/clients/EXAMPLE-ACCOUNT-001/search"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"reference\": \"EXAMPLE-ACCOUNT-001\"\n  },\n  \"errors\": null\n}"}],"_postman_id":"43c4650a-6d79-4d00-b21d-9d89a981bde0"}],"id":"7d06df46-27c5-4219-b8d4-40c6010c60a1","description":"<p>View and analyse live contracts placed with Jellyfish Energy.</p>\n","_postman_id":"7d06df46-27c5-4219-b8d4-40c6010c60a1"},{"name":"Legacy","item":[{"name":"Contracts","item":[{"name":"/contracts","id":"6d0d9cc8-a325-4d2d-8cd0-236e08e0e2c7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{MEDUSA_TOKEN}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"}],"url":"https://medusa.jellyfish.rest/contracts?stage=ALL_ACTIVE","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\": 2001,\n      \"reference\": \"EXAMPLE-CATALOGUE-CONTRACT-001\",\n      \"companyName\": \"Example Energy Customer Ltd\",\n      \"stage\": \"PENDING_SIGNATURE\",\n      \"startDate\": \"2027-02-01\",\n      \"endDate\": \"2028-01-31\",\n      \"mpxn\": \"0000000000000\",\n      \"energy\": \"electricity\",\n      \"metadata\": {\n        \"partner_user\": \"example.user\",\n        \"api\": true\n      }\n    }\n  ],\n  \"errors\": null\n}\n</code></pre>\n<h3 id=\"stage-filter\">Stage filter</h3>\n<p>The <code>stage</code> query parameter is required. <code>ALL_ACTIVE</code> returns <code>INFORMATION_REQUIRED</code>, <code>PENDING_SIGNATURE</code> and <code>PENDING_APPROVAL</code> together. Rejected and expired contracts are excluded from ALL_ACTIVE. A specific stage can still be requested, including <code>REJECTED</code> or <code>CONTRACT_EXPIRED</code>. All queries remain scoped to active records owned by the authenticated partner.</p>\n","urlObject":{"protocol":"https","path":["contracts"],"host":["medusa","jellyfish","rest"],"query":[{"key":"stage","value":"ALL_ACTIVE"}],"variable":[]}},"response":[{"id":"f81fb0a8-1628-4f16-9b25-f2f6a29a7aae","name":"List active legacy contracts (dummy data)","originalRequest":{"auth":{"type":"bearer","bearer":{"token":"{{MEDUSA_TOKEN}}"}},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"}],"url":{"raw":"https://medusa.jellyfish.rest/contracts?stage=ALL_ACTIVE","protocol":"https","host":["medusa","jellyfish","rest"],"path":["contracts"],"query":[{"key":"stage","value":"ALL_ACTIVE"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": [\n    {\n      \"id\": 2001,\n      \"reference\": \"EXAMPLE-CATALOGUE-CONTRACT-001\",\n      \"companyName\": \"Example Energy Customer Ltd\",\n      \"stage\": \"PENDING_SIGNATURE\",\n      \"startDate\": \"2027-02-01\",\n      \"endDate\": \"2028-01-31\",\n      \"mpxn\": \"0000000000000\",\n      \"energy\": \"electricity\",\n      \"metadata\": {\n        \"partner_user\": \"example.user\",\n        \"api\": true\n      }\n    }\n  ],\n  \"errors\": null\n}"}],"_postman_id":"6d0d9cc8-a325-4d2d-8cd0-236e08e0e2c7"},{"name":"/contracts","id":"5f1a902c-8282-4969-8843-2a8922d6b364","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{MEDUSA_TOKEN}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"productId\": 101,\n  \"search\": {\n    \"ts\": \"2026-10-31T12:00:00.000Z\",\n    \"params\": {\n      \"reference\": \"example-catalogue-quote\",\n      \"energy\": \"electricity\",\n      \"mpxn\": \"0000000000000\",\n      \"usage\": 50000,\n      \"startDate\": \"2027-02-01\",\n      \"commission\": 0,\n      \"standingUplift\": 0\n    },\n    \"user\": \"example.user\",\n    \"api\": true\n  },\n  \"companyName\": \"Example Energy Customer Ltd\",\n  \"reference\": \"EXAMPLE-CATALOGUE-CONTRACT-001\",\n  \"loa\": \"\"\n}","options":{"raw":{"language":"json"}}},"url":"https://medusa.jellyfish.rest/contracts","description":"<h3 id=\"which-contract-endpoint-to-use\">Which contract endpoint to use</h3>\n<p>This is the existing catalogue-contract route using productId plus search. For current search offers use POST /dynamic-product-contracts with searchSelection instead; a bs- product ID cannot be resolved by this legacy catalogue route.</p>\n<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\": 101,\n  \"search\": {\n    \"ts\": \"2026-10-31T12:00:00.000Z\",\n    \"params\": {\n      \"reference\": \"example-catalogue-quote\",\n      \"energy\": \"electricity\",\n      \"mpxn\": \"0000000000000\",\n      \"usage\": 50000,\n      \"startDate\": \"2027-02-01\",\n      \"commission\": 0,\n      \"standingUplift\": 0\n    },\n    \"user\": \"example.user\",\n    \"api\": true\n  },\n  \"companyName\": \"Example Energy Customer Ltd\",\n  \"reference\": \"EXAMPLE-CATALOGUE-CONTRACT-001\",\n  \"loa\": \"\"\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\": 2001\n  },\n  \"errors\": null\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\": 2001\n  },\n  \"errors\": null\n}\n</code></pre>\n","urlObject":{"protocol":"https","path":["contracts"],"host":["medusa","jellyfish","rest"],"query":[],"variable":[]}},"response":[{"id":"c8e0fe84-ae5d-4b07-8271-a018193824cb","name":"Create a legacy catalogue contract (dummy data)","originalRequest":{"auth":{"type":"bearer","bearer":{"token":"{{MEDUSA_TOKEN}}"}},"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"productId\": 101,\n  \"search\": {\n    \"ts\": \"2026-10-31T12:00:00.000Z\",\n    \"params\": {\n      \"reference\": \"example-catalogue-quote\",\n      \"energy\": \"electricity\",\n      \"mpxn\": \"0000000000000\",\n      \"usage\": 50000,\n      \"startDate\": \"2027-02-01\",\n      \"commission\": 0,\n      \"standingUplift\": 0\n    },\n    \"user\": \"example.user\",\n    \"api\": true\n  },\n  \"companyName\": \"Example Energy Customer Ltd\",\n  \"reference\": \"EXAMPLE-CATALOGUE-CONTRACT-001\",\n  \"loa\": \"\"\n}","options":{"raw":{"language":"json"}}},"url":"https://medusa.jellyfish.rest/contracts"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 2001\n  },\n  \"errors\": null\n}"}],"_postman_id":"5f1a902c-8282-4969-8843-2a8922d6b364"},{"name":"/contracts/:id","id":"53d64589-7b6a-4894-aa00-6fe5a58185eb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{MEDUSA_TOKEN}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"}],"url":"https://medusa.jellyfish.rest/contracts/2001","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":{"protocol":"https","path":["contracts","2001"],"host":["medusa","jellyfish","rest"],"query":[],"variable":[]}},"response":[{"id":"8f56e838-5df3-4538-98d5-19c55624c67f","name":"Read the legacy contract (dummy data)","originalRequest":{"auth":{"type":"bearer","bearer":{"token":"{{MEDUSA_TOKEN}}"}},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"}],"url":"https://medusa.jellyfish.rest/contracts/2001"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 2001,\n    \"reference\": \"EXAMPLE-CATALOGUE-CONTRACT-001\",\n    \"companyName\": \"Example Energy Customer Ltd\",\n    \"stage\": \"PENDING_SIGNATURE\",\n    \"startDate\": \"2027-02-01\",\n    \"endDate\": \"2028-01-31\",\n    \"mpxn\": \"0000000000000\",\n    \"energy\": \"electricity\",\n    \"metadata\": {\n      \"partner_user\": \"example.user\",\n      \"api\": true\n    }\n  },\n  \"errors\": null\n}"}],"_postman_id":"53d64589-7b6a-4894-aa00-6fe5a58185eb"},{"name":"/contracts/:id","id":"69f7f171-dc87-4938-beea-70eca943e521","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{MEDUSA_TOKEN}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"companyName\": \"Example Energy Customer Ltd\",\n  \"companyType\": \"LTD\",\n  \"companyRegistrationNumber\": \"00000000\",\n  \"contactTitle\": \"Mx\",\n  \"contactFirstName\": \"Alex\",\n  \"contactLastName\": \"Taylor\",\n  \"contactPosition\": \"Director\",\n  \"contactEmail\": \"alex.taylor@example.com\",\n  \"contactPhone\": \"01632960000\"\n}","options":{"raw":{"language":"json"}}},"url":"https://medusa.jellyfish.rest/contracts/2001","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  \"companyName\": \"Example Energy Customer Ltd\",\n  \"companyType\": \"LTD\",\n  \"companyRegistrationNumber\": \"00000000\",\n  \"contactTitle\": \"Mx\",\n  \"contactFirstName\": \"Alex\",\n  \"contactLastName\": \"Taylor\",\n  \"contactPosition\": \"Director\",\n  \"contactEmail\": \"alex.taylor@example.com\",\n  \"contactPhone\": \"01632960000\"\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</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<p>Stage, partner identity and acceptance timestamps are server-owned and cannot be set through partner edits.</p>\n","urlObject":{"protocol":"https","path":["contracts","2001"],"host":["medusa","jellyfish","rest"],"query":[],"variable":[]}},"response":[{"id":"70e97d9f-a44e-477a-bcd1-585e54c9730e","name":"Update the legacy signing contact (dummy data)","originalRequest":{"auth":{"type":"bearer","bearer":{"token":"{{MEDUSA_TOKEN}}"}},"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"companyName\": \"Example Energy Customer Ltd\",\n  \"companyType\": \"LTD\",\n  \"companyRegistrationNumber\": \"00000000\",\n  \"contactTitle\": \"Mx\",\n  \"contactFirstName\": \"Alex\",\n  \"contactLastName\": \"Taylor\",\n  \"contactPosition\": \"Director\",\n  \"contactEmail\": \"alex.taylor@example.com\",\n  \"contactPhone\": \"01632960000\"\n}","options":{"raw":{"language":"json"}}},"url":"https://medusa.jellyfish.rest/contracts/2001"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": true,\n  \"errors\": null\n}"}],"_postman_id":"69f7f171-dc87-4938-beea-70eca943e521"},{"name":"/contracts/:id/selected-product","id":"9622ad3c-4945-409b-9ba6-10899bbbe443","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{MEDUSA_TOKEN}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"}],"url":"https://medusa.jellyfish.rest/contracts/2001/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":{"protocol":"https","path":["contracts","2001","selected-product"],"host":["medusa","jellyfish","rest"],"query":[],"variable":[]}},"response":[{"id":"1aa172c4-4b83-43b5-9d72-418db384a379","name":"Read the selected catalogue product (dummy data)","originalRequest":{"auth":{"type":"bearer","bearer":{"token":"{{MEDUSA_TOKEN}}"}},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"}],"url":"https://medusa.jellyfish.rest/contracts/2001/selected-product"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 101,\n    \"name\": \"Blue 12 Month\",\n    \"term\": 12,\n    \"startDate\": \"2027-02-01\",\n    \"endDate\": \"2028-01-31\",\n    \"energy\": \"electricity\",\n    \"fuel\": \"electricity\",\n    \"fixed\": true,\n    \"pricingMode\": \"bespoke\",\n    \"annualUsage\": 50000,\n    \"priceHold\": {\n      \"hours\": 24,\n      \"quotedAt\": \"2026-10-31T12:00:00.000Z\",\n      \"expiresAt\": \"2026-11-01T12:00:00.000Z\"\n    },\n    \"allOrDayUnitRate\": 28.5,\n    \"nightRate\": null,\n    \"eveningWeekendRate\": null,\n    \"standingCharge\": 70,\n    \"capacityRate\": null,\n    \"commissionIncluded\": true,\n    \"costs\": {\n      \"annualCost\": 14505.5,\n      \"monthlyCost\": 1208.79,\n      \"annualCommission\": 0,\n      \"monthlyCommission\": 0\n    }\n  },\n  \"errors\": null\n}"}],"_postman_id":"9622ad3c-4945-409b-9ba6-10899bbbe443"},{"name":"/contracts/:id/onboarding-notes","id":"b72739f2-544d-4ba0-9d30-11fcd7c7a4a6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{MEDUSA_TOKEN}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"}],"url":"https://medusa.jellyfish.rest/contracts/2001/onboarding-notes","description":"<p>This endpoint retrieves the onboarding notes for the contract.</p>\n","urlObject":{"protocol":"https","path":["contracts","2001","onboarding-notes"],"host":["medusa","jellyfish","rest"],"query":[],"variable":[]}},"response":[{"id":"7f7e6c71-a0d8-4f9e-ad13-2d3f70bfe16c","name":"Read legacy supplier approval notes (dummy data)","originalRequest":{"auth":{"type":"bearer","bearer":{"token":"{{MEDUSA_TOKEN}}"}},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"}],"url":"https://medusa.jellyfish.rest/contracts/2001/onboarding-notes"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": [],\n  \"errors\": null\n}"}],"_postman_id":"b72739f2-544d-4ba0-9d30-11fcd7c7a4a6"},{"name":"/contracts/:id/client","id":"01fccd97-afd4-4189-9631-68d209457144","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{MEDUSA_TOKEN}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"}],"url":"https://medusa.jellyfish.rest/contracts/2001/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":{"protocol":"https","path":["contracts","2001","client"],"host":["medusa","jellyfish","rest"],"query":[],"variable":[]}},"response":[{"id":"9a711fd4-eff1-4efd-8965-624f69402e88","name":"Read the contracted customer account (dummy data)","originalRequest":{"auth":{"type":"bearer","bearer":{"token":"{{MEDUSA_TOKEN}}"}},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"}],"url":"https://medusa.jellyfish.rest/contracts/2001/client"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"account\": \"EXAMPLE-ACCOUNT-001\",\n    \"address\": \"1 Example Street, Exampleton, EX1 1AA\",\n    \"balance\": 0,\n    \"contacts\": [\n      {\n        \"name\": \"Alex Taylor\",\n        \"email\": \"alex.taylor@example.com\",\n        \"telephone\": \"01632960000\",\n        \"mobile\": \"07700900000\"\n      }\n    ],\n    \"name\": \"Example Energy Customer Ltd\",\n    \"rating\": 3,\n    \"status\": \"LIVE\",\n    \"lastBill\": {\n      \"amount\": 1005,\n      \"date\": \"2026-10-15\",\n      \"id\": 5001\n    },\n    \"lastPayment\": {\n      \"amount\": 1005,\n      \"date\": \"2026-10-25\"\n    },\n    \"lastReading\": {\n      \"value\": 15000,\n      \"date\": \"2026-10-01\"\n    },\n    \"nextProduct\": null,\n    \"mandate\": {\n      \"status\": \"Active\",\n      \"id\": \"EXAMPLE-MANDATE-001\"\n    },\n    \"pendingPayments\": 0,\n    \"product\": [\n      {\n        \"description\": \"Electricity unit rate\",\n        \"rate\": 0.28,\n        \"commission\": 0,\n        \"name\": \"Blue 12 Month\",\n        \"start\": \"2026-02-01\",\n        \"end\": \"2027-01-31\"\n      }\n    ],\n    \"estimatedAnnualUsage\": 50000,\n    \"mpxn\": \"0000000000000\",\n    \"type\": \"electricity\",\n    \"pendingRenewalContracts\": []\n  },\n  \"errors\": null\n}"}],"_postman_id":"01fccd97-afd4-4189-9631-68d209457144"},{"name":"/contracts/:id/esign","id":"2a5f06f4-fed7-416f-a1d7-c8972247fa2c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{MEDUSA_TOKEN}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"}],"url":"https://medusa.jellyfish.rest/contracts/2001/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</code></pre>\n<p>This endpoint belongs to the legacy contract flow. Dynamic-contract Dropbox Sign requests and their structured status use /dynamic-product-contracts/:id/esign and /dynamic-product-contracts/:id/esign/status.</p>\n","urlObject":{"protocol":"https","path":["contracts","2001","esign"],"host":["medusa","jellyfish","rest"],"query":[],"variable":[]}},"response":[{"id":"9e0db42f-3093-494d-9ad9-d063b5661170","name":"Send legacy contract signing paperwork (dummy data)","originalRequest":{"auth":{"type":"bearer","bearer":{"token":"{{MEDUSA_TOKEN}}"}},"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"}],"url":"https://medusa.jellyfish.rest/contracts/2001/esign"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": true,\n  \"errors\": null\n}"}],"_postman_id":"2a5f06f4-fed7-416f-a1d7-c8972247fa2c"},{"name":"/contracts/:id/esign/status","id":"aff31f25-0bef-4950-87aa-cfcaca24b17a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{MEDUSA_TOKEN}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"}],"url":"https://medusa.jellyfish.rest/contracts/2001/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\": \"Sent (a few seconds ago)\",\n    \"sent\": \"2026-10-31T12:00:00.000Z\"\n  },\n  \"errors\": null\n}\n</code></pre>\n<p>This endpoint belongs to the legacy contract flow. Dynamic-contract Dropbox Sign requests and their structured status use /dynamic-product-contracts/:id/esign and /dynamic-product-contracts/:id/esign/status.</p>\n","urlObject":{"protocol":"https","path":["contracts","2001","esign","status"],"host":["medusa","jellyfish","rest"],"query":[],"variable":[]}},"response":[{"id":"f9104ba5-3b46-4aed-afb9-e97adef4e870","name":"Read legacy signature status (dummy data)","originalRequest":{"auth":{"type":"bearer","bearer":{"token":"{{MEDUSA_TOKEN}}"}},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"}],"url":"https://medusa.jellyfish.rest/contracts/2001/esign/status"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"status\": \"Sent (a few seconds ago)\",\n    \"sent\": \"2026-10-31T12:00:00.000Z\"\n  },\n  \"errors\": null\n}"}],"_postman_id":"aff31f25-0bef-4950-87aa-cfcaca24b17a"},{"name":"/contracts/:id/document","id":"2628fccf-0201-4dae-8db1-fdf245d3f8bb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{MEDUSA_TOKEN}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"}],"url":"https://medusa.jellyfish.rest/contracts/2001/document","description":"<p>Returns a pre-filled contract PDF as file data.</p>\n","urlObject":{"protocol":"https","path":["contracts","2001","document"],"host":["medusa","jellyfish","rest"],"query":[],"variable":[]}},"response":[{"id":"f356314b-2041-4053-9268-eee9fda6aff0","name":"Download the legacy contract PDF (dummy data)","originalRequest":{"auth":{"type":"bearer","bearer":{"token":"{{MEDUSA_TOKEN}}"}},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"}],"url":"https://medusa.jellyfish.rest/contracts/2001/document"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": \"{{CONTRACT_PDF_BASE64}}\",\n  \"errors\": null\n}"}],"_postman_id":"2628fccf-0201-4dae-8db1-fdf245d3f8bb"},{"name":"/contracts/:id/document","id":"7c1f26c1-0335-415e-ab20-1609b102b075","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{MEDUSA_TOKEN}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"file\": \"\"\n}","options":{"raw":{"language":"json"}}},"url":"https://medusa.jellyfish.rest/contracts/2001/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</code></pre>\n","urlObject":{"protocol":"https","path":["contracts","2001","document"],"host":["medusa","jellyfish","rest"],"query":[],"variable":[]}},"response":[{"id":"35c9ba21-cd1b-4675-b6a9-7888e78d7d28","name":"Upload the signed legacy contract PDF (dummy data)","originalRequest":{"auth":{"type":"bearer","bearer":{"token":"{{MEDUSA_TOKEN}}"}},"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"file\": \"\"\n}","options":{"raw":{"language":"json"}}},"url":"https://medusa.jellyfish.rest/contracts/2001/document"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": true,\n  \"errors\": null\n}"}],"_postman_id":"7c1f26c1-0335-415e-ab20-1609b102b075"}],"id":"abb70059-8aa9-4191-a4be-91ac29ff578f","description":"<p>Legacy single-meter contract endpoints. Current searches from all partners create contracts through /dynamic-product-contracts using searchSelection; see Dynamic Contracts for mixed-fuel/multi-meter contracts, current PDFs, price refresh and Dropbox Sign. These older endpoints remain available for their existing catalogue flow.</p>\n","_postman_id":"abb70059-8aa9-4191-a4be-91ac29ff578f"},{"name":"Renewal Contracts","item":[{"name":"/renewal-contracts","id":"e5bb86ce-20bb-4b42-b712-898390c27253","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{MEDUSA_TOKEN}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"}],"url":"https://medusa.jellyfish.rest/renewal-contracts?stage=ALL_ACTIVE","description":"<p>List contracts for the authenticated partner.</p>\n<h3 id=\"stage-filter\">Stage filter</h3>\n<p>The <code>stage</code> query parameter is required. <code>ALL_ACTIVE</code> returns <code>INFORMATION_REQUIRED</code>, <code>PENDING_SIGNATURE</code> and <code>PENDING_APPROVAL</code> together. Rejected and expired contracts are excluded from ALL_ACTIVE. A specific stage can still be requested, including <code>REJECTED</code> or <code>CONTRACT_EXPIRED</code>. All queries remain scoped to active records owned by the authenticated partner.</p>\n","urlObject":{"protocol":"https","path":["renewal-contracts"],"host":["medusa","jellyfish","rest"],"query":[{"key":"stage","value":"ALL_ACTIVE"}],"variable":[]}},"response":[{"id":"81712a77-3f57-4e39-aa15-710c3da9ba11","name":"List active legacy renewals (dummy data)","originalRequest":{"auth":{"type":"bearer","bearer":{"token":"{{MEDUSA_TOKEN}}"}},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"}],"url":{"raw":"https://medusa.jellyfish.rest/renewal-contracts?stage=ALL_ACTIVE","protocol":"https","host":["medusa","jellyfish","rest"],"path":["renewal-contracts"],"query":[{"key":"stage","value":"ALL_ACTIVE"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": [\n    {\n      \"id\": 3001,\n      \"reference\": \"EXAMPLE-RENEWAL-001\",\n      \"companyName\": \"Example Energy Customer Ltd\",\n      \"stage\": \"PENDING_SIGNATURE\",\n      \"startDate\": \"2027-02-01\",\n      \"endDate\": \"2028-01-31\",\n      \"accountNumber\": \"EXAMPLE-ACCOUNT-001\",\n      \"metadata\": {\n        \"partner_user\": \"example.user\",\n        \"api\": true\n      }\n    }\n  ],\n  \"errors\": null\n}"}],"_postman_id":"e5bb86ce-20bb-4b42-b712-898390c27253"},{"name":"/renewal-contracts","id":"f1cd9c4a-f9f2-4cfd-a30b-15d69dcf67a9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{MEDUSA_TOKEN}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"productId\": 101,\n  \"search\": {\n    \"ts\": \"2026-10-31T12:00:00.000Z\",\n    \"params\": {\n      \"reference\": \"example-catalogue-quote\",\n      \"energy\": \"electricity\",\n      \"mpxn\": \"0000000000000\",\n      \"usage\": 50000,\n      \"startDate\": \"2027-02-01\",\n      \"commission\": 0,\n      \"standingUplift\": 0\n    },\n    \"user\": \"example.user\",\n    \"api\": true\n  },\n  \"reference\": \"EXAMPLE-RENEWAL-001\",\n  \"loa\": \"\"\n}","options":{"raw":{"language":"json"}}},"url":"https://medusa.jellyfish.rest/renewal-contracts","urlObject":{"protocol":"https","path":["renewal-contracts"],"host":["medusa","jellyfish","rest"],"query":[],"variable":[]}},"response":[{"id":"f5da86dc-7b06-4e3e-8f90-bf0ad6b12320","name":"Create a legacy renewal contract (dummy data)","originalRequest":{"auth":{"type":"bearer","bearer":{"token":"{{MEDUSA_TOKEN}}"}},"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"productId\": 101,\n  \"search\": {\n    \"ts\": \"2026-10-31T12:00:00.000Z\",\n    \"params\": {\n      \"reference\": \"example-catalogue-quote\",\n      \"energy\": \"electricity\",\n      \"mpxn\": \"0000000000000\",\n      \"usage\": 50000,\n      \"startDate\": \"2027-02-01\",\n      \"commission\": 0,\n      \"standingUplift\": 0\n    },\n    \"user\": \"example.user\",\n    \"api\": true\n  },\n  \"reference\": \"EXAMPLE-RENEWAL-001\",\n  \"loa\": \"\"\n}","options":{"raw":{"language":"json"}}},"url":"https://medusa.jellyfish.rest/renewal-contracts"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 3001\n  },\n  \"errors\": null\n}"}],"_postman_id":"f1cd9c4a-f9f2-4cfd-a30b-15d69dcf67a9"},{"name":"/renewal-contracts/:id","id":"26b1e65a-a076-4709-8f97-e796a1e30f64","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{MEDUSA_TOKEN}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"}],"url":"https://medusa.jellyfish.rest/renewal-contracts/3001","urlObject":{"protocol":"https","path":["renewal-contracts","3001"],"host":["medusa","jellyfish","rest"],"query":[],"variable":[]}},"response":[{"id":"61d17b84-aa44-4d41-a661-594a6df04b43","name":"Read the legacy contract (dummy data)","originalRequest":{"auth":{"type":"bearer","bearer":{"token":"{{MEDUSA_TOKEN}}"}},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"}],"url":"https://medusa.jellyfish.rest/renewal-contracts/3001"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 3001,\n    \"reference\": \"EXAMPLE-RENEWAL-001\",\n    \"companyName\": \"Example Energy Customer Ltd\",\n    \"stage\": \"PENDING_SIGNATURE\",\n    \"startDate\": \"2027-02-01\",\n    \"endDate\": \"2028-01-31\",\n    \"accountNumber\": \"EXAMPLE-ACCOUNT-001\",\n    \"metadata\": {\n      \"partner_user\": \"example.user\",\n      \"api\": true\n    }\n  },\n  \"errors\": null\n}"}],"_postman_id":"26b1e65a-a076-4709-8f97-e796a1e30f64"},{"name":"/renewal-contracts/:id","id":"7e5853b0-3235-4a8d-ab91-5b99fc92782e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{MEDUSA_TOKEN}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"companyName\": \"Example Energy Customer Ltd\",\n  \"companyType\": \"LTD\",\n  \"companyRegistrationNumber\": \"00000000\",\n  \"contactTitle\": \"Mx\",\n  \"contactFirstName\": \"Alex\",\n  \"contactLastName\": \"Taylor\",\n  \"contactPosition\": \"Director\",\n  \"contactEmail\": \"alex.taylor@example.com\",\n  \"contactPhone\": \"01632960000\"\n}","options":{"raw":{"language":"json"}}},"url":"https://medusa.jellyfish.rest/renewal-contracts/3001","urlObject":{"protocol":"https","path":["renewal-contracts","3001"],"host":["medusa","jellyfish","rest"],"query":[],"variable":[]}},"response":[{"id":"7dc5a33d-a443-43a1-aeed-e3647e68f5bd","name":"Update the legacy signing contact (dummy data)","originalRequest":{"auth":{"type":"bearer","bearer":{"token":"{{MEDUSA_TOKEN}}"}},"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"companyName\": \"Example Energy Customer Ltd\",\n  \"companyType\": \"LTD\",\n  \"companyRegistrationNumber\": \"00000000\",\n  \"contactTitle\": \"Mx\",\n  \"contactFirstName\": \"Alex\",\n  \"contactLastName\": \"Taylor\",\n  \"contactPosition\": \"Director\",\n  \"contactEmail\": \"alex.taylor@example.com\",\n  \"contactPhone\": \"01632960000\"\n}","options":{"raw":{"language":"json"}}},"url":"https://medusa.jellyfish.rest/renewal-contracts/3001"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": true,\n  \"errors\": null\n}"}],"_postman_id":"7e5853b0-3235-4a8d-ab91-5b99fc92782e"},{"name":"/renewal-contracts/:id/selected-product","id":"22659744-baf3-43bf-8483-dc2a54c97981","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{MEDUSA_TOKEN}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"}],"url":"https://medusa.jellyfish.rest/renewal-contracts/3001/selected-product","urlObject":{"protocol":"https","path":["renewal-contracts","3001","selected-product"],"host":["medusa","jellyfish","rest"],"query":[],"variable":[]}},"response":[{"id":"fdc66ed7-9264-41f0-bdfc-3ca903563412","name":"Read the selected catalogue product (dummy data)","originalRequest":{"auth":{"type":"bearer","bearer":{"token":"{{MEDUSA_TOKEN}}"}},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"}],"url":"https://medusa.jellyfish.rest/renewal-contracts/3001/selected-product"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 101,\n    \"name\": \"Blue 12 Month\",\n    \"term\": 12,\n    \"startDate\": \"2027-02-01\",\n    \"endDate\": \"2028-01-31\",\n    \"energy\": \"electricity\",\n    \"fuel\": \"electricity\",\n    \"fixed\": true,\n    \"pricingMode\": \"bespoke\",\n    \"annualUsage\": 50000,\n    \"priceHold\": {\n      \"hours\": 24,\n      \"quotedAt\": \"2026-10-31T12:00:00.000Z\",\n      \"expiresAt\": \"2026-11-01T12:00:00.000Z\"\n    },\n    \"allOrDayUnitRate\": 28.5,\n    \"nightRate\": null,\n    \"eveningWeekendRate\": null,\n    \"standingCharge\": 70,\n    \"capacityRate\": null,\n    \"commissionIncluded\": true,\n    \"costs\": {\n      \"annualCost\": 14505.5,\n      \"monthlyCost\": 1208.79,\n      \"annualCommission\": 0,\n      \"monthlyCommission\": 0\n    }\n  },\n  \"errors\": null\n}"}],"_postman_id":"22659744-baf3-43bf-8483-dc2a54c97981"},{"name":"/renewal-contracts/:id/esign","id":"b916262e-fb91-491d-aec5-0080f3df82b7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{MEDUSA_TOKEN}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"}],"url":"https://medusa.jellyfish.rest/renewal-contracts/3001/esign","urlObject":{"protocol":"https","path":["renewal-contracts","3001","esign"],"host":["medusa","jellyfish","rest"],"query":[],"variable":[]}},"response":[{"id":"966935f5-5051-461d-bddd-d1a47a3db31b","name":"Send legacy contract signing paperwork (dummy data)","originalRequest":{"auth":{"type":"bearer","bearer":{"token":"{{MEDUSA_TOKEN}}"}},"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"}],"url":"https://medusa.jellyfish.rest/renewal-contracts/3001/esign"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": true,\n  \"errors\": null\n}"}],"_postman_id":"b916262e-fb91-491d-aec5-0080f3df82b7"},{"name":"/renewal-contracts/:id/esign/status","id":"2321cb8c-5ccd-41f0-b000-56eb57931022","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{MEDUSA_TOKEN}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"}],"url":"https://medusa.jellyfish.rest/renewal-contracts/3001/esign/status","urlObject":{"protocol":"https","path":["renewal-contracts","3001","esign","status"],"host":["medusa","jellyfish","rest"],"query":[],"variable":[]}},"response":[{"id":"74d87878-2ca9-45cf-8c15-c62b4ee911f2","name":"Read legacy signature status (dummy data)","originalRequest":{"auth":{"type":"bearer","bearer":{"token":"{{MEDUSA_TOKEN}}"}},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"}],"url":"https://medusa.jellyfish.rest/renewal-contracts/3001/esign/status"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"status\": \"Sent (a few seconds ago)\",\n    \"sent\": \"2026-10-31T12:00:00.000Z\"\n  },\n  \"errors\": null\n}"}],"_postman_id":"2321cb8c-5ccd-41f0-b000-56eb57931022"},{"name":"/renewal-contracts/:id/document","id":"89b91a06-8983-4208-b562-63feaf99a572","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{MEDUSA_TOKEN}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"}],"url":"https://medusa.jellyfish.rest/renewal-contracts/3001/document","urlObject":{"protocol":"https","path":["renewal-contracts","3001","document"],"host":["medusa","jellyfish","rest"],"query":[],"variable":[]}},"response":[{"id":"1f875574-0bc1-498b-977b-83748d80af26","name":"Download the legacy contract PDF (dummy data)","originalRequest":{"auth":{"type":"bearer","bearer":{"token":"{{MEDUSA_TOKEN}}"}},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"}],"url":"https://medusa.jellyfish.rest/renewal-contracts/3001/document"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": \"{{CONTRACT_PDF_BASE64}}\",\n  \"errors\": null\n}"}],"_postman_id":"89b91a06-8983-4208-b562-63feaf99a572"},{"name":"/renewal-contracts/:id/document","id":"65d77978-8282-489a-9f76-d0eb79c0abfc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{MEDUSA_TOKEN}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"file\": \"\"\n}","options":{"raw":{"language":"json"}}},"url":"https://medusa.jellyfish.rest/renewal-contracts/3001/document","urlObject":{"protocol":"https","path":["renewal-contracts","3001","document"],"host":["medusa","jellyfish","rest"],"query":[],"variable":[]}},"response":[{"id":"293bd7b2-3e65-4f3a-9807-ac0bb5279c3e","name":"Upload the signed legacy contract PDF (dummy data)","originalRequest":{"auth":{"type":"bearer","bearer":{"token":"{{MEDUSA_TOKEN}}"}},"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"file\": \"\"\n}","options":{"raw":{"language":"json"}}},"url":"https://medusa.jellyfish.rest/renewal-contracts/3001/document"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": true,\n  \"errors\": null\n}"}],"_postman_id":"65d77978-8282-489a-9f76-d0eb79c0abfc"}],"id":"fc46885d-96ae-40c4-a041-e8d6af3f287f","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":"fc46885d-96ae-40c4-a041-e8d6af3f287f"},{"name":"Bulk Contracts","item":[{"name":"/bulk-contracts","id":"4e1a2c4f-6ca3-4cf3-ba0c-e0a0b2c12eae","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{MEDUSA_TOKEN}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"}],"url":"https://medusa.jellyfish.rest/bulk-contracts?stage=ALL_ACTIVE","description":"<p>List contracts for the authenticated partner.</p>\n<h3 id=\"stage-filter\">Stage filter</h3>\n<p>The <code>stage</code> query parameter is required. <code>ALL_ACTIVE</code> returns <code>INFORMATION_REQUIRED</code>, <code>PENDING_SIGNATURE</code> and <code>PENDING_APPROVAL</code> together. Rejected and expired contracts are excluded from ALL_ACTIVE. A specific stage can still be requested, including <code>REJECTED</code> or <code>CONTRACT_EXPIRED</code>. All queries remain scoped to active records owned by the authenticated partner.</p>\n","urlObject":{"protocol":"https","path":["bulk-contracts"],"host":["medusa","jellyfish","rest"],"query":[{"key":"stage","value":"ALL_ACTIVE"}],"variable":[]}},"response":[{"id":"f002abfd-d097-422e-8481-292ef23b79cd","name":"List active legacy bulk contracts (dummy data)","originalRequest":{"auth":{"type":"bearer","bearer":{"token":"{{MEDUSA_TOKEN}}"}},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"}],"url":{"raw":"https://medusa.jellyfish.rest/bulk-contracts?stage=ALL_ACTIVE","protocol":"https","host":["medusa","jellyfish","rest"],"path":["bulk-contracts"],"query":[{"key":"stage","value":"ALL_ACTIVE"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": [\n    {\n      \"id\": 4001,\n      \"reference\": \"EXAMPLE-BULK-CONTRACT-001\",\n      \"companyName\": \"Example Energy Customer Ltd\",\n      \"stage\": \"PENDING_SIGNATURE\",\n      \"startDate\": \"2027-02-01\",\n      \"endDate\": \"2028-01-31\",\n      \"mpxn\": \"0000000000000\",\n      \"energy\": \"electricity\",\n      \"metadata\": {\n        \"partner_user\": \"example.user\",\n        \"api\": true\n      }\n    }\n  ],\n  \"errors\": null\n}"}],"_postman_id":"4e1a2c4f-6ca3-4cf3-ba0c-e0a0b2c12eae"},{"name":"/bulk-contracts","id":"c7e1ae6f-9baa-49af-8cdb-64455d589254","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{MEDUSA_TOKEN}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"companyName\": \"Example Energy Customer Ltd\",\n  \"reference\": \"EXAMPLE-BULK-CONTRACT-001\",\n  \"loa\": \"\",\n  \"meters\": [\n    {\n      \"energy\": \"electricity\",\n      \"mpxn\": \"0000000000000\",\n      \"usage\": 50000,\n      \"startDate\": \"2027-02-01\",\n      \"commission\": 0,\n      \"standingUplift\": 0,\n      \"term\": 12,\n      \"productId\": 101\n    }\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://medusa.jellyfish.rest/bulk-contracts","urlObject":{"protocol":"https","path":["bulk-contracts"],"host":["medusa","jellyfish","rest"],"query":[],"variable":[]}},"response":[{"id":"e4333025-4f3e-4d6f-83e8-04bb648308d9","name":"Create a legacy bulk contract (dummy data)","originalRequest":{"auth":{"type":"bearer","bearer":{"token":"{{MEDUSA_TOKEN}}"}},"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"companyName\": \"Example Energy Customer Ltd\",\n  \"reference\": \"EXAMPLE-BULK-CONTRACT-001\",\n  \"loa\": \"\",\n  \"meters\": [\n    {\n      \"energy\": \"electricity\",\n      \"mpxn\": \"0000000000000\",\n      \"usage\": 50000,\n      \"startDate\": \"2027-02-01\",\n      \"commission\": 0,\n      \"standingUplift\": 0,\n      \"term\": 12,\n      \"productId\": 101\n    }\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://medusa.jellyfish.rest/bulk-contracts"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 4001\n  },\n  \"errors\": null\n}"}],"_postman_id":"c7e1ae6f-9baa-49af-8cdb-64455d589254"},{"name":"/bulk-contracts/:id","id":"de389402-56ce-4286-9a7c-d89217b63693","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{MEDUSA_TOKEN}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"}],"url":"https://medusa.jellyfish.rest/bulk-contracts/4001","urlObject":{"protocol":"https","path":["bulk-contracts","4001"],"host":["medusa","jellyfish","rest"],"query":[],"variable":[]}},"response":[{"id":"ce84de09-5911-4127-95f9-fc673b406898","name":"Read the legacy contract (dummy data)","originalRequest":{"auth":{"type":"bearer","bearer":{"token":"{{MEDUSA_TOKEN}}"}},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"}],"url":"https://medusa.jellyfish.rest/bulk-contracts/4001"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 4001,\n    \"reference\": \"EXAMPLE-BULK-CONTRACT-001\",\n    \"companyName\": \"Example Energy Customer Ltd\",\n    \"stage\": \"PENDING_SIGNATURE\",\n    \"startDate\": \"2027-02-01\",\n    \"endDate\": \"2028-01-31\",\n    \"mpxn\": \"0000000000000\",\n    \"energy\": \"electricity\",\n    \"metadata\": {\n      \"partner_user\": \"example.user\",\n      \"api\": true\n    }\n  },\n  \"errors\": null\n}"}],"_postman_id":"de389402-56ce-4286-9a7c-d89217b63693"},{"name":"/bulk-contracts/:id","id":"d3531f00-0d7c-47df-a457-d387a0328eb0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{MEDUSA_TOKEN}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"companyName\": \"Example Energy Customer Ltd\",\n  \"companyType\": \"LTD\",\n  \"companyRegistrationNumber\": \"00000000\",\n  \"contactTitle\": \"Mx\",\n  \"contactFirstName\": \"Alex\",\n  \"contactLastName\": \"Taylor\",\n  \"contactPosition\": \"Director\",\n  \"contactEmail\": \"alex.taylor@example.com\",\n  \"contactPhone\": \"01632960000\"\n}","options":{"raw":{"language":"json"}}},"url":"https://medusa.jellyfish.rest/bulk-contracts/4001","urlObject":{"protocol":"https","path":["bulk-contracts","4001"],"host":["medusa","jellyfish","rest"],"query":[],"variable":[]}},"response":[{"id":"90874e6a-1d89-47bf-aba1-ccd30e57331d","name":"Update the legacy signing contact (dummy data)","originalRequest":{"auth":{"type":"bearer","bearer":{"token":"{{MEDUSA_TOKEN}}"}},"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"companyName\": \"Example Energy Customer Ltd\",\n  \"companyType\": \"LTD\",\n  \"companyRegistrationNumber\": \"00000000\",\n  \"contactTitle\": \"Mx\",\n  \"contactFirstName\": \"Alex\",\n  \"contactLastName\": \"Taylor\",\n  \"contactPosition\": \"Director\",\n  \"contactEmail\": \"alex.taylor@example.com\",\n  \"contactPhone\": \"01632960000\"\n}","options":{"raw":{"language":"json"}}},"url":"https://medusa.jellyfish.rest/bulk-contracts/4001"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": true,\n  \"errors\": null\n}"}],"_postman_id":"d3531f00-0d7c-47df-a457-d387a0328eb0"},{"name":"/bulk-contracts/:id/meters","id":"8311efb5-c66d-4e2e-9d4a-7730e5735a80","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{MEDUSA_TOKEN}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"}],"url":"https://medusa.jellyfish.rest/bulk-contracts/4001/meters","urlObject":{"protocol":"https","path":["bulk-contracts","4001","meters"],"host":["medusa","jellyfish","rest"],"query":[],"variable":[]}},"response":[{"id":"2f08bc05-b2bf-47cf-a408-5c854235fb5f","name":"Read legacy bulk contract meters (dummy data)","originalRequest":{"auth":{"type":"bearer","bearer":{"token":"{{MEDUSA_TOKEN}}"}},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"}],"url":"https://medusa.jellyfish.rest/bulk-contracts/4001/meters"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": [\n    {\n      \"id\": 1,\n      \"bulkContractId\": 4001,\n      \"mpxn\": \"0000000000000\",\n      \"energy\": \"electricity\",\n      \"estimatedAnnualUsage\": 50000,\n      \"startDate\": \"2027-02-01\",\n      \"endDate\": \"2028-01-31\",\n      \"productId\": 101\n    }\n  ],\n  \"errors\": null\n}"}],"_postman_id":"8311efb5-c66d-4e2e-9d4a-7730e5735a80"},{"name":"/bulk-contracts/:id/document","id":"017037b3-b70c-4310-a647-38d79559e13d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{MEDUSA_TOKEN}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"}],"url":"https://medusa.jellyfish.rest/bulk-contracts/4001/document","urlObject":{"protocol":"https","path":["bulk-contracts","4001","document"],"host":["medusa","jellyfish","rest"],"query":[],"variable":[]}},"response":[{"id":"59772150-54ba-4f60-821a-e49b5b874799","name":"Download the legacy contract PDF (dummy data)","originalRequest":{"auth":{"type":"bearer","bearer":{"token":"{{MEDUSA_TOKEN}}"}},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"}],"url":"https://medusa.jellyfish.rest/bulk-contracts/4001/document"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": \"{{CONTRACT_PDF_BASE64}}\",\n  \"errors\": null\n}"}],"_postman_id":"017037b3-b70c-4310-a647-38d79559e13d"},{"name":"/bulk-contracts/:id/document","id":"ac6651af-0659-48e5-bc59-4e0ae6b663c8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{MEDUSA_TOKEN}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"file\": \"\"\n}","options":{"raw":{"language":"json"}}},"url":"https://medusa.jellyfish.rest/bulk-contracts/4001/document","urlObject":{"protocol":"https","path":["bulk-contracts","4001","document"],"host":["medusa","jellyfish","rest"],"query":[],"variable":[]}},"response":[{"id":"0b8e236c-32c6-4c31-bc03-135848ff4b80","name":"Upload the signed legacy contract PDF (dummy data)","originalRequest":{"auth":{"type":"bearer","bearer":{"token":"{{MEDUSA_TOKEN}}"}},"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"file\": \"\"\n}","options":{"raw":{"language":"json"}}},"url":"https://medusa.jellyfish.rest/bulk-contracts/4001/document"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": true,\n  \"errors\": null\n}"}],"_postman_id":"ac6651af-0659-48e5-bc59-4e0ae6b663c8"}],"id":"738c6bc9-4d95-4324-bd59-215aa021ed7e","description":"<p>Create and prepare contracts from a bulk search. Then upload/send signed contracts for approval by Jellyfish Energy.</p>\n","_postman_id":"738c6bc9-4d95-4324-bd59-215aa021ed7e"},{"name":"Catalogue Quoting","item":[{"name":"/searches (catalogue format)","id":"c63c00de-159d-499d-987f-ca8d074133c2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{MEDUSA_TOKEN}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"reference\": \"example-catalogue-quote\",\n  \"energy\": \"electricity\",\n  \"mpxn\": \"0000000000000\",\n  \"usage\": 50000,\n  \"startDate\": \"2027-02-01\",\n  \"commission\": 0,\n  \"standingUplift\": 0\n}","options":{"raw":{"language":"json"}}},"url":"https://medusa.jellyfish.rest/searches","description":"<p>Historical single-meter catalogue search payload. Save the search, then retrieve it by reference. For current terms, price holds and usage controls, use the main Searches documentation.</p>\n","urlObject":{"protocol":"https","path":["searches"],"host":["medusa","jellyfish","rest"],"query":[],"variable":[]}},"response":[{"id":"e88d2940-2118-4234-a7ff-8df0775bc6b3","name":"Save a legacy catalogue quote (dummy data)","originalRequest":{"auth":{"type":"bearer","bearer":{"token":"{{MEDUSA_TOKEN}}"}},"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"reference\": \"example-catalogue-quote\",\n  \"energy\": \"electricity\",\n  \"mpxn\": \"0000000000000\",\n  \"usage\": 50000,\n  \"startDate\": \"2027-02-01\",\n  \"commission\": 0,\n  \"standingUplift\": 0\n}","options":{"raw":{"language":"json"}}},"url":"https://medusa.jellyfish.rest/searches"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"reference\": \"example-catalogue-quote\"\n  },\n  \"errors\": null\n}"}],"_postman_id":"c63c00de-159d-499d-987f-ca8d074133c2"},{"name":"/searches/:id (catalogue format)","id":"cfd043e7-b267-42cb-a8ba-39c8237bdddb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{MEDUSA_TOKEN}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"}],"url":"https://medusa.jellyfish.rest/searches/example-catalogue-quote","description":"<p>Historical catalogue result format: data contains search and products. Legacy products use catalogue IDs. Current dynamic-contract creation requires the opaque IDs from current searches; see the main Searches documentation.</p>\n","urlObject":{"protocol":"https","path":["searches","example-catalogue-quote"],"host":["medusa","jellyfish","rest"],"query":[],"variable":[]}},"response":[{"id":"b27c4c39-41a9-4662-a9b0-9d6abcc26ff2","name":"Read legacy catalogue products (dummy data)","originalRequest":{"auth":{"type":"bearer","bearer":{"token":"{{MEDUSA_TOKEN}}"}},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"}],"url":"https://medusa.jellyfish.rest/searches/example-catalogue-quote"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"search\": {\n      \"ts\": \"2026-10-31T12:00:00.000Z\",\n      \"params\": {\n        \"reference\": \"example-catalogue-quote\",\n        \"energy\": \"electricity\",\n        \"mpxn\": \"0000000000000\",\n        \"usage\": 50000,\n        \"startDate\": \"2027-02-01\",\n        \"commission\": 0,\n        \"standingUplift\": 0\n      },\n      \"user\": \"example.user\",\n      \"api\": true\n    },\n    \"products\": [\n      {\n        \"id\": 101,\n        \"name\": \"Blue 12 Month\",\n        \"term\": 12,\n        \"startDate\": \"2027-02-01\",\n        \"endDate\": \"2028-01-31\",\n        \"energy\": \"electricity\",\n        \"fuel\": \"electricity\",\n        \"fixed\": true,\n        \"pricingMode\": \"bespoke\",\n        \"annualUsage\": 50000,\n        \"priceHold\": {\n          \"hours\": 24,\n          \"quotedAt\": \"2026-10-31T12:00:00.000Z\",\n          \"expiresAt\": \"2026-11-01T12:00:00.000Z\"\n        },\n        \"allOrDayUnitRate\": 28.5,\n        \"nightRate\": null,\n        \"eveningWeekendRate\": null,\n        \"standingCharge\": 70,\n        \"capacityRate\": null,\n        \"commissionIncluded\": true,\n        \"costs\": {\n          \"annualCost\": 14505.5,\n          \"monthlyCost\": 1208.79,\n          \"annualCommission\": 0,\n          \"monthlyCommission\": 0\n        }\n      }\n    ]\n  },\n  \"errors\": null\n}"}],"_postman_id":"cfd043e7-b267-42cb-a8ba-39c8237bdddb"},{"name":"/bulk-searches (catalogue format)","id":"4be811ec-1bdd-4302-ad58-1cec8368ae7e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{MEDUSA_TOKEN}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"reference\": \"example-catalogue-bulk-quote\",\n  \"data\": [\n    {\n      \"energy\": \"electricity\",\n      \"mpxn\": \"0000000000000\",\n      \"usage\": 50000,\n      \"commission\": 0,\n      \"standingUplift\": 0,\n      \"start\": \"01/02/2027\"\n    }\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://medusa.jellyfish.rest/bulk-searches","description":"<p>Historical bulk catalogue quoting payload. The reference identifies the saved search; data contains meter rows. Use the main Bulk Searches documentation for current period, hold and HH options.</p>\n","urlObject":{"protocol":"https","path":["bulk-searches"],"host":["medusa","jellyfish","rest"],"query":[],"variable":[]}},"response":[{"id":"d907781a-908a-4ea5-941b-07ab14b9bf24","name":"Save a legacy catalogue bulk quote (dummy data)","originalRequest":{"auth":{"type":"bearer","bearer":{"token":"{{MEDUSA_TOKEN}}"}},"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"reference\": \"example-catalogue-bulk-quote\",\n  \"data\": [\n    {\n      \"energy\": \"electricity\",\n      \"mpxn\": \"0000000000000\",\n      \"usage\": 50000,\n      \"commission\": 0,\n      \"standingUplift\": 0,\n      \"start\": \"01/02/2027\"\n    }\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://medusa.jellyfish.rest/bulk-searches"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"reference\": \"example-catalogue-bulk-quote\"\n  },\n  \"errors\": null\n}"}],"_postman_id":"4be811ec-1bdd-4302-ad58-1cec8368ae7e"},{"name":"/bulk-searches/:id (catalogue format)","id":"c1e5828f-c017-4567-80f9-c64f0f5bd0ee","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{MEDUSA_TOKEN}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"}],"url":"https://medusa.jellyfish.rest/bulk-searches/example-catalogue-bulk-quote","description":"<p>Retrieve the historical saved bulk catalogue search by reference. These legacy quotation formats are retained for existing integrations. Use the main Bulk Searches and Dynamic Contracts sections for current quoting and contracting.</p>\n","urlObject":{"protocol":"https","path":["bulk-searches","example-catalogue-bulk-quote"],"host":["medusa","jellyfish","rest"],"query":[],"variable":[]}},"response":[{"id":"24eee6a5-03df-4f33-b5aa-2122d318946b","name":"Read legacy catalogue meter products (dummy data)","originalRequest":{"auth":{"type":"bearer","bearer":{"token":"{{MEDUSA_TOKEN}}"}},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"}],"url":"https://medusa.jellyfish.rest/bulk-searches/example-catalogue-bulk-quote"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"ts\": \"2026-10-31T12:00:00.000Z\",\n    \"params\": {\n      \"reference\": \"example-catalogue-bulk-quote\",\n      \"data\": [\n        {\n          \"energy\": \"electricity\",\n          \"mpxn\": \"0000000000000\",\n          \"usage\": 50000,\n          \"commission\": 0,\n          \"standingUplift\": 0,\n          \"start\": \"01/02/2027\",\n          \"products\": [\n            {\n              \"id\": 101,\n              \"name\": \"Blue 12 Month\",\n              \"term\": 12,\n              \"startDate\": \"2027-02-01\",\n              \"endDate\": \"2028-01-31\",\n              \"energy\": \"electricity\",\n              \"fuel\": \"electricity\",\n              \"fixed\": true,\n              \"pricingMode\": \"bespoke\",\n              \"annualUsage\": 50000,\n              \"priceHold\": {\n                \"hours\": 24,\n                \"quotedAt\": \"2026-10-31T12:00:00.000Z\",\n                \"expiresAt\": \"2026-11-01T12:00:00.000Z\"\n              },\n              \"allOrDayUnitRate\": 28.5,\n              \"nightRate\": null,\n              \"eveningWeekendRate\": null,\n              \"standingCharge\": 70,\n              \"capacityRate\": null,\n              \"commissionIncluded\": true,\n              \"costs\": {\n                \"annualCost\": 14505.5,\n                \"monthlyCost\": 1208.79,\n                \"annualCommission\": 0,\n                \"monthlyCommission\": 0\n              }\n            }\n          ]\n        }\n      ]\n    },\n    \"user\": \"example.user\",\n    \"api\": true\n  },\n  \"errors\": null\n}"}],"_postman_id":"c1e5828f-c017-4567-80f9-c64f0f5bd0ee"}],"id":"ce98e28c-f0a4-4850-9b9a-84c3db329c45","description":"<p>Historical catalogue quotation formats, retained for existing integrations. Use the main Searches and Bulk Searches sections for current quoting. Catalogue product IDs belong to the legacy contract flow; current Dynamic Contracts use the opaque offer IDs returned by current searches. All examples here are synthetic.</p>\n","_postman_id":"ce98e28c-f0a4-4850-9b9a-84c3db329c45"}],"id":"a63a5130-7cdf-48ba-a952-1ba3336d7175","description":"<p>Previous catalogue quoting and contract flows, retained for existing integrations. Use Searches, Bulk Searches and Dynamic Contracts for current integrations. Legacy requests and examples are grouped here so the main reference describes the current API.</p>\n","_postman_id":"a63a5130-7cdf-48ba-a952-1ba3336d7175"},{"name":"Payouts","item":[{"name":"/payouts","id":"38499cdc-248f-42dc-87ce-b635309be9dd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{MEDUSA_TOKEN}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"}],"url":"https://medusa.jellyfish.rest/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\": 6001,\n      \"period\": \"2026-10-01T00:00:00.000Z\",\n      \"amount\": 125,\n      \"invoiceUploaded\": false,\n      \"partnerId\": 1,\n      \"billCount\": 1,\n      \"stage\": \"Awaiting Invoice Upload\"\n    }\n  ],\n  \"errors\": null\n}\n</code></pre>\n","urlObject":{"protocol":"https","path":["payouts"],"host":["medusa","jellyfish","rest"],"query":[],"variable":[]}},"response":[{"id":"1e1f592b-d678-452d-b3d5-eab392fbd637","name":"List partner commission payouts (dummy data)","originalRequest":{"auth":{"type":"bearer","bearer":{"token":"{{MEDUSA_TOKEN}}"}},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"}],"url":"https://medusa.jellyfish.rest/payouts"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": [\n    {\n      \"id\": 6001,\n      \"period\": \"2026-10-01T00:00:00.000Z\",\n      \"amount\": 125,\n      \"invoiceUploaded\": false,\n      \"partnerId\": 1,\n      \"billCount\": 1,\n      \"stage\": \"Awaiting Invoice Upload\"\n    }\n  ],\n  \"errors\": null\n}"}],"_postman_id":"38499cdc-248f-42dc-87ce-b635309be9dd"},{"name":"/payouts/:id","id":"b77aae30-8996-467b-893e-4ad1d3fd71c8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{MEDUSA_TOKEN}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"}],"url":"https://medusa.jellyfish.rest/payouts/6001","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<p>  ```json</p>\n</li>\n</ul>\n<p>{\n  \"success\": true,\n  \"data\": {\n    \"id\": 6001,\n    \"period\": \"2026-10-01T00:00:00.000Z\",\n    \"amount\": 125,\n    \"invoiceUploaded\": false,\n    \"partnerId\": 1,\n    \"billCount\": 1,\n    \"stage\": \"Awaiting Invoice Upload\",\n    \"backing\": [\n      {\n        \"id\": 5001,\n        \"start\": \"2026-09-01\",\n        \"end\": \"2026-09-30\",\n        \"account\": \"EXAMPLE-ACCOUNT-001\",\n        \"name\": \"Example Energy Customer Ltd\",\n        \"mpxn\": \"0000000000000\",\n        \"cancelled\": false\n      }\n    ]\n  },\n  \"errors\": null\n}\n```</p>\n","urlObject":{"protocol":"https","path":["payouts","6001"],"host":["medusa","jellyfish","rest"],"query":[],"variable":[]}},"response":[{"id":"af128cce-67fc-4857-ab36-e06f6ae881e9","name":"Read a payout and its bill backing (dummy data)","originalRequest":{"auth":{"type":"bearer","bearer":{"token":"{{MEDUSA_TOKEN}}"}},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"}],"url":"https://medusa.jellyfish.rest/payouts/6001"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 6001,\n    \"period\": \"2026-10-01T00:00:00.000Z\",\n    \"amount\": 125,\n    \"invoiceUploaded\": false,\n    \"partnerId\": 1,\n    \"billCount\": 1,\n    \"stage\": \"Awaiting Invoice Upload\",\n    \"backing\": [\n      {\n        \"id\": 5001,\n        \"start\": \"2026-09-01\",\n        \"end\": \"2026-09-30\",\n        \"account\": \"EXAMPLE-ACCOUNT-001\",\n        \"name\": \"Example Energy Customer Ltd\",\n        \"mpxn\": \"0000000000000\",\n        \"cancelled\": false\n      }\n    ]\n  },\n  \"errors\": null\n}"}],"_postman_id":"b77aae30-8996-467b-893e-4ad1d3fd71c8"},{"name":"/payouts/on-hold","id":"3473675a-e205-4987-a2fd-12ed8225b672","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{MEDUSA_TOKEN}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"}],"url":"https://medusa.jellyfish.rest/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\": \"EXAMPLE-ACCOUNT-001\",\n      \"name\": \"Example Energy Customer Ltd\",\n      \"mpxn\": \"0000000000000\",\n      \"commission\": 25,\n      \"haltedDueToPayment\": false,\n      \"haltedDueToReads\": true\n    }\n  ],\n  \"errors\": null\n}\n</code></pre>\n","urlObject":{"protocol":"https","path":["payouts","on-hold"],"host":["medusa","jellyfish","rest"],"query":[],"variable":[]}},"response":[{"id":"3c03d66c-61d7-4d28-94df-adf2f0d29e2e","name":"Read commissions currently on hold (dummy data)","originalRequest":{"auth":{"type":"bearer","bearer":{"token":"{{MEDUSA_TOKEN}}"}},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"}],"url":"https://medusa.jellyfish.rest/payouts/on-hold"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": [\n    {\n      \"account\": \"EXAMPLE-ACCOUNT-001\",\n      \"name\": \"Example Energy Customer Ltd\",\n      \"mpxn\": \"0000000000000\",\n      \"commission\": 25,\n      \"haltedDueToPayment\": false,\n      \"haltedDueToReads\": true\n    }\n  ],\n  \"errors\": null\n}"}],"_postman_id":"3473675a-e205-4987-a2fd-12ed8225b672"}],"id":"c35ef208-17d7-4a89-863f-640b98128a3f","description":"<p>View and analyse commission payout statements from Jellyfish Energy.</p>\n","_postman_id":"c35ef208-17d7-4a89-863f-640b98128a3f"},{"name":"Reports","item":[{"name":"/reports/renewals","id":"60751f82-32e6-4b82-ac82-42f48374fd1e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{MEDUSA_TOKEN}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"}],"url":"https://medusa.jellyfish.rest/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":{"protocol":"https","path":["reports","renewals"],"host":["medusa","jellyfish","rest"],"query":[],"variable":[]}},"response":[{"id":"60350507-ec47-4201-807b-94ec01a84f73","name":"Read upcoming customer renewals (dummy data)","originalRequest":{"auth":{"type":"bearer","bearer":{"token":"{{MEDUSA_TOKEN}}"}},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"}],"url":"https://medusa.jellyfish.rest/reports/renewals"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": [\n    {\n      \"account\": \"EXAMPLE-ACCOUNT-001\",\n      \"name\": \"Example Energy Customer Ltd\",\n      \"stage\": \"N\",\n      \"date\": \"2027-01-31T00:00:00.000Z\"\n    }\n  ],\n  \"errors\": null\n}"}],"_postman_id":"60751f82-32e6-4b82-ac82-42f48374fd1e"},{"name":"/reports/objections","id":"61df5878-0662-4237-b424-4f8396e01de6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{MEDUSA_TOKEN}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"}],"url":"https://medusa.jellyfish.rest/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":{"protocol":"https","path":["reports","objections"],"host":["medusa","jellyfish","rest"],"query":[],"variable":[]}},"response":[{"id":"e12d345a-012c-4a98-a9d6-b34e9daa77e6","name":"Read a recent supply objection (dummy data)","originalRequest":{"auth":{"type":"bearer","bearer":{"token":"{{MEDUSA_TOKEN}}"}},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"}],"url":"https://medusa.jellyfish.rest/reports/objections"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": [\n    {\n      \"account\": \"EXAMPLE-ACCOUNT-001\",\n      \"name\": \"Example Energy Customer Ltd\",\n      \"mpxn\": \"0000000000000\",\n      \"proposedStart\": \"01/02/2027\",\n      \"status\": \"Rejected\"\n    }\n  ],\n  \"errors\": null\n}"}],"_postman_id":"61df5878-0662-4237-b424-4f8396e01de6"},{"name":"/reports/client-ratings","id":"b54f6cb0-1eda-4a30-bec9-524acdcd5ae7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{MEDUSA_TOKEN}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"}],"url":"https://medusa.jellyfish.rest/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":{"protocol":"https","path":["reports","client-ratings"],"host":["medusa","jellyfish","rest"],"query":[],"variable":[]}},"response":[{"id":"148d420f-f08f-4dbf-ab55-eb9453f4dd27","name":"Read customer ratings and weights (dummy data)","originalRequest":{"auth":{"type":"bearer","bearer":{"token":"{{MEDUSA_TOKEN}}"}},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer {{MEDUSA_TOKEN}}"}],"url":"https://medusa.jellyfish.rest/reports/client-ratings"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": [\n    {\n      \"account\": \"EXAMPLE-ACCOUNT-001\",\n      \"rating\": 3,\n      \"weight\": 1\n    }\n  ],\n  \"errors\": null\n}"}],"_postman_id":"b54f6cb0-1eda-4a30-bec9-524acdcd5ae7"}],"id":"f05c2629-40eb-4494-9a79-52522c3b4758","description":"<p>View pre-made reports via API.</p>\n","_postman_id":"f05c2629-40eb-4494-9a79-52522c3b4758"}],"variable":[{"key":"SEARCH_REFERENCE","value":"example-search"},{"key":"BULK_SEARCH_REFERENCE","value":"example-bulk-search"},{"key":"MPXN","value":""},{"key":"MPRN","value":""},{"key":"SEARCH_PRODUCT_ID","value":""},{"key":"DYNAMIC_CONTRACT_ID","value":""},{"key":"CONTRACT_REFERENCE","value":"example-contract"},{"key":"LOA_PDF_BASE64","value":""},{"key":"SIGNED_PDF_BASE64","value":""},{"key":"PRICING_REVISION","value":""}]}