Skip to main content

Queries

In this section

About Queries

Every GraphQL schema has a root type for both queries and mutations. The query type defines GraphQL operations that retrieve data from the server.

The example data in the variables and responses below are autogenerated values designed to resemble real inputs. They do not represent actual customer data, and in some cases may require additional validation.

API Site

account

Type: AccountType

URL: https://api.oefr-kraken.energy/v1/graphql/

Get details about an account.

The possible errors that can be raised are:

Arguments

Name Description

accountNumber (String!)

Query

query Account($accountNumber: String!) {
  account(accountNumber: $accountNumber) {
    accountType
    activeHardshipAgreements {
      ...HardshipAgreementTypeFragment
    }
    activeReferralSchemes {
      ...ReferralSchemeTypesFragment
    }
    address {
      ...RichAddressTypeFragment
    }
    agreements {
      ...AgreementConnectionTypeConnectionFragment
    }
    annualStatements {
      ...AnnualStatementConnectionTypeConnectionFragment
    }
    applications {
      ...AccountApplicationConnectionTypeConnectionFragment
    }
    assistanceAgreements {
      ...AssistanceAgreementTypeFragment
    }
    balance
    bill {
      ...BillInterfaceFragment
    }
    billingAddress
    billingAddressLine1
    billingAddressLine2
    billingAddressLine3
    billingAddressLine4
    billingAddressLine5
    billingAddressPostcode
    billingCountryCode
    billingDeliveryPointIdentifier
    billingEmail
    billingName
    billingOptions {
      ...BillingOptionsTypeFragment
    }
    billingSubName
    bills {
      ...BillConnectionTypeConnectionFragment
    }
    brand
    business {
      ...BusinessTypeFragment
    }
    campaigns {
      ...AccountCampaignTypeFragment
    }
    canModifyPayments {
      ...CanModifyPaymentsTypeFragment
    }
    canRequestRefund
    commsDeliveryPreference
    consents {
      ...ConsentTypeFragment
    }
    contributionAgreements {
      ...ContributionAgreementTypeFragment
    }
    createdAt
    creditStorage {
      ...CreditStorageFragment
    }
    debtCollectionProceedings {
      ...DebtCollectionProceedingTypeFragment
    }
    directDebitInstructions {
      ...DirectDebitInstructionConnectionTypeConnectionFragment
    }
    documentAccessibility
    energyChequeCertificates {
      ...EnergyChequeCertificateFragment
    }
    energyCheques {
      ...EnergyChequeFragment
    }
    events {
      ...AccountEventConnectionTypeConnectionFragment
    }
    fileAttachments {
      ...AccountFileAttachmentFragment
    }
    fraPotLedger {
      ...SupplementaryLedgerTypeFragment
    }
    id
    isInHardship
    ledgers {
      ...LedgerTypeFragment
    }
    marketSupplyAgreements {
      ...AgreementConnectionFragment
    }
    maximumRefund {
      ...MaximumRefundTypeFragment
    }
    metadata {
      ...MetadataFragment
    }
    nextPaymentOrRepayment {
      ...FraPaymentsInterfaceFragment
    }
    notes {
      ...AccountNoteTypeFragment
    }
    number
    overdueBalance
    paginatedFileAttachments {
      ...AccountFileAttachmentConnectionTypeConnectionFragment
    }
    paginatedPaymentForecast {
      ...PaymentForecastConnectionTypeConnectionFragment
    }
    paymentMethods {
      ...PaymentInstructionConnectionTypeConnectionFragment
    }
    paymentPlans {
      ...PaymentPlanConnectionTypeConnectionFragment
    }
    paymentSchedules {
      ...PaymentScheduleConnectionTypeConnectionFragment
    }
    payments {
      ...AccountPaymentConnectionTypeConnectionFragment
    }
    portfolio {
      ...PortfolioTypeFragment
    }
    preferredLanguageForComms
    properties {
      ...PropertyTypeFragment
    }
    provisionalTransactions {
      ...ProvisionalTransactionConnectionTypeConnectionFragment
    }
    references {
      ...AccountReferenceTypeFragment
    }
    referrals {
      ...ReferralConnectionTypeConnectionFragment
    }
    referralsCreated
    reminders {
      ...AccountReminderConnectionTypeConnectionFragment
    }
    repayments {
      ...AccountRepaymentConnectionTypeConnectionFragment
    }
    requestRefundEligibility {
      ...RequestRefundEligibilityTypeFragment
    }
    rewards {
      ...RewardTypeFragment
    }
    splitBillingAddress
    status
    supplyContracts {
      ...SupplyContractConnectionTypeConnectionFragment
    }
    transactions {
      ...TransactionConnectionTypeConnectionFragment
    }
    urn
    users {
      ...AccountUserTypeFragment
    }
  }
}

Variables

{
  "accountNumber": "A-37F421BB"
}

Response

{
  "data": {
    "account": {
      "accountType": "BUSINESS",
      "activeHardshipAgreements": [HardshipAgreementType],
      "activeReferralSchemes": ReferralSchemeTypes,
      "address": RichAddressType,
      "agreements": AgreementConnectionTypeConnection,
      "annualStatements": AnnualStatementConnectionTypeConnection,
      "applications": AccountApplicationConnectionTypeConnection,
      "assistanceAgreements": [AssistanceAgreementType],
      "balance": 63,
      "bill": BillInterface,
      "billingAddress": "environment-chance-administration-more-position",
      "billingAddressLine1": "song-game-attention-into-ago",
      "billingAddressLine2": "my-old-organization-police-deep",
      "billingAddressLine3": "room-heart-open-employee-state",
      "billingAddressLine4": "drug-apply-wind-perhaps-experience",
      "billingAddressLine5": "five-strategy-build-age-system",
      "billingAddressPostcode": "on-parent-play-million-hospital",
      "billingCountryCode": "serious-brother-eight-property-change",
      "billingDeliveryPointIdentifier": "51555752",
      "billingEmail": "magazine-middle-player-commercial-relationship",
      "billingName": "doctor-adult-bank-hundred-television",
      "billingOptions": BillingOptionsType,
      "billingSubName": "reach-its-oil-end-its",
      "bills": BillConnectionTypeConnection,
      "brand": "commercial-resource-he-black-box",
      "business": BusinessType,
      "campaigns": [AccountCampaignType],
      "canModifyPayments": CanModifyPaymentsType,
      "canRequestRefund": true,
      "commsDeliveryPreference": "EMAIL",
      "consents": ConsentType,
      "contributionAgreements": [ContributionAgreementType],
      "createdAt": "1975-07-23T10:24:41.702587+00:00",
      "creditStorage": CreditStorage,
      "debtCollectionProceedings": [DebtCollectionProceedingType],
      "directDebitInstructions": DirectDebitInstructionConnectionTypeConnection,
      "documentAccessibility": "LARGE_PRINT",
      "energyChequeCertificates": [EnergyChequeCertificate],
      "energyCheques": [EnergyCheque],
      "events": AccountEventConnectionTypeConnection,
      "fileAttachments": [AccountFileAttachment],
      "fraPotLedger": SupplementaryLedgerType,
      "id": "24116657",
      "isInHardship": true,
      "ledgers": [LedgerType],
      "marketSupplyAgreements": AgreementConnection,
      "maximumRefund": MaximumRefundType,
      "metadata": [Metadata],
      "nextPaymentOrRepayment": FraPaymentsInterface,
      "notes": [AccountNoteType],
      "number": "want-own-until-southern-lay",
      "overdueBalance": 97,
      "paginatedFileAttachments": AccountFileAttachmentConnectionTypeConnection,
      "paginatedPaymentForecast": PaymentForecastConnectionTypeConnection,
      "paymentMethods": PaymentInstructionConnectionTypeConnection,
      "paymentPlans": PaymentPlanConnectionTypeConnection,
      "paymentSchedules": PaymentScheduleConnectionTypeConnection,
      "payments": AccountPaymentConnectionTypeConnection,
      "portfolio": PortfolioType,
      "preferredLanguageForComms": "series-already-staff-first-clear",
      "properties": [PropertyType],
      "provisionalTransactions": ProvisionalTransactionConnectionTypeConnection,
      "references": [AccountReferenceType],
      "referrals": ReferralConnectionTypeConnection,
      "referralsCreated": 45,
      "reminders": AccountReminderConnectionTypeConnection,
      "repayments": AccountRepaymentConnectionTypeConnection,
      "requestRefundEligibility": RequestRefundEligibilityType,
      "rewards": [RewardType],
      "splitBillingAddress": ["act-coach-partner-enjoy-allow"],
      "status": "PENDING",
      "supplyContracts": SupplyContractConnectionTypeConnection,
      "transactions": TransactionConnectionTypeConnection,
      "urn": "pay-discover-expert-agency-live",
      "users": AccountUserType
    }
  }
}

accountChargeReasons

Type: [ChargeReasonType]

URL: https://api.oefr-kraken.energy/v1/graphql/

Available reasons for use in account charge mutations.

Query

query AccountChargeReasons {
  accountChargeReasons {
    code
    display
    group
    isDeprecated
    isHidden
    isTaxExempt
  }
}

Response

{
  "data": {
    "accountChargeReasons": [
      {
        "code": "answer-student-already-physical-big",
        "display": "place-Mr-piece-job-feel",
        "group": "save-somebody-however-officer-possible",
        "isDeprecated": true,
        "isHidden": true,
        "isTaxExempt": true
      }
    ]
  }
}

accountContract

Type: Contract

URL: https://api.oefr-kraken.energy/v1/graphql/

Get details about an account contract.

The possible errors that can be raised are:

Arguments

Name Description

accountNumber (String)

The account number to find the contract for.

identifier (String)

The identifier of the contract.

version (Int)

The version of the contract.

Query

query AccountContract(
  $accountNumber: String,
  $identifier: String,
  $version: Int
) {
  accountContract(
    accountNumber: $accountNumber,
    identifier: $identifier,
    version: $version
  ) {
    cancelledAt
    identifier
    lifecycle {
      ...ContractVersionFragment
    }
    notes {
      ...ContractNoteTypeFragment
    }
    party {
      ... on AccountType {
        ...AccountTypeFragment
      }
      ... on BusinessType {
        ...BusinessTypeFragment
      }
    }
    signedAt
    status
    subject {
      ...AccountTypeFragment
    }
    terms {
      ...TermInterfaceFragment
    }
    title
    validFrom
    validTo
  }
}

Variables

{
  "accountNumber": "A-0CEF2EF4",
  "identifier": "74978122",
  "version": 45
}

Response

{
  "data": {
    "accountContract": {
      "cancelledAt": "1993-09-10T19:49:22.807028+00:00",
      "identifier": "91417519",
      "lifecycle": ContractVersion,
      "notes": [ContractNoteType],
      "party": AccountType,
      "signedAt": "1979-04-01T07:39:13.170981+00:00",
      "status": "REVOKED",
      "subject": [AccountType],
      "terms": TermInterface,
      "title": "different-north-officer-cost-recently",
      "validFrom": "2014-08-18T12:55:10.377587+00:00",
      "validTo": "2003-04-18T11:05:20.733139+00:00"
    }
  }
}

accountCreditReasons

Type: [CreditReasonType]

URL: https://api.oefr-kraken.energy/v1/graphql/

Available reasons for use in account credit mutations.

Query

query AccountCreditReasons {
  accountCreditReasons {
    code
    display
    group
    isDeprecated
    isHidden
    isTaxExempt
  }
}

Response

{
  "data": {
    "accountCreditReasons": [
      {
        "code": "example-major-movement-drug-job",
        "display": "reduce-police-shake-clear-theory",
        "group": "season-reality-life-group-market",
        "isDeprecated": true,
        "isHidden": true,
        "isTaxExempt": true
      }
    ]
  }
}

accountIoEligibility

Type: AccountIoEligibility

URL: https://api.oefr-kraken.energy/v1/graphql/

Determines whether an account is eligible to register devices with SmartFlex.

Arguments

Name Description

accountNumber (String!)

Account number.

propertyId (Int)

            The property's id where the device will be registered to.
            Note: in future, eligibility checks will be dependent on the property id and
            it will be a required input.

Query

query AccountIoEligibility(
  $accountNumber: String!,
  $propertyId: Int
) {
  accountIoEligibility(
    accountNumber: $accountNumber,
    propertyId: $propertyId
  ) {
    isEligibleForIo
  }
}

Variables

{
  "accountNumber": "A-2817BD3C",
  "propertyId": 48271458
}

Response

{
  "data": {
    "accountIoEligibility": {
      "isEligibleForIo": true
    }
  }
}

accountReference

Type: [AccountReferenceType]

URL: https://api.oefr-kraken.energy/v1/graphql/

List of matching account references.

The possible errors that can be raised are:

Arguments

Name Description

value (String)

Filter account references by this value.

Query

query AccountReference($value: String) {
  accountReference(value: $value) {
    account {
      ...AccountTypeFragment
    }
    createdAt
    namespace
    updatedAt
    value
  }
}

Variables

{
  "value": "teach-perhaps-become-authority-over"
}

Response

{
  "data": {
    "accountReference": [
      {
        "account": AccountType,
        "createdAt": "2002-06-29T10:43:02.236576+00:00",
        "namespace": "laugh-customer-head-ten-number",
        "updatedAt": "1997-08-27T16:44:46.999762+00:00",
        "value": "sense-citizen-feel-brother-television"
      }
    ]
  }
}

accountUser

Type: AccountUserType

URL: https://api.oefr-kraken.energy/v1/graphql/

Retrieve an account user.

The possible errors that can be raised are:

Arguments

Name Description

email (String)

Email associated with an account user.

externalId (ID)

External ID associated with an account user.

number (ID)

Kraken number associated with an account user.

Query

query AccountUser(
  $email: String,
  $externalId: ID,
  $number: ID
) {
  accountUser(
    email: $email,
    externalId: $externalId,
    number: $number
  ) {
    accountUserRoles {
      ...AccountUserRoleTypeFragment
    }
    accounts {
      ...AccountInterfaceFragment
    }
    address {
      ...RichAddressTypeFragment
    }
    alternativePhoneNumbers
    businesses {
      ...BusinessConnectionTypeConnectionFragment
    }
    consents {
      ...ConsentTypeFragment
    }
    createdAt
    dateOfBirth
    details {
      ...AccountUserDetailTypeFragment
    }
    email
    familyName
    fullName
    givenName
    hasFamilyIssues
    id
    isActive
    isDeceased
    isInHardship
    label
    landline
    liveSecretKey
    mobile
    number
    paymentMethods {
      ...PaymentInstructionConnectionTypeConnectionFragment
    }
    permissions {
      ...AccountUserPermissionFragment
    }
    portfolioIds
    portfolioUserRoles {
      ...PortfolioUserRoleTypeFragment
    }
    portfolios {
      ...PortfolioConnectionTypeConnectionFragment
    }
    preferences {
      ...AccountUserCommsPreferencesFragment
    }
    preferredName
    pronouns
    specialCircumstances {
      ...SpecialCircumstancesTypeFragment
    }
    title
  }
}

Variables

{
  "email": "travel-nor-page-hear-culture",
  "externalId": "48922180",
  "number": "45384775"
}

Response

{
  "data": {
    "accountUser": {
      "accountUserRoles": [AccountUserRoleType],
      "accounts": AccountInterface,
      "address": RichAddressType,
      "alternativePhoneNumbers": ["Congress-rest-admit-on-not"],
      "businesses": BusinessConnectionTypeConnection,
      "consents": ConsentType,
      "createdAt": "2021-01-21T00:26:40.427845+00:00",
      "dateOfBirth": "1979-10-05",
      "details": [AccountUserDetailType],
      "email": "author-force-want-call-protect",
      "familyName": "Ortega",
      "fullName": "still-provide-hold-employee-manager",
      "givenName": "Brianna",
      "hasFamilyIssues": true,
      "id": "98927827",
      "isActive": true,
      "isDeceased": true,
      "isInHardship": true,
      "label": "couple-new-rich-mean-former",
      "landline": "throughout-within-role-case-ask",
      "liveSecretKey": "dog-protect-address-cover-section",
      "mobile": "ago-attention-wall-computer-wait",
      "number": "garden-story-town-part-rule",
      "paymentMethods": PaymentInstructionConnectionTypeConnection,
      "permissions": [AccountUserPermission],
      "portfolioIds": ["10546661"],
      "portfolioUserRoles": [PortfolioUserRoleType],
      "portfolios": PortfolioConnectionTypeConnection,
      "preferences": AccountUserCommsPreferences,
      "preferredName": "music-send-long-cost-although",
      "pronouns": "see-act-return-field-happen",
      "specialCircumstances": SpecialCircumstancesType,
      "title": "fine-moment-town-wear-trial"
    }
  }
}

accounts

Type: [AccountType]

URL: https://api.oefr-kraken.energy/v1/graphql/

Get details about multiple accounts.

The possible errors that can be raised are:

  • KT-CT-4184: Exactly one of phoneNumber or portfolioNumber must be provided.
  • KT-CT-1113: Disabled GraphQL field requested.

Arguments

Name Description

phoneNumber (String)

A phone number to find accounts associated with.

portfolioNumber (String)

A portfolio number to find accounts associated with.

Query

query Accounts(
  $phoneNumber: String,
  $portfolioNumber: String
) {
  accounts(
    phoneNumber: $phoneNumber,
    portfolioNumber: $portfolioNumber
  ) {
    accountType
    activeHardshipAgreements {
      ...HardshipAgreementTypeFragment
    }
    activeReferralSchemes {
      ...ReferralSchemeTypesFragment
    }
    address {
      ...RichAddressTypeFragment
    }
    agreements {
      ...AgreementConnectionTypeConnectionFragment
    }
    annualStatements {
      ...AnnualStatementConnectionTypeConnectionFragment
    }
    applications {
      ...AccountApplicationConnectionTypeConnectionFragment
    }
    assistanceAgreements {
      ...AssistanceAgreementTypeFragment
    }
    balance
    bill {
      ...BillInterfaceFragment
    }
    billingAddress
    billingAddressLine1
    billingAddressLine2
    billingAddressLine3
    billingAddressLine4
    billingAddressLine5
    billingAddressPostcode
    billingCountryCode
    billingDeliveryPointIdentifier
    billingEmail
    billingName
    billingOptions {
      ...BillingOptionsTypeFragment
    }
    billingSubName
    bills {
      ...BillConnectionTypeConnectionFragment
    }
    brand
    business {
      ...BusinessTypeFragment
    }
    campaigns {
      ...AccountCampaignTypeFragment
    }
    canModifyPayments {
      ...CanModifyPaymentsTypeFragment
    }
    canRequestRefund
    commsDeliveryPreference
    consents {
      ...ConsentTypeFragment
    }
    contributionAgreements {
      ...ContributionAgreementTypeFragment
    }
    createdAt
    creditStorage {
      ...CreditStorageFragment
    }
    debtCollectionProceedings {
      ...DebtCollectionProceedingTypeFragment
    }
    directDebitInstructions {
      ...DirectDebitInstructionConnectionTypeConnectionFragment
    }
    documentAccessibility
    energyChequeCertificates {
      ...EnergyChequeCertificateFragment
    }
    energyCheques {
      ...EnergyChequeFragment
    }
    events {
      ...AccountEventConnectionTypeConnectionFragment
    }
    fileAttachments {
      ...AccountFileAttachmentFragment
    }
    fraPotLedger {
      ...SupplementaryLedgerTypeFragment
    }
    id
    isInHardship
    ledgers {
      ...LedgerTypeFragment
    }
    marketSupplyAgreements {
      ...AgreementConnectionFragment
    }
    maximumRefund {
      ...MaximumRefundTypeFragment
    }
    metadata {
      ...MetadataFragment
    }
    nextPaymentOrRepayment {
      ...FraPaymentsInterfaceFragment
    }
    notes {
      ...AccountNoteTypeFragment
    }
    number
    overdueBalance
    paginatedFileAttachments {
      ...AccountFileAttachmentConnectionTypeConnectionFragment
    }
    paginatedPaymentForecast {
      ...PaymentForecastConnectionTypeConnectionFragment
    }
    paymentMethods {
      ...PaymentInstructionConnectionTypeConnectionFragment
    }
    paymentPlans {
      ...PaymentPlanConnectionTypeConnectionFragment
    }
    paymentSchedules {
      ...PaymentScheduleConnectionTypeConnectionFragment
    }
    payments {
      ...AccountPaymentConnectionTypeConnectionFragment
    }
    portfolio {
      ...PortfolioTypeFragment
    }
    preferredLanguageForComms
    properties {
      ...PropertyTypeFragment
    }
    provisionalTransactions {
      ...ProvisionalTransactionConnectionTypeConnectionFragment
    }
    references {
      ...AccountReferenceTypeFragment
    }
    referrals {
      ...ReferralConnectionTypeConnectionFragment
    }
    referralsCreated
    reminders {
      ...AccountReminderConnectionTypeConnectionFragment
    }
    repayments {
      ...AccountRepaymentConnectionTypeConnectionFragment
    }
    requestRefundEligibility {
      ...RequestRefundEligibilityTypeFragment
    }
    rewards {
      ...RewardTypeFragment
    }
    splitBillingAddress
    status
    supplyContracts {
      ...SupplyContractConnectionTypeConnectionFragment
    }
    transactions {
      ...TransactionConnectionTypeConnectionFragment
    }
    urn
    users {
      ...AccountUserTypeFragment
    }
  }
}

Variables

{
  "phoneNumber": "every-peace-mean-amount-public",
  "portfolioNumber": "P-9693C586"
}

Response

{
  "data": {
    "accounts": [
      {
        "accountType": "BUSINESS",
        "activeHardshipAgreements": [HardshipAgreementType],
        "activeReferralSchemes": ReferralSchemeTypes,
        "address": RichAddressType,
        "agreements": AgreementConnectionTypeConnection,
        "annualStatements": AnnualStatementConnectionTypeConnection,
        "applications": AccountApplicationConnectionTypeConnection,
        "assistanceAgreements": [AssistanceAgreementType],
        "balance": 66,
        "bill": BillInterface,
        "billingAddress": "coach-season-country-say-structure",
        "billingAddressLine1": "local-history-think-morning-establish",
        "billingAddressLine2": "common-pattern-address-question-explain",
        "billingAddressLine3": "image-very-soon-develop-our",
        "billingAddressLine4": "check-begin-bank-campaign-else",
        "billingAddressLine5": "treatment-effort-manager-art-total",
        "billingAddressPostcode": "fund-attorney-while-true-process",
        "billingCountryCode": "defense-place-agreement-night-why",
        "billingDeliveryPointIdentifier": "51317668",
        "billingEmail": "consumer-itself-hospital-door-call",
        "billingName": "Mrs-language-industry-condition-create",
        "billingOptions": BillingOptionsType,
        "billingSubName": "size-act-glass-computer-hand",
        "bills": BillConnectionTypeConnection,
        "brand": "consumer-ready-each-wall-fill",
        "business": BusinessType,
        "campaigns": [AccountCampaignType],
        "canModifyPayments": CanModifyPaymentsType,
        "canRequestRefund": true,
        "commsDeliveryPreference": "EMAIL",
        "consents": ConsentType,
        "contributionAgreements": [ContributionAgreementType],
        "createdAt": "1995-09-11T02:50:02.634464+00:00",
        "creditStorage": CreditStorage,
        "debtCollectionProceedings": [DebtCollectionProceedingType],
        "directDebitInstructions": DirectDebitInstructionConnectionTypeConnection,
        "documentAccessibility": "LARGE_PRINT",
        "energyChequeCertificates": [EnergyChequeCertificate],
        "energyCheques": [EnergyCheque],
        "events": AccountEventConnectionTypeConnection,
        "fileAttachments": [AccountFileAttachment],
        "fraPotLedger": SupplementaryLedgerType,
        "id": "81384916",
        "isInHardship": true,
        "ledgers": [LedgerType],
        "marketSupplyAgreements": AgreementConnection,
        "maximumRefund": MaximumRefundType,
        "metadata": [Metadata],
        "nextPaymentOrRepayment": FraPaymentsInterface,
        "notes": [AccountNoteType],
        "number": "increase-his-space-explain-each",
        "overdueBalance": 51,
        "paginatedFileAttachments": AccountFileAttachmentConnectionTypeConnection,
        "paginatedPaymentForecast": PaymentForecastConnectionTypeConnection,
        "paymentMethods": PaymentInstructionConnectionTypeConnection,
        "paymentPlans": PaymentPlanConnectionTypeConnection,
        "paymentSchedules": PaymentScheduleConnectionTypeConnection,
        "payments": AccountPaymentConnectionTypeConnection,
        "portfolio": PortfolioType,
        "preferredLanguageForComms": "loss-base-manage-receive-together",
        "properties": [PropertyType],
        "provisionalTransactions": ProvisionalTransactionConnectionTypeConnection,
        "references": [AccountReferenceType],
        "referrals": ReferralConnectionTypeConnection,
        "referralsCreated": 83,
        "reminders": AccountReminderConnectionTypeConnection,
        "repayments": AccountRepaymentConnectionTypeConnection,
        "requestRefundEligibility": RequestRefundEligibilityType,
        "rewards": [RewardType],
        "splitBillingAddress": ["various-or-once-different-after"],
        "status": "PENDING",
        "supplyContracts": SupplyContractConnectionTypeConnection,
        "transactions": TransactionConnectionTypeConnection,
        "urn": "every-hand-assume-blue-work",
        "users": AccountUserType
      }
    ]
  }
}

accountsSearch

Type: [AccountSearchItemType]

URL: https://api.oefr-kraken.energy/v1/graphql/

Search for account that are already in Kraken and match the search terms.

The possible errors that can be raised are:

  • KT-CT-4183: One of more search terms failed validations.
  • KT-CT-1113: Disabled GraphQL field requested.

Arguments

Name Description

maxResults (Int)

The maximum number of results to return.

searchTerms (AccountSearchInputType)

Search operators.

Query

query AccountsSearch(
  $maxResults: Int,
  $searchTerms: AccountSearchInputType
) {
  accountsSearch(
    maxResults: $maxResults,
    searchTerms: $searchTerms
  ) {
    account {
      ...AccountTypeFragment
    }
    score
  }
}

Variables

{
  "maxResults": 1,
  "searchTerms": AccountSearchInputType
}

Response

{
  "data": {
    "accountsSearch": [
      {
        "account": AccountType,
        "score": "1.0"
      }
    ]
  }
}

activationProcesses

Type: ActivationProcessesConnectionTypeConnection

URL: https://api.oefr-kraken.energy/v1/graphql/

List of activation processes linked an account number or a quote code. If a quoteCode is specified, the accountNumber will be ignored.

Arguments

Name Description

accountNumber (String)

The account number related to the activation processes. This parameter will be ignored if a quoteCode is also provided.

after (String)

before (String)

first (Int)

last (Int)

quoteCode (UUID)

The quote code related to the activation processes.

statuses ([ActivationProcessStatus])

Allowed statuses for returned activation processes. An empty list returns all processes.

Query

query ActivationProcesses(
  $accountNumber: String,
  $after: String,
  $before: String,
  $first: Int,
  $last: Int,
  $quoteCode: UUID,
  $statuses: [ActivationProcessStatus]
) {
  activationProcesses(
    accountNumber: $accountNumber,
    after: $after,
    before: $before,
    first: $first,
    last: $last,
    quoteCode: $quoteCode,
    statuses: $statuses
  ) {
    edgeCount
    edges {
      ...ActivationProcessesConnectionTypeEdgeFragment
    }
    pageInfo {
      ...PageInfoFragment
    }
    totalCount
  }
}

Variables

{
  "accountNumber": "A-C2B00499",
  "after": "YXJyYXljb25uZWN0aW9uOjEw=",
  "before": "YXJyYXljb25uZWN0aW9uOjEw=",
  "first": 10,
  "last": 10,
  "quoteCode": "7c30cc8f-9edc-4da5-bf78-3253f7311e87",
  "statuses": "NEW"
}

Response

{
  "data": {
    "activationProcesses": {
      "edgeCount": 23,
      "edges": ActivationProcessesConnectionTypeEdge,
      "pageInfo": PageInfo,
      "totalCount": 19
    }
  }
}

activeAffiliateReferralScheme

Type: ReferralSchemeType

URL: https://api.oefr-kraken.energy/v1/graphql/

Return the current active referral reward scheme of a given affiliate organisation, if any exists.

Arguments

Name Description

accountType (ReferralSchemeAccountTypeOptions)

The account type for which to get the referral scheme.

subdomain (String!)

The affiliate link subdomain.

Query

query ActiveAffiliateReferralScheme(
  $accountType: ReferralSchemeAccountTypeOptions,
  $subdomain: String!
) {
  activeAffiliateReferralScheme(
    accountType: $accountType,
    subdomain: $subdomain
  ) {
    canBeReferred
    code
    combinedRewardAmount
    isUsageAtCapacity
    loyaltyPointsBonus
    maxRecurrence
    referralDisplayUrl
    referralUrl
    referredRewardAmount
    referrerGivenName
    referrerRewardAmount
    schemeType
  }
}

Variables

{
  "accountType": "DOMESTIC",
  "subdomain": "range-sell-official-example-smile"
}

Response

{
  "data": {
    "activeAffiliateReferralScheme": {
      "canBeReferred": true,
      "code": "stock-window-establish-employee-participant",
      "combinedRewardAmount": 27,
      "isUsageAtCapacity": true,
      "loyaltyPointsBonus": 78,
      "maxRecurrence": 96,
      "referralDisplayUrl": "director-public-tough-career-prevent",
      "referralUrl": "summer-understand-month-environmental-real",
      "referredRewardAmount": 88,
      "referrerGivenName": "Kathryn",
      "referrerRewardAmount": 11,
      "schemeType": "center-right-discuss-meeting-task"
    }
  }
}

activeDomesticSignupRewardScheme

Type: ReferralSchemeType

URL: https://api.oefr-kraken.energy/v1/graphql/

Return the current active signup referral reward scheme with the given code, if any exists.

Query

query ActiveDomesticSignupRewardScheme {
  activeDomesticSignupRewardScheme {
    canBeReferred
    code
    combinedRewardAmount
    isUsageAtCapacity
    loyaltyPointsBonus
    maxRecurrence
    referralDisplayUrl
    referralUrl
    referredRewardAmount
    referrerGivenName
    referrerRewardAmount
    schemeType
  }
}

Response

{
  "data": {
    "activeDomesticSignupRewardScheme": {
      "canBeReferred": true,
      "code": "identify-rate-fly-view-partner",
      "combinedRewardAmount": 100,
      "isUsageAtCapacity": true,
      "loyaltyPointsBonus": 40,
      "maxRecurrence": 50,
      "referralDisplayUrl": "single-born-listen-later-evidence",
      "referralUrl": "above-same-current-despite-study",
      "referredRewardAmount": 34,
      "referrerGivenName": "Jeffrey",
      "referrerRewardAmount": 28,
      "schemeType": "why-hot-health-technology-your"
    }
  }
}

activeSalesChannels

Type: [SalesChannelType]

URL: https://api.oefr-kraken.energy/v1/graphql/

A list of active sales channels.

The possible errors that can be raised are:

Arguments

Name Description

activeFrom (DateTime)

The datetime from which to filter active sales channels.

activeTo (DateTime)

The datetime up to which to filter active sales channels.

Query

query ActiveSalesChannels(
  $activeFrom: DateTime,
  $activeTo: DateTime
) {
  activeSalesChannels(
    activeFrom: $activeFrom,
    activeTo: $activeTo
  ) {
    code
    description
    hierarchicalName
    name
  }
}

Variables

{
  "activeFrom": "2012-06-01T07:56:48.491634+00:00",
  "activeTo": "2003-09-23T15:11:57.226390+00:00"
}

Response

{
  "data": {
    "activeSalesChannels": [
      {
        "code": "back-charge-management-begin-study",
        "description": "hot-recently-member-that-line",
        "hierarchicalName": "serve-write-it-claim-travel",
        "name": "four-dinner-better-participant-generation"
      }
    ]
  }
}

Type: AffiliateLinkType!

URL: https://api.oefr-kraken.energy/v1/graphql/

Link object for an affiliate organization.

The possible errors that can be raised are:

Arguments

Name Description

subdomain (String!)

The affiliate link subdomain.

Query

query AffiliateLink($subdomain: String!) {
  affiliateLink(subdomain: $subdomain) {
    contactEmail
    contactName
    id
    isBusiness
    landingUrl
    organisation {
      ...AffiliateOrganisationTypeFragment
    }
    subdomain
    trainingStatus
  }
}

Variables

{
  "subdomain": "artist-find-prepare-white-here"
}

Response

{
  "data": {
    "affiliateLink": {
      "contactEmail": "film-just-know-south-relationship",
      "contactName": "modern-almost-law-most-since",
      "id": "73787032",
      "isBusiness": true,
      "landingUrl": "should-today-arm-be-economic",
      "organisation": AffiliateOrganisationType,
      "subdomain": "scientist-our-administration-may-western",
      "trainingStatus": "NOT_APPLICABLE"
    }
  }
}

Type: [AffiliateLinkType!]!

URL: https://api.oefr-kraken.energy/v1/graphql/

Links (urls) for the affiliate organizations.

Arguments

Name Description

agentContactEmail (String!)

Email address of the affiliate agent.

Query

query AffiliateLinks($agentContactEmail: String!) {
  affiliateLinks(agentContactEmail: $agentContactEmail) {
    contactEmail
    contactName
    id
    isBusiness
    landingUrl
    organisation {
      ...AffiliateOrganisationTypeFragment
    }
    subdomain
    trainingStatus
  }
}

Variables

{
  "agentContactEmail": "play-seek-yourself-trouble-TV"
}

Response

{
  "data": {
    "affiliateLinks": [
      {
        "contactEmail": "tree-that-answer-turn-certain",
        "contactName": "law-across-out-become-east",
        "id": "14657193",
        "isBusiness": true,
        "landingUrl": "information-threat-common-cost-particularly",
        "organisation": AffiliateOrganisationType,
        "subdomain": "card-company-win-peace-road",
        "trainingStatus": "NOT_APPLICABLE"
      }
    ]
  }
}

affiliateOrganisation

Type: AffiliateOrganisationType

URL: https://api.oefr-kraken.energy/v1/graphql/

Return the details of a given affiliate organization, if any exists.

The possible errors that can be raised are:

  • KT-CT-7701: The affiliate organisation was not found.
  • KT-CT-7702: Either id or number must be provided.
  • KT-CT-1113: Disabled GraphQL field requested.

Arguments

Name Description

id (Int)

The affiliate organisation ID.

number (String)

The affiliate organisation number.

Query

query AffiliateOrganisation(
  $id: Int,
  $number: String
) {
  affiliateOrganisation(
    id: $id,
    number: $number
  ) {
    allowAlternativePaymentMethods
    canRegisterBusinessMeterPoints
    canRegisterCustomersWithoutEmailAddress
    canRegisterPortfolioAccounts
    canRenewTariffs
    canUseIvrSupportApi
    contactEmail
    defaultAccountType
    id
    isFieldSalesOnlyProduct
    name
    number
    salesChannelCode
    skipMeterPointAddressValidation
  }
}

Variables

{
  "id": 43144485,
  "number": "individual-key-ready-story-truth"
}

Response

{
  "data": {
    "affiliateOrganisation": {
      "allowAlternativePaymentMethods": true,
      "canRegisterBusinessMeterPoints": true,
      "canRegisterCustomersWithoutEmailAddress": true,
      "canRegisterPortfolioAccounts": true,
      "canRenewTariffs": true,
      "canUseIvrSupportApi": true,
      "contactEmail": "single-cause-lot-example-modern",
      "defaultAccountType": "BUSINESS",
      "id": "12254912",
      "isFieldSalesOnlyProduct": true,
      "name": "debate-draw-cultural-develop-stuff",
      "number": "human-others-executive-dinner-reason",
      "salesChannelCode": "avoid-but-concern-leader-purpose",
      "skipMeterPointAddressValidation": true
    }
  }
}

agentCallCenterStatus

Type: AgentCallCenterStatusType!

URL: https://api.oefr-kraken.energy/v1/graphql/

Get the call center status for a given agent.

The possible errors that can be raised are:

  • KT-CT-7813: Support user not found with that username.
  • KT-CT-1113: Disabled GraphQL field requested.

Arguments

Name Description

supportUserName (String!)

The support user name.

Query

query AgentCallCenterStatus($supportUserName: String!) {
  agentCallCenterStatus(supportUserName: $supportUserName) {
    id
    mostRecentCallId
    status
    updatedAt
  }
}

Variables

{
  "supportUserName": "live-size-such-truth-great"
}

Response

{
  "data": {
    "agentCallCenterStatus": {
      "id": "13375509",
      "mostRecentCallId": 98490428,
      "status": "condition-evidence-hope-send-agency",
      "updatedAt": "2017-12-28T09:43:30.072953+00:00"
    }
  }
}

agreement

Type: CommonAgreementType

URL: https://api.oefr-kraken.energy/v1/graphql/

Get an agreement by its ID.

The possible errors that can be raised are:

Arguments

Name Description

id (ID!)

Agreement identifier.

Query

query Agreement($id: ID!) {
  agreement(id: $id) {
    account {
      ...AccountTypeFragment
    }
    agreedAt
    agreedFrom
    agreedTo
    characteristicValues {
      ...CharacteristicValueInterfaceFragment
    }
    id
    isActive
    isRevoked
    params
    product {
      ...SupplyProductTypeFragment
    }
    rescissionDeadlineAt
    supplyPoint {
      ...SupplyPointTypeFragment
    }
    terminatedAt
    validFrom
    validTo
  }
}

Variables

{
  "id": "45439878"
}

Response

{
  "data": {
    "agreement": {
      "account": AccountType,
      "agreedAt": "2001-02-04T23:39:04.378318+00:00",
      "agreedFrom": "1972-05-29T08:08:37.801332+00:00",
      "agreedTo": "1983-08-01T22:32:17.197026+00:00",
      "characteristicValues": CharacteristicValueInterface,
      "id": "27141724",
      "isActive": true,
      "isRevoked": true,
      "params": {"key": "value"},
      "product": SupplyProductType,
      "rescissionDeadlineAt": "2010-05-05T13:10:15.037480+00:00",
      "supplyPoint": SupplyPointType,
      "terminatedAt": "1990-07-06T00:11:42.132174+00:00",
      "validFrom": "2003-04-10T19:12:20.830215+00:00",
      "validTo": "1985-07-13T11:21:55.131698+00:00"
    }
  }
}

agreementCertificate

Type: AgreementCertificate

URL: https://api.oefr-kraken.energy/v1/graphql/

Fetch the agreement certificate for an agreement.

The possible errors that can be raised are:

  • KT-FR-4910: Unauthorized to access to this agreement.
  • KT-CT-1113: Disabled GraphQL field requested.

Arguments

Name Description

accountNumber (String!)

ID of the account.

agreementId (Int!)

ID of the agreement.

Query

query AgreementCertificate(
  $accountNumber: String!,
  $agreementId: Int!
) {
  agreementCertificate(
    accountNumber: $accountNumber,
    agreementId: $agreementId
  ) {
    temporaryUrl
  }
}

Variables

{
  "accountNumber": "A-ADF0BBA9",
  "agreementId": 45605290
}

Response

{
  "data": {
    "agreementCertificate": {
      "temporaryUrl": "science-along-section-maybe-southern"
    }
  }
}

agreementRollover

Type: AgreementRolloverType

URL: https://api.oefr-kraken.energy/v1/graphql/

Get an agreement rollover by its number.

The possible errors that can be raised are:

Arguments

Name Description

number (String!)

Number of the agreement rollover.

Query

query AgreementRollover($number: String!) {
  agreementRollover(number: $number) {
    actualSendDate
    agreement {
      ...CommonAgreementTypeFragment
    }
    createdAt
    expectedSendDate
    failureReason
    id
    number
    params
    quoteRequests {
      ...QuoteRequestTypeFragment
    }
    rolledOnTo {
      ...CommonAgreementTypeFragment
    }
    rolloverType
    status
    suppressComms
    tags
    updatedAt
  }
}

Variables

{
  "number": "continue-usually-price-choice-join"
}

Response

{
  "data": {
    "agreementRollover": {
      "actualSendDate": "2010-06-13",
      "agreement": CommonAgreementType,
      "createdAt": "2015-08-07T12:22:38.104045+00:00",
      "expectedSendDate": "2016-06-05",
      "failureReason": "tough-long-staff-claim-tonight",
      "id": "33427331",
      "number": "impact-special-political-weight-treatment",
      "params": {"key": "value"},
      "quoteRequests": QuoteRequestType,
      "rolledOnTo": CommonAgreementType,
      "rolloverType": "DEFAULT",
      "status": "PENDING",
      "suppressComms": true,
      "tags": ["almost-you-statement-back-cold"],
      "updatedAt": "1992-07-02T00:51:51.545366+00:00"
    }
  }
}

Arguments

Name Description

accountNumber (String!)

The account number linked to the agreements.

activeAt (DateTime)

Filter agreements on the date (valid_from <= date <= valid_to).

after (String)

agreementId (ID)

Fetch this specific agreement.

before (String)

first (Int)

last (Int)

propertyId (ID)

Filter agreements related to this property.

supplyContractNumber (String)

The supply contract number linked to the agreements.

supplyPointId (ID)

Filter agreements related to this specific supply point.

validFromBefore (DateTime)

Filter agreements where valid_from is less than or equal to this date (excludes future agreements).

Query

query Agreements(
  $accountNumber: String!,
  $activeAt: DateTime,
  $after: String,
  $agreementId: ID,
  $before: String,
  $first: Int,
  $last: Int,
  $propertyId: ID,
  $supplyContractNumber: String,
  $supplyPointId: ID,
  $validFromBefore: DateTime
) {
  agreements(
    accountNumber: $accountNumber,
    activeAt: $activeAt,
    after: $after,
    agreementId: $agreementId,
    before: $before,
    first: $first,
    last: $last,
    propertyId: $propertyId,
    supplyContractNumber: $supplyContractNumber,
    supplyPointId: $supplyPointId,
    validFromBefore: $validFromBefore
  ) {
    edgeCount
    edges {
      ...AgreementConnectionTypeEdgeFragment
    }
    pageInfo {
      ...PageInfoFragment
    }
    totalCount
  }
}

Variables

{
  "accountNumber": "A-0862FCA9",
  "activeAt": "1991-10-04T02:33:04.047922+00:00",
  "after": "YXJyYXljb25uZWN0aW9uOjEw=",
  "agreementId": "88440004",
  "before": "YXJyYXljb25uZWN0aW9uOjEw=",
  "first": 10,
  "last": 10,
  "propertyId": "29332893",
  "supplyContractNumber": "plan-from-stand-teacher-suggest",
  "supplyPointId": "50435867",
  "validFromBefore": "1973-12-13T23:05:47.908398+00:00"
}

Response

{
  "data": {
    "agreements": {
      "edgeCount": 92,
      "edges": AgreementConnectionTypeEdge,
      "pageInfo": PageInfo,
      "totalCount": 25
    }
  }
}

agreementsForRollover

Type: [CommonAgreementType]

URL: https://api.oefr-kraken.energy/v1/graphql/

Get agreements eligible for the rollover process.

Arguments

Name Description

daysBeforeExpiration (Int!)

Days before the agreement expiration.

windowSize (Int!)

Window size in days.

Query

query AgreementsForRollover(
  $daysBeforeExpiration: Int!,
  $windowSize: Int!
) {
  agreementsForRollover(
    daysBeforeExpiration: $daysBeforeExpiration,
    windowSize: $windowSize
  ) {
    account {
      ...AccountTypeFragment
    }
    agreedAt
    agreedFrom
    agreedTo
    characteristicValues {
      ...CharacteristicValueInterfaceFragment
    }
    id
    isActive
    isRevoked
    params
    product {
      ...SupplyProductTypeFragment
    }
    rescissionDeadlineAt
    supplyPoint {
      ...SupplyPointTypeFragment
    }
    terminatedAt
    validFrom
    validTo
  }
}

Variables

{
  "daysBeforeExpiration": 44,
  "windowSize": 93
}

Response

{
  "data": {
    "agreementsForRollover": [
      {
        "account": AccountType,
        "agreedAt": "2017-04-03T07:28:09.961222+00:00",
        "agreedFrom": "1998-06-28T13:52:46.240360+00:00",
        "agreedTo": "2005-07-03T03:57:04.512573+00:00",
        "characteristicValues": CharacteristicValueInterface,
        "id": "26620887",
        "isActive": true,
        "isRevoked": true,
        "params": {"key": "value"},
        "product": SupplyProductType,
        "rescissionDeadlineAt": "2003-11-14T22:48:28.594455+00:00",
        "supplyPoint": SupplyPointType,
        "terminatedAt": "2002-08-15T06:44:46.290369+00:00",
        "validFrom": "1980-05-31T18:38:18.303748+00:00",
        "validTo": "1974-06-20T18:27:13.676952+00:00"
      }
    ]
  }
}

Arguments

Name Description

after (String)

before (String)

first (Int)

input (APIBrownoutInput)

Statuses to filter for. Otherwise return active and upcoming brownouts.

last (Int)

Query

query ApiBrownouts(
  $after: String,
  $before: String,
  $first: Int,
  $input: APIBrownoutInput,
  $last: Int
) {
  apiBrownouts(
    after: $after,
    before: $before,
    first: $first,
    input: $input,
    last: $last
  ) {
    edgeCount
    edges {
      ...APIBrownoutEdgeFragment
    }
    pageInfo {
      ...PageInfoFragment
    }
    totalCount
  }
}

Variables

{
  "after": "YXJyYXljb25uZWN0aW9uOjEw=",
  "before": "YXJyYXljb25uZWN0aW9uOjEw=",
  "first": 10,
  "input": APIBrownoutInput,
  "last": 10
}

Response

{
  "data": {
    "apiBrownouts": {
      "edgeCount": 29,
      "edges": APIBrownoutEdge,
      "pageInfo": PageInfo,
      "totalCount": 83
    }
  }
}

Arguments

Name Description

after (String)

before (String)

first (Int)

input (APIExceptionQueryInput)

Fields to filter for. Otherwise don't filter at all.

last (Int)

Query

query ApiExceptions(
  $after: String,
  $before: String,
  $first: Int,
  $input: APIExceptionQueryInput,
  $last: Int
) {
  apiExceptions(
    after: $after,
    before: $before,
    first: $first,
    input: $input,
    last: $last
  ) {
    edgeCount
    edges {
      ...APIExceptionConnectionTypeEdgeFragment
    }
    pageInfo {
      ...PageInfoFragment
    }
    totalCount
  }
}

Variables

{
  "after": "YXJyYXljb25uZWN0aW9uOjEw=",
  "before": "YXJyYXljb25uZWN0aW9uOjEw=",
  "first": 10,
  "input": APIExceptionQueryInput,
  "last": 10
}

Response

{
  "data": {
    "apiExceptions": {
      "edgeCount": 35,
      "edges": APIExceptionConnectionTypeEdge,
      "pageInfo": PageInfo,
      "totalCount": 8
    }
  }
}

appSessions

Type: AppSessionConnectionTypeConnection!

URL: https://api.oefr-kraken.energy/v1/graphql/

App sessions recorded at the specified postcode or for the specified affiliate link subdomain.

Arguments

Name Description

after (String)

before (String)

first (Int)

last (Int)

postcode (String)

The postcode of the address at which the app session was recorded.

subdomain (String)

The affiliate link subdomain to filter app sessions by.

Query

query AppSessions(
  $after: String,
  $before: String,
  $first: Int,
  $last: Int,
  $postcode: String,
  $subdomain: String
) {
  appSessions(
    after: $after,
    before: $before,
    first: $first,
    last: $last,
    postcode: $postcode,
    subdomain: $subdomain
  ) {
    edgeCount
    edges {
      ...AppSessionConnectionTypeEdgeFragment
    }
    pageInfo {
      ...PageInfoFragment
    }
    totalCount
  }
}

Variables

{
  "after": "YXJyYXljb25uZWN0aW9uOjEw=",
  "before": "YXJyYXljb25uZWN0aW9uOjEw=",
  "first": 10,
  "last": 10,
  "postcode": "business-truth-guy-study-purpose",
  "subdomain": "gun-fact-simple-lot-left"
}

Response

{
  "data": {
    "appSessions": {
      "edgeCount": 100,
      "edges": AppSessionConnectionTypeEdge,
      "pageInfo": PageInfo,
      "totalCount": 44
    }
  }
}

authorizedApplications

Type: [AuthorizedApplication]

URL: https://api.oefr-kraken.energy/v1/graphql/

Get all the confidential-client applications the current user has authorized.

Query

query AuthorizedApplications {
  authorizedApplications {
    clientId
    name
  }
}

Response

{
  "data": {
    "authorizedApplications": [
      {
        "clientId": "42944261",
        "name": "carry-hour-find-line-term"
      }
    ]
  }
}

availableOfferings

Type: [OfferingType]

URL: https://api.oefr-kraken.energy/v1/graphql/

Get a list of actively available offerings from the catalog.

Query

query AvailableOfferings {
  availableOfferings {
    customerDescription
    customerName
    groups {
      ...GroupTypeFragment
    }
    identifier
    internalName
    isActive
    isAmendable
    isDraft
    isExpired
    isFirstDraft
    isLatestVersion
    isSellable
    lifecycle {
      ...LifecycleTypeFragment
    }
    offeringComponents {
      ...OfferingComponentTypeFragment
    }
    productComponents {
      ...ProductComponentTypeFragment
    }
    tags {
      ...TagTypeFragment
    }
    termTemplateComponents {
      ...TermTemplateComponentTypeFragment
    }
  }
}

Response

{
  "data": {
    "availableOfferings": [
      {
        "customerDescription": "discover-face-line-occur-environment",
        "customerName": "American-because-thing-peace-cultural",
        "groups": [GroupType],
        "identifier": "84282721",
        "internalName": "skill-offer-suddenly-treatment-account",
        "isActive": true,
        "isAmendable": true,
        "isDraft": true,
        "isExpired": true,
        "isFirstDraft": true,
        "isLatestVersion": true,
        "isSellable": true,
        "lifecycle": LifecycleType,
        "offeringComponents": [OfferingComponentType],
        "productComponents": [ProductComponentType],
        "tags": [TagType],
        "termTemplateComponents": [TermTemplateComponentType]
      }
    ]
  }
}

availableProductSwitchDates

Type: [Date]

URL: https://api.oefr-kraken.energy/v1/graphql/

Get available dates for product switch.

The possible errors that can be raised are:

Arguments

Name Description

agreementId (Int!)

Agreement ID.

maxRange (Int)

The maximum number of days to look for available dates.

Query

query AvailableProductSwitchDates(
  $agreementId: Int!,
  $maxRange: Int
) {
  availableProductSwitchDates(
    agreementId: $agreementId,
    maxRange: $maxRange
  )
}

Variables

{
  "agreementId": 59409255,
  "maxRange": 95
}

Response

{
  "data": {
    "availableProductSwitchDates": ["1997-07-30"]
  }
}

availableProducts

Type: [SupplyProductType]

URL: https://api.oefr-kraken.energy/v1/graphql/

Get available products for the given market.

The possible errors that can be raised are:

Arguments

Name Description

marketName (String!)

Products available for the target market.

Query

query AvailableProducts($marketName: String!) {
  availableProducts(marketName: $marketName) {
    availabilityStatus
    availableFrom
    availableTo
    brandCode
    code
    description
    displayName
    endsAt
    fullName
    id
    isHidden
    marketName
    notes
    params
    tags {
      ...SupplyProductTagTypeFragment
    }
    term
    termsAndConditionsTypes {
      ...TermsAndConditionsTypeFragment
    }
    termsContractType
  }
}

Variables

{
  "marketName": "idea-focus-present-medical-pretty"
}

Response

{
  "data": {
    "availableProducts": [
      {
        "availabilityStatus": "EVERYONE",
        "availableFrom": "1972-09-29T01:05:23.776897+00:00",
        "availableTo": "2021-07-26T12:05:09.837192+00:00",
        "brandCode": "great-read-teacher-want-realize",
        "code": "baby-more-all-action-door",
        "description": "air-instead-hard-prove-view",
        "displayName": "say-vote-reason-learn-market",
        "endsAt": "1999-10-12T13:31:51.823078+00:00",
        "fullName": "western-investment-current-garden-beautiful",
        "id": "13947146",
        "isHidden": true,
        "marketName": "material-right-billion-serve-find",
        "notes": "above-add-professional-market-red",
        "params": {"key": "value"},
        "tags": SupplyProductTagType,
        "term": 34,
        "termsAndConditionsTypes": TermsAndConditionsType,
        "termsContractType": "seem-development-may-lead-short"
      }
    ]
  }
}

backendScreen

Type: BackendScreenType

URL: https://api.oefr-kraken.energy/v1/graphql/

Get mobile screen details to render.

The possible errors that can be raised are:

  • KT-CT-8001: No backend screen available.
  • KT-CT-8005: Backend screen does not support parameters.
  • KT-CT-8008: Incorrect or missing data necessary to build the screen.
  • KT-CT-8006: Error applying parameters to backend screen.
  • KT-CT-8009: Error translating screen content.
  • KT-CT-8010: Invalid step ID.
  • KT-CT-8011: Cannot rewind past a previous irreversible step.
  • KT-CT-1113: Disabled GraphQL field requested.

Arguments

Name Description

maxVersionSupported (Int)

The maximum version of backend screens supported by the client.

params ([BackendScreenParamInputType])

List of key-value pairs (strings) to pass as parameters to the screen.

screenId (ID!)

The ID of the screen to return.

Query

query BackendScreen(
  $maxVersionSupported: Int,
  $params: [BackendScreenParamInputType],
  $screenId: ID!
) {
  backendScreen(
    maxVersionSupported: $maxVersionSupported,
    params: $params,
    screenId: $screenId
  ) {
    ... on ComponentListType {
      ...ComponentListTypeFragment
    }
    ... on Dashboard {
      ...DashboardFragment
    }
    ... on FormScreenType {
      ...FormScreenTypeFragment
    }
    ... on GenericBackendScreen {
      ...GenericBackendScreenFragment
    }
  }
}

Variables

{
  "maxVersionSupported": 6,
  "params": BackendScreenParamInputType,
  "screenId": "37638418"
}

Response

{
  "data": {
    "backendScreen": ComponentListType
  }
}

backendScreenEventIds

Type: [String]

URL: https://api.oefr-kraken.energy/v1/graphql/

Get all registered backend screen event IDs.

Query

query BackendScreenEventIds {
  backendScreenEventIds
}

Response

{
  "data": {
    "backendScreenEventIds": ["involve-few-late-table-more"]
  }
}

backendScreenIds

Type: [String]

URL: https://api.oefr-kraken.energy/v1/graphql/

Get all registered backend screen IDs.

Query

query BackendScreenIds {
  backendScreenIds
}

Response

{
  "data": {
    "backendScreenIds": ["assume-mind-them-realize-political"]
  }
}

Arguments

Name Description

iban (NonEmptyString!)

The IBAN of the bank account.

Query

query BankDetailsValidation($iban: NonEmptyString!) {
  bankDetailsValidation(iban: $iban) {
    areValid
    message
  }
}

Variables

{
  "iban": "experience-cause-trouble-he-street"
}

Response

{
  "data": {
    "bankDetailsValidation": {
      "areValid": true,
      "message": "everything-second-money-send-course"
    }
  }
}

bills

Type: FraBillsConnection

URL: https://api.oefr-kraken.energy/v1/graphql/

Fetch the bills for an account and requested parameters.

Arguments

Name Description

accountNumber (String!)

The account number.

after (String)

before (String)

documentId (ID)

Optional document id used to get a specific billing document. This parameter take precedence over the dates parameters.

first (Int)

fromDate (Date)

Optional date representing the beginning of the search results. This date value is inclusive.

last (Int)

propertyId (ID)

Filter bills related to this property.

supplyContractNumber (String)

Filter bills related to this supply contract.

supplyPointId (ID)

The ID of the supply point.

toDate (Date)

Optional date representing the end of the search results. This date value is exclusive.

Query

query Bills(
  $accountNumber: String!,
  $after: String,
  $before: String,
  $documentId: ID,
  $first: Int,
  $fromDate: Date,
  $last: Int,
  $propertyId: ID,
  $supplyContractNumber: String,
  $supplyPointId: ID,
  $toDate: Date
) {
  bills(
    accountNumber: $accountNumber,
    after: $after,
    before: $before,
    documentId: $documentId,
    first: $first,
    fromDate: $fromDate,
    last: $last,
    propertyId: $propertyId,
    supplyContractNumber: $supplyContractNumber,
    supplyPointId: $supplyPointId,
    toDate: $toDate
  ) {
    edgeCount
    edges {
      ...FraBillsEdgeFragment
    }
    pageInfo {
      ...PageInfoFragment
    }
    totalCount
  }
}

Variables

{
  "accountNumber": "A-A54E0D4D",
  "after": "YXJyYXljb25uZWN0aW9uOjEw=",
  "before": "YXJyYXljb25uZWN0aW9uOjEw=",
  "documentId": "83884046",
  "first": 10,
  "fromDate": "2007-04-24",
  "last": 10,
  "propertyId": "37954240",
  "supplyContractNumber": "follow-better-high-room-meet",
  "supplyPointId": "15691157",
  "toDate": "1995-08-03"
}

Response

{
  "data": {
    "bills": {
      "edgeCount": 28,
      "edges": FraBillsEdge,
      "pageInfo": PageInfo,
      "totalCount": 95
    }
  }
}

business

Type: BusinessType

URL: https://api.oefr-kraken.energy/v1/graphql/

Get details about a business.

The possible errors that can be raised are:

  • KT-CT-11101: The viewer is not authorized to execute the query/mutation. Check the ownership/permissions of provided data.
  • KT-CT-11107: Unauthorized.
  • KT-CT-1605: Invalid input.
  • KT-CT-1113: Disabled GraphQL field requested.

Arguments

Name Description

details ([BusinessDetailInput])

List of business detail key-value pairs to filter by.

id (ID)

The business ID.

Query

query Business(
  $details: [BusinessDetailInput],
  $id: ID
) {
  business(
    details: $details,
    id: $id
  ) {
    billingAddress {
      ...RichAddressTypeFragment
    }
    businessType
    details {
      ...BusinessDetailTypeFragment
    }
    establishments {
      ...EstablishmentConnectionTypeConnectionFragment
    }
    id
    legalAddress {
      ...RichAddressTypeFragment
    }
    linkedAccountNumbers
    name
    number
    paymentMethods {
      ...PaymentInstructionConnectionTypeConnectionFragment
    }
    sectors
    segmentName
  }
}

Variables

{
  "details": BusinessDetailInput,
  "id": "63286479"
}

Response

{
  "data": {
    "business": {
      "billingAddress": RichAddressType,
      "businessType": "SOLE_TRADER",
      "details": [BusinessDetailType],
      "establishments": EstablishmentConnectionTypeConnection,
      "id": "68596122",
      "legalAddress": RichAddressType,
      "linkedAccountNumbers": "77930091",
      "name": "age-exactly-sense-natural-as",
      "number": "mother-painting-onto-interest-cold",
      "paymentMethods": PaymentInstructionConnectionTypeConnection,
      "sectors": None,
      "segmentName": "rise-economic-camera-particularly-door"
    }
  }
}

businessAccountReferralRewardScheme

Type: ReferralSchemeType

URL: https://api.oefr-kraken.energy/v1/graphql/

Return a business referral reward scheme for the given account referral code.

Arguments

Name Description

code (String!)

Friend referral code.

Query

query BusinessAccountReferralRewardScheme($code: String!) {
  businessAccountReferralRewardScheme(code: $code) {
    canBeReferred
    code
    combinedRewardAmount
    isUsageAtCapacity
    loyaltyPointsBonus
    maxRecurrence
    referralDisplayUrl
    referralUrl
    referredRewardAmount
    referrerGivenName
    referrerRewardAmount
    schemeType
  }
}

Variables

{
  "code": "live-chair-manager-talk-control"
}

Response

{
  "data": {
    "businessAccountReferralRewardScheme": {
      "canBeReferred": true,
      "code": "shake-Democrat-us-public-news",
      "combinedRewardAmount": 31,
      "isUsageAtCapacity": true,
      "loyaltyPointsBonus": 79,
      "maxRecurrence": 35,
      "referralDisplayUrl": "picture-wind-ready-your-happy",
      "referralUrl": "detail-method-onto-last-local",
      "referredRewardAmount": 68,
      "referrerGivenName": "Thomas",
      "referrerRewardAmount": 60,
      "schemeType": "road-discussion-participant-up-may"
    }
  }
}

businessContract

Type: Contract

URL: https://api.oefr-kraken.energy/v1/graphql/

Get details about an account contract.

The possible errors that can be raised are:

Arguments

Name Description

accountNumber (String)

The account number to find the business contract for.

identifier (String)

The identifier of the contract.

version (Int)

The version of the contract.

Query

query BusinessContract(
  $accountNumber: String,
  $identifier: String,
  $version: Int
) {
  businessContract(
    accountNumber: $accountNumber,
    identifier: $identifier,
    version: $version
  ) {
    cancelledAt
    identifier
    lifecycle {
      ...ContractVersionFragment
    }
    notes {
      ...ContractNoteTypeFragment
    }
    party {
      ... on AccountType {
        ...AccountTypeFragment
      }
      ... on BusinessType {
        ...BusinessTypeFragment
      }
    }
    signedAt
    status
    subject {
      ...AccountTypeFragment
    }
    terms {
      ...TermInterfaceFragment
    }
    title
    validFrom
    validTo
  }
}

Variables

{
  "accountNumber": "A-D6ADDD97",
  "identifier": "95000299",
  "version": 71
}

Response

{
  "data": {
    "businessContract": {
      "cancelledAt": "1988-05-06T05:12:39.207746+00:00",
      "identifier": "75302318",
      "lifecycle": ContractVersion,
      "notes": [ContractNoteType],
      "party": AccountType,
      "signedAt": "2016-11-23T16:05:01.162146+00:00",
      "status": "REVOKED",
      "subject": [AccountType],
      "terms": TermInterface,
      "title": "out-may-create-cost-play",
      "validFrom": "2023-02-04T17:00:33.193295+00:00",
      "validTo": "1973-02-23T02:19:30.819017+00:00"
    }
  }
}

call

Type: CallInterface!

URL: https://api.oefr-kraken.energy/v1/graphql/

Get a call for a given ID.

The possible errors that can be raised are:

Arguments

Name Description

id (ID!)

The call ID.

Query

query Call($id: ID!) {
  call(id: $id) {
    account {
      ...AccountTypeFragment
    }
    id
    metadata {
      ...CallMetadataItemTypeFragment
    }
  }
}

Variables

{
  "id": "86895957"
}

Response

{
  "data": {
    "call": {
      "account": AccountType,
      "id": "69271097",
      "metadata": CallMetadataItemType
    }
  }
}

callTag

Type: CallTagType!

URL: https://api.oefr-kraken.energy/v1/graphql/

Get the call tag for a given ID.

The possible errors that can be raised are:

Arguments

Name Description

id (ID!)

The call tag ID.

Query

query CallTag($id: ID!) {
  callTag(id: $id) {
    id
    isActive
    name
  }
}

Variables

{
  "id": "86423003"
}

Response

{
  "data": {
    "callTag": {
      "id": "27824711",
      "isActive": true,
      "name": "my-much-number-hit-main"
    }
  }
}

Arguments

Name Description

after (String)

before (String)

first (Int)

isActive (Boolean)

Filter by active status.

last (Int)

name (String)

Filter by call tag name.

Query

query CallTags(
  $after: String,
  $before: String,
  $first: Int,
  $isActive: Boolean,
  $last: Int,
  $name: String
) {
  callTags(
    after: $after,
    before: $before,
    first: $first,
    isActive: $isActive,
    last: $last,
    name: $name
  ) {
    edgeCount
    edges {
      ...CallTagConnectionTypeEdgeFragment
    }
    pageInfo {
      ...PageInfoFragment
    }
    totalCount
  }
}

Variables

{
  "after": "YXJyYXljb25uZWN0aW9uOjEw=",
  "before": "YXJyYXljb25uZWN0aW9uOjEw=",
  "first": 10,
  "isActive": true,
  "last": 10,
  "name": "class-after-window-wind-me"
}

Response

{
  "data": {
    "callTags": {
      "edgeCount": 31,
      "edges": CallTagConnectionTypeEdge,
      "pageInfo": PageInfo,
      "totalCount": 52
    }
  }
}

Arguments

Name Description

accountNumber (String!)

The account number.

after (String)

before (String)

first (Int)

last (Int)

Query

query Campaigns(
  $accountNumber: String!,
  $after: String,
  $before: String,
  $first: Int,
  $last: Int
) {
  campaigns(
    accountNumber: $accountNumber,
    after: $after,
    before: $before,
    first: $first,
    last: $last
  ) {
    edgeCount
    edges {
      ...AccountCampaignConnectionTypeEdgeFragment
    }
    pageInfo {
      ...PageInfoFragment
    }
    totalCount
  }
}

Variables

{
  "accountNumber": "A-CDACB199",
  "after": "YXJyYXljb25uZWN0aW9uOjEw=",
  "before": "YXJyYXljb25uZWN0aW9uOjEw=",
  "first": 10,
  "last": 10
}

Response

{
  "data": {
    "campaigns": {
      "edgeCount": 38,
      "edges": AccountCampaignConnectionTypeEdge,
      "pageInfo": PageInfo,
      "totalCount": 60
    }
  }
}

canRescindAgreement

Type: Boolean

URL: https://api.oefr-kraken.energy/v1/graphql/

Check if an agreement can be rescinded.

The possible errors that can be raised are:

Arguments

Name Description

agreementId (Int!)

The ID of the agreement to check.

Query

query CanRescindAgreement($agreementId: Int!) {
  canRescindAgreement(agreementId: $agreementId)
}

Variables

{
  "agreementId": 41615528
}

Response

{
  "data": {
    "canRescindAgreement": true
  }
}

Query

query ChargePointVariants {
  chargePointVariants {
    make
    models {
      ...ChargePointVariantModelTypeFragment
    }
  }
}

Response

{
  "data": {
    "chargePointVariants": [
      {
        "make": "else-ask-reflect-build-century",
        "models": [ChargePointVariantModelType]
      }
    ]
  }
}

collectionProcessDetails

Type: CollectionProcessDetailsType

URL: https://api.oefr-kraken.energy/v1/graphql/

Collection process record details.

The possible errors that can be raised are:

  • KT-CT-1111: Unauthorized.
  • KT-CT-11201: No Collection Process Records associated with id.
  • KT-CT-11206: Unable to retrieve disconnection related data for collection process.
  • KT-CT-1113: Disabled GraphQL field requested.

Arguments

Name Description

collectionProcessRecordNumber (String!)

The collection process record number.

Query

query CollectionProcessDetails($collectionProcessRecordNumber: String!) {
  collectionProcessDetails(collectionProcessRecordNumber: $collectionProcessRecordNumber) {
    associatedItems {
      ...CollectionProcessRecordAssociatedItemTypeFragment
    }
    collectionProcessRecordNumber
    collectionProcessType
    completionType
    isActive
    isComplete
    isPaused
    pausedDays
    targetObjectIdentifier
  }
}

Variables

{
  "collectionProcessRecordNumber": "low-risk-phone-activity-perhaps"
}

Response

{
  "data": {
    "collectionProcessDetails": {
      "associatedItems": [CollectionProcessRecordAssociatedItemType],
      "collectionProcessRecordNumber": "candidate-buy-develop-door-I",
      "collectionProcessType": "ACCOUNT",
      "completionType": "for-door-better-building-until",
      "isActive": true,
      "isComplete": true,
      "isPaused": true,
      "pausedDays": 20,
      "targetObjectIdentifier": "35925703"
    }
  }
}

complaint

Type: ComplaintType

URL: https://api.oefr-kraken.energy/v1/graphql/

Get a complaint.

The possible errors that can be raised are:

Arguments

Name Description

complaintId (Int!)

Query

query Complaint($complaintId: Int!) {
  complaint(complaintId: $complaintId) {
    assigneeId
    contacts {
      ...ComplaintContactConnectionTypeConnectionFragment
    }
    creationDate
    id
    resolutionDate
    subtype
    type
  }
}

Variables

{
  "complaintId": 91808122
}

Response

{
  "data": {
    "complaint": {
      "assigneeId": "65766264",
      "contacts": ComplaintContactConnectionTypeConnection,
      "creationDate": "2018-08-22",
      "id": "28965891",
      "resolutionDate": "1970-07-23",
      "subtype": "forward-check-buy-point-memory",
      "type": "so-about-win-without-three"
    }
  }
}

completedDispatches

Type: [UpsideDispatchType]

URL: https://api.oefr-kraken.energy/v1/graphql/

All completed device dispatches 12 hours behind, in reverse time order.

The possible errors that can be raised are:

Arguments

Name Description

accountNumber (String!)

Query

query CompletedDispatches($accountNumber: String!) {
  completedDispatches(accountNumber: $accountNumber) {
    delta
    end
    meta {
      ...UpsideDispatchMetaTypeFragment
    }
    start
  }
}

Variables

{
  "accountNumber": "A-F624293C"
}

Response

{
  "data": {
    "completedDispatches": [
      {
        "delta": "1.0",
        "end": "1992-07-08T18:42:10.471527+00:00",
        "meta": UpsideDispatchMetaType,
        "start": "2025-11-16T19:06:19.814999+00:00"
      }
    ]
  }
}

consentTypes

Type: [ConsentTypeType]

URL: https://api.oefr-kraken.energy/v1/graphql/

A list of the consent types available.

Query

query ConsentTypes {
  consentTypes {
    code
    defaultValue
    description
    name
  }
}

Response

{
  "data": {
    "consentTypes": [
      {
        "code": "style-space-number-yard-American",
        "defaultValue": "ACCEPTED",
        "description": "company-onto-matter-if-available",
        "name": "water-yard-test-recently-me"
      }
    ]
  }
}

Arguments

Name Description

accountNumber (String!)

The account number to obtain consumption forecast for.

after (String)

aggregationTimeInterval (ConsumptionDataAggregationTimeInterval!)

Frequency by day, month or year to aggregate forecasted data.

before (String)

endAt (DateTime!)

The end date time of forecasted data to get, this field is exclusive of the data range.

first (Int)

last (Int)

startAt (DateTime!)

The start date time of forecasted data to get, this field is inclusive of the data range.

supplyPointId (String!)

The supply point id to obtain consumption forecast for. The supply point in an abstract representation of all types of industry meters.

Query

query ConsumptionForecast(
  $accountNumber: String!,
  $after: String,
  $aggregationTimeInterval: ConsumptionDataAggregationTimeInterval!,
  $before: String,
  $endAt: DateTime!,
  $first: Int,
  $last: Int,
  $startAt: DateTime!,
  $supplyPointId: String!
) {
  consumptionForecast(
    accountNumber: $accountNumber,
    after: $after,
    aggregationTimeInterval: $aggregationTimeInterval,
    before: $before,
    endAt: $endAt,
    first: $first,
    last: $last,
    startAt: $startAt,
    supplyPointId: $supplyPointId
  ) {
    edgeCount
    edges {
      ...ConsumptionForecastConnectionTypeEdgeFragment
    }
    pageInfo {
      ...PageInfoFragment
    }
    totalCount
  }
}

Variables

{
  "accountNumber": "A-3C8459E2",
  "after": "YXJyYXljb25uZWN0aW9uOjEw=",
  "aggregationTimeInterval": "DAILY",
  "before": "YXJyYXljb25uZWN0aW9uOjEw=",
  "endAt": "1996-03-09T06:12:29.102183+00:00",
  "first": 10,
  "last": 10,
  "startAt": "2013-03-12T09:27:40.248329+00:00",
  "supplyPointId": "11901510"
}

Response

{
  "data": {
    "consumptionForecast": {
      "edgeCount": 42,
      "edges": ConsumptionForecastConnectionTypeEdge,
      "pageInfo": PageInfo,
      "totalCount": 60
    }
  }
}

contractCreationJourney

Type: ContractCreationJourneyType

URL: https://api.oefr-kraken.energy/v1/graphql/

Get details about a contract creation journey.

The possible errors that can be raised are:

Arguments

Name Description

number (String!)

The number of the contract journey.

Query

query ContractCreationJourney($number: String!) {
  contractCreationJourney(number: $number) {
    context {
      ...ContractCreationContextFragment
    }
    contractDetails {
      ...ContractDetailsFragment
    }
    journeyType
    notes {
      ...ContractNoteTypeFragment
    }
    number
    orderReference
    requestedAt
    status
  }
}

Variables

{
  "number": "past-yourself-article-until-soldier"
}

Response

{
  "data": {
    "contractCreationJourney": {
      "context": ContractCreationContext,
      "contractDetails": ContractDetails,
      "journeyType": "CONTRACT_CREATION",
      "notes": [ContractNoteType],
      "number": "subject-along-than-defense-free",
      "orderReference": "he-minute-president-international-see",
      "requestedAt": "1995-07-09T06:32:21.392870+00:00",
      "status": "IN_PROGRESS"
    }
  }
}

contractNoteReasons

Type: [ContractNoteReasonType]

URL: https://api.oefr-kraken.energy/v1/graphql/

Get a list of contract note reasons, optionally filtered by activity types.

Arguments

Name Description

activityTypes ([ContractActivityTypeOptions])

Filter reasons applicable to any of the given contract activity types.

Query

query ContractNoteReasons($activityTypes: [ContractActivityTypeOptions]) {
  contractNoteReasons(activityTypes: $activityTypes) {
    activityTypes
    description
    slug
  }
}

Variables

{
  "activityTypes": "ALL_ACTIVITY_TYPES"
}

Response

{
  "data": {
    "contractNoteReasons": [
      {
        "activityTypes": "ALL_ACTIVITY_TYPES",
        "description": "true-question-cultural-win-big",
        "slug": "its-almost-owner-sense-early"
      }
    ]
  }
}

contracts

Type: [Contract]

URL: https://api.oefr-kraken.energy/v1/graphql/

Get a list of contracts filtered by party or subject.

The possible errors that can be raised are:

Arguments

Name Description

filters (ContractFiltersInput!)

Filters to apply when querying contracts. At least one filter must be provided.

Query

query Contracts($filters: ContractFiltersInput!) {
  contracts(filters: $filters) {
    cancelledAt
    identifier
    lifecycle {
      ...ContractVersionFragment
    }
    notes {
      ...ContractNoteTypeFragment
    }
    party {
      ... on AccountType {
        ...AccountTypeFragment
      }
      ... on BusinessType {
        ...BusinessTypeFragment
      }
    }
    signedAt
    status
    subject {
      ...AccountTypeFragment
    }
    terms {
      ...TermInterfaceFragment
    }
    title
    validFrom
    validTo
  }
}

Variables

{
  "filters": ContractFiltersInput
}

Response

{
  "data": {
    "contracts": [
      {
        "cancelledAt": "1981-09-28T18:59:30.467947+00:00",
        "identifier": "25286173",
        "lifecycle": ContractVersion,
        "notes": [ContractNoteType],
        "party": AccountType,
        "signedAt": "2023-04-30T07:44:42.006662+00:00",
        "status": "REVOKED",
        "subject": [AccountType],
        "terms": TermInterface,
        "title": "how-history-memory-above-mouth",
        "validFrom": "2003-06-25T23:51:22.761926+00:00",
        "validTo": "2003-11-07T22:30:21.537068+00:00"
      }
    ]
  }
}

Query

query ContributionSchemes {
  contributionSchemes {
    acceptingContributions
    code
    displayName
    id
    taxable
  }
}

Response

{
  "data": {
    "contributionSchemes": [
      {
        "acceptingContributions": true,
        "code": "them-wind-believe-rich-party",
        "displayName": "reflect-relationship-forget-dream-almost",
        "id": "61912300",
        "taxable": true
      }
    ]
  }
}

costOfCharge

Type: [CostOfChargeType]

URL: https://api.oefr-kraken.energy/v1/graphql/

Aggregated cost of charge for an EV device.

The possible errors that can be raised are:

Deprecated

The 'costOfCharge' field is deprecated.

Use `cost` field on `SmartFlexChargingSession` instead.

- Marked as deprecated on 2025-05-13.
- Scheduled for removal on or after 2026-01-16.

You can read more about this deprecation on:
https://announcements.kraken.tech/announcements/public/605/

Arguments

Name Description

accountNumber (String!)

frequency (DataFrequency!)

Frequency by day, week, month or year.

startDate (Date)

The start date of the results required. Overrides report date (end date) if provided.

Query

query CostOfCharge(
  $accountNumber: String!,
  $frequency: DataFrequency!,
  $startDate: Date
) {
  costOfCharge(
    accountNumber: $accountNumber,
    frequency: $frequency,
    startDate: $startDate
  ) {
    costOfChargeId
    isSmartCharge
    krakenflexDeviceId
    reportDate
    totalConsumption
    totalCostExclTax
    totalCostInclTax
  }
}

Variables

{
  "accountNumber": "A-65C9BCEC",
  "frequency": "DAILY",
  "startDate": "2011-05-09"
}

Response

{
  "data": {
    "costOfCharge": [
      {
        "costOfChargeId": "60854547",
        "isSmartCharge": true,
        "krakenflexDeviceId": "52544889",
        "reportDate": "1979-04-29",
        "totalConsumption": 16.67,
        "totalCostExclTax": 846.83,
        "totalCostInclTax": 803.99
      }
    ]
  }
}

customerFeedbackForms

Type: CustomerFeedbackFormConnectionTypeConnection

URL: https://api.oefr-kraken.energy/v1/graphql/

Returns all active customer feedback forms for the account's brand.

Arguments

Name Description

accountNumber (String!)

The account number.

after (String)

before (String)

feedbackSource (CustomerFeedbackSourceChoices)

Feedback sources currently supported.

first (Int)

last (Int)

Query

query CustomerFeedbackForms(
  $accountNumber: String!,
  $after: String,
  $before: String,
  $feedbackSource: CustomerFeedbackSourceChoices,
  $first: Int,
  $last: Int
) {
  customerFeedbackForms(
    accountNumber: $accountNumber,
    after: $after,
    before: $before,
    feedbackSource: $feedbackSource,
    first: $first,
    last: $last
  ) {
    edgeCount
    edges {
      ...CustomerFeedbackFormConnectionTypeEdgeFragment
    }
    pageInfo {
      ...PageInfoFragment
    }
    totalCount
  }
}

Variables

{
  "accountNumber": "A-1BCE1AF4",
  "after": "YXJyYXljb25uZWN0aW9uOjEw=",
  "before": "YXJyYXljb25uZWN0aW9uOjEw=",
  "feedbackSource": "FEEDBACK_SOURCE_PHONE_CALL_FOLLOW_UP",
  "first": 10,
  "last": 10
}

Response

{
  "data": {
    "customerFeedbackForms": {
      "edgeCount": 31,
      "edges": CustomerFeedbackFormConnectionTypeEdge,
      "pageInfo": PageInfo,
      "totalCount": 23
    }
  }
}

dashboardScreen

Type: Dashboard

URL: https://api.oefr-kraken.energy/v1/graphql/

Get a dashboard screen to render in the form of a json list of sections containing cards or grouped cards each with an order attribute.

The possible errors that can be raised are:

  • KT-CT-3820: Received both ledger ID and number.
  • KT-CT-8001: No backend screen available.
  • KT-CT-8005: Backend screen does not support parameters.
  • KT-CT-8008: Incorrect or missing data necessary to build the screen.
  • KT-CT-8006: Error applying parameters to backend screen.
  • KT-CT-8009: Error translating screen content.
  • KT-CT-8010: Invalid step ID.
  • KT-CT-8011: Cannot rewind past a previous irreversible step.
  • KT-CT-1113: Disabled GraphQL field requested.

Arguments

Name Description

accountNumber (String!)

The account number of the user.

dashboardId (ID!)

The ID of the dashboard type screen to return.

ledgerNumber (String)

The ledger number associated to the account.

maxVersionSupported (Int!)

The maximum version of dahshboard type screens supported by the client.

params ([BackendScreenParamInputType])

List of key-value pairs (strings) to pass as parameters to the screen.

propertyId (String)

The property id associated to the account.

Query

query DashboardScreen(
  $accountNumber: String!,
  $dashboardId: ID!,
  $ledgerNumber: String,
  $maxVersionSupported: Int!,
  $params: [BackendScreenParamInputType],
  $propertyId: String
) {
  dashboardScreen(
    accountNumber: $accountNumber,
    dashboardId: $dashboardId,
    ledgerNumber: $ledgerNumber,
    maxVersionSupported: $maxVersionSupported,
    params: $params,
    propertyId: $propertyId
  ) {
    dashboardItems {
      ...SectionTypeFragment
    }
    id
    serialisedDashboardItems
    typename
  }
}

Variables

{
  "accountNumber": "A-E3E4CB7C",
  "dashboardId": "76203283",
  "ledgerNumber": "campaign-development-explain-idea-because",
  "maxVersionSupported": 98,
  "params": BackendScreenParamInputType,
  "propertyId": "29582172"
}

Response

{
  "data": {
    "dashboardScreen": {
      "dashboardItems": SectionType,
      "id": "69184871",
      "serialisedDashboardItems": "before-rock-citizen-say-build",
      "typename": "so-enter-position-visit-collection"
    }
  }
}

defaultPaymentInstruction

Type: PaymentInstructionType

URL: https://api.oefr-kraken.energy/v1/graphql/

Get the default payment instruction for the account's main ledger.

Deprecated

The 'defaultPaymentInstruction' field is deprecated.

Please use 'usablePaymentInstructions' on the Ledger type to get all usable instructions, or 'paymentPreferenceAtTime' on the Ledger type to get a specific one. Both require explicitly requesting a ledger.

- Marked as deprecated on 2026-01-28.
- Scheduled for removal on or after 2026-07-28.

Arguments

Name Description

accountNumber (String!)

The account number.

instructionType (PaymentType)

Provide an option to get either a CARD or DIRECT_DEBIT instruction.

Query

query DefaultPaymentInstruction(
  $accountNumber: String!,
  $instructionType: PaymentType
) {
  defaultPaymentInstruction(
    accountNumber: $accountNumber,
    instructionType: $instructionType
  ) {
    accountHolder
    accountType
    bankCode
    cardExpiryMonth
    cardExpiryYear
    cardNumber
    cardPaymentNetwork
    cardType
    iban
    id
    instructionType
    maskedAccountIdentifier
    owners {
      ...PaymentInstructionOwnerTypeFragment
    }
    sortCode
    status
    supplementaryLedger {
      ...SupplementaryLedgerTypeFragment
    }
    validFrom
    vendor
  }
}

Variables

{
  "accountNumber": "A-2EAB1F56",
  "instructionType": "BPAY"
}

Response

{
  "data": {
    "defaultPaymentInstruction": {
      "accountHolder": "one-impact-role-study-enter",
      "accountType": "nation-ten-Republican-full-whose",
      "bankCode": "where-different-political-that-focus",
      "cardExpiryMonth": 93,
      "cardExpiryYear": 15,
      "cardNumber": "within-arm-read-kitchen-serious",
      "cardPaymentNetwork": "moment-measure-member-so-chance",
      "cardType": "bill-next-others-agreement-special",
      "iban": "walk-science-itself-successful-policy",
      "id": "51299967",
      "instructionType": "everybody-painting-dinner-my-anyone",
      "maskedAccountIdentifier": "93806376",
      "owners": [PaymentInstructionOwnerType],
      "sortCode": "mouth-edge-effect-character-low",
      "status": "risk-offer-military-development-prepare",
      "supplementaryLedger": SupplementaryLedgerType,
      "validFrom": "1988-09-29T08:45:13.894642+00:00",
      "vendor": "poor-whom-policy-ground-thousand"
    }
  }
}

defaultRawScore

Type: Int

URL: https://api.oefr-kraken.energy/v1/graphql/

Get default raw score for a customer feedback form.

The possible errors that can be raised are:

Arguments

Name Description

formId (Int!)

Query

query DefaultRawScore($formId: Int!) {
  defaultRawScore(formId: $formId)
}

Variables

{
  "formId": 82250711
}

Response

{
  "data": {
    "defaultRawScore": 59
  }
}

depositAgreements

Type: [DepositAgreementOutput]

URL: https://api.oefr-kraken.energy/v1/graphql/

Get deposit agreements for a given account.

The possible errors that can be raised are:

Arguments

Name Description

accountNumber (String!)

Query

query DepositAgreements($accountNumber: String!) {
  depositAgreements(accountNumber: $accountNumber) {
    acceptedAt
    collectionDate
    currentEligibilityStatus {
      ...CurrentEligibilityStatusOutputFragment
    }
    depositAmount
    depositKey
    dueDate
    fulfilledAt
    returnStrategy
  }
}

Variables

{
  "accountNumber": "A-310664F6"
}

Response

{
  "data": {
    "depositAgreements": [
      {
        "acceptedAt": "2007-03-02T20:41:36.386064+00:00",
        "collectionDate": "1999-10-11",
        "currentEligibilityStatus": CurrentEligibilityStatusOutput,
        "depositAmount": 25,
        "depositKey": "hold-care-alone-third-real",
        "dueDate": "2025-11-17",
        "fulfilledAt": "1985-11-21T14:01:28.344441+00:00",
        "returnStrategy": "with-a-resource-he-which"
      }
    ]
  }
}

detailedMeasures

Type: ElectricityDetailedMeasure!

URL: https://api.oefr-kraken.energy/v1/graphql/

List of detailed measures.

The possible errors that can be raised are:

Arguments

Name Description

input (RequestElectricityDetailedMeasuresInput!)

Input fields for requesting detailed measures.

Query

query DetailedMeasures($input: RequestElectricityDetailedMeasuresInput!) {
  detailedMeasures(input: $input) {
    periodEndDate
    periodStartDate
    physicalMeasures {
      ...ElectricityPhysicalMeasureFragment
    }
    prmRef
  }
}

Response

{
  "data": {
    "detailedMeasures": {
      "periodEndDate": "1994-06-08",
      "periodStartDate": "1970-12-04",
      "physicalMeasures": [ElectricityPhysicalMeasure],
      "prmRef": "player-school-network-seat-alone"
    }
  }
}

devices

Type: [SmartFlexDeviceInterface!]

URL: https://api.oefr-kraken.energy/v1/graphql/

A list of devices registered to an account.

Arguments

Name Description

accountNumber (String!)

The account number, e.g. A-12345678.

deviceId (String)

Only list the device with this ID.

integrationDeviceId (String)

Only list the device with this integration device ID.

propertyId (ID)

Only list devices registered to this property.

Query

query Devices(
  $accountNumber: String!,
  $deviceId: String,
  $integrationDeviceId: String,
  $propertyId: ID
) {
  devices(
    accountNumber: $accountNumber,
    deviceId: $deviceId,
    integrationDeviceId: $integrationDeviceId,
    propertyId: $propertyId
  ) {
    alerts {
      ...SmartFlexDeviceAlertInterfaceFragment
    }
    deviceType
    id
    integrationDeviceId
    name
    onboardingWizard {
      ...SmartFlexOnboardingWizardFragment
    }
    preferenceSetting {
      ...FlexDevicePreferenceSettingInterfaceFragment
    }
    preferences {
      ...SmartFlexDevicePreferencesInterfaceFragment
    }
    propertyId
    provider
    reAuthenticationState {
      ...DeviceReAuthenticationInterfaceFragment
    }
    status {
      ...SmartFlexDeviceStatusInterfaceFragment
    }
  }
}

Variables

{
  "accountNumber": "A-22208784",
  "deviceId": "18698853",
  "integrationDeviceId": "24304014",
  "propertyId": "27175559"
}

Response

{
  "data": {
    "devices": [
      {
        "alerts": SmartFlexDeviceAlertInterface,
        "deviceType": "BATTERIES",
        "id": "92390896",
        "integrationDeviceId": "89885328",
        "name": "he-notice-bill-themselves-return",
        "onboardingWizard": SmartFlexOnboardingWizard,
        "preferenceSetting": FlexDevicePreferenceSettingInterface,
        "preferences": SmartFlexDevicePreferencesInterface,
        "propertyId": "71409727",
        "provider": "BYD",
        "reAuthenticationState": DeviceReAuthenticationInterface,
        "status": SmartFlexDeviceStatusInterface
      }
    ]
  }
}

domesticAccountReferralRewardScheme

Type: ReferralSchemeType

URL: https://api.oefr-kraken.energy/v1/graphql/

Return a domestic referral reward scheme for the given account referral code.

Arguments

Name Description

code (String!)

Friend referral code.

Query

query DomesticAccountReferralRewardScheme($code: String!) {
  domesticAccountReferralRewardScheme(code: $code) {
    canBeReferred
    code
    combinedRewardAmount
    isUsageAtCapacity
    loyaltyPointsBonus
    maxRecurrence
    referralDisplayUrl
    referralUrl
    referredRewardAmount
    referrerGivenName
    referrerRewardAmount
    schemeType
  }
}

Variables

{
  "code": "security-summer-international-mouth-chair"
}

Response

{
  "data": {
    "domesticAccountReferralRewardScheme": {
      "canBeReferred": true,
      "code": "young-water-only-sister-peace",
      "combinedRewardAmount": 26,
      "isUsageAtCapacity": true,
      "loyaltyPointsBonus": 84,
      "maxRecurrence": 68,
      "referralDisplayUrl": "scene-buy-war-herself-choose",
      "referralUrl": "message-produce-particularly-manage-might",
      "referredRewardAmount": 17,
      "referrerGivenName": "Monique",
      "referrerRewardAmount": 99,
      "schemeType": "wear-light-hit-process-magazine"
    }
  }
}

domesticJoiningRewardScheme

Type: ReferralSchemeType

URL: https://api.oefr-kraken.energy/v1/graphql/

Return a joining reward scheme with the given code, if it's active. A joining reward can be a signup reward or a promotional reward.

Arguments

Name Description

code (String!)

Reward code for the scheme.

Query

query DomesticJoiningRewardScheme($code: String!) {
  domesticJoiningRewardScheme(code: $code) {
    canBeReferred
    code
    combinedRewardAmount
    isUsageAtCapacity
    loyaltyPointsBonus
    maxRecurrence
    referralDisplayUrl
    referralUrl
    referredRewardAmount
    referrerGivenName
    referrerRewardAmount
    schemeType
  }
}

Variables

{
  "code": "blood-bad-gun-stand-nature"
}

Response

{
  "data": {
    "domesticJoiningRewardScheme": {
      "canBeReferred": true,
      "code": "special-paper-thousand-woman-wife",
      "combinedRewardAmount": 12,
      "isUsageAtCapacity": true,
      "loyaltyPointsBonus": 26,
      "maxRecurrence": 85,
      "referralDisplayUrl": "big-task-between-knowledge-entire",
      "referralUrl": "perform-large-word-bill-those",
      "referredRewardAmount": 94,
      "referrerGivenName": "Charles",
      "referrerRewardAmount": 97,
      "schemeType": "me-for-last-always-couple"
    }
  }
}

domesticSignupRewardScheme

Type: ReferralSchemeType

URL: https://api.oefr-kraken.energy/v1/graphql/

Return a signup referral reward scheme with the given code, if it's active.

Arguments

Name Description

code (String!)

Reward code for the scheme.

Query

query DomesticSignupRewardScheme($code: String!) {
  domesticSignupRewardScheme(code: $code) {
    canBeReferred
    code
    combinedRewardAmount
    isUsageAtCapacity
    loyaltyPointsBonus
    maxRecurrence
    referralDisplayUrl
    referralUrl
    referredRewardAmount
    referrerGivenName
    referrerRewardAmount
    schemeType
  }
}

Variables

{
  "code": "both-may-girl-so-today"
}

Response

{
  "data": {
    "domesticSignupRewardScheme": {
      "canBeReferred": true,
      "code": "something-protect-discussion-first-yeah",
      "combinedRewardAmount": 20,
      "isUsageAtCapacity": true,
      "loyaltyPointsBonus": 79,
      "maxRecurrence": 60,
      "referralDisplayUrl": "need-challenge-worry-forget-close",
      "referralUrl": "gas-TV-establish-you-should",
      "referredRewardAmount": 12,
      "referrerGivenName": "Brian",
      "referrerRewardAmount": 61,
      "schemeType": "soldier-out-stuff-key-yourself"
    }
  }
}

electricVehicles

Type: [ElectricVehicleType]

URL: https://api.oefr-kraken.energy/v1/graphql/

All electric vehicle types and their details.

The possible errors that can be raised are:

  • KT-CT-4343: Unable to fetch electric vehicles list for make.
  • KT-CT-4344: Make is not supported by provider.
  • KT-CT-1113: Disabled GraphQL field requested.

Arguments

Name Description

isIntegrationLive (Boolean)

Only return vehicles that are currently integrated.

make (String)

Only return vehicle types for the specified make.

supportedProvider (ProviderChoices)

Only return vehicle types supported by the specified provider, e.g. Tesla.

Query

query ElectricVehicles(
  $isIntegrationLive: Boolean,
  $make: String,
  $supportedProvider: ProviderChoices
) {
  electricVehicles(
    isIntegrationLive: $isIntegrationLive,
    make: $make,
    supportedProvider: $supportedProvider
  ) {
    make
    models {
      ...ElectricVehicleModelTypeFragment
    }
  }
}

Variables

{
  "isIntegrationLive": true,
  "make": "against-pick-technology-know-itself",
  "supportedProvider": "BYD"
}

Response

{
  "data": {
    "electricVehicles": [
      {
        "make": "experience-apply-style-become-help",
        "models": [ElectricVehicleModelType]
      }
    ]
  }
}

Arguments

Name Description

accountNumber (String!)

ID of the account.

after (String)

before (String)

endDate (Date!)

End date (exclusive) for the query.

first (Int)

last (Int)

prmId (String!)

ID of the PRM.

startDate (Date!)

Starting date (inclusive) for the query.

Query

query ElectricityConsumption(
  $accountNumber: String!,
  $after: String,
  $before: String,
  $endDate: Date!,
  $first: Int,
  $last: Int,
  $prmId: String!,
  $startDate: Date!
) {
  electricityConsumption(
    accountNumber: $accountNumber,
    after: $after,
    before: $before,
    endDate: $endDate,
    first: $first,
    last: $last,
    prmId: $prmId,
    startDate: $startDate
  ) {
    edgeCount
    edges {
      ...ElectricityConsumptionEdgeFragment
    }
    pageInfo {
      ...PageInfoFragment
    }
    totalCount
  }
}

Variables

{
  "accountNumber": "A-049679A0",
  "after": "YXJyYXljb25uZWN0aW9uOjEw=",
  "before": "YXJyYXljb25uZWN0aW9uOjEw=",
  "endDate": "2016-02-11",
  "first": 10,
  "last": 10,
  "prmId": "13022095",
  "startDate": "2001-04-16"
}

Response

{
  "data": {
    "electricityConsumption": {
      "edgeCount": 33,
      "edges": ElectricityConsumptionEdge,
      "pageInfo": PageInfo,
      "totalCount": 91
    }
  }
}

Arguments

Name Description

accountNumber (String!)

ID of the account.

after (String)

before (String)

calendarType (CalendarType)

The calendar type of the reading.

first (Int)

last (Int)

periodEndAt (Date)

End period date (exclusive) of the reading.

periodStartAt (Date)

Starting period date (inclusive) of the reading.

prmId (String!)

ID of the PRM.

statusProcessed (ReadingStatus)

The processing status of the reading.

Query

query ElectricityReading(
  $accountNumber: String!,
  $after: String,
  $before: String,
  $calendarType: CalendarType,
  $first: Int,
  $last: Int,
  $periodEndAt: Date,
  $periodStartAt: Date,
  $prmId: String!,
  $statusProcessed: ReadingStatus
) {
  electricityReading(
    accountNumber: $accountNumber,
    after: $after,
    before: $before,
    calendarType: $calendarType,
    first: $first,
    last: $last,
    periodEndAt: $periodEndAt,
    periodStartAt: $periodStartAt,
    prmId: $prmId,
    statusProcessed: $statusProcessed
  ) {
    edgeCount
    edges {
      ...ElectricityReadingEdgeFragment
    }
    pageInfo {
      ...PageInfoFragment
    }
    totalCount
  }
}

Variables

{
  "accountNumber": "A-95F5DFF4",
  "after": "YXJyYXljb25uZWN0aW9uOjEw=",
  "before": "YXJyYXljb25uZWN0aW9uOjEw=",
  "calendarType": "PROVIDER",
  "first": 10,
  "last": 10,
  "periodEndAt": "1987-06-15",
  "periodStartAt": "1976-12-15",
  "prmId": "51235065",
  "statusProcessed": "OK"
}

Response

{
  "data": {
    "electricityReading": {
      "edgeCount": 61,
      "edges": ElectricityReadingEdge,
      "pageInfo": PageInfo,
      "totalCount": 8
    }
  }
}

eligibilityToJoinLoyaltyPointsProgram

Type: LoyaltyPointsProgramEligibilityType

URL: https://api.oefr-kraken.energy/v1/graphql/

Check if an account is eligible to join the loyalty points program.

The possible errors that can be raised are:

Arguments

Name Description

input (LoyaltyPointsProgramEligibilityInput!)

Query

query EligibilityToJoinLoyaltyPointsProgram($input: LoyaltyPointsProgramEligibilityInput!) {
  eligibilityToJoinLoyaltyPointsProgram(input: $input) {
    isEligible
    primaryIneligibilityReason
  }
}

Variables

Response

{
  "data": {
    "eligibilityToJoinLoyaltyPointsProgram": {
      "isEligible": true,
      "primaryIneligibilityReason": "lose-should-smile-safe-eight"
    }
  }
}

eligibleDeviceTypes

Type: [KrakenFlexDeviceTypes]

URL: https://api.oefr-kraken.energy/v1/graphql/

A list of device types that are eligible for registration.

Arguments

Name Description

accountNumber (String!)

The account number, e.g. A-12345678.

propertyId (Int)

            The property's id where the device will be registered to.
            Note: in future, eligible device types will be dependent on the property id and
            it will be a required input.

Query

query EligibleDeviceTypes(
  $accountNumber: String!,
  $propertyId: Int
) {
  eligibleDeviceTypes(
    accountNumber: $accountNumber,
    propertyId: $propertyId
  )
}

Variables

{
  "accountNumber": "A-CF97C1BB",
  "propertyId": 39324414
}

Response

{
  "data": {
    "eligibleDeviceTypes": "BATTERIES"
  }
}

embeddedNetwork

Type: EmbeddedNetworkType

URL: https://api.oefr-kraken.energy/v1/graphql/

Get details about an embedded network.

Arguments

Name Description

id (ID!)

Query

query EmbeddedNetwork($id: ID!) {
  embeddedNetwork(id: $id) {
    embeddedProperties {
      ...EmbeddedPropertyTypeFragment
    }
    id
    name
  }
}

Variables

{
  "id": "59097675"
}

Response

{
  "data": {
    "embeddedNetwork": {
      "embeddedProperties": [EmbeddedPropertyType],
      "id": "56492723",
      "name": "economic-usually-land-throughout-accept"
    }
  }
}

Query

query EnergyMixData {
  energyMixData {
    carbonIntensityIndex
  }
}

Response

{
  "data": {
    "energyMixData": {
      "carbonIntensityIndex": "visit-chance-school-apply-fill"
    }
  }
}

enodeLinkSession

Type: EnodeLinkSessionType

URL: https://api.oefr-kraken.energy/v1/graphql/

The user specific Enode link session details.

The possible errors that can be raised are:

Deprecated

The 'enodeLinkSession' field is deprecated.

Please use 'startSmartFlexOnboarding' instead.

- Marked as deprecated on 2025-10-30.
- Scheduled for removal on or after 2026-04-30.

You can read more about this deprecation on:
https://announcements.kraken.tech/announcements/public/608/

Arguments

Name Description

accountNumber (String)

vendor (EnodeVendors)

Query

query EnodeLinkSession(
  $accountNumber: String,
  $vendor: EnodeVendors
) {
  enodeLinkSession(
    accountNumber: $accountNumber,
    vendor: $vendor
  ) {
    linkState
    linkUrl
  }
}

Variables

{
  "accountNumber": "A-F38C6D1A",
  "vendor": "AUDI"
}

Response

{
  "data": {
    "enodeLinkSession": {
      "linkState": "get-door-organization-draw-suggest",
      "linkUrl": "order-collection-citizen-race-bed"
    }
  }
}

Arguments

Name Description

after (String)

before (String)

deviceId (ID)

The meter id to perform estimation on.

first (Int)

last (Int)

marketIdentifier (ID!)

This is the unique identifier used by the market to identify the supply point.

periodEnd (DateTime!)

The end of the period estimated.

periodStart (DateTime!)

The start of the period estimated.

registerId (ID)

The meter's register identifier.

Query

query EstimateMeterReadings(
  $after: String,
  $before: String,
  $deviceId: ID,
  $first: Int,
  $last: Int,
  $marketIdentifier: ID!,
  $periodEnd: DateTime!,
  $periodStart: DateTime!,
  $registerId: ID
) {
  estimateMeterReadings(
    after: $after,
    before: $before,
    deviceId: $deviceId,
    first: $first,
    last: $last,
    marketIdentifier: $marketIdentifier,
    periodEnd: $periodEnd,
    periodStart: $periodStart,
    registerId: $registerId
  ) {
    edgeCount
    edges {
      ...MeterReadingEstimationReadingEdgeFragment
    }
    pageInfo {
      ...PageInfoFragment
    }
    totalCount
  }
}

Variables

{
  "after": "YXJyYXljb25uZWN0aW9uOjEw=",
  "before": "YXJyYXljb25uZWN0aW9uOjEw=",
  "deviceId": "85153504",
  "first": 10,
  "last": 10,
  "marketIdentifier": "79123643",
  "periodEnd": "1984-11-15T01:49:07.078088+00:00",
  "periodStart": "1985-05-05T17:11:36.523157+00:00",
  "registerId": "15197699"
}

Response

{
  "data": {
    "estimateMeterReadings": {
      "edgeCount": 86,
      "edges": MeterReadingEstimationReadingEdge,
      "pageInfo": PageInfo,
      "totalCount": 79
    }
  }
}

externalAccountEvents

Type: ExternalAccountEventConnectionTypeConnection

URL: https://api.oefr-kraken.energy/v1/graphql/

Get a list of audit account events, of type external, for a given account.

Arguments

Name Description

accountNumber (String!)

Account number to filter by.

after (String)

before (String)

first (Int)

last (Int)

Query

query ExternalAccountEvents(
  $accountNumber: String!,
  $after: String,
  $before: String,
  $first: Int,
  $last: Int
) {
  externalAccountEvents(
    accountNumber: $accountNumber,
    after: $after,
    before: $before,
    first: $first,
    last: $last
  ) {
    edgeCount
    edges {
      ...ExternalAccountEventConnectionTypeEdgeFragment
    }
    pageInfo {
      ...PageInfoFragment
    }
    totalCount
  }
}

Variables

{
  "accountNumber": "A-D12B8F10",
  "after": "YXJyYXljb25uZWN0aW9uOjEw=",
  "before": "YXJyYXljb25uZWN0aW9uOjEw=",
  "first": 10,
  "last": 10
}

Response

{
  "data": {
    "externalAccountEvents": {
      "edgeCount": 28,
      "edges": ExternalAccountEventConnectionTypeEdge,
      "pageInfo": PageInfo,
      "totalCount": 60
    }
  }
}

fanClubStatus

Type: [FanClubStatus]

URL: https://api.oefr-kraken.energy/v1/graphql/

Get current status, historic discounts and future projections for a Fan Club source.

The possible errors that can be raised are:

Arguments

Name Description

accountNumber (String)

The account number.

propertyId (Int)

The ID of the property.

Query

query FanClubStatus(
  $accountNumber: String,
  $propertyId: Int
) {
  fanClubStatus(
    accountNumber: $accountNumber,
    propertyId: $propertyId
  ) {
    accountNumbers
    catchments
    current {
      ...DiscountDataFragment
    }
    discountSource
    forecast {
      ...DiscountForecastFragment
    }
    historic {
      ...DiscountDataFragment
    }
    location
    name
    propertyIds
    thresholds {
      ...ThresholdFragment
    }
    windFarm
  }
}

Variables

{
  "accountNumber": "A-D0A44BE1",
  "propertyId": 58202851
}

Response

{
  "data": {
    "fanClubStatus": [
      {
        "accountNumbers": "often-line-shoulder-sound-growth",
        "catchments": "one-into-sometimes-art-eight",
        "current": DiscountData,
        "discountSource": "born-law-whatever-girl-politics",
        "forecast": DiscountForecast,
        "historic": DiscountData,
        "location": "daughter-movie-from-hair-southern",
        "name": "test-situation-plan-learn-a",
        "propertyIds": 36,
        "thresholds": Threshold,
        "windFarm": "listen-business-rather-leg-protect"
      }
    ]
  }
}

flexPlannedDispatches

Type: [SmartFlexDispatch]

URL: https://api.oefr-kraken.energy/v1/graphql/

All planned device dispatches in time order.

The possible errors that can be raised are:

Arguments

Name Description

deviceId (String!)

The SmartFlex device ID to get the planned dispatches for.

Query

query FlexPlannedDispatches($deviceId: String!) {
  flexPlannedDispatches(deviceId: $deviceId) {
    end
    energyAddedKwh
    start
    type
  }
}

Variables

{
  "deviceId": "72271451"
}

Response

{
  "data": {
    "flexPlannedDispatches": [
      {
        "end": "2009-09-04T19:14:38.150079+00:00",
        "energyAddedKwh": "1.0",
        "start": "2005-01-08T07:44:31.497310+00:00",
        "type": "SMART"
      }
    ]
  }
}

flexSupportedDevices

Type: FlexSupportedDevices

URL: https://api.oefr-kraken.energy/v1/graphql/

Devices capable of being registered with SmartFlex.

Arguments

Name Description

deviceType (KrakenFlexDeviceTypes!)

The device type to get the supported devices for.

Query

query FlexSupportedDevices($deviceType: KrakenFlexDeviceTypes!) {
  flexSupportedDevices(deviceType: $deviceType) {
    deviceType
    supportedMakes {
      ...FlexSupportedMakeFragment
    }
  }
}

Variables

{
  "deviceType": "BATTERIES"
}

Response

{
  "data": {
    "flexSupportedDevices": {
      "deviceType": "BATTERIES",
      "supportedMakes": FlexSupportedMake
    }
  }
}

Arguments

Name Description

productCode (String!)

The product code to fetch the terms and conditions for.

Query

query FraTermsAndConditionsForProduct($productCode: String!) {
  fraTermsAndConditionsForProduct(productCode: $productCode) {
    documentUrl
    effectiveFrom
    name
    version
  }
}

Variables

{
  "productCode": "book-only-activity-pull-those"
}

Response

{
  "data": {
    "fraTermsAndConditionsForProduct": {
      "documentUrl": "article-policy-simple-pretty-simply",
      "effectiveFrom": "1995-11-03T06:09:55.747007+00:00",
      "name": "song-every-others-street-political",
      "version": "information-life-not-democratic-still"
    }
  }
}

fraudMeterPointChecks

Type: FraudMeterPointCheckType

URL: https://api.oefr-kraken.energy/v1/graphql/

Check if a given meter point ID is in suspicious meter point IDs list.

Arguments

Name Description

meterPointId (String!)

The meter point ID.

Query

query FraudMeterPointChecks($meterPointId: String!) {
  fraudMeterPointChecks(meterPointId: $meterPointId) {
    isInSuspiciousList
    meterPointId
  }
}

Variables

{
  "meterPointId": "51087393"
}

Response

{
  "data": {
    "fraudMeterPointChecks": {
      "isInSuspiciousList": true,
      "meterPointId": "15412482"
    }
  }
}

fraudRiskLevel

Type: FinancialRiskLevelType

URL: https://api.oefr-kraken.energy/v1/graphql/

Check if a given ID and type have a financial risk level.

Arguments

Name Description

identifierType (String!)

The type of object the ID represents.

identifierValue (String!)

The ID to be checked.

Query

query FraudRiskLevel(
  $identifierType: String!,
  $identifierValue: String!
) {
  fraudRiskLevel(
    identifierType: $identifierType,
    identifierValue: $identifierValue
  ) {
    identifierType
    identifierValue
    isInRiskList
    riskLevel
  }
}

Variables

{
  "identifierType": "economic-indicate-second-ready-our",
  "identifierValue": "support-particularly-minute-no-fact"
}

Response

{
  "data": {
    "fraudRiskLevel": {
      "identifierType": "seek-about-since-similar-whatever",
      "identifierValue": "53616223",
      "isInRiskList": true,
      "riskLevel": "1.0"
    }
  }
}

Arguments

Name Description

accountNumber (String!)

ID of the account.

after (String)

before (String)

energyQualification (ReadingQualification)

The reading's energy qualification.

first (Int)

last (Int)

pceRef (String!)

ID of the PCE.

periodEndAt (Date)

End period date (exclusive) of the reading.

periodStartAt (Date)

Starting period date (inclusive) of the reading.

readingType (ReadingType)

The type of the reading.

statusProcessed (ReadingStatus)

The processing status of the reading.

Query

query GasReading(
  $accountNumber: String!,
  $after: String,
  $before: String,
  $energyQualification: ReadingQualification,
  $first: Int,
  $last: Int,
  $pceRef: String!,
  $periodEndAt: Date,
  $periodStartAt: Date,
  $readingType: ReadingType,
  $statusProcessed: ReadingStatus
) {
  gasReading(
    accountNumber: $accountNumber,
    after: $after,
    before: $before,
    energyQualification: $energyQualification,
    first: $first,
    last: $last,
    pceRef: $pceRef,
    periodEndAt: $periodEndAt,
    periodStartAt: $periodStartAt,
    readingType: $readingType,
    statusProcessed: $statusProcessed
  ) {
    edgeCount
    edges {
      ...GasReadingEdgeFragment
    }
    pageInfo {
      ...PageInfoFragment
    }
    totalCount
  }
}

Variables

{
  "accountNumber": "A-92281289",
  "after": "YXJyYXljb25uZWN0aW9uOjEw=",
  "before": "YXJyYXljb25uZWN0aW9uOjEw=",
  "energyQualification": "M",
  "first": 10,
  "last": 10,
  "pceRef": "even-may-single-assume-TV",
  "periodEndAt": "2008-02-20",
  "periodStartAt": "1989-07-29",
  "readingType": "A",
  "statusProcessed": "OK"
}

Response

{
  "data": {
    "gasReading": {
      "edgeCount": 27,
      "edges": GasReadingEdge,
      "pageInfo": PageInfo,
      "totalCount": 66
    }
  }
}

getEnergyLandscapeFieldsDescription

Type: [EnergyLandscapeFieldDescriptorType]

URL: https://api.oefr-kraken.energy/v1/graphql/

Returns the fields description for the associated energy landscape.

The possible errors that can be raised are:

  • KT-FR-4915: The version is not supported or improperly configured.
  • KT-CT-1113: Disabled GraphQL field requested.

Arguments

Name Description

version (String)

The version of the energy landscape to query.

Query

query GetEnergyLandscapeFieldsDescription($version: String) {
  getEnergyLandscapeFieldsDescription(version: $version) {
    fieldName
    fieldObject {
      ...EnergyLandscapeFieldInterfaceFragment
    }
  }
}

Variables

{
  "version": "yard-might-some-discuss-international"
}

Response

{
  "data": {
    "getEnergyLandscapeFieldsDescription": [
      {
        "fieldName": "general-sort-view-fire-key",
        "fieldObject": EnergyLandscapeFieldInterface
      }
    ]
  }
}

Arguments

Name Description

agent (OnSiteJobsAgent!)

The agent for the appointment.

externalReference (String!)

The external reference of the appointment to return.

Query

query GetOnSiteJobsAppointmentByExternalReference(
  $agent: OnSiteJobsAgent!,
  $externalReference: String!
) {
  getOnSiteJobsAppointmentByExternalReference(
    agent: $agent,
    externalReference: $externalReference
  ) {
    agent
    appointmentActions {
      ...OnSiteJobsAppointmentActionConnectionTypeConnectionFragment
    }
    assets {
      ...OnSiteJobsAssetConnectionTypeConnectionFragment
    }
    cancellationCategory
    cancellationSubCategory
    comments
    commsStrategy
    createdAt
    deadlineDate
    endAt
    externalJobTypeMapping {
      ...OnSiteJobsExternalJobTypeMappingTypeFragment
    }
    externalReference
    id
    jobDetails
    jobNotes
    krakenWorkCategory
    preferredStartDate
    startAt
    status
  }
}

Variables

{
  "agent": "GENERIC_AGENT",
  "externalReference": "into-at-cell-board-situation"
}

Response

{
  "data": {
    "getOnSiteJobsAppointmentByExternalReference": {
      "agent": "GENERIC_AGENT",
      "appointmentActions": OnSiteJobsAppointmentActionConnectionTypeConnection,
      "assets": OnSiteJobsAssetConnectionTypeConnection,
      "cancellationCategory": "CANCELLED_BY_CUSTOMER",
      "cancellationSubCategory": "source-accept-teacher-example-often",
      "comments": "friend-result-never-beautiful-budget",
      "commsStrategy": "SEND_ALL",
      "createdAt": "2011-03-04T04:15:41.649980+00:00",
      "deadlineDate": "1976-09-27",
      "endAt": "1985-09-26T12:52:27.770135+00:00",
      "externalJobTypeMapping": OnSiteJobsExternalJobTypeMappingType,
      "externalReference": "economic-beat-community-office-much",
      "id": "5a6e0f8b-4903-4da3-b3a0-53fd887ae37b",
      "jobDetails": {"key": "value"},
      "jobNotes": {"key": "value"},
      "krakenWorkCategory": "EXCHANGE",
      "preferredStartDate": "2021-03-29",
      "startAt": "2020-08-22T17:25:32.112118+00:00",
      "status": "PENDING"
    }
  }
}

Arguments

Name Description

appointmentId (UUID)

The Kraken ID of the appointment to return.

Query

query GetOnSiteJobsAppointmentById($appointmentId: UUID) {
  getOnSiteJobsAppointmentById(appointmentId: $appointmentId) {
    agent
    appointmentActions {
      ...OnSiteJobsAppointmentActionConnectionTypeConnectionFragment
    }
    assets {
      ...OnSiteJobsAssetConnectionTypeConnectionFragment
    }
    cancellationCategory
    cancellationSubCategory
    comments
    commsStrategy
    createdAt
    deadlineDate
    endAt
    externalJobTypeMapping {
      ...OnSiteJobsExternalJobTypeMappingTypeFragment
    }
    externalReference
    id
    jobDetails
    jobNotes
    krakenWorkCategory
    preferredStartDate
    startAt
    status
  }
}

Variables

{
  "appointmentId": "9528fd7f-2449-452a-af5c-364a1b9a9e28"
}

Response

{
  "data": {
    "getOnSiteJobsAppointmentById": {
      "agent": "GENERIC_AGENT",
      "appointmentActions": OnSiteJobsAppointmentActionConnectionTypeConnection,
      "assets": OnSiteJobsAssetConnectionTypeConnection,
      "cancellationCategory": "CANCELLED_BY_CUSTOMER",
      "cancellationSubCategory": "myself-beautiful-safe-ever-clear",
      "comments": "nation-start-catch-challenge-statement",
      "commsStrategy": "SEND_ALL",
      "createdAt": "2023-10-23T02:11:00.709413+00:00",
      "deadlineDate": "2000-05-01",
      "endAt": "1996-02-25T18:34:03.135093+00:00",
      "externalJobTypeMapping": OnSiteJobsExternalJobTypeMappingType,
      "externalReference": "out-already-bank-lose-development",
      "id": "aa9c8da8-a814-4cb1-9dec-0ed9549994ae",
      "jobDetails": {"key": "value"},
      "jobNotes": {"key": "value"},
      "krakenWorkCategory": "EXCHANGE",
      "preferredStartDate": "1991-06-05",
      "startAt": "1980-08-23T05:02:25.368741+00:00",
      "status": "PENDING"
    }
  }
}

getOnSiteJobsAppointmentSlots

Type: OnSiteJobsAppointmentSlotResultsType

URL: https://api.oefr-kraken.energy/v1/graphql/

Get appointment slot results using appointment booking session ID.

Arguments

Name Description

appointmentBookingSessionId (UUID!)

Appointment booking session ID to fetch slots for. ID can be obtained via startOnSiteJobsAppointmentBookingSession mutation.

appointmentDate (Date!)

Appointment date (inclusive) to fetch slots from.

Query

query GetOnSiteJobsAppointmentSlots(
  $appointmentBookingSessionId: UUID!,
  $appointmentDate: Date!
) {
  getOnSiteJobsAppointmentSlots(
    appointmentBookingSessionId: $appointmentBookingSessionId,
    appointmentDate: $appointmentDate
  ) {
    isComplete
    slots {
      ...OnSiteJobsAppointmentSlotTypeFragment
    }
  }
}

Variables

{
  "appointmentBookingSessionId": "02502794-25ef-49c7-9dfd-615aa8beb2a6",
  "appointmentDate": "1977-08-06"
}

Response

{
  "data": {
    "getOnSiteJobsAppointmentSlots": {
      "isComplete": true,
      "slots": OnSiteJobsAppointmentSlotType
    }
  }
}

getOnSiteJobsCheckResults

Type: OnSiteJobsCheckResultsType

URL: https://api.oefr-kraken.energy/v1/graphql/

Get check results for creating requests and appointments.

Arguments

Name Description

jobType (String)

Job type for appointment checks.

supplyPointIdentifierToMarketNameMapping ([SupplyPointIdentifierToMarketNameMappingInput])

Supply point identifier to market name mapping. If this is provided, supplyPointInternalIds cannot be provided. Either one of them must be provided.

supplyPointInternalIds ([Int])

List of internal IDs of supply points. If this is provided, supplyPointIdentifierToMarketNameMapping cannot be provided. Either one of them must be provided.

Query

query GetOnSiteJobsCheckResults(
  $jobType: String,
  $supplyPointIdentifierToMarketNameMapping: [SupplyPointIdentifierToMarketNameMappingInput],
  $supplyPointInternalIds: [Int]
) {
  getOnSiteJobsCheckResults(
    jobType: $jobType,
    supplyPointIdentifierToMarketNameMapping: $supplyPointIdentifierToMarketNameMapping,
    supplyPointInternalIds: $supplyPointInternalIds
  ) {
    appointmentCheckResults {
      ...CheckResultTypeFragment
    }
    canCreateAppointment
    canCreateRequest
    hasAppointmentWarnings
    hasRequestWarnings
    requestCheckResults {
      ...CheckResultTypeFragment
    }
  }
}

Variables

{
  "jobType": "argue-seat-attorney-seek-teacher",
  "supplyPointIdentifierToMarketNameMapping": SupplyPointIdentifierToMarketNameMappingInput,
  "supplyPointInternalIds": [46]
}

Response

{
  "data": {
    "getOnSiteJobsCheckResults": {
      "appointmentCheckResults": [CheckResultType],
      "canCreateAppointment": true,
      "canCreateRequest": true,
      "hasAppointmentWarnings": true,
      "hasRequestWarnings": true,
      "requestCheckResults": [CheckResultType]
    }
  }
}

getOnSiteJobsJobTypes

Type: [OnSiteJobsJobTypeType]

URL: https://api.oefr-kraken.energy/v1/graphql/

Get available job types for an on-site jobs request.

Arguments

Name Description

requestId (UUID!)

The ID of the request for which to fetch available job types.

workCategory (OnSiteJobsWorkCategory)

Work category to filter job types by. If it's left as blank, all job types will be returned.

Query

query GetOnSiteJobsJobTypes(
  $requestId: UUID!,
  $workCategory: OnSiteJobsWorkCategory
) {
  getOnSiteJobsJobTypes(
    requestId: $requestId,
    workCategory: $workCategory
  ) {
    id
    name
  }
}

Variables

{
  "requestId": "451f3a94-11d1-4cfb-9ec0-ee9085b20ed3",
  "workCategory": "EXCHANGE"
}

Response

{
  "data": {
    "getOnSiteJobsJobTypes": [
      {
        "id": "18672350",
        "name": "position-rock-what-crime-director"
      }
    ]
  }
}

Arguments

Name Description

requestId (UUID)

The ID of the request to return.

Query

query GetOnSiteJobsRequestById($requestId: UUID) {
  getOnSiteJobsRequestById(requestId: $requestId) {
    account
    agent
    appointments {
      ...OnSiteJobsAppointmentConnectionTypeConnectionFragment
    }
    assets {
      ...OnSiteJobsAssetConnectionTypeConnectionFragment
    }
    comment
    createdBy
    externalReference
    id
    isEmergency
    marketSupplyPoints {
      ...SupplyPointConnectionTypeConnectionFragment
    }
    overallActionsStatus
    property {
      ...PropertyTypeFragment
    }
    reason
    requestActions {
      ...OnSiteJobsRequestActionConnectionTypeConnectionFragment
    }
    status
    subReason
  }
}

Variables

{
  "requestId": "5124ad39-9970-4dac-b568-bd57939c3772"
}

Response

{
  "data": {
    "getOnSiteJobsRequestById": {
      "account": "hot-in-six-those-whether",
      "agent": "per-can-center-education-everybody",
      "appointments": OnSiteJobsAppointmentConnectionTypeConnection,
      "assets": OnSiteJobsAssetConnectionTypeConnection,
      "comment": "nation-myself-doctor-wonder-consider",
      "createdBy": 51,
      "externalReference": "let-a-throughout-final-later",
      "id": "66909ce1-0e88-426f-85c3-a75daa644ea9",
      "isEmergency": true,
      "marketSupplyPoints": SupplyPointConnectionTypeConnection,
      "overallActionsStatus": "SKIPPED",
      "property": PropertyType,
      "reason": "who-trade-pressure-political-third",
      "requestActions": OnSiteJobsRequestActionConnectionTypeConnection,
      "status": "CANCELLED",
      "subReason": "summer-film-must-every-bar"
    }
  }
}

Arguments

Name Description

after (String)

before (String)

first (Int)

last (Int)

statuses ([OnSiteJobsRequestStatus])

A list of statuses to filter requests by.

supplyPointInternalIds ([Int])

List of internal IDs of supply points to filter requests by. If this is provided, supplyPointsToMarketNamesMapping cannot be provided.

supplyPointsToMarketNamesMapping ([SupplyPointIdentifierToMarketNameMappingInput])

A list of supply point identifiers to filter requests by. If this is provided, supplyPointInternalIds cannot be provided.

Query

query GetOnSiteJobsRequests(
  $after: String,
  $before: String,
  $first: Int,
  $last: Int,
  $statuses: [OnSiteJobsRequestStatus],
  $supplyPointInternalIds: [Int],
  $supplyPointsToMarketNamesMapping: [SupplyPointIdentifierToMarketNameMappingInput]
) {
  getOnSiteJobsRequests(
    after: $after,
    before: $before,
    first: $first,
    last: $last,
    statuses: $statuses,
    supplyPointInternalIds: $supplyPointInternalIds,
    supplyPointsToMarketNamesMapping: $supplyPointsToMarketNamesMapping
  ) {
    edgeCount
    edges {
      ...OnSiteJobsRequestConnectionTypeEdgeFragment
    }
    pageInfo {
      ...PageInfoFragment
    }
    totalCount
  }
}

Variables

{
  "after": "YXJyYXljb25uZWN0aW9uOjEw=",
  "before": "YXJyYXljb25uZWN0aW9uOjEw=",
  "first": 10,
  "last": 10,
  "statuses": "CANCELLED",
  "supplyPointInternalIds": [7],
  "supplyPointsToMarketNamesMapping": SupplyPointIdentifierToMarketNameMappingInput
}

Response

{
  "data": {
    "getOnSiteJobsRequests": {
      "edgeCount": 25,
      "edges": OnSiteJobsRequestConnectionTypeEdge,
      "pageInfo": PageInfo,
      "totalCount": 45
    }
  }
}

Arguments

Name Description

after (String)

before (String)

code ([String])

Code of the products to filter by.

first (Int)

last (Int)

marketName (String!)

Market name of the products to list.

productType ([String])

Types of the products to filter by.

Query

query GoodsProducts(
  $after: String,
  $before: String,
  $code: [String],
  $first: Int,
  $last: Int,
  $marketName: String!,
  $productType: [String]
) {
  goodsProducts(
    after: $after,
    before: $before,
    code: $code,
    first: $first,
    last: $last,
    marketName: $marketName,
    productType: $productType
  ) {
    edgeCount
    edges {
      ...GoodsProductConnectionTypeEdgeFragment
    }
    pageInfo {
      ...PageInfoFragment
    }
    totalCount
  }
}

Variables

{
  "after": "YXJyYXljb25uZWN0aW9uOjEw=",
  "before": "YXJyYXljb25uZWN0aW9uOjEw=",
  "code": ["today-politics-energy-station-agent"],
  "first": 10,
  "last": 10,
  "marketName": "him-just-change-after-yes",
  "productType": ["wrong-record-shoulder-wonder-firm"]
}

Response

{
  "data": {
    "goodsProducts": {
      "edgeCount": 31,
      "edges": GoodsProductConnectionTypeEdge,
      "pageInfo": PageInfo,
      "totalCount": 5
    }
  }
}

Arguments

Name Description

accountNumber (String!)

The account number.

Query

query GoodsPurchases($accountNumber: String!) {
  goodsPurchases(accountNumber: $accountNumber) {
    clientParams
    code
    goodsGrants {
      ...GoodsGrantFragment
    }
    goodsSaleItems {
      ...GoodsSaleItemFragment
    }
    ledgerNumber
    marketName
    marketParams
  }
}

Variables

{
  "accountNumber": "A-42A9D527"
}

Response

{
  "data": {
    "goodsPurchases": [
      {
        "clientParams": {"key": "value"},
        "code": "TV-less-wife-other-rule",
        "goodsGrants": [GoodsGrant],
        "goodsSaleItems": [GoodsSaleItem],
        "ledgerNumber": "glass-between-analysis-sort-conference",
        "marketName": "condition-late-start-end-too",
        "marketParams": {"key": "value"}
      }
    ]
  }
}

goodsQuotes

Type: [GoodsQuote]

URL: https://api.oefr-kraken.energy/v1/graphql/

List quotes given an account number or retrieve a Goods quote given a quote code.

The possible errors that can be raised are:

Arguments

Name Description

accountNumber (String)

The account number.

quoteCode (String)

The quote code.

Query

query GoodsQuotes(
  $accountNumber: String,
  $quoteCode: String
) {
  goodsQuotes(
    accountNumber: $accountNumber,
    quoteCode: $quoteCode
  ) {
    code
    goodsQuotedProducts {
      ...GoodsQuotedProductFragment
    }
    hasQuoteExpired
    id
    quotedAt
    totalNetAmount
  }
}

Variables

{
  "accountNumber": "A-E9096224",
  "quoteCode": "total-better-argue-whole-food"
}

Response

{
  "data": {
    "goodsQuotes": [
      {
        "code": "this-people-population-talk-crime",
        "goodsQuotedProducts": [GoodsQuotedProduct],
        "hasQuoteExpired": true,
        "id": "11394498",
        "quotedAt": "2023-02-02T18:56:38.014676+00:00",
        "totalNetAmount": 49
      }
    ]
  }
}

Query

query InboundCallAverageWaitTime {
  inboundCallAverageWaitTime {
    recent
    yesterday
  }
}

Response

{
  "data": {
    "inboundCallAverageWaitTime": {
      "recent": 78,
      "yesterday": 79
    }
  }
}

inkCommsTemplate

Type: String!

URL: https://api.oefr-kraken.energy/v1/graphql/

Fetch the content of a given comms template name.

The possible errors that can be raised are:

Arguments

Name Description

templateIdentifier (String!)

The identifier of the comms template.

Query

query InkCommsTemplate($templateIdentifier: String!) {
  inkCommsTemplate(templateIdentifier: $templateIdentifier)
}

Variables

{
  "templateIdentifier": "22580774"
}

Response

{
  "data": {
    "inkCommsTemplate": "science-suggest-major-the-require"
  }
}

inkConversation

Type: InkConversation!

URL: https://api.oefr-kraken.energy/v1/graphql/

Get the Ink conversation for a given account.

The possible errors that can be raised are:

Arguments

Name Description

accountNumber (String)

The account number.

conversationRelayId (String)

The conversation's relay id.

Query

query InkConversation(
  $accountNumber: String,
  $conversationRelayId: String
) {
  inkConversation(
    accountNumber: $accountNumber,
    conversationRelayId: $conversationRelayId
  ) {
    accountNumber
    accountUsers {
      ...AccountUserTypeFragment
    }
    buckets {
      ...InkBucketFragment
    }
    contactChannelIdentities {
      ...InkContactChannelIdentitiesFragment
    }
    events {
      ...InkConversationEventsConnectionFragment
    }
    id
    status
    tags {
      ...InkTagFragment
    }
  }
}

Variables

{
  "accountNumber": "A-72A5B747",
  "conversationRelayId": "57982729"
}

Response

{
  "data": {
    "inkConversation": {
      "accountNumber": "A-91426733",
      "accountUsers": [AccountUserType],
      "buckets": [InkBucket],
      "contactChannelIdentities": InkContactChannelIdentities,
      "events": InkConversationEventsConnection,
      "id": "11556143",
      "status": "OPEN",
      "tags": [InkTag]
    }
  }
}

inkMessage

Type: InkMessage!

URL: https://api.oefr-kraken.energy/v1/graphql/

Get the content for a given message.

The possible errors that can be raised are:

Arguments

Name Description

messageRelayId (String!)

The message's relay id.

Query

query InkMessage($messageRelayId: String!) {
  inkMessage(messageRelayId: $messageRelayId) {
    ... on InkEmail {
      ...InkEmailFragment
    }
    ... on InkGenericMessage {
      ...InkGenericMessageFragment
    }
    ... on InkLine {
      ...InkLineFragment
    }
    ... on InkLiveChatMessage {
      ...InkLiveChatMessageFragment
    }
    ... on InkPost {
      ...InkPostFragment
    }
    ... on InkSMS {
      ...InkSMSFragment
    }
    ... on InkTwilioWhatsApp {
      ...InkTwilioWhatsAppFragment
    }
    ... on InkWhatsApp {
      ...InkWhatsAppFragment
    }
  }
}

Variables

{
  "messageRelayId": "66508018"
}

Response

{
  "data": {
    "inkMessage": InkEmail
  }
}

inkMessageAttributes

Type: InkMessageAttributes!

URL: https://api.oefr-kraken.energy/v1/graphql/

Get attributes of a message at time of query.

The possible errors that can be raised are:

Arguments

Name Description

vendor (String!)

The message's vendor.

vendorId (String!)

The message's vendor id.

Query

query InkMessageAttributes(
  $vendor: String!,
  $vendorId: String!
) {
  inkMessageAttributes(
    vendor: $vendor,
    vendorId: $vendorId
  ) {
    accountType
    accounts
    buckets
    conversationId
    hourOccurredAt
    hoursWaiting
    isAssignedToUserBucket
    isFirstFromContact
    isNewThread
    opsTeam
    recentlyReceivedAutoReplies
    replyToCommsSms
    weekDayOccurredAt
  }
}

Variables

{
  "vendor": "doctor-information-news-order-father",
  "vendorId": "32456485"
}

Response

{
  "data": {
    "inkMessageAttributes": {
      "accountType": "white-together-cold-myself-get",
      "accounts": "hit-eight-American-sport-movie",
      "buckets": ["understand-more-wonder-learn-scientist"],
      "conversationId": 69285213,
      "hourOccurredAt": 97,
      "hoursWaiting": 79,
      "isAssignedToUserBucket": true,
      "isFirstFromContact": true,
      "isNewThread": true,
      "opsTeam": "face-crime-interesting-policy-position",
      "recentlyReceivedAutoReplies": "floor-result-major-hope-over",
      "replyToCommsSms": "none-employee-single-story-large",
      "weekDayOccurredAt": 39
    }
  }
}

inkMessageTextContent

Type: String!

URL: https://api.oefr-kraken.energy/v1/graphql/

Fetch the text content of a given message.

The possible errors that can be raised are:

Arguments

Name Description

messageId (ID!)

The message's id or relay id.

Query

query InkMessageTextContent($messageId: ID!) {
  inkMessageTextContent(messageId: $messageId)
}

Variables

{
  "messageId": "28578369"
}

Response

{
  "data": {
    "inkMessageTextContent": "become-opportunity-attack-century-start"
  }
}

Arguments

Name Description

after (String)

before (String)

first (Int)

last (Int)

Query

query InternalCompanies(
  $after: String,
  $before: String,
  $first: Int,
  $last: Int
) {
  internalCompanies(
    after: $after,
    before: $before,
    first: $first,
    last: $last
  ) {
    edgeCount
    edges {
      ...InternalCompanyConnectionTypeEdgeFragment
    }
    pageInfo {
      ...PageInfoFragment
    }
    totalCount
  }
}

Variables

{
  "after": "YXJyYXljb25uZWN0aW9uOjEw=",
  "before": "YXJyYXljb25uZWN0aW9uOjEw=",
  "first": 10,
  "last": 10
}

Response

{
  "data": {
    "internalCompanies": {
      "edgeCount": 31,
      "edges": InternalCompanyConnectionTypeEdge,
      "pageInfo": PageInfo,
      "totalCount": 100
    }
  }
}

internalCompany

Type: InternalCompanyType

URL: https://api.oefr-kraken.energy/v1/graphql/

Get an internal company by a set of criteria. Criteria will be added as needed, check documentation for the criteria object to see what is currently supported.

The possible errors that can be raised are:

Arguments

Name Description

criteria (SearchCriteriaInput!)

Criteria to identify the internal company.

Query

query InternalCompany($criteria: SearchCriteriaInput!) {
  internalCompany(criteria: $criteria) {
    displayableNumber
    id
    legalAddress {
      ...RichAddressTypeFragment
    }
    name
    primaryRegistrationNumber
    primaryTaxIdentifierNumber
    secondaryRegistrationNumber
  }
}

Variables

{
  "criteria": SearchCriteriaInput
}

Response

{
  "data": {
    "internalCompany": {
      "displayableNumber": "brother-bit-move-want-challenge",
      "id": "24628131",
      "legalAddress": RichAddressType,
      "name": "series-poor-partner-cold-big",
      "primaryRegistrationNumber": "rest-could-new-away-send",
      "primaryTaxIdentifierNumber": "herself-wind-land-herself-follow",
      "secondaryRegistrationNumber": "big-information-peace-note-inside"
    }
  }
}

isCustomerEligibleToGiveFeedbackFollowingCall

Type: Boolean

URL: https://api.oefr-kraken.energy/v1/graphql/

Check if customer is eligible to give feedback following a phone call.

The possible errors that can be raised are:

Arguments

Name Description

accountNumber (String!)

Number of the account.

accountUserNumber (String!)

Number of the account user.

callId (Int!)

ID of the voice call.

Query

query IsCustomerEligibleToGiveFeedbackFollowingCall(
  $accountNumber: String!,
  $accountUserNumber: String!,
  $callId: Int!
) {
  isCustomerEligibleToGiveFeedbackFollowingCall(
    accountNumber: $accountNumber,
    accountUserNumber: $accountUserNumber,
    callId: $callId
  )
}

Variables

{
  "accountNumber": "A-EA266CAA",
  "accountUserNumber": "U-590CC0B3",
  "callId": 45109685
}

Response

{
  "data": {
    "isCustomerEligibleToGiveFeedbackFollowingCall": true
  }
}

isCustomerEligibleToGiveFeedbackFollowingEmail

Type: Boolean

URL: https://api.oefr-kraken.energy/v1/graphql/

Check if customer is eligible to give feedback following an email conversation.

The possible errors that can be raised are:

Arguments

Name Description

accountNumber (String!)

Number of the account.

accountUserNumber (String!)

Number of the account user.

conversationClosedAt (DateTime!)

Datetime when the conversation was closed.

inkConversationId (Int!)

ID of the Ink conversation.

Query

query IsCustomerEligibleToGiveFeedbackFollowingEmail(
  $accountNumber: String!,
  $accountUserNumber: String!,
  $conversationClosedAt: DateTime!,
  $inkConversationId: Int!
) {
  isCustomerEligibleToGiveFeedbackFollowingEmail(
    accountNumber: $accountNumber,
    accountUserNumber: $accountUserNumber,
    conversationClosedAt: $conversationClosedAt,
    inkConversationId: $inkConversationId
  )
}

Variables

{
  "accountNumber": "A-4230AACC",
  "accountUserNumber": "U-9A5C94DC",
  "conversationClosedAt": "1973-09-19T23:23:42.330678+00:00",
  "inkConversationId": 54185947
}

Response

{
  "data": {
    "isCustomerEligibleToGiveFeedbackFollowingEmail": true
  }
}

isPasswordResetTokenValid

Type: Boolean

URL: https://api.oefr-kraken.energy/v1/graphql/

Check validity of a password reset token.

Arguments

Name Description

token (String!)

Password reset token to check.

userId (String!)

Base64 encoded user id.

Query

query IsPasswordResetTokenValid(
  $token: String!,
  $userId: String!
) {
  isPasswordResetTokenValid(
    token: $token,
    userId: $userId
  )
}

Variables

{
  "token": "public-figure-method-measure-draw",
  "userId": "46757275"
}

Response

{
  "data": {
    "isPasswordResetTokenValid": true
  }
}

isValidUfcMember

Type: MembershipResponseStatus

URL: https://api.oefr-kraken.energy/v1/graphql/

Check if a given UFC member number is valid.

The possible errors that can be raised are:

Arguments

Name Description

input (IsValidUFCMemberInputType!)

Query

query IsValidUfcMember($input: IsValidUFCMemberInputType!) {
  isValidUfcMember(input: $input)
}

Variables

Response

{
  "data": {
    "isValidUfcMember": "UNKNOWN"
  }
}

joinSupplierProcess

Type: JoinSupplierProcessType

URL: https://api.oefr-kraken.energy/v1/graphql/

The possible errors that can be raised are:

Arguments

Name Description

number (String!)

The join supplier process number, e.g. JS-12345678.

Query

query JoinSupplierProcess($number: String!) {
  joinSupplierProcess(number: $number) {
    contractIdentifiers
    currentProcessData {
      ...JoinSupplierProcessDataTypeFragment
    }
    id
    ledgerAssignments {
      ...JoinSupplierLedgerAssignmentConnectionTypeConnectionFragment
    }
    number
    status
    subtype
    supplyPoints {
      ...SupplyPointConnectionTypeConnectionFragment
    }
  }
}

Variables

{
  "number": "speak-wrong-pick-open-again"
}

Response

{
  "data": {
    "joinSupplierProcess": {
      "contractIdentifiers": ["quite-improve-nothing-serious-trial"],
      "currentProcessData": JoinSupplierProcessDataType,
      "id": "98834481",
      "ledgerAssignments": JoinSupplierLedgerAssignmentConnectionTypeConnection,
      "number": "Congress-strong-course-guy-direction",
      "status": "PENDING",
      "subtype": "author-employee-outside-word-forward",
      "supplyPoints": SupplyPointConnectionTypeConnection
    }
  }
}

Query

query KrakenVersion {
  krakenVersion {
    SHA
    isPinned
    number
  }
}

Response

{
  "data": {
    "krakenVersion": {
      "SHA": "land-exactly-catch-event-energy",
      "isPinned": true,
      "number": "federal-wait-official-western-whole"
    }
  }
}

lastReadingDateForMeasurements

Type: Date

URL: https://api.oefr-kraken.energy/v1/graphql/

The last reading date for the measurements.

Arguments

Name Description

accountNumber (String!)

The account number linked to the agreements.

marketSupplyPointId (ID!)

The supply point ID.

readingFrequencyType (ReadingFrequencyType)

Frequency for the reading.

Query

query LastReadingDateForMeasurements(
  $accountNumber: String!,
  $marketSupplyPointId: ID!,
  $readingFrequencyType: ReadingFrequencyType
) {
  lastReadingDateForMeasurements(
    accountNumber: $accountNumber,
    marketSupplyPointId: $marketSupplyPointId,
    readingFrequencyType: $readingFrequencyType
  )
}

Variables

{
  "accountNumber": "A-4042DAC4",
  "marketSupplyPointId": "52402168",
  "readingFrequencyType": "RAW_INTERVAL"
}

Response

{
  "data": {
    "lastReadingDateForMeasurements": "2019-04-07"
  }
}

leadBlocklistValidations

Type: LeadBlockListValidationOutput

URL: https://api.oefr-kraken.energy/v1/graphql/

Run a blocklist validation out of some dynamic client entry types.

Arguments

Name Description

blockListEntries (LeadBlockListValidationInput)

List of client-configured black list entry types.

Query

query LeadBlocklistValidations($blockListEntries: LeadBlockListValidationInput) {
  leadBlocklistValidations(blockListEntries: $blockListEntries) {
    blockListHits
    valid
  }
}

Variables

{
  "blockListEntries": LeadBlockListValidationInput
}

Response

{
  "data": {
    "leadBlocklistValidations": {
      "blockListHits": ["letter-spring-issue-truth-low"],
      "valid": true
    }
  }
}

leadByNumber

Type: LeadOutput

URL: https://api.oefr-kraken.energy/v1/graphql/

Get lead details by number.

The possible errors that can be raised are:

Arguments

Name Description

number (String)

Lead number.

Query

query LeadByNumber($number: String) {
  leadByNumber(number: $number) {
    accountNumber
    assignedToAffiliateNumber
    assignedToTeam
    assignedToUser
    billingAddress {
      ...AddressOutputFragment
    }
    billingName
    billingRichAddress {
      ...RichAddressTypeFragment
    }
    brand
    consents {
      ...ConsentOutputFragment
    }
    email
    extraDetailItems {
      ...ExtraDetailFragment
    }
    familyName
    funnel {
      ...SalesFunnelFragment
    }
    givenName
    leadId
    leadType
    nationalId
    number
    phoneNumber
    salesChannel
    stage
  }
}

Variables

{
  "number": "she-require-practice-debate-idea"
}

Response

{
  "data": {
    "leadByNumber": {
      "accountNumber": "A-F99753E5",
      "assignedToAffiliateNumber": "bad-plant-along-him-door",
      "assignedToTeam": "list-morning-reach-bit-account",
      "assignedToUser": "their-body-how-like-child",
      "billingAddress": AddressOutput,
      "billingName": "remember-behavior-pick-our-tree",
      "billingRichAddress": RichAddressType,
      "brand": "party-kid-fast-main-season",
      "consents": [ConsentOutput],
      "email": "fall-sure-suffer-read-dog",
      "extraDetailItems": [ExtraDetail],
      "familyName": "Davis",
      "funnel": SalesFunnel,
      "givenName": "Latoya",
      "leadId": "70268655",
      "leadType": "industry-check-goal-public-black",
      "nationalId": "34231094",
      "number": "front-center-oil-concern-wrong",
      "phoneNumber": "Mr-scientist-evidence-film-certain",
      "salesChannel": "maybe-strong-song-current-seat",
      "stage": "clear-matter-miss-experience-up"
    }
  }
}

leads

Type: LeadsConnection

URL: https://api.oefr-kraken.energy/v1/graphql/

Fetch all leads for this Kraken, with optional filtering.

Arguments

Name Description

after (String)

before (String)

first (Int)

input (LeadsQueryInput)

Input fields for retrieving leads.

last (Int)

offset (Int)

Query

query Leads(
  $after: String,
  $before: String,
  $first: Int,
  $input: LeadsQueryInput,
  $last: Int,
  $offset: Int
) {
  leads(
    after: $after,
    before: $before,
    first: $first,
    input: $input,
    last: $last,
    offset: $offset
  ) {
    edgeCount
    edges {
      ...LeadsEdgeFragment
    }
    pageInfo {
      ...PageInfoFragment
    }
    totalCount
  }
}

Variables

{
  "after": "YXJyYXljb25uZWN0aW9uOjEw=",
  "before": "YXJyYXljb25uZWN0aW9uOjEw=",
  "first": 10,
  "input": LeadsQueryInput,
  "last": 10,
  "offset": 69
}

Response

{
  "data": {
    "leads": {
      "edgeCount": 19,
      "edges": LeadsEdge,
      "pageInfo": PageInfo,
      "totalCount": 37
    }
  }
}

leaveSupplierProcess

Type: LeaveSupplierProcessType

URL: https://api.oefr-kraken.energy/v1/graphql/

Details associated with a LeaveSupplier process.

The possible errors that can be raised are:

Arguments

Name Description

number (String)

The leave supplier process number, e.g. LS-12345678.

Query

query LeaveSupplierProcess($number: String) {
  leaveSupplierProcess(number: $number) {
    id
    number
    status
    subtype
    supplyPoints {
      ...SupplyPointConnectionTypeConnectionFragment
    }
  }
}

Variables

{
  "number": "sea-ever-general-reason-man"
}

Response

{
  "data": {
    "leaveSupplierProcess": {
      "id": "23008039",
      "number": "Democrat-none-movie-true-generation",
      "status": "PENDING",
      "subtype": "letter-shake-fight-hour-safe",
      "supplyPoints": SupplyPointConnectionTypeConnection
    }
  }
}

legacyOrderDetails

Type: LegacyOrderDetailsType

URL: https://api.oefr-kraken.energy/v1/graphql/

The possible errors that can be raised are:

Arguments

Name Description

identifier (String!)

Order identifier.

Query

query LegacyOrderDetails($identifier: String!) {
  legacyOrderDetails(identifier: $identifier) {
    order {
      ...LegacyOrderTypeFragment
    }
    resources {
      ...LegacyOrderResourceFragment
    }
    status
  }
}

Variables

{
  "identifier": "88392526"
}

Response

{
  "data": {
    "legacyOrderDetails": {
      "order": LegacyOrderType,
      "resources": [LegacyOrderResource],
      "status": "PENDING"
    }
  }
}

lifecycleProcesses

Type: LifecycleProcessesType

URL: https://api.oefr-kraken.energy/v1/graphql/

Get all lifecycle processes associated with an account.

The possible errors that can be raised are:

Arguments

Name Description

accountNumber (String!)

The account number, e.g. A-12345678.

onlyActive (Boolean)

A flag to filter out only active/current processes.

sortOrder (LifecycleProcessesSortOrder)

The chronological order in which the lifecycle processes are sorted.

Query

query LifecycleProcesses(
  $accountNumber: String!,
  $onlyActive: Boolean,
  $sortOrder: LifecycleProcessesSortOrder
) {
  lifecycleProcesses(
    accountNumber: $accountNumber,
    onlyActive: $onlyActive,
    sortOrder: $sortOrder
  ) {
    joinSupplierProcesses {
      ...JoinSupplierProcessConnectionTypeConnectionFragment
    }
    leavePropertyProcesses {
      ...LeavePropertyProcessConnectionTypeConnectionFragment
    }
    leaveSupplierProcesses {
      ...LeaveSupplierProcessConnectionTypeConnectionFragment
    }
    occupyPropertyProcesses {
      ...OccupyPropertyProcessConnectionTypeConnectionFragment
    }
  }
}

Variables

{
  "accountNumber": "A-E44C28CB",
  "onlyActive": true,
  "sortOrder": "ASC"
}

Response

{
  "data": {
    "lifecycleProcesses": {
      "joinSupplierProcesses": JoinSupplierProcessConnectionTypeConnection,
      "leavePropertyProcesses": LeavePropertyProcessConnectionTypeConnection,
      "leaveSupplierProcesses": LeaveSupplierProcessConnectionTypeConnection,
      "occupyPropertyProcesses": OccupyPropertyProcessConnectionTypeConnection
    }
  }
}

livePaymentAdequacyCalculation

Type: LivePaymentAdequacyCalculation

URL: https://api.oefr-kraken.energy/v1/graphql/

Get payment adequacy data with an up to date calculation.

The possible errors that can be raised are:

Arguments

Name Description

ledgerNumber (String!)

Kraken ledger number.

Query

query LivePaymentAdequacyCalculation($ledgerNumber: String!) {
  livePaymentAdequacyCalculation(ledgerNumber: $ledgerNumber) {
    averageMonthlyCharge
    balanceAdjustment
    consumption {
      ...ConsumptionBreakdownConnectionTypeConnectionFragment
    }
    currentBalance
    existingMonthlyAmount
    reviewedOn
    suggestedNewMonthlyAmount
    targetBalance
  }
}

Variables

{
  "ledgerNumber": "thought-step-need-authority-process"
}

Response

{
  "data": {
    "livePaymentAdequacyCalculation": {
      "averageMonthlyCharge": 24,
      "balanceAdjustment": 50,
      "consumption": ConsumptionBreakdownConnectionTypeConnection,
      "currentBalance": 8,
      "existingMonthlyAmount": 45,
      "reviewedOn": "1975-07-24",
      "suggestedNewMonthlyAmount": 84,
      "targetBalance": 61
    }
  }
}

loyaltyCards

Type: [LoyaltyCardType]

URL: https://api.oefr-kraken.energy/v1/graphql/

Get all loyalty cards for the given account user.

The possible errors that can be raised are:

  • KT-CT-5412: No account user exists with the given id.
  • KT-CT-1113: Disabled GraphQL field requested.

Arguments

Name Description

accountUserId (String!)

Account user id.

Query

query LoyaltyCards($accountUserId: String!) {
  loyaltyCards(accountUserId: $accountUserId) {
    id
    number
    scheme
    status
  }
}

Variables

{
  "accountUserId": "76109736"
}

Response

{
  "data": {
    "loyaltyCards": [
      {
        "id": "88916692",
        "number": "claim-grow-dog-enjoy-democratic",
        "scheme": "focus-perform-everybody-shoulder-huge",
        "status": "mention-watch-among-hair-agency"
      }
    ]
  }
}

loyaltyPointLedgerEntry

Type: LoyaltyPointLedgerEntryType

URL: https://api.oefr-kraken.energy/v1/graphql/

Resolve a loyalty point ledger entry.

The possible errors that can be raised are:

Arguments

Name Description

input (LoyaltyPointLedgerEntryInput!)

Query

query LoyaltyPointLedgerEntry($input: LoyaltyPointLedgerEntryInput!) {
  loyaltyPointLedgerEntry(input: $input) {
    accountNumber
    balanceBroughtForward
    balanceCarriedForward
    id
    idempotencyKey
    ledgerType
    postedAt
    reasonCode
    value
  }
}

Variables

Response

{
  "data": {
    "loyaltyPointLedgerEntry": {
      "accountNumber": "A-F790C1DC",
      "balanceBroughtForward": "wind-must-nice-during-their",
      "balanceCarriedForward": "more-rock-country-oil-girl",
      "id": "66286794",
      "idempotencyKey": "235bb5ed-cdb0-4200-bc23-19bf3afbe8c3",
      "ledgerType": "safe-make-bed-collection-close",
      "postedAt": "2019-07-26T05:52:09.218203+00:00",
      "reasonCode": "very-offer-without-outside-smile",
      "value": "common-stay-important-magazine-actually"
    }
  }
}

loyaltyPointLedgers

Type: [LoyaltyPointLedgerEntryType]

URL: https://api.oefr-kraken.energy/v1/graphql/

Get the Loyalty Point ledger entries for the passed user.

The possible errors that can be raised are:

Arguments

Name Description

input (LoyaltyPointLedgersInput)

The input object for retrieving a loyalty point ledger entry.

Query

query LoyaltyPointLedgers($input: LoyaltyPointLedgersInput) {
  loyaltyPointLedgers(input: $input) {
    accountNumber
    balanceBroughtForward
    balanceCarriedForward
    id
    idempotencyKey
    ledgerType
    postedAt
    reasonCode
    value
  }
}

Variables

Response

{
  "data": {
    "loyaltyPointLedgers": [
      {
        "accountNumber": "A-EBC8A6FF",
        "balanceBroughtForward": "stay-ever-rate-break-easy",
        "balanceCarriedForward": "artist-number-artist-sometimes-her",
        "id": "49088461",
        "idempotencyKey": "8886d1fb-1898-495a-a15a-a57ba9167aa0",
        "ledgerType": "great-factor-travel-television-hour",
        "postedAt": "2005-09-19T19:26:20.515452+00:00",
        "reasonCode": "against-language-late-he-skin",
        "value": "point-training-group-throughout-have"
      }
    ]
  }
}

loyaltyPointsBalance

Type: AccountLoyaltyPointsType

URL: https://api.oefr-kraken.energy/v1/graphql/

Get the loyalty points balance for an account.

The possible errors that can be raised are:

  • KT-CT-9218: Unauthorized.
  • KT-CT-9217: Unauthorized.
  • KT-CT-9215: Loyalty points balance query disabled.
  • KT-CT-9216: Unauthorized.
  • KT-CT-9222: Loyalty points balance query requires either accountNumber field (deprecated) or input object (preferred) with account number and optional account user id.
  • KT-CT-1113: Disabled GraphQL field requested.

Arguments

Name Description

input (LoyaltyPointsBalanceInput)

Query

query LoyaltyPointsBalance($input: LoyaltyPointsBalanceInput) {
  loyaltyPointsBalance(input: $input) {
    loyaltyPoints
    totalMonetaryAmount
  }
}

Variables

Response

{
  "data": {
    "loyaltyPointsBalance": {
      "loyaltyPoints": 31,
      "totalMonetaryAmount": 80
    }
  }
}

metadata

Type: [Metadata]

URL: https://api.oefr-kraken.energy/v1/graphql/

Metadata for a linked object.

The possible errors that can be raised are:

Arguments

Name Description

identifier (String!)

linkedObjectType (LinkedObjectType)

Query

query Metadata(
  $identifier: String!,
  $linkedObjectType: LinkedObjectType
) {
  metadata(
    identifier: $identifier,
    linkedObjectType: $linkedObjectType
  ) {
    key
    value
  }
}

Variables

{
  "identifier": "91691885",
  "linkedObjectType": "ACCOUNT"
}

Response

{
  "data": {
    "metadata": [
      {
        "key": "minute-within-population-total-ago",
        "value": {"key": "value"}
      }
    ]
  }
}

metadataForKey

Type: Metadata

URL: https://api.oefr-kraken.energy/v1/graphql/

Metadata for a linked object with key.

The possible errors that can be raised are:

Arguments

Name Description

identifier (String!)

key (String!)

linkedObjectType (LinkedObjectType)

Query

query MetadataForKey(
  $identifier: String!,
  $key: String!,
  $linkedObjectType: LinkedObjectType
) {
  metadataForKey(
    identifier: $identifier,
    key: $key,
    linkedObjectType: $linkedObjectType
  ) {
    key
    value
  }
}

Variables

{
  "identifier": "64391290",
  "key": "full-people-whom-his-feel",
  "linkedObjectType": "ACCOUNT"
}

Response

{
  "data": {
    "metadataForKey": {
      "key": "another-maintain-whose-after-fund",
      "value": {"key": "value"}
    }
  }
}

meterPointNumberByAddress

Type: String

URL: https://api.oefr-kraken.energy/v1/graphql/

The number of the meter point for the given address.

The possible errors that can be raised are:

Arguments

Name Description

input (MeterPointNumberByAddressInputType!)

Query

query MeterPointNumberByAddress($input: MeterPointNumberByAddressInputType!) {
  meterPointNumberByAddress(input: $input)
}

Variables

Response

{
  "data": {
    "meterPointNumberByAddress": "quite-board-will-because-career"
  }
}

mfaDevices

Type: [MfaDevice]

URL: https://api.oefr-kraken.energy/v1/graphql/

Get all MFA devices for the current user.

Query

query MfaDevices {
  mfaDevices {
    deviceType
    isConfirmed
  }
}

Response

{
  "data": {
    "mfaDevices": [
      {
        "deviceType": "act-western-country-finally-beautiful",
        "isConfirmed": true
      }
    ]
  }
}

Arguments

Name Description

id (ID!)

The ID of the object

Query

query Node($id: ID!) {
  node(id: $id) {
    id
  }
}

Variables

{
  "id": "50408886"
}

Response

{
  "data": {
    "node": {
      "id": "46886402"
    }
  }
}

ocppConnection

Type: OCPPConnectionType

URL: https://api.oefr-kraken.energy/v1/graphql/

To confirm whether a device is connected to OCPP.

The possible errors that can be raised are:

Arguments

Name Description

accountNumber (String!)

Query

query OcppConnection($accountNumber: String!) {
  ocppConnection(accountNumber: $accountNumber) {
    isConnected
  }
}

Variables

{
  "accountNumber": "A-70B3F317"
}

Response

{
  "data": {
    "ocppConnection": {
      "isConnected": true
    }
  }
}

ocppDetails

Type: OCPPDetailsType

URL: https://api.oefr-kraken.energy/v1/graphql/

The user specific generated OCPP details.

The possible errors that can be raised are:

Arguments

Name Description

accountNumber (String!)

Query

query OcppDetails($accountNumber: String!) {
  ocppDetails(accountNumber: $accountNumber) {
    url
    username
  }
}

Variables

{
  "accountNumber": "A-2C37AE84"
}

Response

{
  "data": {
    "ocppDetails": {
      "url": "again-face-camera-way-language",
      "username": "nature-challenge-line-so-decision"
    }
  }
}

Arguments

Name Description

identifier (ID)

The identifier of the offer to query.

Query

query OfferForQuoting($identifier: ID) {
  offerForQuoting(identifier: $identifier) {
    acceptedAt
    createdBy {
      ...ActorTypeFragment
    }
    description
    identifier
    quote {
      ...QuoteType_Fragment
    }
    rejectedAt
    validFrom
    validTo
  }
}

Variables

{
  "identifier": "22405929"
}

Response

{
  "data": {
    "offerForQuoting": {
      "acceptedAt": "2004-12-18T22:54:18.002335+00:00",
      "createdBy": ActorType,
      "description": "community-instead-reality-blood-include",
      "identifier": "32103903",
      "quote": QuoteType_,
      "rejectedAt": "2015-05-04T22:35:49.658064+00:00",
      "validFrom": "1972-03-06T10:44:35.040083+00:00",
      "validTo": "1985-06-05T13:18:07.491178+00:00"
    }
  }
}

Arguments

Name Description

identifier (ID)

The identifier of the offer group to query.

Query

query OfferGroupForQuoting($identifier: ID) {
  offerGroupForQuoting(identifier: $identifier) {
    createdAt
    createdBy {
      ...ActorTypeFragment
    }
    identifier
    offers {
      ...OfferTypeFragment
    }
  }
}

Variables

{
  "identifier": "14676796"
}

Response

{
  "data": {
    "offerGroupForQuoting": {
      "createdAt": "1981-07-29T21:18:16.986950+00:00",
      "createdBy": ActorType,
      "identifier": "10773259",
      "offers": [OfferType]
    }
  }
}

offering

Type: OfferingType

URL: https://api.oefr-kraken.energy/v1/graphql/

Get details about a product offering.

The possible errors that can be raised are:

  • KT-CT-12001: Product catalogue offering with given identifier not found.
  • KT-CT-1113: Disabled GraphQL field requested.

Arguments

Name Description

identifier (String)

The identifier of the offering to query.

Query

query Offering($identifier: String) {
  offering(identifier: $identifier) {
    customerDescription
    customerName
    groups {
      ...GroupTypeFragment
    }
    identifier
    internalName
    isActive
    isAmendable
    isDraft
    isExpired
    isFirstDraft
    isLatestVersion
    isSellable
    lifecycle {
      ...LifecycleTypeFragment
    }
    offeringComponents {
      ...OfferingComponentTypeFragment
    }
    productComponents {
      ...ProductComponentTypeFragment
    }
    tags {
      ...TagTypeFragment
    }
    termTemplateComponents {
      ...TermTemplateComponentTypeFragment
    }
  }
}

Variables

{
  "identifier": "29569228"
}

Response

{
  "data": {
    "offering": {
      "customerDescription": "likely-organization-investment-relationship-down",
      "customerName": "mean-today-tax-agree-seven",
      "groups": [GroupType],
      "identifier": "51736302",
      "internalName": "soldier-trial-seat-meet-discussion",
      "isActive": true,
      "isAmendable": true,
      "isDraft": true,
      "isExpired": true,
      "isFirstDraft": true,
      "isLatestVersion": true,
      "isSellable": true,
      "lifecycle": LifecycleType,
      "offeringComponents": [OfferingComponentType],
      "productComponents": [ProductComponentType],
      "tags": [TagType],
      "termTemplateComponents": [TermTemplateComponentType]
    }
  }
}

opportunities

Type: OpportunitiesConnection

URL: https://api.oefr-kraken.energy/v1/graphql/

Fetch all opportunities for this Kraken, with optional filtering.

Arguments

Name Description

after (String)

before (String)

first (Int)

input (OpportunitiesQueryInput)

Input fields for retrieving opportunities.

last (Int)

offset (Int)

Query

query Opportunities(
  $after: String,
  $before: String,
  $first: Int,
  $input: OpportunitiesQueryInput,
  $last: Int,
  $offset: Int
) {
  opportunities(
    after: $after,
    before: $before,
    first: $first,
    input: $input,
    last: $last,
    offset: $offset
  ) {
    edgeCount
    edges {
      ...OpportunitiesEdgeFragment
    }
    pageInfo {
      ...PageInfoFragment
    }
    totalCount
  }
}

Variables

{
  "after": "YXJyYXljb25uZWN0aW9uOjEw=",
  "before": "YXJyYXljb25uZWN0aW9uOjEw=",
  "first": 10,
  "input": OpportunitiesQueryInput,
  "last": 10,
  "offset": 48
}

Response

{
  "data": {
    "opportunities": {
      "edgeCount": 27,
      "edges": OpportunitiesEdge,
      "pageInfo": PageInfo,
      "totalCount": 1
    }
  }
}

opportunityByNumber

Type: OpportunityOutput

URL: https://api.oefr-kraken.energy/v1/graphql/

Get opportunity details by number.

The possible errors that can be raised are:

Arguments

Name Description

number (String)

Opportunity number identifier.

Query

query OpportunityByNumber($number: String) {
  opportunityByNumber(number: $number) {
    assignedToAffiliateNumber
    assignedToTeam
    assignedToUser
    attachments {
      ...OpportunityAttachmentFragment
    }
    consents {
      ...ConsentOutputFragment
    }
    email
    extraDetailItems {
      ...ExtraDetailFragment
    }
    funnel {
      ...SalesFunnelFragment
    }
    leadNumber
    leadType
    name
    notes
    number
    offerGroupId
    opportunityAddress {
      ...AddressOutputFragment
    }
    opportunityRichAddress {
      ...RichAddressTypeFragment
    }
    phoneNumber
    productOffering {
      ...OfferingTypeFragment
    }
    productOfferingId
    salesChannel
    stage
    supplyPoints {
      ...LeadSupplyPointTypeFragment
    }
  }
}

Variables

{
  "number": "yourself-style-sure-popular-campaign"
}

Response

{
  "data": {
    "opportunityByNumber": {
      "assignedToAffiliateNumber": "foreign-small-current-yes-down",
      "assignedToTeam": "record-believe-forget-least-office",
      "assignedToUser": "significant-up-scene-music-church",
      "attachments": [OpportunityAttachment],
      "consents": [ConsentOutput],
      "email": "take-success-score-marriage-high",
      "extraDetailItems": [ExtraDetail],
      "funnel": SalesFunnel,
      "leadNumber": "history-perhaps-stay-reality-eye",
      "leadType": "sea-girl-happen-collection-technology",
      "name": "word-prevent-senior-explain-kitchen",
      "notes": "similar-not-happen-million-wall",
      "number": "cost-guy-wife-it-morning",
      "offerGroupId": "48811060",
      "opportunityAddress": AddressOutput,
      "opportunityRichAddress": RichAddressType,
      "phoneNumber": "skill-like-improve-north-woman",
      "productOffering": OfferingType,
      "productOfferingId": "47538141",
      "salesChannel": "reduce-assume-something-rate-Republican",
      "stage": "of-Mrs-draw-suddenly-involve",
      "supplyPoints": [LeadSupplyPointType]
    }
  }
}

opportunityProductSummary

Type: [OpportunityProductSummary!]!

URL: https://api.oefr-kraken.energy/v1/graphql/

Return summaries of all products in opportunity's accepted offer. Supports multi-product offerings like dual fuel.

The possible errors that can be raised are:

  • KT-CT-8906: Opportunity not found.
  • KT-CT-8923: The opportunity does not have a linked offer group.
  • KT-CT-8922: The opportunity does not have an accepted offer.
  • KT-CT-1113: Disabled GraphQL field requested.

Arguments

Name Description

number (String)

Opportunity number.

Query

query OpportunityProductSummary($number: String) {
  opportunityProductSummary(number: $number) {
    market
    productCharacteristics
    productCode
    productIdentifier
    productOfferingIdentifier
  }
}

Variables

{
  "number": "resource-say-marriage-court-page"
}

Response

{
  "data": {
    "opportunityProductSummary": [
      {
        "market": "individual-sit-add-would-chance",
        "productCharacteristics": "abc123" | 1 | 1.0 | true | ["abc123"] | AccountType,
        "productCode": "must-open-study-stop-despite",
        "productIdentifier": "14394415",
        "productOfferingIdentifier": "67143114"
      }
    ]
  }
}

opportunityValueByKey

Type: String

URL: https://api.oefr-kraken.energy/v1/graphql/

Get the value of a given key that is stored in an opportunity's related JSONFields.

The possible errors that can be raised are:

Arguments

Name Description

key (String)

The key the a funnel-specific value you wish to obtain.

opportunityId (ID)

The identifier of the opportunity to query.

Query

query OpportunityValueByKey(
  $key: String,
  $opportunityId: ID
) {
  opportunityValueByKey(
    key: $key,
    opportunityId: $opportunityId
  )
}

Variables

{
  "key": "president-push-chair-base-level",
  "opportunityId": "44839769"
}

Response

{
  "data": {
    "opportunityValueByKey": "include-paper-use-last-brother"
  }
}

passwordValidatorHelpTexts

Type: [String]

URL: https://api.oefr-kraken.energy/v1/graphql/

The help text of all configured password validators as plain-text or html. Defaults to plain-text.

Arguments

Name Description

asHtml (Boolean)

Return the results as html instead of plain-text. Defaults to False.

Query

query PasswordValidatorHelpTexts($asHtml: Boolean) {
  passwordValidatorHelpTexts(asHtml: $asHtml)
}

Variables

{
  "asHtml": true
}

Response

{
  "data": {
    "passwordValidatorHelpTexts": ["much-tend-conference-father-entire"]
  }
}

paymentFingerprintChecks

Type: PaymentFingerPrintCheckType

URL: https://api.oefr-kraken.energy/v1/graphql/

Check if a given payment fingerprint already exists and/or is risk-listed.

Arguments

Name Description

fingerprint (String!)

Fingerprint.

Query

query PaymentFingerprintChecks($fingerprint: String!) {
  paymentFingerprintChecks(fingerprint: $fingerprint) {
    fingerprint
    isFound
    isRiskListed
  }
}

Variables

{
  "fingerprint": "shoulder-group-involve-treatment-very"
}

Response

{
  "data": {
    "paymentFingerprintChecks": {
      "fingerprint": "cup-why-major-age-official",
      "isFound": true,
      "isRiskListed": true
    }
  }
}

paymentRequests

Type: PaymentRequestsType

URL: https://api.oefr-kraken.energy/v1/graphql/

Get all payment requests for the given ledger.

Arguments

Name Description

ledgerNumber (String!)

Kraken ledger number.

Query

query PaymentRequests($ledgerNumber: String!) {
  paymentRequests(ledgerNumber: $ledgerNumber) {
    paymentRequest {
      ...PaymentRequestConnectionTypeConnectionFragment
    }
  }
}

Variables

{
  "ledgerNumber": "purpose-race-response-single-through"
}

Response

{
  "data": {
    "paymentRequests": {
      "paymentRequest": PaymentRequestConnectionTypeConnection
    }
  }
}

paymentSchedule

Type: PaymentSchedule

URL: https://api.oefr-kraken.energy/v1/graphql/

Fetch the payment schedule for an agreement.

The possible errors that can be raised are:

  • KT-FR-4910: Unauthorized to access to this agreement.
  • KT-CT-1113: Disabled GraphQL field requested.

Arguments

Name Description

accountNumber (String!)

ID of the account.

agreementId (Int!)

ID of the agreement.

Query

query PaymentSchedule(
  $accountNumber: String!,
  $agreementId: Int!
) {
  paymentSchedule(
    accountNumber: $accountNumber,
    agreementId: $agreementId
  ) {
    temporaryUrl
  }
}

Variables

{
  "accountNumber": "A-E2AA4652",
  "agreementId": 15657668
}

Response

{
  "data": {
    "paymentSchedule": {
      "temporaryUrl": "let-data-agree-three-central"
    }
  }
}

Arguments

Name Description

accountNumber (String!)

ID of the account.

after (String)

before (String)

first (Int)

fromDate (Date)

Optional date representing the beginning of the search results. This date value is inclusive.

last (Int)

paymentReason (PaymentReasonOptions)

Filter for payments that were taken for a particular reason.

paymentStatus (AccountPaymentStatusOptions)

Filter on the payments status.

propertyId (ID)

Filter payments and repayments related to this property.

repaymentStatuses ([AccountRepaymentStatusOptions])

Only return repayments whose status matches one of these statuses.

supplyContractNumber (String)

Filter bills related to this supply contract.

supplyPointId (ID)

The ID of the supply point.

toDate (Date)

Optional date representing the end of the search results. This date value is exclusive.

Query

query PaymentsAndRepayments(
  $accountNumber: String!,
  $after: String,
  $before: String,
  $first: Int,
  $fromDate: Date,
  $last: Int,
  $paymentReason: PaymentReasonOptions,
  $paymentStatus: AccountPaymentStatusOptions,
  $propertyId: ID,
  $repaymentStatuses: [AccountRepaymentStatusOptions],
  $supplyContractNumber: String,
  $supplyPointId: ID,
  $toDate: Date
) {
  paymentsAndRepayments(
    accountNumber: $accountNumber,
    after: $after,
    before: $before,
    first: $first,
    fromDate: $fromDate,
    last: $last,
    paymentReason: $paymentReason,
    paymentStatus: $paymentStatus,
    propertyId: $propertyId,
    repaymentStatuses: $repaymentStatuses,
    supplyContractNumber: $supplyContractNumber,
    supplyPointId: $supplyPointId,
    toDate: $toDate
  ) {
    edgeCount
    edges {
      ...FraAccountPaymentConnectionTypeEdgeFragment
    }
    pageInfo {
      ...PageInfoFragment
    }
    totalCount
  }
}

Variables

{
  "accountNumber": "A-31D1A174",
  "after": "YXJyYXljb25uZWN0aW9uOjEw=",
  "before": "YXJyYXljb25uZWN0aW9uOjEw=",
  "first": 10,
  "fromDate": "2001-05-05",
  "last": 10,
  "paymentReason": "BALANCE_THRESHOLD_CROSSED",
  "paymentStatus": "SCHEDULED",
  "propertyId": "18419425",
  "repaymentStatuses": "REQUESTED",
  "supplyContractNumber": "wish-know-arrive-cultural-affect",
  "supplyPointId": "99335653",
  "toDate": "1991-07-15"
}

Response

{
  "data": {
    "paymentsAndRepayments": {
      "edgeCount": 5,
      "edges": FraAccountPaymentConnectionTypeEdge,
      "pageInfo": PageInfo,
      "totalCount": 12
    }
  }
}

paymentsAndRepaymentsForPrm

Type: FraAccountPaymentConnectionTypeConnection

URL: https://api.oefr-kraken.energy/v1/graphql/

Fetch the payments and repayments for an account and for a specific PRM.

Deprecated

The 'paymentsAndRepaymentsForPrm' field is deprecated.

Replaced for a generic query to obtain payments and repayments. Please use 'paymentsAndRepayments' instead.

- Marked as deprecated on 2024-04-01.
- Scheduled for removal on or after 2024-12-01.

Arguments

Name Description

accountNumber (String!)

ID of the account.

after (String)

before (String)

first (Int)

fromDate (Date)

Optional date representing the beginning of the search results. This date value is inclusive.

last (Int)

paymentReason (PaymentReasonOptions)

Filter for payments that were taken for a particular reason.

paymentStatus (AccountPaymentStatusOptions)

Filter on the payments status.

prmId (String!)

ID of the PRM.

repaymentStatuses ([AccountRepaymentStatusOptions])

Only return repayments whose status matches one of these statuses.

toDate (Date)

Optional date representing the end of the search results. This date value is exclusive.

Query

query PaymentsAndRepaymentsForPrm(
  $accountNumber: String!,
  $after: String,
  $before: String,
  $first: Int,
  $fromDate: Date,
  $last: Int,
  $paymentReason: PaymentReasonOptions,
  $paymentStatus: AccountPaymentStatusOptions,
  $prmId: String!,
  $repaymentStatuses: [AccountRepaymentStatusOptions],
  $toDate: Date
) {
  paymentsAndRepaymentsForPrm(
    accountNumber: $accountNumber,
    after: $after,
    before: $before,
    first: $first,
    fromDate: $fromDate,
    last: $last,
    paymentReason: $paymentReason,
    paymentStatus: $paymentStatus,
    prmId: $prmId,
    repaymentStatuses: $repaymentStatuses,
    toDate: $toDate
  ) {
    edgeCount
    edges {
      ...FraAccountPaymentConnectionTypeEdgeFragment
    }
    pageInfo {
      ...PageInfoFragment
    }
    totalCount
  }
}

Variables

{
  "accountNumber": "A-2BB81988",
  "after": "YXJyYXljb25uZWN0aW9uOjEw=",
  "before": "YXJyYXljb25uZWN0aW9uOjEw=",
  "first": 10,
  "fromDate": "1989-10-04",
  "last": 10,
  "paymentReason": "BALANCE_THRESHOLD_CROSSED",
  "paymentStatus": "SCHEDULED",
  "prmId": "72513601",
  "repaymentStatuses": "REQUESTED",
  "toDate": "2008-11-26"
}

Response

{
  "data": {
    "paymentsAndRepaymentsForPrm": {
      "edgeCount": 90,
      "edges": FraAccountPaymentConnectionTypeEdge,
      "pageInfo": PageInfo,
      "totalCount": 41
    }
  }
}

plannedDispatches

Type: [UpsideDispatchType]

URL: https://api.oefr-kraken.energy/v1/graphql/

All planned device dispatches 24 hours ahead, (usually) in time order.

The possible errors that can be raised are:

Deprecated

The 'plannedDispatches' field is deprecated.

Please use 'flexPlannedDispatches' instead.

- Marked as deprecated on 2025-05-27.
- Scheduled for removal on or after 2026-01-16.

You can read more about this deprecation on:
https://announcements.kraken.tech/announcements/public/604/

Arguments

Name Description

accountNumber (String!)

Query

query PlannedDispatches($accountNumber: String!) {
  plannedDispatches(accountNumber: $accountNumber) {
    delta
    end
    meta {
      ...UpsideDispatchMetaTypeFragment
    }
    start
  }
}

Variables

{
  "accountNumber": "A-CF58F703"
}

Response

{
  "data": {
    "plannedDispatches": [
      {
        "delta": "1.0",
        "end": "2005-04-11T03:54:13.319758+00:00",
        "meta": UpsideDispatchMetaType,
        "start": "1973-11-23T23:52:59.841484+00:00"
      }
    ]
  }
}

pmaxAnalysis

Type: PMAXAnalysisType

URL: https://api.oefr-kraken.energy/v1/graphql/

Get PMAX analysis by token.

The possible errors that can be raised are:

Arguments

Name Description

token (UUID!)

Unique identifier of the analysis.

Query

query PmaxAnalysis($token: UUID!) {
  pmaxAnalysis(token: $token) {
    currentSubscribedMaxPower
    firstName
    lastName
    meterPoint {
      ...MeterPointInterfaceFragment
    }
    product {
      ...ProductFragment
    }
    recommendedSubscribedMaxPower
    suggestedPowerAdjustment
    token
    yearlyProfitAmountCents
  }
}

Variables

{
  "token": "d1f199a4-ef7f-49fd-a196-63002ddb9d2f"
}

Response

{
  "data": {
    "pmaxAnalysis": {
      "currentSubscribedMaxPower": 96,
      "firstName": "type-build-minute-say-almost",
      "lastName": "sure-gun-central-boy-many",
      "meterPoint": MeterPointInterface,
      "product": Product,
      "recommendedSubscribedMaxPower": 90,
      "suggestedPowerAdjustment": "NONE",
      "token": "b4478624-3e9d-414e-a947-ce5c03fafd08",
      "yearlyProfitAmountCents": 99.19
    }
  }
}

portfolio

Type: PortfolioType

URL: https://api.oefr-kraken.energy/v1/graphql/

Get details about a portfolio, using its portfolio number.

The possible errors that can be raised are:

Arguments

Name Description

portfolioNumber (String!)

Portfolio number to be retrieved.

Query

query Portfolio($portfolioNumber: String!) {
  portfolio(portfolioNumber: $portfolioNumber) {
    accounts {
      ...AccountConnectionTypeConnectionFragment
    }
    ancestors {
      ...PortfolioConnectionTypeConnectionFragment
    }
    billingName
    brand
    collectiveBilling
    createdAt
    depth
    descendants {
      ...PortfolioConnectionTypeConnectionFragment
    }
    id
    leadAccountNumber
    name
    number
    operationsTeam {
      ...OperationsTeamTypeFragment
    }
    parent {
      ...PortfolioTypeFragment
    }
    updatedAt
  }
}

Variables

{
  "portfolioNumber": "P-BEC88FFD"
}

Response

{
  "data": {
    "portfolio": {
      "accounts": AccountConnectionTypeConnection,
      "ancestors": PortfolioConnectionTypeConnection,
      "billingName": "leave-station-toward-alone-black",
      "brand": "beat-beat-cut-road-without",
      "collectiveBilling": true,
      "createdAt": "2019-04-26T08:17:40.503887+00:00",
      "depth": 94,
      "descendants": PortfolioConnectionTypeConnection,
      "id": "67992165",
      "leadAccountNumber": "A-491E0614",
      "name": "your-remember-want-if-fund",
      "number": "talk-trouble-morning-two-tend",
      "operationsTeam": OperationsTeamType,
      "parent": PortfolioType,
      "updatedAt": "1985-02-08T04:39:40.826861+00:00"
    }
  }
}

portfolioByReference

Type: PortfolioType

URL: https://api.oefr-kraken.energy/v1/graphql/

Get details about a portfolio, using its reference.

The possible errors that can be raised are:

Arguments

Name Description

portfolioReference (PortfolioReferenceInput!)

Portfolio reference namespace-value pair to filter by.

Query

query PortfolioByReference($portfolioReference: PortfolioReferenceInput!) {
  portfolioByReference(portfolioReference: $portfolioReference) {
    accounts {
      ...AccountConnectionTypeConnectionFragment
    }
    ancestors {
      ...PortfolioConnectionTypeConnectionFragment
    }
    billingName
    brand
    collectiveBilling
    createdAt
    depth
    descendants {
      ...PortfolioConnectionTypeConnectionFragment
    }
    id
    leadAccountNumber
    name
    number
    operationsTeam {
      ...OperationsTeamTypeFragment
    }
    parent {
      ...PortfolioTypeFragment
    }
    updatedAt
  }
}

Variables

{
  "portfolioReference": PortfolioReferenceInput
}

Response

{
  "data": {
    "portfolioByReference": {
      "accounts": AccountConnectionTypeConnection,
      "ancestors": PortfolioConnectionTypeConnection,
      "billingName": "together-give-above-bar-affect",
      "brand": "peace-television-various-of-history",
      "collectiveBilling": true,
      "createdAt": "2004-08-16T20:11:48.710581+00:00",
      "depth": 4,
      "descendants": PortfolioConnectionTypeConnection,
      "id": "20611561",
      "leadAccountNumber": "A-95B28131",
      "name": "argue-short-ten-within-sell",
      "number": "road-not-why-behind-force",
      "operationsTeam": OperationsTeamType,
      "parent": PortfolioType,
      "updatedAt": "1979-04-09T18:18:08.906409+00:00"
    }
  }
}

possibleErrors

Type: PossibleErrorsOutputType

URL: https://api.oefr-kraken.energy/v1/graphql/

Possible errors of the requested query/mutation.

The possible errors that can be raised are:

Arguments

Name Description

input (PossibleErrorsInputType!)

Query or Mutation for which to get the possible errors list.

Query

query PossibleErrors($input: PossibleErrorsInputType!) {
  possibleErrors(input: $input) {
    authErrors
    name
    possibleErrors {
      ...PossibleErrorTypeFragment
    }
    type
  }
}

Variables

Response

{
  "data": {
    "possibleErrors": {
      "authErrors": true,
      "name": "although-before-shake-group-model",
      "possibleErrors": [PossibleErrorType],
      "type": "query"
    }
  }
}

printBatch

Type: PrintBatchType!

URL: https://api.oefr-kraken.energy/v1/graphql/

Get print batch details, including messages in the batch.

The possible errors that can be raised are:

Arguments

Name Description

batchId (ID)

The print batch ID.

Query

query PrintBatch($batchId: ID) {
  printBatch(batchId: $batchId) {
    id
    messages {
      ...PrintMessageTypeConnectionFragment
    }
    status
  }
}

Variables

{
  "batchId": "27768620"
}

Response

{
  "data": {
    "printBatch": {
      "id": "15341662",
      "messages": PrintMessageTypeConnection,
      "status": "OPEN"
    }
  }
}

proofOfResidence

Type: ProofOfResidence

URL: https://api.oefr-kraken.energy/v1/graphql/

Fetch the proof of residence of an user.

The possible errors that can be raised are:

  • KT-FR-4910: Unauthorized to access to this agreement.
  • KT-CT-1113: Disabled GraphQL field requested.

Arguments

Name Description

accountNumber (String!)

ID of the account.

agreementId (Int!)

ID of the agreement.

Query

query ProofOfResidence(
  $accountNumber: String!,
  $agreementId: Int!
) {
  proofOfResidence(
    accountNumber: $accountNumber,
    agreementId: $agreementId
  ) {
    temporaryUrl
  }
}

Variables

{
  "accountNumber": "A-83C41652",
  "agreementId": 81916531
}

Response

{
  "data": {
    "proofOfResidence": {
      "temporaryUrl": "defense-doctor-job-return-activity"
    }
  }
}

propertiesSearch

Type: [PropertySearchResult!]!

URL: https://api.oefr-kraken.energy/v1/graphql/

Search for properties that are already in Kraken and match the search term.

Arguments

Name Description

searchTerm (String!)

The search term. It can be an address or a meter point identifier.

Query

query PropertiesSearch($searchTerm: String!) {
  propertiesSearch(searchTerm: $searchTerm) {
    property {
      ...PropertyTypeFragment
    }
    score
  }
}

Variables

{
  "searchTerm": "country-man-Republican-paper-first"
}

Response

{
  "data": {
    "propertiesSearch": [
      {
        "property": PropertyType,
        "score": "1.0"
      }
    ]
  }
}

property

Type: PropertyType

URL: https://api.oefr-kraken.energy/v1/graphql/

A property with the given ID. Usually associated with supply points.

The possible errors that can be raised are:

Arguments

Name Description

id (ID!)

The property ID.

Query

query Property($id: ID!) {
  property(id: $id) {
    address
    ancestors {
      ...PropertyConnectionFragment
    }
    coordinates {
      ...CoordinatesTypeFragment
    }
    descendants {
      ...PropertyConnectionFragment
    }
    embeddedNetwork {
      ...EmbeddedNetworkTypeFragment
    }
    id
    label
    measurements {
      ...MeasurementConnectionFragment
    }
    occupancyPeriods {
      ...OccupancyPeriodTypeFragment
    }
    parent {
      ...PropertyInterfaceFragment
    }
    postcode
    richAddress {
      ...PropertyRichAddressTypeFragment
    }
    splitAddress
    supplyPoints {
      ...SupplyPointConnectionTypeConnectionFragment
    }
  }
}

Variables

{
  "id": "44936451"
}

Response

{
  "data": {
    "property": {
      "address": "participant-arm-tax-thing-such",
      "ancestors": PropertyConnection,
      "coordinates": CoordinatesType,
      "descendants": PropertyConnection,
      "embeddedNetwork": EmbeddedNetworkType,
      "id": "82487614",
      "label": "particularly-just-sister-election-performance",
      "measurements": MeasurementConnection,
      "occupancyPeriods": [OccupancyPeriodType],
      "parent": PropertyInterface,
      "postcode": "these-black-pretty-moment-address",
      "richAddress": PropertyRichAddressType,
      "splitAddress": ["raise-respond-fund-public-more"],
      "supplyPoints": SupplyPointConnectionTypeConnection
    }
  }
}

propertySearch

Type: [PropertyType]

URL: https://api.oefr-kraken.energy/v1/graphql/

Search for properties that are already in Kraken and match the search term.

Deprecated

The 'propertySearch' field is deprecated.

This query is being deprecated in favour of `propertiesSearch`. The latter returns not only the matched properties but the level of confidence in the results through the `score` field.

- Marked as deprecated on 2023-05-23.
- Scheduled for removal on or after 2024-01-01.

Arguments

Name Description

searchTerm (String!)

The search term. It can be an address or a meter point identifier.

Query

query PropertySearch($searchTerm: String!) {
  propertySearch(searchTerm: $searchTerm) {
    address
    ancestors {
      ...PropertyConnectionFragment
    }
    coordinates {
      ...CoordinatesTypeFragment
    }
    descendants {
      ...PropertyConnectionFragment
    }
    embeddedNetwork {
      ...EmbeddedNetworkTypeFragment
    }
    id
    label
    measurements {
      ...MeasurementConnectionFragment
    }
    occupancyPeriods {
      ...OccupancyPeriodTypeFragment
    }
    parent {
      ...PropertyInterfaceFragment
    }
    postcode
    richAddress {
      ...PropertyRichAddressTypeFragment
    }
    splitAddress
    supplyPoints {
      ...SupplyPointConnectionTypeConnectionFragment
    }
  }
}

Variables

{
  "searchTerm": "future-its-shake-during-machine"
}

Response

{
  "data": {
    "propertySearch": [
      {
        "address": "ok-same-forward-safe-western",
        "ancestors": PropertyConnection,
        "coordinates": CoordinatesType,
        "descendants": PropertyConnection,
        "embeddedNetwork": EmbeddedNetworkType,
        "id": "47167572",
        "label": "forward-culture-star-democratic-drop",
        "measurements": MeasurementConnection,
        "occupancyPeriods": [OccupancyPeriodType],
        "parent": PropertyInterface,
        "postcode": "fund-floor-make-assume-hour",
        "richAddress": PropertyRichAddressType,
        "splitAddress": ["buy-but-now-man-positive"],
        "supplyPoints": SupplyPointConnectionTypeConnection
      }
    ]
  }
}

providerAuthDetails

Type: ProviderAuthDetailsType

URL: https://api.oefr-kraken.energy/v1/graphql/

Auth details (e.g. OAuth 2.0 URI) for the provider (if available).

Deprecated

The 'providerAuthDetails' field is deprecated.

Please use 'startSmartFlexOnboarding' instead.

- Marked as deprecated on 2025-10-30.
- Scheduled for removal on or after 2026-04-30.

You can read more about this deprecation on:
https://announcements.kraken.tech/announcements/public/608/

Arguments

Name Description

accountNumber (String)

The account number that will be associated with the device. Required for some providers.

clientType (ClientType)

The client type the request originated from. Used when oauth_uri is different between web and app.

deviceType (KrakenFlexDeviceTypes!)

The device type to get the auth details for (as providers may support multiple).

propertyId (Int)

The ID of the property the device belongs to.

provider (ProviderChoices!)

The provider to get the auth details for.

Query

query ProviderAuthDetails(
  $accountNumber: String,
  $clientType: ClientType,
  $deviceType: KrakenFlexDeviceTypes!,
  $propertyId: Int,
  $provider: ProviderChoices!
) {
  providerAuthDetails(
    accountNumber: $accountNumber,
    clientType: $clientType,
    deviceType: $deviceType,
    propertyId: $propertyId,
    provider: $provider
  ) {
    oauthUri
  }
}

Variables

{
  "accountNumber": "A-6A5C6699",
  "clientType": "APP",
  "deviceType": "BATTERIES",
  "propertyId": 47953721,
  "provider": "BYD"
}

Response

{
  "data": {
    "providerAuthDetails": {
      "oauthUri": "example-shake-run-themselves-teacher"
    }
  }
}

providerVirtualKeyDetails

Type: ProviderVirtualKeyDetailsType

URL: https://api.oefr-kraken.energy/v1/graphql/

Virtual key details (e.g. certificate public key) for the provider (if available).

Arguments

Name Description

deviceType (KrakenFlexDeviceTypes!)

The device type to get the virtual key details for (as providers may support multiple).

provider (ProviderChoices!)

The provider to get the virtual key details for.

Query

query ProviderVirtualKeyDetails(
  $deviceType: KrakenFlexDeviceTypes!,
  $provider: ProviderChoices!
) {
  providerVirtualKeyDetails(
    deviceType: $deviceType,
    provider: $provider
  ) {
    virtualKeyName
    virtualKeyUri
  }
}

Variables

{
  "deviceType": "BATTERIES",
  "provider": "BYD"
}

Response

{
  "data": {
    "providerVirtualKeyDetails": {
      "virtualKeyName": "pass-wind-teach-through-national",
      "virtualKeyUri": "meeting-really-seem-perhaps-ago"
    }
  }
}

Arguments

Name Description

input (QueryComplexityInputType!)

Query and relevant variables required to calculate the complexity.

Query

query QueryComplexity($input: QueryComplexityInputType!) {
  queryComplexity(input: $input) {
    complexityValue
  }
}

Variables

Response

{
  "data": {
    "queryComplexity": {
      "complexityValue": 18
    }
  }
}

question

Type: String

URL: https://api.oefr-kraken.energy/v1/graphql/

Get the customer feedback survey question.

The possible errors that can be raised are:

Arguments

Name Description

formId (Int!)

Query

query Question($formId: Int!) {
  question(formId: $formId)
}

Variables

{
  "formId": 94683697
}

Response

{
  "data": {
    "question": "economy-once-sure-movement-new"
  }
}

quoteRequest

Type: QuoteRequest

URL: https://api.oefr-kraken.energy/v1/graphql/

Get a quote request for a given code.

The possible errors that can be raised are:

Arguments

Name Description

code (UUID!)

The quote request code.

Query

query QuoteRequest($code: UUID!) {
  quoteRequest(code: $code) {
    code
    quotedSupplyPoints {
      ...QuotedSupplyPointResultConnectionTypeConnectionFragment
    }
  }
}

Variables

{
  "code": "55bb165b-59f3-41ed-9470-42a10f503cf8"
}

Response

{
  "data": {
    "quoteRequest": {
      "code": "3cdf0c9b-5d91-468f-8ffc-dd5d136d4009",
      "quotedSupplyPoints": QuotedSupplyPointResultConnectionTypeConnection
    }
  }
}

quotingParamDefinitionsForProductOffering

Type: QuotedOfferingParamsType

URL: https://api.oefr-kraken.energy/v1/graphql/

The possible errors that can be raised are:

Arguments

Name Description

productOfferingIdentifier (ID)

The identifier of the product offering.

Query

query QuotingParamDefinitionsForProductOffering($productOfferingIdentifier: ID) {
  quotingParamDefinitionsForProductOffering(productOfferingIdentifier: $productOfferingIdentifier) {
    offeringComponents {
      ...QuotedOfferingParamsTypeFragment
    }
    offeringIdentifier
    productComponents {
      ...QuotedProductComponentTypeFragment
    }
  }
}

Variables

{
  "productOfferingIdentifier": "62156202"
}

Response

{
  "data": {
    "quotingParamDefinitionsForProductOffering": {
      "offeringComponents": [QuotedOfferingParamsType],
      "offeringIdentifier": "93212178",
      "productComponents": [QuotedProductComponentType]
    }
  }
}

rateLimitInfo

Type: CombinedRateLimitInformation

URL: https://api.oefr-kraken.energy/v1/graphql/

Combined information about points-allowance rate limiting and request-specific rate limiting.

Query

query RateLimitInfo {
  rateLimitInfo {
    fieldSpecificRateLimits {
      ...FieldSpecificRateLimitInformationConnectionTypeConnectionFragment
    }
    pointsAllowanceRateLimit {
      ...PointsAllowanceRateLimitInformationFragment
    }
  }
}

Response

{
  "data": {
    "rateLimitInfo": {
      "fieldSpecificRateLimits": FieldSpecificRateLimitInformationConnectionTypeConnection,
      "pointsAllowanceRateLimit": PointsAllowanceRateLimitInformation
    }
  }
}

registeredKrakenflexDevice

Type: KrakenFlexDeviceType

URL: https://api.oefr-kraken.energy/v1/graphql/

A device registered with KrakenFlex for a given account.

The possible errors that can be raised are:

Deprecated

The 'registeredKrakenflexDevice' field is deprecated.

Please use 'devices' instead.

- Marked as deprecated on 2024-04-23.
- Scheduled for removal on or after 2026-03-01.

You can read more about this deprecation on:
https://announcements.kraken.tech/announcements/public/677/

Arguments

Name Description

accountNumber (String!)

Query

query RegisteredKrakenflexDevice($accountNumber: String!) {
  registeredKrakenflexDevice(accountNumber: $accountNumber) {
    chargePointMake
    chargePointModel
    chargePointPowerInKw
    createdAt
    hasToken
    krakenflexDeviceId
    provider
    stateOfChargeLimit {
      ...StateOfChargeLimitFragment
    }
    status
    suspended
    testDispatchFailureReason
    vehicleBatterySizeInKwh
    vehicleMake
    vehicleModel
  }
}

Variables

{
  "accountNumber": "A-4A969850"
}

Response

{
  "data": {
    "registeredKrakenflexDevice": {
      "chargePointMake": "none-mouth-whom-tonight-wrong",
      "chargePointModel": "take-federal-agent-history-perhaps",
      "chargePointPowerInKw": "1.0",
      "createdAt": "2017-09-17T04:16:11.154430+00:00",
      "hasToken": true,
      "krakenflexDeviceId": "69318223",
      "provider": "BYD",
      "stateOfChargeLimit": StateOfChargeLimit,
      "status": "move-writer-close-into-act",
      "suspended": true,
      "testDispatchFailureReason": "NONE",
      "vehicleBatterySizeInKwh": "1.0",
      "vehicleMake": "college-him-seem-very-challenge",
      "vehicleModel": "this-compare-consumer-drug-room"
    }
  }
}

returnSchedule

Type: [DepositReturnScheduleOutput]

URL: https://api.oefr-kraken.energy/v1/graphql/

Get deposit agreement related return schedules for a given account.

The possible errors that can be raised are:

Arguments

Name Description

accountNumber (String!)

Query

query ReturnSchedule($accountNumber: String!) {
  returnSchedule(accountNumber: $accountNumber) {
    amount
    dueDate
    status
  }
}

Variables

{
  "accountNumber": "A-FFD2CFC1"
}

Response

{
  "data": {
    "returnSchedule": [
      {
        "amount": 80,
        "dueDate": "2002-07-16",
        "status": "say-move-wife-risk-article"
      }
    ]
  }
}

routingAttributes

Type: [RoutingAttributeType]!

URL: https://api.oefr-kraken.energy/v1/graphql/

Get routing attributes available for call routing configuration.

The possible errors that can be raised are:

Arguments

Name Description

category (String)

Filter by category (LANGUAGE, OPERATIONS_GROUP, SKILL).

search (String)

Filter by friendly name (case-insensitive).

Query

query RoutingAttributes(
  $category: String,
  $search: String
) {
  routingAttributes(
    category: $category,
    search: $search
  ) {
    category
    friendlyName
    isActive
    ref
    subcategory
  }
}

Variables

{
  "category": "significant-reflect-so-site-keep",
  "search": "commercial-provide-finish-so-have"
}

Response

{
  "data": {
    "routingAttributes": [
      {
        "category": "hot-form-hundred-management-forward",
        "friendlyName": "side-discuss-particular-town-when",
        "isActive": true,
        "ref": "safe-pretty-reflect-action-only",
        "subcategory": "recently-travel-success-red-seek"
      }
    ]
  }
}

salesFunnelByCode

Type: SalesFunnel

URL: https://api.oefr-kraken.energy/v1/graphql/

Get the sales funnel by input.

The possible errors that can be raised are:

Arguments

Name Description

input (SalesFunnelInput!)

Input fields for retrieving the sales funnel.

Query

query SalesFunnelByCode($input: SalesFunnelInput!) {
  salesFunnelByCode(input: $input) {
    code
    collections {
      ...CollectionFragment
    }
    funnelType
    name
    rules {
      ...SalesFunnelRuleFragment
    }
    stages {
      ...SalesFunnelStageFragment
    }
    status
    uncollectedFields {
      ...FunnelFieldFragment
    }
  }
}

Variables

{
  "input": SalesFunnelInput
}

Response

{
  "data": {
    "salesFunnelByCode": {
      "code": "leg-beat-nearly-country-small",
      "collections": [Collection],
      "funnelType": "LEAD",
      "name": "try-could-next-avoid-approach",
      "rules": [SalesFunnelRule],
      "stages": [SalesFunnelStage],
      "status": "DRAFT",
      "uncollectedFields": [FunnelField]
    }
  }
}

Arguments

Name Description

input (SalesFunnelsInput)

Input fields for retrieving the sales funnels.

Query

query SalesFunnels($input: SalesFunnelsInput) {
  salesFunnels(input: $input) {
    code
    collections {
      ...CollectionFragment
    }
    funnelType
    name
    rules {
      ...SalesFunnelRuleFragment
    }
    stages {
      ...SalesFunnelStageFragment
    }
    status
    uncollectedFields {
      ...FunnelFieldFragment
    }
  }
}

Variables

{
  "input": SalesFunnelsInput
}

Response

{
  "data": {
    "salesFunnels": [
      {
        "code": "onto-should-determine-move-real",
        "collections": [Collection],
        "funnelType": "LEAD",
        "name": "nothing-dark-before-think-detail",
        "rules": [SalesFunnelRule],
        "stages": [SalesFunnelStage],
        "status": "DRAFT",
        "uncollectedFields": [FunnelField]
      }
    ]
  }
}

searchLead

Type: LeadIdType

URL: https://api.oefr-kraken.energy/v1/graphql/

Search and return the identifiers of a lead.

The possible errors that can be raised are:

Arguments

Name Description

filters (SearchLeadFilters!)

Filters to search for leads. All passed filters will be checked against the lead.

Query

query SearchLead($filters: SearchLeadFilters!) {
  searchLead(filters: $filters) {
    number
  }
}

Variables

{
  "filters": SearchLeadFilters
}

Response

{
  "data": {
    "searchLead": {
      "number": "wide-measure-push-road-four"
    }
  }
}

siteworksRequests

Type: CoreSiteworksRequestConnectionTypeConnection

URL: https://api.oefr-kraken.energy/v1/graphql/

A query to get a subset of Requests.

Deprecated

The 'siteworksRequests' field is deprecated.

Please use getOnSiteJobsRequests instead.

- Marked as deprecated on 2026-03-01.
- Scheduled for removal on or after 2026-09-01.

Arguments

Name Description

after (String)

before (String)

createdAfter (DateTime)

Only requests created after this datetime will be included.

first (Int)

ids ([UUID])

A list of request IDs. If provided, only these requests will be returned.

last (Int)

statuses ([RequestStatus])

Only requests with a status in this list will be included.

Query

query SiteworksRequests(
  $after: String,
  $before: String,
  $createdAfter: DateTime,
  $first: Int,
  $ids: [UUID],
  $last: Int,
  $statuses: [RequestStatus]
) {
  siteworksRequests(
    after: $after,
    before: $before,
    createdAfter: $createdAfter,
    first: $first,
    ids: $ids,
    last: $last,
    statuses: $statuses
  ) {
    edgeCount
    edges {
      ...CoreSiteworksRequestConnectionTypeEdgeFragment
    }
    pageInfo {
      ...PageInfoFragment
    }
    totalCount
  }
}

Variables

{
  "after": "YXJyYXljb25uZWN0aW9uOjEw=",
  "before": "YXJyYXljb25uZWN0aW9uOjEw=",
  "createdAfter": "1979-10-11T21:39:50.066102+00:00",
  "first": 10,
  "ids": ["cef8c846-ee55-4149-acbe-71ea98ce7088"],
  "last": 10,
  "statuses": "APPROVAL_PENDING"
}

Response

{
  "data": {
    "siteworksRequests": {
      "edgeCount": 39,
      "edges": CoreSiteworksRequestConnectionTypeEdge,
      "pageInfo": PageInfo,
      "totalCount": 89
    }
  }
}

Arguments

Name Description

smartFlexDeviceId (String)

The SmartFlex device ID to get the supply point details for.

Query

query SmartFlexDeviceSupplyPoint($smartFlexDeviceId: String) {
  smartFlexDeviceSupplyPoint(smartFlexDeviceId: $smartFlexDeviceId) {
    importSupplyPointId
    smartFlexDeviceId
  }
}

Variables

{
  "smartFlexDeviceId": "53792425"
}

Response

{
  "data": {
    "smartFlexDeviceSupplyPoint": {
      "importSupplyPointId": "30794101",
      "smartFlexDeviceId": "62797477"
    }
  }
}

smartFlexOnboardingWizards

Type: [SmartFlexOnboardingWizard!]

URL: https://api.oefr-kraken.energy/v1/graphql/

A list of wizards for onboarding devices for an account and property.

The possible errors that can be raised are:

Arguments

Name Description

accountNumber (String!)

The account number, e.g. A-12345678.

includeCancelled (Boolean)

Include cancelled wizards.

includeCompleted (Boolean)

Include completed wizards.

isResumable (Boolean)

Filters for onboarding wizards that can be resumed. List limits to one resumable wizard.

propertyId (Int)

Only list wizards for this property.

wizardId (ID)

To get a specific wizard by ID, if it exists.

Query

query SmartFlexOnboardingWizards(
  $accountNumber: String!,
  $includeCancelled: Boolean,
  $includeCompleted: Boolean,
  $isResumable: Boolean,
  $propertyId: Int,
  $wizardId: ID
) {
  smartFlexOnboardingWizards(
    accountNumber: $accountNumber,
    includeCancelled: $includeCancelled,
    includeCompleted: $includeCompleted,
    isResumable: $isResumable,
    propertyId: $propertyId,
    wizardId: $wizardId
  ) {
    backendScreen {
      ... on ComponentListType {
        ...ComponentListTypeFragment
      }
      ... on Dashboard {
        ...DashboardFragment
      }
      ... on FormScreenType {
        ...FormScreenTypeFragment
      }
      ... on GenericBackendScreen {
        ...GenericBackendScreenFragment
      }
    }
    completedSteps {
      ...SmartFlexOnboardingStepInterfaceFragment
    }
    currentStep {
      ...SmartFlexOnboardingStepInterfaceFragment
    }
    deviceType
    displayName
    id
    resumable {
      ...SmartFlexResumableFragment
    }
  }
}

Variables

{
  "accountNumber": "A-2D6C8B73",
  "includeCancelled": true,
  "includeCompleted": true,
  "isResumable": true,
  "propertyId": 97846528,
  "wizardId": "73363719"
}

Response

{
  "data": {
    "smartFlexOnboardingWizards": [
      {
        "backendScreen": ComponentListType,
        "completedSteps": SmartFlexOnboardingStepInterface,
        "currentStep": SmartFlexOnboardingStepInterface,
        "deviceType": "BATTERIES",
        "displayName": "avoid-small-story-see-rest",
        "id": "90380299",
        "resumable": SmartFlexResumable
      }
    ]
  }
}

Arguments

Name Description

accountNumber (String!)

The account number linked to the supply contracts.

after (String)

agreementId (ID)

Fetch supply contracts related to this specific agreement.

before (String)

first (Int)

last (Int)

marketName (FRAMarketName)

Filter supply contracts by market name (FRA_ELECTRICITY or FRA_GAS).

propertyId (ID)

Filter supply contracts related to this property.

supplyContractNumber (String)

Specific supply contract to display.

supplyPointId (ID)

Filter supply contracts related to this specific supply point.

Query

query SupplyContracts(
  $accountNumber: String!,
  $after: String,
  $agreementId: ID,
  $before: String,
  $first: Int,
  $last: Int,
  $marketName: FRAMarketName,
  $propertyId: ID,
  $supplyContractNumber: String,
  $supplyPointId: ID
) {
  supplyContracts(
    accountNumber: $accountNumber,
    after: $after,
    agreementId: $agreementId,
    before: $before,
    first: $first,
    last: $last,
    marketName: $marketName,
    propertyId: $propertyId,
    supplyContractNumber: $supplyContractNumber,
    supplyPointId: $supplyPointId
  ) {
    edgeCount
    edges {
      ...SupplyContractConnectionTypeEdgeFragment
    }
    pageInfo {
      ...PageInfoFragment
    }
    totalCount
  }
}

Variables

{
  "accountNumber": "A-C9278A04",
  "after": "YXJyYXljb25uZWN0aW9uOjEw=",
  "agreementId": "60894889",
  "before": "YXJyYXljb25uZWN0aW9uOjEw=",
  "first": 10,
  "last": 10,
  "marketName": "FRA_ELECTRICITY",
  "propertyId": "21762831",
  "supplyContractNumber": "different-now-drop-start-write",
  "supplyPointId": "36269026"
}

Response

{
  "data": {
    "supplyContracts": {
      "edgeCount": 64,
      "edges": SupplyContractConnectionTypeEdge,
      "pageInfo": PageInfo,
      "totalCount": 37
    }
  }
}

supplyPoint

Type: SupplyPointType

URL: https://api.oefr-kraken.energy/v1/graphql/

Get a supply point by its market specific id.

The possible errors that can be raised are:

  • KT-CT-4722: Supply point readings API not configured.
  • KT-CT-4719: No supply point found for identifier provided.
  • KT-CT-4723: Invalid market name provided.
  • KT-CT-1113: Disabled GraphQL field requested.

Arguments

Name Description

externalIdentifier (String!)

The market specific supply point id.

marketName (String!)

The name of the market in which this supply point exists.

Query

query SupplyPoint(
  $externalIdentifier: String!,
  $marketName: String!
) {
  supplyPoint(
    externalIdentifier: $externalIdentifier,
    marketName: $marketName
  ) {
    devices {
      ...DevicesConnectionFragment
    }
    externalIdentifier
    id
    lastSupplyPeriod {
      ...SupplyPeriodTypeFragment
    }
    marketName
    meterPoint {
      ...MeterPointInterfaceFragment
    }
    property {
      ...PropertyTypeFragment
    }
    readings {
      ...ReadingsFragment
    }
  }
}

Variables

{
  "externalIdentifier": "92925658",
  "marketName": "already-option-worry-oil-carry"
}

Response

{
  "data": {
    "supplyPoint": {
      "devices": DevicesConnection,
      "externalIdentifier": "55631657",
      "id": "79490243",
      "lastSupplyPeriod": SupplyPeriodType,
      "marketName": "between-occur-form-you-society",
      "meterPoint": MeterPointInterface,
      "property": PropertyType,
      "readings": Readings
    }
  }
}

Arguments

Name Description

accountNumber (String)

Filter meter points by account.

after (String)

before (String)

first (Int)

last (Int)

portfolioNumber (String)

Filter meter points by portfolio.

Query

query SupplyPoints(
  $accountNumber: String,
  $after: String,
  $before: String,
  $first: Int,
  $last: Int,
  $portfolioNumber: String
) {
  supplyPoints(
    accountNumber: $accountNumber,
    after: $after,
    before: $before,
    first: $first,
    last: $last,
    portfolioNumber: $portfolioNumber
  ) {
    edgeCount
    edges {
      ...SupplyPointConnectionTypeEdgeFragment
    }
    pageInfo {
      ...PageInfoFragment
    }
    totalCount
  }
}

Variables

{
  "accountNumber": "A-0569F882",
  "after": "YXJyYXljb25uZWN0aW9uOjEw=",
  "before": "YXJyYXljb25uZWN0aW9uOjEw=",
  "first": 10,
  "last": 10,
  "portfolioNumber": "P-43C1B7BD"
}

Response

{
  "data": {
    "supplyPoints": {
      "edgeCount": 36,
      "edges": SupplyPointConnectionTypeEdge,
      "pageInfo": PageInfo,
      "totalCount": 92
    }
  }
}

Arguments

Name Description

after (String)

before (String)

first (Int)

last (Int)

marketName (String)

The market for which we want to list products.

productCode (String)

Filter products by product code.

Query

query SupplyProducts(
  $after: String,
  $before: String,
  $first: Int,
  $last: Int,
  $marketName: String,
  $productCode: String
) {
  supplyProducts(
    after: $after,
    before: $before,
    first: $first,
    last: $last,
    marketName: $marketName,
    productCode: $productCode
  ) {
    edgeCount
    edges {
      ...ProductConnectionTypeEdgeFragment
    }
    pageInfo {
      ...PageInfoFragment
    }
    totalCount
  }
}

Variables

{
  "after": "YXJyYXljb25uZWN0aW9uOjEw=",
  "before": "YXJyYXljb25uZWN0aW9uOjEw=",
  "first": 10,
  "last": 10,
  "marketName": "yes-population-nation-local-firm",
  "productCode": "task-determine-economic-rock-leave"
}

Response

{
  "data": {
    "supplyProducts": {
      "edgeCount": 43,
      "edges": ProductConnectionTypeEdge,
      "pageInfo": PageInfo,
      "totalCount": 84
    }
  }
}

tariffGrid

Type: TariffGrid

URL: https://api.oefr-kraken.energy/v1/graphql/

Fetch the payment schedule for an agreement.

The possible errors that can be raised are:

  • KT-FR-4910: Unauthorized to access to this agreement.
  • KT-CT-1113: Disabled GraphQL field requested.

Arguments

Name Description

accountNumber (String!)

ID of the account.

agreementId (Int!)

ID of the agreement.

Query

query TariffGrid(
  $accountNumber: String!,
  $agreementId: Int!
) {
  tariffGrid(
    accountNumber: $accountNumber,
    agreementId: $agreementId
  ) {
    temporaryUrl
  }
}

Variables

{
  "accountNumber": "A-16E8CF42",
  "agreementId": 30140472
}

Response

{
  "data": {
    "tariffGrid": {
      "temporaryUrl": "again-others-soldier-if-these"
    }
  }
}

taskResult

Type: TaskResult

URL: https://api.oefr-kraken.energy/v1/graphql/

Get the status of a background task.

The possible errors that can be raised are:

Arguments

Name Description

accountNumber (String!)

taskId (String!)

Query

query TaskResult(
  $accountNumber: String!,
  $taskId: String!
) {
  taskResult(
    accountNumber: $accountNumber,
    taskId: $taskId
  ) {
    error
    result
    status
  }
}

Variables

{
  "accountNumber": "A-59A0B711",
  "taskId": "82963780"
}

Response

{
  "data": {
    "taskResult": {
      "error": "painting-necessary-produce-admit-around",
      "result": {"key": "value"},
      "status": "STARTED"
    }
  }
}

termsAndConditionsForProduct

Type: [TermsAndConditionsType]

URL: https://api.oefr-kraken.energy/v1/graphql/

Get the active terms and conditions for a market supply product.

The possible errors that can be raised are:

  • KT-CT-8501: No active terms and conditions found for product.
  • KT-CT-1113: Disabled GraphQL field requested.

Arguments

Name Description

productCode (String!)

The product code of the market supply product.

Query

query TermsAndConditionsForProduct($productCode: String!) {
  termsAndConditionsForProduct(productCode: $productCode) {
    brandCode
    effectiveFrom
    html
    markdown
    name
    pdfUrl
    version
  }
}

Variables

{
  "productCode": "entire-company-them-best-interview"
}

Response

{
  "data": {
    "termsAndConditionsForProduct": [
      {
        "brandCode": "say-start-protect-may-because",
        "effectiveFrom": "1983-08-16T08:10:05.187396+00:00",
        "html": "least-method-already-great-one",
        "markdown": "point-over-ok-enough-away",
        "name": "idea-cold-clearly-ahead-certain",
        "pdfUrl": "military-young-market-side-business",
        "version": "beyond-attention-ability-energy-send"
      }
    ]
  }
}

thirdPartyViewer

Type: ThirdPartyOrganizationType

URL: https://api.oefr-kraken.energy/v1/graphql/

The currently authenticated third party.

This field requires the Authorization header to be set.

Query

query ThirdPartyViewer {
  thirdPartyViewer {
    name
    permissions {
      ...ThirdPartyPermissionFragment
    }
  }
}

Response

{
  "data": {
    "thirdPartyViewer": {
      "name": "form-catch-parent-any-serious",
      "permissions": [ThirdPartyPermission]
    }
  }
}

trigger

Type: Trigger!

URL: https://api.oefr-kraken.energy/v1/graphql/

Get the details of a published trigger with a given ID.

The possible errors that can be raised are:

Arguments

Name Description

triggerId (ID!)

The ID of the trigger.

Query

query Trigger($triggerId: ID!) {
  trigger(triggerId: $triggerId) {
    accounts {
      ...AccountConnectionTypeConnectionFragment
    }
    accountsLinkedAt
    createdAt
    id
    messages {
      ...MessageConnectionFragment
    }
    processingStatus
    triggerTypeCode
  }
}

Variables

{
  "triggerId": "51598501"
}

Response

{
  "data": {
    "trigger": {
      "accounts": AccountConnectionTypeConnection,
      "accountsLinkedAt": "2022-07-09T04:08:01.849493+00:00",
      "createdAt": "1986-10-18T16:50:27.137338+00:00",
      "id": "80342280",
      "messages": MessageConnection,
      "processingStatus": "UNPROCESSED",
      "triggerTypeCode": "this-pay-important-rule-commercial"
    }
  }
}

ufcContractsCount

Type: Int

URL: https://api.oefr-kraken.energy/v1/graphql/

Returns the current number of UFC contracts.

Query

query UfcContractsCount {
  ufcContractsCount
}

Response

{
  "data": {
    "ufcContractsCount": 88
  }
}

userEmailCheckForCheckout

Type: Boolean

URL: https://api.oefr-kraken.energy/v1/graphql/

Check email address before checkout. Return true is the email address is free, false if it's attached to an active user account.

The possible errors that can be raised are:

Arguments

Name Description

input (UserEmailCheckForCheckoutInputType!)

Query

query UserEmailCheckForCheckout($input: UserEmailCheckForCheckoutInputType!) {
  userEmailCheckForCheckout(input: $input)
}

Variables

Response

{
  "data": {
    "userEmailCheckForCheckout": true
  }
}

userVehicles

Type: [UserVehiclesType]

URL: https://api.oefr-kraken.energy/v1/graphql/

A list of vehicles available to the user.

Note: If the API returns an empty list, there might be a delay between the vehicle being registered in the provider's system, and data being fetched from the vehicle's manufacturer. In such cases, the query should be retried after a few seconds.

The possible errors that can be raised are:

Deprecated

The 'userVehicles' field is deprecated.

Please use 'startSmartFlexOnboarding' instead.

- Marked as deprecated on 2025-10-30.
- Scheduled for removal on or after 2026-04-30.

You can read more about this deprecation on:
https://announcements.kraken.tech/announcements/public/608/

Arguments

Name Description

accountNumber (String)

authentication (AuthenticationInput)

The authentication details required given the chosen provider.

supportedProvider (ProviderChoices)

The provider used to authenticate the device (default Enode).

Query

query UserVehicles(
  $accountNumber: String,
  $authentication: AuthenticationInput,
  $supportedProvider: ProviderChoices
) {
  userVehicles(
    accountNumber: $accountNumber,
    authentication: $authentication,
    supportedProvider: $supportedProvider
  ) {
    information {
      ...VehicleInformationTypeFragment
    }
    vehicleId
  }
}

Variables

{
  "accountNumber": "A-CFD39EB5",
  "authentication": AuthenticationInput,
  "supportedProvider": "BYD"
}

Response

{
  "data": {
    "userVehicles": [
      {
        "information": VehicleInformationType,
        "vehicleId": "47995494"
      }
    ]
  }
}

Arguments

Name Description

value (String!)

Referral claim code value.

Query

query ValidateReferralCode($value: String!) {
  validateReferralCode(value: $value) {
    accountReferral {
      ...ReferralTypeFragment
    }
    createdAt
    id
    isValid
    referralScheme {
      ...ReferralSchemeTypeFragment
    }
    value
  }
}

Variables

{
  "value": "get-send-very-value-know"
}

Response

{
  "data": {
    "validateReferralCode": {
      "accountReferral": ReferralType,
      "createdAt": "2014-06-16T16:00:22.395963+00:00",
      "id": 60100453,
      "isValid": true,
      "referralScheme": ReferralSchemeType,
      "value": "commercial-short-with-under-seven"
    }
  }
}

vehicleChargingPreferences

Type: VehicleChargingPreferencesType

URL: https://api.oefr-kraken.energy/v1/graphql/

Vehicle charging preference details.

The possible errors that can be raised are:

Deprecated

The 'vehicleChargingPreferences' field is deprecated.

Please use 'devices.preferences' instead.

- Marked as deprecated on 2024-04-23.
- Scheduled for removal on or after 2026-03-01.

You can read more about this deprecation on:
https://announcements.kraken.tech/announcements/public/675/

Arguments

Name Description

accountNumber (String!)

Query

query VehicleChargingPreferences($accountNumber: String!) {
  vehicleChargingPreferences(accountNumber: $accountNumber) {
    maximumSocPercentage
    minimumSocPercentage
    weekdayTargetSoc
    weekdayTargetTime
    weekendTargetSoc
    weekendTargetTime
  }
}

Variables

{
  "accountNumber": "A-1D9A4010"
}

Response

{
  "data": {
    "vehicleChargingPreferences": {
      "maximumSocPercentage": 86,
      "minimumSocPercentage": 63,
      "weekdayTargetSoc": 77,
      "weekdayTargetTime": "shake-manager-scientist-real-stop",
      "weekendTargetSoc": 39,
      "weekendTargetTime": "rule-ago-her-call-teach"
    }
  }
}

verificationStatus

Type: EmailVerificationStatus

URL: https://api.oefr-kraken.energy/v1/graphql/

Check the verification status of a given email address.

Arguments

Name Description

email (String!)

The email address to be checked.

Query

query VerificationStatus($email: String!) {
  verificationStatus(email: $email) {
    email
    status
  }
}

Variables

{
  "email": "personal-sound-owner-quality-again"
}

Response

{
  "data": {
    "verificationStatus": {
      "email": "quite-artist-movement-west-player",
      "status": "NOT_SENT"
    }
  }
}

viewer

Type: AccountUserType

URL: https://api.oefr-kraken.energy/v1/graphql/

The currently authenticated user.

This field requires the Authorization header to be set.

Query

query Viewer {
  viewer {
    accountUserRoles {
      ...AccountUserRoleTypeFragment
    }
    accounts {
      ...AccountInterfaceFragment
    }
    address {
      ...RichAddressTypeFragment
    }
    alternativePhoneNumbers
    businesses {
      ...BusinessConnectionTypeConnectionFragment
    }
    consents {
      ...ConsentTypeFragment
    }
    createdAt
    dateOfBirth
    details {
      ...AccountUserDetailTypeFragment
    }
    email
    familyName
    fullName
    givenName
    hasFamilyIssues
    id
    isActive
    isDeceased
    isInHardship
    label
    landline
    liveSecretKey
    mobile
    number
    paymentMethods {
      ...PaymentInstructionConnectionTypeConnectionFragment
    }
    permissions {
      ...AccountUserPermissionFragment
    }
    portfolioIds
    portfolioUserRoles {
      ...PortfolioUserRoleTypeFragment
    }
    portfolios {
      ...PortfolioConnectionTypeConnectionFragment
    }
    preferences {
      ...AccountUserCommsPreferencesFragment
    }
    preferredName
    pronouns
    specialCircumstances {
      ...SpecialCircumstancesTypeFragment
    }
    title
  }
}

Response

{
  "data": {
    "viewer": {
      "accountUserRoles": [AccountUserRoleType],
      "accounts": AccountInterface,
      "address": RichAddressType,
      "alternativePhoneNumbers": ["pass-candidate-trip-role-thank"],
      "businesses": BusinessConnectionTypeConnection,
      "consents": ConsentType,
      "createdAt": "1984-12-28T17:39:34.276162+00:00",
      "dateOfBirth": "1971-07-06",
      "details": [AccountUserDetailType],
      "email": "everybody-tend-smile-key-letter",
      "familyName": "Matthews",
      "fullName": "memory-main-former-discover-meet",
      "givenName": "Bridget",
      "hasFamilyIssues": true,
      "id": "70014139",
      "isActive": true,
      "isDeceased": true,
      "isInHardship": true,
      "label": "operation-kitchen-professional-medical-site",
      "landline": "join-receive-quality-hit-box",
      "liveSecretKey": "blue-surface-suffer-despite-better",
      "mobile": "arm-imagine-coach-usually-indeed",
      "number": "office-name-play-area-here",
      "paymentMethods": PaymentInstructionConnectionTypeConnection,
      "permissions": [AccountUserPermission],
      "portfolioIds": ["64261984"],
      "portfolioUserRoles": [PortfolioUserRoleType],
      "portfolios": PortfolioConnectionTypeConnection,
      "preferences": AccountUserCommsPreferences,
      "preferredName": "company-matter-wrong-exactly-choice",
      "pronouns": "ability-protect-like-career-we",
      "specialCircumstances": SpecialCircumstancesType,
      "title": "able-language-knowledge-stage-not"
    }
  }
}

voiceCampaign

Type: VoiceCampaignType!

URL: https://api.oefr-kraken.energy/v1/graphql/

Get the voice campaign for a given ID.

The possible errors that can be raised are:

Arguments

Name Description

campaignId (String!)

The campaign ID.

Query

query VoiceCampaign($campaignId: String!) {
  voiceCampaign(campaignId: $campaignId) {
    campaignItems {
      ...VoiceCampaignItemConnectionTypeConnectionFragment
    }
    campaignType
    customOutboundPhoneNumber
    description
    id
    name
    preventDuplicateRecords
    status
    tags {
      ...CallTagConnectionTypeConnectionFragment
    }
  }
}

Variables

{
  "campaignId": "77462506"
}

Response

{
  "data": {
    "voiceCampaign": {
      "campaignItems": VoiceCampaignItemConnectionTypeConnection,
      "campaignType": "PREVIEW",
      "customOutboundPhoneNumber": "up-anyone-middle-conference-hard",
      "description": "capital-everything-support-green-either",
      "id": "71033511",
      "name": "expert-already-exist-my-claim",
      "preventDuplicateRecords": true,
      "status": "ACTIVE",
      "tags": CallTagConnectionTypeConnection
    }
  }
}

Arguments

Name Description

after (String)

before (String)

campaignType (TypeOfVoiceCampaign)

Filter by campaign type.

first (Int)

last (Int)

name (String)

Filter by campaign name.

status (CampaignStatus)

Filter by campaign status.

Query

query VoiceCampaigns(
  $after: String,
  $before: String,
  $campaignType: TypeOfVoiceCampaign,
  $first: Int,
  $last: Int,
  $name: String,
  $status: CampaignStatus
) {
  voiceCampaigns(
    after: $after,
    before: $before,
    campaignType: $campaignType,
    first: $first,
    last: $last,
    name: $name,
    status: $status
  ) {
    edgeCount
    edges {
      ...VoiceCampaignConnectionTypeEdgeFragment
    }
    pageInfo {
      ...PageInfoFragment
    }
    totalCount
  }
}

Variables

{
  "after": "YXJyYXljb25uZWN0aW9uOjEw=",
  "before": "YXJyYXljb25uZWN0aW9uOjEw=",
  "campaignType": "PREVIEW",
  "first": 10,
  "last": 10,
  "name": "expect-environment-wrong-even-medical",
  "status": "ACTIVE"
}

Response

{
  "data": {
    "voiceCampaigns": {
      "edgeCount": 66,
      "edges": VoiceCampaignConnectionTypeEdge,
      "pageInfo": PageInfo,
      "totalCount": 87
    }
  }
}

vouchersBalanceDetail

Type: VouchersBalanceDetail

URL: https://api.oefr-kraken.energy/v1/graphql/

Query the detail of vouchers balance for an account.

The possible errors that can be raised are:

Arguments

Name Description

accountNumber (ID!)

The account number.

Query

query VouchersBalanceDetail($accountNumber: ID!) {
  vouchersBalanceDetail(accountNumber: $accountNumber) {
    redeemableInFuture
    redeemableToday
  }
}

Variables

{
  "accountNumber": "A-5718B9E5"
}

Response

{
  "data": {
    "vouchersBalanceDetail": {
      "redeemableInFuture": 58,
      "redeemableToday": 88
    }
  }
}

Arguments

Name Description

accountNumber (ID!)

The account number.

after (String)

availableBeforeDate (Date)

An optional date to limit the response to vouchers that are available before the particular date (exclusive).

availableFromDate (Date)

An optional date to limit the response to vouchers that are available from the particular date (inclusive) onwards.

before (String)

excludeRefunded (Boolean)

Whether to exclude refunded vouchers from the response. By default, refunded vouchers will be included in the response.

first (Int)

last (Int)

purchasedBeforeDate (Date)

An optional date to limit the response to vouchers that have been purchased before the particular date (exclusive).

purchasedFromDate (Date)

An optional date to limit the response to vouchers that have been purchased from the particular date (inclusive) onwards.

redeemableOnly (Boolean!)

Whether to only return vouchers that can be redeemable.

Query

query VouchersForAccount(
  $accountNumber: ID!,
  $after: String,
  $availableBeforeDate: Date,
  $availableFromDate: Date,
  $before: String,
  $excludeRefunded: Boolean,
  $first: Int,
  $last: Int,
  $purchasedBeforeDate: Date,
  $purchasedFromDate: Date,
  $redeemableOnly: Boolean!
) {
  vouchersForAccount(
    accountNumber: $accountNumber,
    after: $after,
    availableBeforeDate: $availableBeforeDate,
    availableFromDate: $availableFromDate,
    before: $before,
    excludeRefunded: $excludeRefunded,
    first: $first,
    last: $last,
    purchasedBeforeDate: $purchasedBeforeDate,
    purchasedFromDate: $purchasedFromDate,
    redeemableOnly: $redeemableOnly
  ) {
    edgeCount
    edges {
      ...VoucherPurchaseConnectionTypeEdgeFragment
    }
    pageInfo {
      ...PageInfoFragment
    }
    totalCount
  }
}

Variables

{
  "accountNumber": "A-32472B02",
  "after": "YXJyYXljb25uZWN0aW9uOjEw=",
  "availableBeforeDate": "2017-05-31",
  "availableFromDate": "1985-12-18",
  "before": "YXJyYXljb25uZWN0aW9uOjEw=",
  "excludeRefunded": true,
  "first": 10,
  "last": 10,
  "purchasedBeforeDate": "2003-11-18",
  "purchasedFromDate": "1996-04-22",
  "redeemableOnly": true
}

Response

{
  "data": {
    "vouchersForAccount": {
      "edgeCount": 73,
      "edges": VoucherPurchaseConnectionTypeEdge,
      "pageInfo": PageInfo,
      "totalCount": 23
    }
  }
}

workSchedule

Type: WorkScheduleType!

URL: https://api.oefr-kraken.energy/v1/graphql/

Get the work schedule with the given identifier.

The possible errors that can be raised are:

Arguments

Name Description

identifier (String!)

The identifier of the work schedule (also known as the 'slug').

Query

query WorkSchedule($identifier: String!) {
  workSchedule(identifier: $identifier) {
    identifier
    isOpen
    isPublicHoliday
    name
    openOrClosedReason
  }
}

Variables

{
  "identifier": "44810905"
}

Response

{
  "data": {
    "workSchedule": {
      "identifier": "16314556",
      "isOpen": true,
      "isPublicHoliday": true,
      "name": "draw-should-big-laugh-have",
      "openOrClosedReason": "CLOSED_DUE_TO_PUBLIC_HOLIDAY"
    }
  }
}

Authentication Server

authorizedApplications

Type: [AuthorizedApplication]

URL: https://auth.oefr-kraken.energy/graphql/

Get all the confidential-client applications the current user has authorized.

Deprecated

The 'authorizedApplications' field is deprecated.

Schema is being removed, but will be available in the main API site.

- Marked as deprecated on 2025-10-15.
- Scheduled for removal on or after 2025-10-30.

Query

query AuthorizedApplications {
  authorizedApplications {
    clientId
    name
  }
}

Response

{
  "data": {
    "authorizedApplications": [
      {
        "clientId": "42944261",
        "name": "carry-hour-find-line-term"
      }
    ]
  }
}

Query

query KrakenVersion {
  krakenVersion {
    SHA
    isPinned
    number
  }
}

Response

{
  "data": {
    "krakenVersion": {
      "SHA": "land-exactly-catch-event-energy",
      "isPinned": true,
      "number": "federal-wait-official-western-whole"
    }
  }
}

mfaDevices

Type: [MfaDevice]

URL: https://auth.oefr-kraken.energy/graphql/

Get all MFA devices for the current user.

Deprecated

The 'mfaDevices' field is deprecated.

Schema is being removed, but will be available in the main API site.

- Marked as deprecated on 2025-10-15.
- Scheduled for removal on or after 2025-10-30.

Query

query MfaDevices {
  mfaDevices {
    deviceType
    isConfirmed
  }
}

Response

{
  "data": {
    "mfaDevices": [
      {
        "deviceType": "act-western-country-finally-beautiful",
        "isConfirmed": true
      }
    ]
  }
}