Skip to content

Legal Documents

Returns the following legal documents in both English and Spanish:

  • YRAC - Your Rights as a Customer

  • TOS - Terms of Service

  • PDS - Prepaid Disclosure Statement

  • TOU - Terms of Use

Authentication not required

getLegalDocuments does not require authentication.

Arguments

Returns

Example

query getLegalDocuments($language:LegalDocumentLanguageOption!){
    legalDocuments(language:$language){
        prepaidDisclosureStatement {
            name
            fullName
            language
            url
        }
        termsOfService {
            name
            fullName
            language
            url
        }
        termsOfUse {
            name
            fullName
            language
            url
        }
        yourRightsAsACustomer {
            name
            fullName
            language
            url
        }
    }
}
import pprint

import requests

# API_URL = "https://api.oeus-kraken.energy/v1/graphql/" # Prod
API_URL = "https://api.oeus-kraken.systems/v1/graphql/" # Test
HEADERS = {}

QUERY = """
    query getLegalDocuments($language:LegalDocumentLanguageOption!){
        legalDocuments(language:$language){
            prepaidDisclosureStatement {
                name
                fullName
                language
                url
            }
            termsOfService {
                name
                fullName
                language
                url
            }
            termsOfUse {
                name
                fullName
                language
                url
            }
            yourRightsAsACustomer {
                name
                fullName
                language
                url
            }
        }
    }
"""
VARIABLES = {"language":"ENGLISH"}

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 getLegalDocuments($language:LegalDocumentLanguageOption!){
        legalDocuments(language:$language){
            prepaidDisclosureStatement {
                name
                fullName
                language
                url
            }
            termsOfService {
                name
                fullName
                language
                url
            }
            termsOfUse {
                name
                fullName
                language
                url
            }
            yourRightsAsACustomer {
                name
                fullName
                language
                url
            }
        }
    }
`
const variables = {"language":"ENGLISH"}

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 getLegalDocuments($language:LegalDocumentLanguageOption!){
        legalDocuments(language:$language){
            prepaidDisclosureStatement {
                name
                fullName
                language
                url
            }
            termsOfService {
                name
                fullName
                language
                url
            }
            termsOfUse {
                name
                fullName
                language
                url
            }
            yourRightsAsACustomer {
                name
                fullName
                language
                url
            }
        }
    }
`
export const variables = {"language":"ENGLISH"}

axios({
  url: apiUrl,
  method: "post",
  data: {
    query: query,
    variables: variables,
  },
  headers: headers,
}).then((response) => {
  console.log(JSON.stringify(response.data, null, 4));
});
{
    "data": {
        "legalDocuments": {
        "prepaidDisclosureStatement": {
            "name": "PDS",
            "fullName": "Prepaid Disclosure Statement - en",
            "language": "en",
            "url": "https://octopusenergy.com/documents/pds-en.pdf"
        },
        "termsOfService": {
            "name": "TOS",
            "fullName": "Terms of Service - en",
            "language": "en",
            "url": "https://octopusenergy.com/documents/tos-en.pdf"
        },
        "termsOfUse": {
            "name": "TOU",
            "fullName": "Terms of Service - en",
            "language": "en",
            "url": "https://octopusenergy.com/documents/tou-en.pdf"
        },
        "yourRightsAsACustomer": {
            "name": "YRAC",
            "fullName": "Your Rights as a Customer - en",
            "language": "en",
            "url": "https://octopusenergy.com/documents/yrac-en.pdf"
        }
        }
    }
}
Back to top