Skip to content

Get prepay products

Returns all the prepay products.

Authentication not required

products does not require authentication.

Arguments

  • prepay: Boolean

Returns

query getPrepayProductsUsingPrepayFlag($prepay:Boolean!){
    products(prepay:$prepay){
        id
        availableFrom
        availableTo
        availabilityStatus
        autoTopUpDefaultAmount
        autoTopUpMinimumAmount
        basedOnTimeOfUse
        code
        description
        displayName
        fullName
        generationCredit
        isWholesale
        marketName
        notes
        prepay
        term
        termsContractType
    }
}

Example

query getProductsUsingPrepayFlag($prepay:Boolean!){
    products(prepay:$prepay){
        id
        availableFrom
        availableTo
        availabilityStatus
        autoTopUpDefaultAmount
        autoTopUpMinimumAmount
        basedOnTimeOfUse
        code
        description
        displayName
        fullName
        generationCredit
        isWholesale
        marketName
        notes
        prepay
        term
        termsContractType
    }
}
1
2
3
4
# Input Variables
{
  "prepay":true
}
import pprint

import requests

# API_URL = "https://api.oeus-kraken.energy/v1/graphql/" # prod
API_URL = "https://api.oeus-kraken.systems/v1/graphql/" # test
JWT_TOKEN = "PLACE_JWT_TOKEN_HERE"
HEADERS = {
    "Authorization": f"JWT {JWT_TOKEN}"
}

query = """
   query getProductsUsingPrepayFlag($prepay:Boolean){
     products(prepay:$prepay){
        id
        availableFrom
        availableTo
        availabilityStatus
        autoTopUpDefaultAmount
        autoTopUpMinimumAmount
        basedOnTimeOfUse
        code
        description
        displayName
        fullName
        generationCredit
        isWholesale
        marketName
        notes
        prepay
        term
        termsContractType
    }
   }
"""

VARIABLES =     {
  "prepay": True
}

session = requests.Session()
session.headers.update(HEADERS)
response = session.post(
    url=API_URL,
    json={"query": QUERY, "variables": VARIABLES}
)
pprint.pprint(response.json())
const axios = require("axios")

// const API_URL = "https://api.oeus-kraken.energy/v1/graphql/" // Prod
const apiUrl = "https://api.oeus-kraken.systems/v1/graphql/" // Test
let headers = {'content-type': 'application/json'}

const query = `
    query getProductsUsingPrepayFlag($prepay:Boolean!){
        products(prepay:$prepay){
            id
            availableFrom
            availableTo
            availabilityStatus
            autoTopUpDefaultAmount
            autoTopUpMinimumAmount
            basedOnTimeOfUse
            code
            description
            displayName
            fullName
            generationCredit
            isWholesale
            marketName
            notes
            prepay
            term
            termsContractType
        }
    }
`
const variables = {
    "prepay":true
}

axios({
  url: apiUrl,
  method: "post",
  data: {
    query: query,
    variables: variables,
  },
  headers: headers,
}).then((response) => {
  console.log(JSON.stringify(response.data, null, 4));
});
import axios from 'axios';

// const API_URL = "https://api.oeus-kraken.energy/v1/graphql/" // Prod
export const apiUrl = "https://api.oeus-kraken.systems/v1/graphql/" // Test
let headers = {'content-type': 'application/json'}

export const query = `
query getProductsUsingPrepayFlag($prepay:Boolean!){
    products(prepay:$prepay){
        id
        availableFrom
        availableTo
        availabilityStatus
        autoTopUpDefaultAmount
        autoTopUpMinimumAmount
        basedOnTimeOfUse
        code
        description
        displayName
        fullName
        generationCredit
        isWholesale
        marketName
        notes
        prepay
        term
        termsContractType
    }
}
`

export const variables = {
    "prepay": true
}

axios({
  url: apiUrl,
  method: "post",
  data: {
    query: query,
    variables: variables,
  },
  headers: headers,
}).then((response) => {
  console.log(JSON.stringify(response.data, null, 4));
});
{
"data": {
    "products": [
        {
            "id": "2",
            "availableFrom": "2021-03-24T00:00:00-05:00",
            "availableTo": null,
            "availabilityStatus": "PUBLIC",
            "autoTopUpDefaultAmount": 7500,
            "autoTopUpMinimumAmount": 5000,
            "basedOnTimeOfUse": false,
            "code": "ERCOT-PREPAY-WHOLESALE-30-2021",
            "description": "Wholesale rate for 30 days",
            "displayName": "30-Day Wholesale Rate",
            "fullName": "30-day Pre-Pay Wholesale Rate",
            "generationCredit": true,
            "isWholesale": true,
            "marketName": "USA_ERCOT_ELECTRICITY",
            "notes": "Initial load of products for Texas - wholesale rate",
            "prepay": true,
            "term": 30,
            "termsContractType": ""
        },
        {
            "id": "39",
            "availableFrom": "2021-12-10T00:00:00-06:00",
            "availableTo": null,
            "availabilityStatus": "PUBLIC",
            "autoTopUpDefaultAmount": 7500,
            "autoTopUpMinimumAmount": 5000,
            "basedOnTimeOfUse": false,
            "code": "OCTOGO-12M",
            "description": "Prepaid 12 Month Fixed Rate with no exit fees.",
            "displayName": "OctoGo 12M",
            "fullName": "OctoGo 12M",
            "generationCredit": true,
            "isWholesale": false,
            "marketName": "USA_ERCOT_ELECTRICITY",
            "notes": "",
            "prepay": true,
            "term": 12,
            "termsContractType": ""
        },
        {
            "id": "32",
            "availableFrom": "2021-11-16T00:00:00-06:00",
            "availableTo": null,
            "availabilityStatus": "PUBLIC",
            "autoTopUpDefaultAmount": 7500,
            "autoTopUpMinimumAmount": 5000,
            "basedOnTimeOfUse": false,
            "code": "OCTOGO-30-DAY-FIXED",
            "description": "30 Day Fixed Rate",
            "displayName": "OctoGo 30",
            "fullName": "OctoGo 30",
            "generationCredit": true,
            "isWholesale": false,
            "marketName": "USA_ERCOT_ELECTRICITY",
            "notes": "",
            "prepay": true,
            "term": 1,
            "termsContractType": ""
        },
        {
            "id": "33",
            "availableFrom": "2021-11-16T00:00:00-06:00",
            "availableTo": null,
            "availabilityStatus": "PUBLIC",
            "autoTopUpDefaultAmount": 7500,
            "autoTopUpMinimumAmount": 5000,
            "basedOnTimeOfUse": false,
            "code": "OCTOGO-90-DAY-FIXED",
            "description": "90 Day Fixed Rate",
            "displayName": "OctoGo 90",
            "fullName": "OctoGo 90",
            "generationCredit": true,
            "isWholesale": false,
            "marketName": "USA_ERCOT_ELECTRICITY",
            "notes": "",
            "prepay": true,
            "term": 1,
            "termsContractType": ""
        },
        {
            "id": "34",
            "availableFrom": "2021-11-16T00:00:00-06:00",
            "availableTo": null,
            "availabilityStatus": "PUBLIC",
            "autoTopUpDefaultAmount": 7500,
            "autoTopUpMinimumAmount": 5000,
            "basedOnTimeOfUse": false,
            "code": "OCTOGO-MTM-FIXED",
            "description": "Month-to-month fixed rate",
            "displayName": "OctoGo MTM",
            "fullName": "OctoGo MTM",
            "generationCredit": true,
            "isWholesale": false,
            "marketName": "USA_ERCOT_ELECTRICITY",
            "notes": "",
            "prepay": true,
            "term": 1,
            "termsContractType": ""
        }
        ]
    }
}
Back to top