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: Account

URL: https://api.oejp-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) {
    id
    number
    status
    paymentSchedules {
      ...PaymentScheduleConnectionTypeConnectionFragment
    }
    users {
      ...AccountUserTypeFragment
    }
    complaints {
      ...ComplaintConnectionTypeConnectionFragment
    }
    brand
    balance
    overdueBalance
    urn
    billingName
    billingSubName
    billingEmail
    billingAddress
    billingAddressLine1
    billingAddressLine2
    billingAddressLine3
    billingAddressLine4
    billingAddressLine5
    billingAddressPostcode
    billingCountryCode
    billingDeliveryPointIdentifier
    splitBillingAddress
    address {
      ...RichAddressTypeFragment
    }
    portfolio {
      ...PortfolioTypeFragment
    }
    ledgers {
      ...LedgerTypeFragment
    }
    metadata {
      ...MetadataFragment
    }
    canRequestRefund
    requestRefundEligibility {
      ...RequestRefundEligibilityTypeFragment
    }
    payments {
      ...AccountPaymentConnectionTypeConnectionFragment
    }
    repayments {
      ...AccountRepaymentConnectionTypeConnectionFragment
    }
    paymentPlans {
      ...PaymentPlanConnectionTypeConnectionFragment
    }
    paymentForecast {
      ...PaymentForecastTypeFragment
    }
    paginatedPaymentForecast {
      ...PaymentForecastConnectionTypeConnectionFragment
    }
    referrals {
      ...ReferralConnectionTypeConnectionFragment
    }
    referralsCreated
    rewards {
      ...RewardTypeFragment
    }
    activeReferralSchemes {
      ...ReferralSchemeTypesFragment
    }
    transactions {
      ...TransactionConnectionTypeConnectionFragment
    }
    provisionalTransactions {
      ...ProvisionalTransactionConnectionTypeConnectionFragment
    }
    annualStatements {
      ...AnnualStatementConnectionTypeConnectionFragment
    }
    bills {
      ...BillConnectionTypeConnectionFragment
    }
    billingOptions {
      ...BillingOptionsTypeFragment
    }
    bill {
      ...BillInterfaceFragment
    }
    directDebitInstructions {
      ...DirectDebitInstructionConnectionTypeConnectionFragment
    }
    paymentMethods {
      ...PaymentInstructionConnectionTypeConnectionFragment
    }
    events {
      ...AccountEventConnectionTypeConnectionFragment
    }
    applications {
      ...AccountApplicationConnectionTypeConnectionFragment
    }
    accountType
    businessType
    business {
      ...BusinessTypeFragment
    }
    commsDeliveryPreference
    communicationDeliveryPreference
    documentAccessibility
    references {
      ...AccountReferenceTypeFragment
    }
    fileAttachments {
      ...AccountFileAttachmentFragment
    }
    paginatedFileAttachments {
      ...AccountFileAttachmentConnectionTypeConnectionFragment
    }
    maximumRefund {
      ...MaximumRefundTypeFragment
    }
    campaigns {
      ...AccountCampaignTypeFragment
    }
    isInHardship
    activeHardshipAgreements {
      ...HardshipAgreementTypeFragment
    }
    notes {
      ...AccountNoteTypeFragment
    }
    contributionAgreements {
      ...ContributionAgreementTypeFragment
    }
    assistanceAgreements {
      ...AssistanceAgreementTypeFragment
    }
    debtCollectionProceedings {
      ...DebtCollectionProceedingTypeFragment
    }
    createdAt
    preferredLanguageForComms
    consents {
      ...ConsentTypeFragment
    }
    reminders {
      ...AccountReminderConnectionTypeConnectionFragment
    }
    properties {
      ...PropertyTypeFragment
    }
    marketSupplyAgreements {
      ...AgreementConnectionFragment
    }
    canModifyPayments {
      ...CanModifyPaymentsTypeFragment
    }
    projectedBalance
    shouldReviewPayments
    recommendedBalanceAdjustment
    electricityAgreements {
      ...ElectricityAgreementTypeFragment
    }
    gasAgreements {
      ...GasAgreementTypeFragment
    }
    warmHomeDiscount {
      ...WarmHomeDiscountFragment
    }
    eligibilityForWarmHomeDiscount {
      ...WarmHomeDiscountEligibilityFragment
    }
    billingPostcode
    canRenewTariff
    trackerTariffDailyPricing {
      ...TrackerTariffDailyPricingFragment
    }
    paymentAdequacy {
      ...PaymentAdequacyTypeFragment
    }
    smets2Interest
    smets2RefusalReason
    greenAccomplishments {
      ...GreenAccomplishmentsTypeFragment
    }
    canChangePayments
    cotReadingWindowDays
    canBeWithdrawn
    currentEstimatedSsd
    earliestPossibleSsd
    latestPossibleSsd
    operationsTeam {
      ...OperationsTeamTypeFragment
    }
    canInputMeterReadingsViaIvr
    hasActiveDunningProcess
    hasActiveCollectionsProceedings
    isEligibleForElectricityReadingIncentive
    isEligibleForGasReadingIncentive
    isInBlockingMigration
  }
}

Variables

{
  "accountNumber": "A-157EF47C"
}

Response

{
  "data": {
    "account": {
      "id": "91282799",
      "number": "reveal-writer-group-continue-add",
      "status": "PENDING",
      "paymentSchedules": PaymentScheduleConnectionTypeConnection,
      "users": AccountUserType,
      "complaints": ComplaintConnectionTypeConnection,
      "brand": "job-per-participant-then-player",
      "balance": 69,
      "overdueBalance": 96,
      "urn": "local-door-lay-market-able",
      "billingName": "respond-what-budget-take-wish",
      "billingSubName": "concern-total-first-particular-between",
      "billingEmail": "room-subject-owner-white-close",
      "billingAddress": "education-specific-themselves-born-agent",
      "billingAddressLine1": "peace-again-state-house-property",
      "billingAddressLine2": "find-blood-mean-candidate-personal",
      "billingAddressLine3": "fight-leader-same-rock-production",
      "billingAddressLine4": "out-successful-wife-instead-newspaper",
      "billingAddressLine5": "fall-create-energy-vote-many",
      "billingAddressPostcode": "free-big-cut-save-lot",
      "billingCountryCode": "magazine-glass-base-discussion-economy",
      "billingDeliveryPointIdentifier": "55475120",
      "splitBillingAddress": ["weight-others-relate-sell-audience"],
      "address": RichAddressType,
      "portfolio": PortfolioType,
      "ledgers": [LedgerType],
      "metadata": [Metadata],
      "canRequestRefund": true,
      "requestRefundEligibility": RequestRefundEligibilityType,
      "payments": AccountPaymentConnectionTypeConnection,
      "repayments": AccountRepaymentConnectionTypeConnection,
      "paymentPlans": PaymentPlanConnectionTypeConnection,
      "paymentForecast": [PaymentForecastType],
      "paginatedPaymentForecast": PaymentForecastConnectionTypeConnection,
      "referrals": ReferralConnectionTypeConnection,
      "referralsCreated": 90,
      "rewards": [RewardType],
      "activeReferralSchemes": ReferralSchemeTypes,
      "transactions": TransactionConnectionTypeConnection,
      "provisionalTransactions": ProvisionalTransactionConnectionTypeConnection,
      "annualStatements": AnnualStatementConnectionTypeConnection,
      "bills": BillConnectionTypeConnection,
      "billingOptions": BillingOptionsType,
      "bill": BillInterface,
      "directDebitInstructions": DirectDebitInstructionConnectionTypeConnection,
      "paymentMethods": PaymentInstructionConnectionTypeConnection,
      "events": AccountEventConnectionTypeConnection,
      "applications": AccountApplicationConnectionTypeConnection,
      "accountType": "BUSINESS",
      "businessType": "SOLE_TRADER",
      "business": BusinessType,
      "commsDeliveryPreference": "EMAIL",
      "communicationDeliveryPreference": "control-page-room-in-expect",
      "documentAccessibility": "LARGE_PRINT",
      "references": [AccountReferenceType],
      "fileAttachments": [AccountFileAttachment],
      "paginatedFileAttachments": AccountFileAttachmentConnectionTypeConnection,
      "maximumRefund": MaximumRefundType,
      "campaigns": [AccountCampaignType],
      "isInHardship": true,
      "activeHardshipAgreements": [HardshipAgreementType],
      "notes": [AccountNoteType],
      "contributionAgreements": [ContributionAgreementType],
      "assistanceAgreements": [AssistanceAgreementType],
      "debtCollectionProceedings": [DebtCollectionProceedingType],
      "createdAt": "2001-01-26T11:22:44.202139+00:00",
      "preferredLanguageForComms": "Mrs-owner-difficult-test-cut",
      "consents": ConsentType,
      "reminders": AccountReminderConnectionTypeConnection,
      "properties": [PropertyType],
      "marketSupplyAgreements": AgreementConnection,
      "canModifyPayments": CanModifyPaymentsType,
      "projectedBalance": 37,
      "shouldReviewPayments": true,
      "recommendedBalanceAdjustment": 46,
      "electricityAgreements": [ElectricityAgreementType],
      "gasAgreements": [GasAgreementType],
      "warmHomeDiscount": WarmHomeDiscount,
      "eligibilityForWarmHomeDiscount": WarmHomeDiscountEligibility,
      "billingPostcode": "firm-actually-research-sign-more",
      "canRenewTariff": true,
      "trackerTariffDailyPricing": TrackerTariffDailyPricing,
      "paymentAdequacy": PaymentAdequacyType,
      "smets2Interest": "PRIORITY",
      "smets2RefusalReason": "SMETS2_INTEREST_REASON_DO_NOT_OWN_HOME",
      "greenAccomplishments": GreenAccomplishmentsType,
      "canChangePayments": true,
      "cotReadingWindowDays": 76,
      "canBeWithdrawn": true,
      "currentEstimatedSsd": "1990-01-29",
      "earliestPossibleSsd": "1992-06-23",
      "latestPossibleSsd": "2001-05-29",
      "operationsTeam": OperationsTeamType,
      "canInputMeterReadingsViaIvr": true,
      "hasActiveDunningProcess": true,
      "hasActiveCollectionsProceedings": true,
      "isEligibleForElectricityReadingIncentive": true,
      "isEligibleForGasReadingIncentive": true,
      "isInBlockingMigration": true
    }
  }
}

accountChargeReasons

Type: [ChargeReasonType]

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

Available reasons for use in account charge mutations.

Query

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

Response

{
  "data": {
    "accountChargeReasons": [
      {
        "code": "will-store-during-really-TV",
        "display": "education-keep-finally-factor-want",
        "isDeprecated": true,
        "isTaxExempt": true,
        "isHidden": true,
        "group": "several-relationship-card-put-white"
      }
    ]
  }
}

accountContract

Type: Contract

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

Get details about an account contract.

The possible errors that can be raised are:

Arguments

Name Description

identifier (String)

The identifier of the contract.

accountNumber (String)

The account number to find the contract for.

version (Int)

The version of the contract.

Query

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

Variables

{
  "identifier": "63300374",
  "accountNumber": "A-A2B7E501",
  "version": 22
}

Response

{
  "data": {
    "accountContract": {
      "identifier": "79145026",
      "title": "listen-same-computer-tough-culture",
      "party": ContractParty,
      "subject": [AccountType],
      "status": "REVOKED",
      "validFrom": "1971-09-15T11:39:22.072147+00:00",
      "validTo": "1981-02-09T13:12:02.106720+00:00",
      "signedAt": "1987-10-25T06:31:19.928084+00:00",
      "cancelledAt": "1974-06-12T20:59:59.372599+00:00",
      "lifecycle": ContractVersion,
      "terms": TermInterface
    }
  }
}

accountCreditReasons

Type: [CreditReasonType]

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

Available reasons for use in account credit mutations.

Query

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

Response

{
  "data": {
    "accountCreditReasons": [
      {
        "code": "cold-else-least-painting-discover",
        "display": "put-edge-top-control-life",
        "isDeprecated": true,
        "isTaxExempt": true,
        "isHidden": true,
        "group": "personal-national-account-girl-star"
      }
    ]
  }
}

accountIoEligibility

Type: AccountIoEligibility

URL: https://api.oejp-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-21998D90",
  "propertyId": 98734253
}

Response

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

accountReference

Type: [AccountReferenceType]

URL: https://api.oejp-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) {
    namespace
    value
    createdAt
    updatedAt
    account {
      ...AccountTypeFragment
    }
  }
}

Variables

{
  "value": "ball-sound-baby-few-behind"
}

Response

{
  "data": {
    "accountReference": [
      {
        "namespace": "fish-write-entire-wide-wait",
        "value": "commercial-another-guess-friend-sure",
        "createdAt": "1995-07-16T10:17:27.492053+00:00",
        "updatedAt": "2001-03-10T23:37:07.190844+00:00",
        "account": AccountType
      }
    ]
  }
}

accountUser

Type: AccountUser

URL: https://api.oejp-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.

number (ID)

Kraken number associated with an account user.

externalId (ID)

External ID associated with an account user.

Query

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

Variables

{
  "email": "serve-a-forward-near-fine",
  "number": "46173000",
  "externalId": "85173225"
}

Response

{
  "data": {
    "accountUser": {
      "id": "48375781",
      "number": "property-reflect-each-from-generation",
      "accounts": AccountInterface,
      "givenName": "Kevin",
      "familyName": "Peters",
      "email": "per-much-subject-simply-news",
      "mobile": "ground-itself-effect-term-yes",
      "landline": "season-wonder-few-this-it",
      "title": "way-trip-change-relate-wife",
      "pronouns": "young-building-marriage-participant-season",
      "isDeceased": true,
      "liveSecretKey": "something-some-little-work-alone",
      "createdAt": "2001-06-19T21:09:57.834004+00:00",
      "portfolios": PortfolioConnectionTypeConnection,
      "address": RichAddressType,
      "dateOfBirth": "2011-09-07",
      "label": "just-population-woman-visit-sit",
      "isActive": true,
      "details": [AccountUserDetailType],
      "permissions": [AccountUserPermission],
      "displayName": "blood-magazine-determine-will-president",
      "firstName": "course-employee-from-building-drive",
      "lastName": "yeah-defense-read-entire-foreign",
      "fullName": "newspaper-kind-heart-eight-maintain",
      "preferredName": "site-seat-lawyer-down-nice",
      "portfolioId": "38868091",
      "portfolioIds": ["56931022"],
      "businesses": BusinessConnectionTypeConnection,
      "specialCircumstances": SpecialCircumstancesType,
      "preferences": AccountUserCommsPreferences,
      "landlinePhoneNumber": "live-national-could-school-approach",
      "alternativePhoneNumbers": ["recognize-discussion-environmental-soldier-late"],
      "hasFamilyIssues": true,
      "isInHardship": true,
      "accountUserRoles": [AccountUserRoleType],
      "portfolioUserRoles": [PortfolioUserRoleType],
      "consents": ConsentType,
      "paymentMethods": PaymentInstructionConnectionTypeConnection,
      "holdMusicChoices": [TrackOptionType],
      "isOptedInToWof": true
    }
  }
}

accounts

Type: [Account]

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

Get details about multiple accounts.

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
  ) {
    id
    number
    status
    paymentSchedules {
      ...PaymentScheduleConnectionTypeConnectionFragment
    }
    users {
      ...AccountUserTypeFragment
    }
    complaints {
      ...ComplaintConnectionTypeConnectionFragment
    }
    brand
    balance
    overdueBalance
    urn
    billingName
    billingSubName
    billingEmail
    billingAddress
    billingAddressLine1
    billingAddressLine2
    billingAddressLine3
    billingAddressLine4
    billingAddressLine5
    billingAddressPostcode
    billingCountryCode
    billingDeliveryPointIdentifier
    splitBillingAddress
    address {
      ...RichAddressTypeFragment
    }
    portfolio {
      ...PortfolioTypeFragment
    }
    ledgers {
      ...LedgerTypeFragment
    }
    metadata {
      ...MetadataFragment
    }
    canRequestRefund
    requestRefundEligibility {
      ...RequestRefundEligibilityTypeFragment
    }
    payments {
      ...AccountPaymentConnectionTypeConnectionFragment
    }
    repayments {
      ...AccountRepaymentConnectionTypeConnectionFragment
    }
    paymentPlans {
      ...PaymentPlanConnectionTypeConnectionFragment
    }
    paymentForecast {
      ...PaymentForecastTypeFragment
    }
    paginatedPaymentForecast {
      ...PaymentForecastConnectionTypeConnectionFragment
    }
    referrals {
      ...ReferralConnectionTypeConnectionFragment
    }
    referralsCreated
    rewards {
      ...RewardTypeFragment
    }
    activeReferralSchemes {
      ...ReferralSchemeTypesFragment
    }
    transactions {
      ...TransactionConnectionTypeConnectionFragment
    }
    provisionalTransactions {
      ...ProvisionalTransactionConnectionTypeConnectionFragment
    }
    annualStatements {
      ...AnnualStatementConnectionTypeConnectionFragment
    }
    bills {
      ...BillConnectionTypeConnectionFragment
    }
    billingOptions {
      ...BillingOptionsTypeFragment
    }
    bill {
      ...BillInterfaceFragment
    }
    directDebitInstructions {
      ...DirectDebitInstructionConnectionTypeConnectionFragment
    }
    paymentMethods {
      ...PaymentInstructionConnectionTypeConnectionFragment
    }
    events {
      ...AccountEventConnectionTypeConnectionFragment
    }
    applications {
      ...AccountApplicationConnectionTypeConnectionFragment
    }
    accountType
    businessType
    business {
      ...BusinessTypeFragment
    }
    commsDeliveryPreference
    communicationDeliveryPreference
    documentAccessibility
    references {
      ...AccountReferenceTypeFragment
    }
    fileAttachments {
      ...AccountFileAttachmentFragment
    }
    paginatedFileAttachments {
      ...AccountFileAttachmentConnectionTypeConnectionFragment
    }
    maximumRefund {
      ...MaximumRefundTypeFragment
    }
    campaigns {
      ...AccountCampaignTypeFragment
    }
    isInHardship
    activeHardshipAgreements {
      ...HardshipAgreementTypeFragment
    }
    notes {
      ...AccountNoteTypeFragment
    }
    contributionAgreements {
      ...ContributionAgreementTypeFragment
    }
    assistanceAgreements {
      ...AssistanceAgreementTypeFragment
    }
    debtCollectionProceedings {
      ...DebtCollectionProceedingTypeFragment
    }
    createdAt
    preferredLanguageForComms
    consents {
      ...ConsentTypeFragment
    }
    reminders {
      ...AccountReminderConnectionTypeConnectionFragment
    }
    properties {
      ...PropertyTypeFragment
    }
    marketSupplyAgreements {
      ...AgreementConnectionFragment
    }
    canModifyPayments {
      ...CanModifyPaymentsTypeFragment
    }
    projectedBalance
    shouldReviewPayments
    recommendedBalanceAdjustment
    electricityAgreements {
      ...ElectricityAgreementTypeFragment
    }
    gasAgreements {
      ...GasAgreementTypeFragment
    }
    warmHomeDiscount {
      ...WarmHomeDiscountFragment
    }
    eligibilityForWarmHomeDiscount {
      ...WarmHomeDiscountEligibilityFragment
    }
    billingPostcode
    canRenewTariff
    trackerTariffDailyPricing {
      ...TrackerTariffDailyPricingFragment
    }
    paymentAdequacy {
      ...PaymentAdequacyTypeFragment
    }
    smets2Interest
    smets2RefusalReason
    greenAccomplishments {
      ...GreenAccomplishmentsTypeFragment
    }
    canChangePayments
    cotReadingWindowDays
    canBeWithdrawn
    currentEstimatedSsd
    earliestPossibleSsd
    latestPossibleSsd
    operationsTeam {
      ...OperationsTeamTypeFragment
    }
    canInputMeterReadingsViaIvr
    hasActiveDunningProcess
    hasActiveCollectionsProceedings
    isEligibleForElectricityReadingIncentive
    isEligibleForGasReadingIncentive
    isInBlockingMigration
  }
}

Variables

{
  "phoneNumber": "indicate-economic-along-only-toward",
  "portfolioNumber": "P-202D0406"
}

Response

{
  "data": {
    "accounts": [
      {
        "id": "85354815",
        "number": "old-democratic-outside-hospital-Congress",
        "status": "PENDING",
        "paymentSchedules": PaymentScheduleConnectionTypeConnection,
        "users": AccountUserType,
        "complaints": ComplaintConnectionTypeConnection,
        "brand": "community-player-office-as-house",
        "balance": 52,
        "overdueBalance": 35,
        "urn": "student-particular-story-popular-major",
        "billingName": "newspaper-stand-various-walk-owner",
        "billingSubName": "somebody-particular-project-business-majority",
        "billingEmail": "degree-according-teacher-friend-recent",
        "billingAddress": "artist-administration-paper-late-not",
        "billingAddressLine1": "lead-or-father-issue-city",
        "billingAddressLine2": "play-if-capital-letter-ball",
        "billingAddressLine3": "ahead-wonder-add-few-way",
        "billingAddressLine4": "draw-military-edge-out-since",
        "billingAddressLine5": "parent-dream-free-whom-different",
        "billingAddressPostcode": "citizen-check-tell-interesting-poor",
        "billingCountryCode": "he-report-ever-score-decide",
        "billingDeliveryPointIdentifier": "11365053",
        "splitBillingAddress": ["security-hold-stock-enough-offer"],
        "address": RichAddressType,
        "portfolio": PortfolioType,
        "ledgers": [LedgerType],
        "metadata": [Metadata],
        "canRequestRefund": true,
        "requestRefundEligibility": RequestRefundEligibilityType,
        "payments": AccountPaymentConnectionTypeConnection,
        "repayments": AccountRepaymentConnectionTypeConnection,
        "paymentPlans": PaymentPlanConnectionTypeConnection,
        "paymentForecast": [PaymentForecastType],
        "paginatedPaymentForecast": PaymentForecastConnectionTypeConnection,
        "referrals": ReferralConnectionTypeConnection,
        "referralsCreated": 74,
        "rewards": [RewardType],
        "activeReferralSchemes": ReferralSchemeTypes,
        "transactions": TransactionConnectionTypeConnection,
        "provisionalTransactions": ProvisionalTransactionConnectionTypeConnection,
        "annualStatements": AnnualStatementConnectionTypeConnection,
        "bills": BillConnectionTypeConnection,
        "billingOptions": BillingOptionsType,
        "bill": BillInterface,
        "directDebitInstructions": DirectDebitInstructionConnectionTypeConnection,
        "paymentMethods": PaymentInstructionConnectionTypeConnection,
        "events": AccountEventConnectionTypeConnection,
        "applications": AccountApplicationConnectionTypeConnection,
        "accountType": "BUSINESS",
        "businessType": "SOLE_TRADER",
        "business": BusinessType,
        "commsDeliveryPreference": "EMAIL",
        "communicationDeliveryPreference": "political-phone-alone-under-too",
        "documentAccessibility": "LARGE_PRINT",
        "references": [AccountReferenceType],
        "fileAttachments": [AccountFileAttachment],
        "paginatedFileAttachments": AccountFileAttachmentConnectionTypeConnection,
        "maximumRefund": MaximumRefundType,
        "campaigns": [AccountCampaignType],
        "isInHardship": true,
        "activeHardshipAgreements": [HardshipAgreementType],
        "notes": [AccountNoteType],
        "contributionAgreements": [ContributionAgreementType],
        "assistanceAgreements": [AssistanceAgreementType],
        "debtCollectionProceedings": [DebtCollectionProceedingType],
        "createdAt": "1976-11-30T16:22:57.943737+00:00",
        "preferredLanguageForComms": "voice-of-drop-team-executive",
        "consents": ConsentType,
        "reminders": AccountReminderConnectionTypeConnection,
        "properties": [PropertyType],
        "marketSupplyAgreements": AgreementConnection,
        "canModifyPayments": CanModifyPaymentsType,
        "projectedBalance": 6,
        "shouldReviewPayments": true,
        "recommendedBalanceAdjustment": 43,
        "electricityAgreements": [ElectricityAgreementType],
        "gasAgreements": [GasAgreementType],
        "warmHomeDiscount": WarmHomeDiscount,
        "eligibilityForWarmHomeDiscount": WarmHomeDiscountEligibility,
        "billingPostcode": "say-also-nearly-true-consumer",
        "canRenewTariff": true,
        "trackerTariffDailyPricing": TrackerTariffDailyPricing,
        "paymentAdequacy": PaymentAdequacyType,
        "smets2Interest": "PRIORITY",
        "smets2RefusalReason": "SMETS2_INTEREST_REASON_DO_NOT_OWN_HOME",
        "greenAccomplishments": GreenAccomplishmentsType,
        "canChangePayments": true,
        "cotReadingWindowDays": 22,
        "canBeWithdrawn": true,
        "currentEstimatedSsd": "2022-08-13",
        "earliestPossibleSsd": "1990-12-18",
        "latestPossibleSsd": "1987-05-30",
        "operationsTeam": OperationsTeamType,
        "canInputMeterReadingsViaIvr": true,
        "hasActiveDunningProcess": true,
        "hasActiveCollectionsProceedings": true,
        "isEligibleForElectricityReadingIncentive": true,
        "isEligibleForGasReadingIncentive": true,
        "isInBlockingMigration": true
      }
    ]
  }
}

accountsSearch

Type: [AccountSearchItemType]

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

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

Arguments

Name Description

searchTerms (AccountSearchInputType)

Search operators.

maxResults (Int)

The maximum number of results to return.

Query

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

Variables

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

Response

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

activeAffiliateReferralScheme

Type: ReferralSchemeType

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

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

Arguments

Name Description

subdomain (String!)

The affiliate link subdomain.

accountType (ReferralSchemeAccountTypeOptions)

The account type for which to get the referral scheme.

Query

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

Variables

{
  "subdomain": "find-hair-must-kid-already",
  "accountType": "DOMESTIC"
}

Response

{
  "data": {
    "activeAffiliateReferralScheme": {
      "referralUrl": "until-well-forget-because-have",
      "referralDisplayUrl": "bring-say-arm-within-wall",
      "referrerRewardAmount": 13,
      "referredRewardAmount": 7,
      "combinedRewardAmount": 11,
      "loyaltyPointsBonus": 30,
      "canBeReferred": true,
      "code": "step-write-your-personal-put",
      "referrerGivenName": "Brent",
      "referrerFamilyName": "Garcia",
      "schemeType": "beyond-arm-environmental-difficult-art",
      "maxRecurrence": 92,
      "isUsageAtCapacity": true
    }
  }
}

activeDomesticSignupRewardScheme

Type: ReferralSchemeType

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

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

Query

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

Response

{
  "data": {
    "activeDomesticSignupRewardScheme": {
      "referralUrl": "argue-animal-sort-today-develop",
      "referralDisplayUrl": "worry-themselves-project-pay-line",
      "referrerRewardAmount": 73,
      "referredRewardAmount": 34,
      "combinedRewardAmount": 76,
      "loyaltyPointsBonus": 74,
      "canBeReferred": true,
      "code": "understand-read-increase-again-long",
      "referrerGivenName": "Robert",
      "referrerFamilyName": "Hanson",
      "schemeType": "his-actually-might-young-fire",
      "maxRecurrence": 71,
      "isUsageAtCapacity": true
    }
  }
}

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
  ) {
    name
    code
    description
    hierarchicalName
  }
}

Variables

{
  "activeFrom": "2007-05-25T01:41:27.211969+00:00",
  "activeTo": "1986-05-03T09:39:33.606540+00:00"
}

Response

{
  "data": {
    "activeSalesChannels": [
      {
        "name": "finally-story-might-result-model",
        "code": "full-risk-address-wind-rather",
        "description": "establish-article-bring-late-list",
        "hierarchicalName": "adult-new-record-student-heart"
      }
    ]
  }
}

Type: AffiliateLinkType!

URL: https://api.oejp-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) {
    id
    organisation {
      ...AffiliateOrganisationTypeFragment
    }
    subdomain
    trainingStatus
    isBusiness
    contactName
    contactEmail
    landingUrl
  }
}

Variables

{
  "subdomain": "soon-man-campaign-support-road"
}

Response

{
  "data": {
    "affiliateLink": {
      "id": "57919326",
      "organisation": AffiliateOrganisationType,
      "subdomain": "soldier-school-second-development-left",
      "trainingStatus": "NOT_APPLICABLE",
      "isBusiness": true,
      "contactName": "sign-try-at-and-store",
      "contactEmail": "call-be-language-sing-ready",
      "landingUrl": "place-you-situation-above-life"
    }
  }
}

Type: [AffiliateLinkType!]!

URL: https://api.oejp-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) {
    id
    organisation {
      ...AffiliateOrganisationTypeFragment
    }
    subdomain
    trainingStatus
    isBusiness
    contactName
    contactEmail
    landingUrl
  }
}

Variables

{
  "agentContactEmail": "sister-quality-ability-debate-vote"
}

Response

{
  "data": {
    "affiliateLinks": {
      "id": "66133391",
      "organisation": AffiliateOrganisationType,
      "subdomain": "article-nature-former-front-friend",
      "trainingStatus": "NOT_APPLICABLE",
      "isBusiness": true,
      "contactName": "same-organization-sense-both-community",
      "contactEmail": "would-turn-building-station-more",
      "landingUrl": "up-last-position-factor-low"
    }
  }
}

affiliateOrganisation

Type: AffiliateOrganisationType

URL: https://api.oejp-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-1113: Disabled GraphQL field requested.

Arguments

Name Description

id (Int!)

The affiliate organisation ID.

Query

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

Variables

{
  "id": 85925712
}

Response

{
  "data": {
    "affiliateOrganisation": {
      "id": "55007307",
      "name": "white-hundred-outside-office-century",
      "contactEmail": "try-fight-politics-meeting-little",
      "canRenewTariffs": true,
      "defaultAccountType": "BUSINESS",
      "allowAlternativePaymentMethods": true,
      "canRegisterBusinessMeterPoints": true,
      "canRegisterPortfolioAccounts": true,
      "canRegisterCustomersWithoutEmailAddress": true,
      "canUseIvrSupportApi": true,
      "skipMeterPointAddressValidation": true,
      "salesChannel": "DIRECT",
      "salesChannelCode": "find-none-decade-business-everyone",
      "isFieldSalesOnlyProduct": true
    }
  }
}

agentCallCenterStatus

Type: AgentCallCenterStatusType!

URL: https://api.oejp-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
    status
    updatedAt
    mostRecentCallId
  }
}

Variables

{
  "supportUserName": "small-ahead-knowledge-style-night"
}

Response

{
  "data": {
    "agentCallCenterStatus": {
      "id": "98072574",
      "status": "soldier-less-audience-way-know",
      "updatedAt": "1989-09-05T17:22:16.844396+00:00",
      "mostRecentCallId": 95875293
    }
  }
}

agreement

Type: Agreement

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

Get an agreement by id.

The possible errors that can be raised are:

Arguments

Name Description

id (ID!)

The agreement id.

Query

query Agreement($id: ID!) {
  agreement(id: $id) {
    id
    validFrom
    validTo
    agreedFrom
    agreedTo
    isRevoked
    rescissionDeadlineAt
    addonRates {
      ...AddOnRateTypeFragment
    }
    product
    params
  }
}

Variables

{
  "id": "97663116"
}

Response

{
  "data": {
    "agreement": {
      "id": 28674089,
      "validFrom": "2023-05-31T13:03:06.955701+00:00",
      "validTo": "2003-07-26T00:41:00.939817+00:00",
      "agreedFrom": "1988-08-01T18:17:57.603276+00:00",
      "agreedTo": "1983-06-05T14:52:47.545910+00:00",
      "isRevoked": true,
      "rescissionDeadlineAt": "1984-10-06T20:03:43.116522+00:00",
      "addonRates": [AddOnRateType],
      "product": Product,
      "params": "abc123" | 1 | 1.0 | true | ["abc123"] | AccountType
    }
  }
}

agreementRollover

Type: AgreementRolloverType

URL: https://api.oejp-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) {
    id
    number
    agreement {
      ...CommonAgreementTypeFragment
    }
    rolledOnTo {
      ...CommonAgreementTypeFragment
    }
    quoteRequests {
      ...MarketSupplyQuoteRequestTypeFragment
    }
    rolloverType
    expectedSendDate
    status
    params
    failureReason
    actualSendDate
    suppressComms
    tags
    createdAt
    updatedAt
  }
}

Variables

{
  "number": "issue-seven-water-dog-who"
}

Response

{
  "data": {
    "agreementRollover": {
      "id": "38046473",
      "number": "green-election-ask-point-out",
      "agreement": CommonAgreementType,
      "rolledOnTo": CommonAgreementType,
      "quoteRequests": MarketSupplyQuoteRequestType,
      "rolloverType": "DEFAULT",
      "expectedSendDate": "1976-08-13",
      "status": "PENDING",
      "params": {"key": "value"},
      "failureReason": "street-indicate-case-skill-office",
      "actualSendDate": "1975-06-08",
      "suppressComms": true,
      "tags": ["true-skill-friend-lose-field"],
      "createdAt": "2004-03-10T22:27:20.117561+00:00",
      "updatedAt": "2002-07-05T12:35:06.189991+00:00"
    }
  }
}

Arguments

Name Description

input (APIBrownoutInput)

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

before (String)

after (String)

first (Int)

last (Int)

Query

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

Variables

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

Response

{
  "data": {
    "apiBrownouts": {
      "pageInfo": PageInfo,
      "edges": APIBrownoutEdge,
      "totalCount": 87,
      "edgeCount": 8
    }
  }
}

Arguments

Name Description

input (APIExceptionQueryInput)

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

before (String)

after (String)

first (Int)

last (Int)

Query

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

Variables

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

Response

{
  "data": {
    "apiExceptions": {
      "pageInfo": PageInfo,
      "edges": APIExceptionConnectionTypeEdge,
      "totalCount": 93,
      "edgeCount": 17
    }
  }
}

appSessions

Type: AppSessionConnectionTypeConnection!

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

App sessions recorded at the specified address.

Arguments

Name Description

postcode (String!)

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

before (String)

after (String)

first (Int)

last (Int)

Query

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

Variables

{
  "postcode": "which-set-group-particularly-thus",
  "before": "YXJyYXljb25uZWN0aW9uOjEw=",
  "after": "YXJyYXljb25uZWN0aW9uOjEw=",
  "first": 10,
  "last": 10
}

Response

{
  "data": {
    "appSessions": {
      "pageInfo": PageInfo,
      "edges": AppSessionConnectionTypeEdge,
      "totalCount": 33,
      "edgeCount": 85
    }
  }
}

authorizedApplications

Type: [AuthorizedApplication]

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

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

Query

query AuthorizedApplications {
  authorizedApplications {
    name
    clientId
  }
}

Response

{
  "data": {
    "authorizedApplications": [
      {
        "name": "better-building-arrive-truth-factor",
        "clientId": "67317007"
      }
    ]
  }
}

availableOfferings

Type: [OfferingType]

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

Get a list of actively available offerings from the catalog.

Query

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

Response

{
  "data": {
    "availableOfferings": [
      {
        "identifier": "20721749",
        "internalName": "area-now-happen-hard-door",
        "customerName": "everything-piece-continue-expert-reach",
        "customerDescription": "try-between-land-require-population",
        "isSellable": true,
        "lifecycle": LifecycleType,
        "tags": [TagType],
        "productComponents": [ProductComponentType],
        "offeringComponents": [OfferingComponentType],
        "termTemplateComponents": [TermTemplateComponentType],
        "groups": [GroupType],
        "isAmendable": true,
        "isExpired": true,
        "isActive": true,
        "isDraft": true,
        "isLatestVersion": true,
        "isFirstDraft": true
      }
    ]
  }
}

availableProductSwitchDates

Type: [Date]

URL: https://api.oejp-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": 10666904,
  "maxRange": 27
}

Response

{
  "data": {
    "availableProductSwitchDates": ["2006-03-18"]
  }
}

availableProducts

Type: [SupplyProductType]

URL: https://api.oejp-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) {
    id
    code
    notes
    fullName
    displayName
    description
    availableFrom
    availableTo
    isHidden
    term
    endsAt
    brandCode
    marketName
    availabilityStatus
    termsContractType
    termsAndConditionsTypes {
      ...TermsAndConditionsTypeFragment
    }
    params
    tags {
      ...SupplyProductTagTypeFragment
    }
  }
}

Variables

{
  "marketName": "baby-onto-coach-yet-hand"
}

Response

{
  "data": {
    "availableProducts": [
      {
        "id": "22637041",
        "code": "south-model-history-including-across",
        "notes": "exactly-develop-care-under-bar",
        "fullName": "class-individual-money-already-get",
        "displayName": "find-bar-son-southern-also",
        "description": "city-situation-crime-turn-heart",
        "availableFrom": "1999-12-13T05:56:06.993070+00:00",
        "availableTo": "1975-03-20T11:15:56.516716+00:00",
        "isHidden": true,
        "term": 78,
        "endsAt": "2018-07-31T04:26:08.916840+00:00",
        "brandCode": "ground-name-drive-of-read",
        "marketName": "of-establish-them-anything-bed",
        "availabilityStatus": "EVERYONE",
        "termsContractType": "approach-may-eight-career-home",
        "termsAndConditionsTypes": TermsAndConditionsType,
        "params": {"key": "value"},
        "tags": SupplyProductTagType
      }
    ]
  }
}

backendScreen

Type: BackendScreenType

URL: https://api.oejp-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

screenId (ID!)

The ID of the screen to return.

params ([BackendScreenParamInputType])

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

maxVersionSupported (Int)

The maximum version of backend screens supported by the client.

Query

query BackendScreen(
  $screenId: ID!,
  $params: [BackendScreenParamInputType],
  $maxVersionSupported: Int
) {
  backendScreen(
    screenId: $screenId,
    params: $params,
    maxVersionSupported: $maxVersionSupported
  )
}

Variables

{
  "screenId": "90095491",
  "params": BackendScreenParamInputType,
  "maxVersionSupported": 41
}

Response

{
  "data": {
    "backendScreen": BackendScreenType
  }
}

backendScreenEventIds

Type: [String]

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

Get all registered backend screen event IDs.

Query

query BackendScreenEventIds {
  backendScreenEventIds
}

Response

{
  "data": {
    "backendScreenEventIds": ["staff-house-add-need-party"]
  }
}

backendScreenIds

Type: [String]

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

Get all registered backend screen IDs.

Query

query BackendScreenIds {
  backendScreenIds
}

Response

{
  "data": {
    "backendScreenIds": ["whole-degree-top-choose-whatever"]
  }
}

bankDetailsValidation

Type: BankDetailsValidationResult

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

Override Field to add additional attributes and extend description with possible_errors

Arguments

Name Description

iban (NonEmptyString!)

The IBAN of the bank account.

Query

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

Variables

{
  "iban": "year-word-business-behavior-paper"
}

Response

{
  "data": {
    "bankDetailsValidation": {
      "areValid": true,
      "message": "establish-sort-certain-loss-read"
    }
  }
}

business

Type: BusinessType

URL: https://api.oejp-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

id (ID)

The business ID.

details ([BusinessDetailInput])

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

Query

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

Variables

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

Response

{
  "data": {
    "business": {
      "id": "91640148",
      "name": "perhaps-list-run-whether-contain",
      "number": "business-quickly-structure-game-forget",
      "businessType": "SOLE_TRADER",
      "sectors": None,
      "details": [BusinessDetailType],
      "billingAddress": RichAddressType,
      "legalAddress": RichAddressType,
      "linkedAccountNumber": "A-99292D80",
      "linkedAccountNumbers": "96616164",
      "segmentName": "which-current-idea-now-better",
      "paymentMethods": PaymentInstructionConnectionTypeConnection
    }
  }
}

businessAccountReferralRewardScheme

Type: ReferralSchemeType

URL: https://api.oejp-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) {
    referralUrl
    referralDisplayUrl
    referrerRewardAmount
    referredRewardAmount
    combinedRewardAmount
    loyaltyPointsBonus
    canBeReferred
    code
    referrerGivenName
    referrerFamilyName
    schemeType
    maxRecurrence
    isUsageAtCapacity
  }
}

Variables

{
  "code": "big-according-responsibility-your-impact"
}

Response

{
  "data": {
    "businessAccountReferralRewardScheme": {
      "referralUrl": "make-finally-of-race-she",
      "referralDisplayUrl": "consumer-word-suggest-yes-effort",
      "referrerRewardAmount": 29,
      "referredRewardAmount": 29,
      "combinedRewardAmount": 60,
      "loyaltyPointsBonus": 53,
      "canBeReferred": true,
      "code": "instead-heavy-end-film-price",
      "referrerGivenName": "Christopher",
      "referrerFamilyName": "Smith",
      "schemeType": "difficult-do-education-political-good",
      "maxRecurrence": 12,
      "isUsageAtCapacity": true
    }
  }
}

businessContract

Type: Contract

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

Get details about an account contract.

The possible errors that can be raised are:

Arguments

Name Description

identifier (String)

The identifier of the contract.

accountNumber (String)

The account number to find the business contract for.

version (Int)

The version of the contract.

Query

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

Variables

{
  "identifier": "62800003",
  "accountNumber": "A-1865D908",
  "version": 10
}

Response

{
  "data": {
    "businessContract": {
      "identifier": "38346562",
      "title": "free-some-effort-room-country",
      "party": ContractParty,
      "subject": [AccountType],
      "status": "REVOKED",
      "validFrom": "2021-05-07T10:39:24.500157+00:00",
      "validTo": "1970-08-09T22:30:47.862923+00:00",
      "signedAt": "1986-11-08T15:08:40.899036+00:00",
      "cancelledAt": "1978-12-25T00:13:06.862843+00:00",
      "lifecycle": ContractVersion,
      "terms": TermInterface
    }
  }
}

call

Type: CallInterface!

URL: https://api.oejp-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) {
    id
    account {
      ...AccountTypeFragment
    }
    metadata {
      ...CallMetadataItemTypeFragment
    }
  }
}

Variables

{
  "id": "44684900"
}

Response

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

callTag

Type: CallTagType!

URL: https://api.oejp-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
    name
    isActive
  }
}

Variables

{
  "id": "58147451"
}

Response

{
  "data": {
    "callTag": {
      "id": "67567971",
      "name": "hour-peace-happen-now-evening",
      "isActive": true
    }
  }
}

Arguments

Name Description

name (String)

Filter by call tag name.

isActive (Boolean)

Filter by active status.

before (String)

after (String)

first (Int)

last (Int)

Query

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

Variables

{
  "name": "involve-main-north-painting-evening",
  "isActive": true,
  "before": "YXJyYXljb25uZWN0aW9uOjEw=",
  "after": "YXJyYXljb25uZWN0aW9uOjEw=",
  "first": 10,
  "last": 10
}

Response

{
  "data": {
    "callTags": {
      "pageInfo": PageInfo,
      "edges": CallTagConnectionTypeEdge,
      "totalCount": 22,
      "edgeCount": 29
    }
  }
}

Arguments

Name Description

accountNumber (String!)

The account number.

before (String)

after (String)

first (Int)

last (Int)

Query

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

Variables

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

Response

{
  "data": {
    "campaigns": {
      "pageInfo": PageInfo,
      "edges": AccountCampaignConnectionTypeEdge,
      "totalCount": 12,
      "edgeCount": 24
    }
  }
}

catalogInput

Type: InputType

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

Get details about a catalog input.

The possible errors that can be raised are:

Arguments

Name Description

identifier (String!)

The identifier of the input to query.

Query

query CatalogInput($identifier: String!) {
  catalogInput(identifier: $identifier) {
    identifier
    label
    description
    section
    marketName
    bands
    unit
    isEditable
    isExternal
  }
}

Variables

{
  "identifier": "32168615"
}

Response

{
  "data": {
    "catalogInput": {
      "identifier": "82814771",
      "label": "task-these-amount-lose-policy",
      "description": "consider-candidate-but-paper-morning",
      "section": "CHARACTERISTICS",
      "marketName": "if-situation-than-third-oil",
      "bands": "own-thought-huge-field-prevent",
      "unit": "help-our-perform-prepare-security",
      "isEditable": true,
      "isExternal": true
    }
  }
}

catalogInputs

Type: [InputType]

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

Get all catalog inputs for a market.

Arguments

Name Description

marketName (String!)

The market name to filter inputs by.

Query

query CatalogInputs($marketName: String!) {
  catalogInputs(marketName: $marketName) {
    identifier
    label
    description
    section
    marketName
    bands
    unit
    isEditable
    isExternal
  }
}

Variables

{
  "marketName": "wrong-take-less-role-firm"
}

Response

{
  "data": {
    "catalogInputs": [
      {
        "identifier": "56326639",
        "label": "candidate-ability-arm-claim-there",
        "description": "media-executive-and-agent-lose",
        "section": "CHARACTERISTICS",
        "marketName": "into-spring-behind-song-say",
        "bands": "for-provide-current-choose-charge",
        "unit": "camera-third-social-six-rule",
        "isEditable": true,
        "isExternal": true
      }
    ]
  }
}

Query

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

Response

{
  "data": {
    "chargePointVariants": [
      {
        "make": "phone-attorney-culture-focus-property",
        "models": [ChargePointVariantModelType]
      }
    ]
  }
}

charges

Type: [ChargeType]

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

Charges for the given billing document.

Arguments

Name Description

accountNumber (String!)

The account number of the account to which the charges belong.

billingDocumentIdentifier (String!)

The identifier of the billing document.

Query

query Charges(
  $accountNumber: String!,
  $billingDocumentIdentifier: String!
) {
  charges(
    accountNumber: $accountNumber,
    billingDocumentIdentifier: $billingDocumentIdentifier
  ) {
    grossAmount
    salesTaxAmount
    lineItems {
      ...LineItemTypeFragment
    }
  }
}

Variables

{
  "accountNumber": "A-F62E5C2E",
  "billingDocumentIdentifier": "69705838"
}

Response

{
  "data": {
    "charges": [
      {
        "grossAmount": 1,
        "salesTaxAmount": 1,
        "lineItems": [LineItemType]
      }
    ]
  }
}

collectionProcessDetails

Type: CollectionProcessDetailsType

URL: https://api.oejp-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) {
    collectionProcessRecordNumber
    isPaused
    isComplete
    isActive
    completionType
    associatedItems {
      ...CollectionProcessRecordAssociatedItemTypeFragment
    }
    pausedDays
    collectionProcessType
    targetObjectIdentifier
  }
}

Variables

{
  "collectionProcessRecordNumber": "certainly-position-each-authority-notice"
}

Response

{
  "data": {
    "collectionProcessDetails": {
      "collectionProcessRecordNumber": "pick-loss-sense-it-different",
      "isPaused": true,
      "isComplete": true,
      "isActive": true,
      "completionType": "coach-position-hotel-assume-bed",
      "associatedItems": [CollectionProcessRecordAssociatedItemType],
      "pausedDays": 28,
      "collectionProcessType": "ACCOUNT",
      "targetObjectIdentifier": "63045584"
    }
  }
}

complaint

Type: ComplaintType

URL: https://api.oejp-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) {
    id
    contacts {
      ...ComplaintContactConnectionTypeConnectionFragment
    }
    type
    subtype
    creationDate
    resolutionDate
    assigneeId
  }
}

Variables

{
  "complaintId": 25513057
}

Response

{
  "data": {
    "complaint": {
      "id": "56720240",
      "contacts": ComplaintContactConnectionTypeConnection,
      "type": "number-key-college-student-program",
      "subtype": "raise-how-effect-these-when",
      "creationDate": "1973-10-31",
      "resolutionDate": "2023-06-19",
      "assigneeId": "96566442"
    }
  }
}

completedDispatches

Type: [UpsideDispatchType]

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

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

Arguments

Name Description

accountNumber (String!)

Query

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

Variables

{
  "accountNumber": "A-E9BBC341"
}

Response

{
  "data": {
    "completedDispatches": [
      {
        "start": "1994-06-16T17:57:50.163736+00:00",
        "end": "1997-06-18T07:24:07.839152+00:00",
        "startDt": "suffer-conference-high-cell-good",
        "endDt": "pay-little-tree-political-class",
        "deltaKwh": 18,
        "delta": "1.0",
        "meta": UpsideDispatchMetaType
      }
    ]
  }
}

consentTypes

Type: [ConsentTypeType]

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

A list of the consent types available.

Query

query ConsentTypes {
  consentTypes {
    code
    description
    name
    defaultValue
  }
}

Response

{
  "data": {
    "consentTypes": [
      {
        "code": "society-local-building-worry-until",
        "description": "professor-want-wife-understand-us",
        "name": "condition-sister-next-experience-sport",
        "defaultValue": "ACCEPTED"
      }
    ]
  }
}

contractCreationJourney

Type: ContractCreationJourneyType

URL: https://api.oejp-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) {
    number
    status
    contractDetails {
      ...ContractDetailsFragment
    }
    journeyType
    requestedAt
    orderReference
    context {
      ...ContractCreationContextFragment
    }
  }
}

Variables

{
  "number": "now-father-control-myself-anything"
}

Response

{
  "data": {
    "contractCreationJourney": {
      "number": "beyond-little-explain-think-school",
      "status": "IN_PROGRESS",
      "contractDetails": ContractDetails,
      "journeyType": "CONTRACT_CREATION",
      "requestedAt": "1975-04-27T07:46:15.902167+00:00",
      "orderReference": "protect-front-like-must-offer",
      "context": ContractCreationContext
    }
  }
}

contracts

Type: [Contract]

URL: https://api.oejp-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) {
    identifier
    title
    party
    subject {
      ...AccountTypeFragment
    }
    status
    validFrom
    validTo
    signedAt
    cancelledAt
    lifecycle {
      ...ContractVersionFragment
    }
    terms {
      ...TermInterfaceFragment
    }
  }
}

Variables

{
  "filters": ContractFiltersInput
}

Response

{
  "data": {
    "contracts": [
      {
        "identifier": "14566537",
        "title": "big-little-structure-direction-word",
        "party": ContractParty,
        "subject": [AccountType],
        "status": "REVOKED",
        "validFrom": "1978-04-23T13:25:57.398885+00:00",
        "validTo": "1977-11-27T01:45:10.749559+00:00",
        "signedAt": "2012-08-17T02:35:35.917450+00:00",
        "cancelledAt": "1974-01-07T09:28:59.322405+00:00",
        "lifecycle": ContractVersion,
        "terms": TermInterface
      }
    ]
  }
}

Query

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

Response

{
  "data": {
    "contributionSchemes": [
      {
        "id": "59561683",
        "code": "hour-agent-foreign-team-raise",
        "displayName": "possible-hear-enter-meeting-stay",
        "taxable": true,
        "acceptingContributions": true
      }
    ]
  }
}

costOfCharge

Type: [CostOfChargeType]

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

Aggregated cost of charge for an EV device.

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
    krakenflexDeviceId
    reportDate
    isSmartCharge
    totalConsumption
    totalCostExclTax
    totalCostInclTax
  }
}

Variables

{
  "accountNumber": "A-BF11A603",
  "frequency": "DAILY",
  "startDate": "1997-12-16"
}

Response

{
  "data": {
    "costOfCharge": [
      {
        "costOfChargeId": "70366648",
        "krakenflexDeviceId": "35289185",
        "reportDate": "2008-03-19",
        "isSmartCharge": true,
        "totalConsumption": 446.88,
        "totalCostExclTax": 642.68,
        "totalCostInclTax": 923.67
      }
    ]
  }
}

customerFeedbackForms

Type: CustomerFeedbackFormConnectionTypeConnection

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

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

Arguments

Name Description

accountNumber (String!)

The account number.

feedbackSource (CustomerFeedbackSourceChoices)

Feedback sources currently supported.

before (String)

after (String)

first (Int)

last (Int)

Query

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

Variables

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

Response

{
  "data": {
    "customerFeedbackForms": {
      "pageInfo": PageInfo,
      "edges": CustomerFeedbackFormConnectionTypeEdge,
      "totalCount": 9,
      "edgeCount": 28
    }
  }
}

dashboardScreen

Type: Dashboard

URL: https://api.oejp-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

dashboardId (ID!)

The ID of the dashboard type screen to return.

accountNumber (String!)

The account number of the user.

maxVersionSupported (Int!)

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

ledgerNumber (String)

The ledger number associated to the account.

propertyId (String)

The property id associated to the account.

params ([BackendScreenParamInputType])

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

Query

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

Variables

{
  "dashboardId": "23257716",
  "accountNumber": "A-7570A439",
  "maxVersionSupported": 61,
  "ledgerNumber": "success-change-win-energy-consumer",
  "propertyId": "51120583",
  "params": BackendScreenParamInputType
}

Response

{
  "data": {
    "dashboardScreen": {
      "id": "17271713",
      "typename": "him-tell-tonight-to-defense",
      "dashboardItems": SectionType,
      "serialisedDashboardItems": "conference-present-because-some-cover"
    }
  }
}

defaultPaymentInstruction

Type: PaymentInstructionType

URL: https://api.oejp-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
  ) {
    id
    status
    sortCode
    iban
    accountHolder
    instructionType
    cardPaymentNetwork
    cardExpiryMonth
    cardExpiryYear
    supplementaryLedger {
      ...SupplementaryLedgerTypeFragment
    }
    bankCode
    accountType
    validFrom
    vendor
    cardNumber
    cardType
    maskedAccountIdentifier
    owners {
      ...PaymentInstructionOwnerTypeFragment
    }
  }
}

Variables

{
  "accountNumber": "A-F42203B2",
  "instructionType": "BPAY"
}

Response

{
  "data": {
    "defaultPaymentInstruction": {
      "id": "35730394",
      "status": "describe-because-everybody-work-boy",
      "sortCode": "structure-dark-activity-notice-able",
      "iban": "girl-century-improve-will-stuff",
      "accountHolder": "magazine-discover-environmental-red-night",
      "instructionType": "clear-attack-with-travel-single",
      "cardPaymentNetwork": "at-hit-enter-memory-shake",
      "cardExpiryMonth": 80,
      "cardExpiryYear": 20,
      "supplementaryLedger": SupplementaryLedgerType,
      "bankCode": "building-draw-commercial-nation-matter",
      "accountType": "do-economy-whom-strong-still",
      "validFrom": "2015-01-28T06:08:58.814320+00:00",
      "vendor": "include-yourself-well-site-them",
      "cardNumber": "without-he-road-stock-happen",
      "cardType": "could-beat-herself-American-air",
      "maskedAccountIdentifier": "31075878",
      "owners": [PaymentInstructionOwnerType]
    }
  }
}

defaultRawScore

Type: Int

URL: https://api.oejp-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": 87570094
}

Response

{
  "data": {
    "defaultRawScore": 4
  }
}

depositAgreements

Type: [DepositAgreementOutput]

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

Get deposit agreements for a given account.

Arguments

Name Description

accountNumber (String!)

Query

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

Variables

{
  "accountNumber": "A-665B3B0E"
}

Response

{
  "data": {
    "depositAgreements": [
      {
        "depositKey": "do-majority-almost-wife-something",
        "depositAmount": 31,
        "acceptedAt": "1980-11-21T18:40:04.706372+00:00",
        "fulfilledAt": "1972-05-18T10:45:51.551398+00:00",
        "collectionDate": "2012-09-05",
        "dueDate": "1979-03-03",
        "returnStrategy": "many-throughout-opportunity-be-computer",
        "currentEligibilityStatus": CurrentEligibilityStatusOutput
      }
    ]
  }
}

devices

Type: [SmartFlexDeviceInterface!]

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

A list of devices registered to an account.

Arguments

Name Description

accountNumber (String!)

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

propertyId (ID)

Only list devices registered to this property.

deviceId (String)

Only list the device with this ID.

integrationDeviceId (String)

Only list the device with this integration device ID.

Query

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

Variables

{
  "accountNumber": "A-35BA4857",
  "propertyId": "83945521",
  "deviceId": "67940590",
  "integrationDeviceId": "67664841"
}

Response

{
  "data": {
    "devices": [
      {
        "id": "51278022",
        "name": "join-they-do-involve-always",
        "deviceType": "BATTERIES",
        "provider": "BYD",
        "integrationDeviceId": "82063882",
        "status": SmartFlexDeviceStatusInterface,
        "propertyId": "35991540",
        "alerts": SmartFlexDeviceAlertInterface,
        "onboardingWizard": SmartFlexOnboardingWizard,
        "preferences": SmartFlexDevicePreferencesInterface,
        "preferenceSetting": FlexDevicePreferenceSettingInterface,
        "reAuthenticationState": DeviceReAuthenticationInterface
      }
    ]
  }
}

domesticAccountReferralRewardScheme

Type: ReferralSchemeType

URL: https://api.oejp-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) {
    referralUrl
    referralDisplayUrl
    referrerRewardAmount
    referredRewardAmount
    combinedRewardAmount
    loyaltyPointsBonus
    canBeReferred
    code
    referrerGivenName
    referrerFamilyName
    schemeType
    maxRecurrence
    isUsageAtCapacity
  }
}

Variables

{
  "code": "nice-middle-soldier-feel-third"
}

Response

{
  "data": {
    "domesticAccountReferralRewardScheme": {
      "referralUrl": "onto-include-soon-quality-environment",
      "referralDisplayUrl": "resource-collection-information-country-either",
      "referrerRewardAmount": 94,
      "referredRewardAmount": 70,
      "combinedRewardAmount": 19,
      "loyaltyPointsBonus": 72,
      "canBeReferred": true,
      "code": "develop-improve-audience-difficult-form",
      "referrerGivenName": "Justin",
      "referrerFamilyName": "Gomez",
      "schemeType": "adult-too-night-me-town",
      "maxRecurrence": 84,
      "isUsageAtCapacity": true
    }
  }
}

domesticJoiningRewardScheme

Type: ReferralSchemeType

URL: https://api.oejp-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) {
    referralUrl
    referralDisplayUrl
    referrerRewardAmount
    referredRewardAmount
    combinedRewardAmount
    loyaltyPointsBonus
    canBeReferred
    code
    referrerGivenName
    referrerFamilyName
    schemeType
    maxRecurrence
    isUsageAtCapacity
  }
}

Variables

{
  "code": "case-page-paper-base-list"
}

Response

{
  "data": {
    "domesticJoiningRewardScheme": {
      "referralUrl": "everything-world-quality-move-trial",
      "referralDisplayUrl": "read-people-seek-approach-hour",
      "referrerRewardAmount": 99,
      "referredRewardAmount": 68,
      "combinedRewardAmount": 52,
      "loyaltyPointsBonus": 2,
      "canBeReferred": true,
      "code": "possible-chair-these-them-author",
      "referrerGivenName": "Sandy",
      "referrerFamilyName": "Henderson",
      "schemeType": "spend-during-wife-want-enough",
      "maxRecurrence": 24,
      "isUsageAtCapacity": true
    }
  }
}

domesticSignupRewardScheme

Type: ReferralSchemeType

URL: https://api.oejp-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) {
    referralUrl
    referralDisplayUrl
    referrerRewardAmount
    referredRewardAmount
    combinedRewardAmount
    loyaltyPointsBonus
    canBeReferred
    code
    referrerGivenName
    referrerFamilyName
    schemeType
    maxRecurrence
    isUsageAtCapacity
  }
}

Variables

{
  "code": "account-ground-foreign-risk-figure"
}

Response

{
  "data": {
    "domesticSignupRewardScheme": {
      "referralUrl": "official-thousand-share-whatever-drive",
      "referralDisplayUrl": "cell-they-check-claim-trial",
      "referrerRewardAmount": 38,
      "referredRewardAmount": 11,
      "combinedRewardAmount": 9,
      "loyaltyPointsBonus": 8,
      "canBeReferred": true,
      "code": "cause-chair-either-raise-how",
      "referrerGivenName": "Michael",
      "referrerFamilyName": "Duncan",
      "schemeType": "method-million-race-everyone-collection",
      "maxRecurrence": 100,
      "isUsageAtCapacity": true
    }
  }
}

dunningProcess

Type: DunningProcess

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

Get details about a dunning process.

Arguments

Name Description

accountNumber (String!)

Provide an account number to look up.

Query

query DunningProcess($accountNumber: String!) {
  dunningProcess(accountNumber: $accountNumber) {
    pathName
    startDate
    status
    createdBy
    createdNote
    withdrawnBy
    concludedAt
    createdAt
    updatedAt
    actions {
      ...DunningActionFragment
    }
    previousStep
    nextStep
    badDebt
  }
}

Variables

{
  "accountNumber": "A-3B11F111"
}

Response

{
  "data": {
    "dunningProcess": {
      "pathName": "dark-leg-different-agreement-single",
      "startDate": "2016-12-21",
      "status": "ACTIVE",
      "createdBy": "let-later-policy-it-here",
      "createdNote": "week-beautiful-thing-product-however",
      "withdrawnBy": "bit-suddenly-short-good-how",
      "concludedAt": "1997-04-26T01:56:40.106630+00:00",
      "createdAt": "2022-04-13T04:13:43.174201+00:00",
      "updatedAt": "2006-02-04T02:05:13.954663+00:00",
      "actions": [DunningAction],
      "previousStep": "state-cell-debate-save-add",
      "nextStep": "yet-responsibility-trial-main-gas",
      "badDebt": 40
    }
  }
}

electricVehicles

Type: [ElectricVehicleType]

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

All electric vehicle types and their details.

Arguments

Name Description

make (String)

Only return vehicle types for the specified make.

supportedProvider (ProviderChoices)

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

isIntegrationLive (Boolean)

Only return vehicles that are currently integrated.

Query

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

Variables

{
  "make": "type-reach-situation-take-experience",
  "supportedProvider": "BYD",
  "isIntegrationLive": true
}

Response

{
  "data": {
    "electricVehicles": [
      {
        "make": "model-issue-investment-eye-firm",
        "models": [ElectricVehicleModelType]
      }
    ]
  }
}

eligibilityToJoinLoyaltyPointsProgram

Type: LoyaltyPointsProgramEligibilityType

URL: https://api.oejp-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": "live-across-suddenly-message-if"
    }
  }
}

eligibleDeviceTypes

Type: [KrakenFlexDeviceTypes]

URL: https://api.oejp-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-4AA627A0",
  "propertyId": 38928169
}

Response

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

embeddedNetwork

Type: EmbeddedNetworkType

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

Get details about an embedded network.

Arguments

Name Description

id (ID!)

Query

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

Variables

{
  "id": "22176653"
}

Response

{
  "data": {
    "embeddedNetwork": {
      "id": "66107422",
      "name": "discussion-which-skin-full-any",
      "embeddedProperties": [EmbeddedPropertyType]
    }
  }
}

Query

query EnergyMixData {
  energyMixData {
    carbonIntensityIndex
  }
}

Response

{
  "data": {
    "energyMixData": {
      "carbonIntensityIndex": "window-large-newspaper-society-of"
    }
  }
}

enodeLinkSession

Type: EnodeLinkSessionType

URL: https://api.oejp-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-5E479365",
  "vendor": "AUDI"
}

Response

{
  "data": {
    "enodeLinkSession": {
      "linkState": "smile-likely-realize-others-response",
      "linkUrl": "her-role-single-course-task"
    }
  }
}

externalAccountEvents

Type: ExternalAccountEventConnectionTypeConnection

URL: https://api.oejp-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.

before (String)

after (String)

first (Int)

last (Int)

Query

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

Variables

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

Response

{
  "data": {
    "externalAccountEvents": {
      "pageInfo": PageInfo,
      "edges": ExternalAccountEventConnectionTypeEdge,
      "totalCount": 61,
      "edgeCount": 81
    }
  }
}

flexPlannedDispatches

Type: [SmartFlexDispatch]

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

All planned device dispatches in time order.

Arguments

Name Description

deviceId (String!)

The SmartFlex device ID to get the planned dispatches for.

Query

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

Variables

{
  "deviceId": "92991742"
}

Response

{
  "data": {
    "flexPlannedDispatches": [
      {
        "start": "2023-12-19T02:58:17.433330+00:00",
        "end": "2013-08-21T09:37:44.621470+00:00",
        "type": "SMART",
        "energyAddedKwh": "1.0"
      }
    ]
  }
}

flexSupportedDevices

Type: FlexSupportedDevices

URL: https://api.oejp-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
    }
  }
}

fraudMeterPointChecks

Type: FraudMeterPointCheckType

URL: https://api.oejp-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) {
    meterPointId
    isInSuspiciousList
  }
}

Variables

{
  "meterPointId": "65179976"
}

Response

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

fraudRiskLevel

Type: FinancialRiskLevelType

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

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

Arguments

Name Description

identifierValue (String!)

The ID to be checked.

identifierType (String!)

The type of object the ID represents.

Query

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

Variables

{
  "identifierValue": "under-industry-against-remember-poor",
  "identifierType": "there-century-type-learn-fall"
}

Response

{
  "data": {
    "fraudRiskLevel": {
      "identifierValue": "81890460",
      "identifierType": "establish-company-growth-head-perform",
      "riskLevel": "1.0",
      "isInRiskList": true
    }
  }
}

Arguments

Name Description

externalReference (String!)

The external reference of the appointment to return.

agent (OnSiteJobsAgent!)

The agent for the appointment.

Query

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

Variables

{
  "externalReference": "then-product-financial-improve-specific",
  "agent": "GENERIC_AGENT"
}

Response

{
  "data": {
    "getOnSiteJobsAppointmentByExternalReference": {
      "id": "db033f69-2136-4442-940c-e266c8f39489",
      "externalJobType": "gas-street-what-down-knowledge",
      "startAt": "2006-09-30T03:48:05.463668+00:00",
      "endAt": "2005-05-05T14:43:30.692192+00:00",
      "externalReference": "town-enough-education-prove-model",
      "jobDetails": {"key": "value"},
      "jobNotes": {"key": "value"},
      "comments": "environmental-these-range-east-let",
      "cancellationSubCategory": "ok-president-leg-born-issue",
      "krakenWorkCategory": "EXCHANGE",
      "agent": "GENERIC_AGENT",
      "status": "PENDING",
      "commsStrategy": "SEND_ALL",
      "cancellationCategory": "CANCELLED_BY_CUSTOMER",
      "appointmentActions": OnSiteJobsAppointmentActionConnectionTypeConnection,
      "assets": OnSiteJobsAssetConnectionTypeConnection
    }
  }
}

Arguments

Name Description

appointmentId (UUID)

The Kraken ID of the appointment to return.

Query

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

Variables

{
  "appointmentId": "670d6454-f6f2-4d6c-9284-582052fe5586"
}

Response

{
  "data": {
    "getOnSiteJobsAppointmentById": {
      "id": "1b5b6452-dcd9-41d4-ab1e-3444e7fca769",
      "externalJobType": "color-doctor-yourself-finish-TV",
      "startAt": "1976-07-07T04:06:49.141615+00:00",
      "endAt": "1978-07-31T18:08:13.652165+00:00",
      "externalReference": "performance-despite-explain-husband-drop",
      "jobDetails": {"key": "value"},
      "jobNotes": {"key": "value"},
      "comments": "her-crime-government-middle-hot",
      "cancellationSubCategory": "almost-detail-right-apply-let",
      "krakenWorkCategory": "EXCHANGE",
      "agent": "GENERIC_AGENT",
      "status": "PENDING",
      "commsStrategy": "SEND_ALL",
      "cancellationCategory": "CANCELLED_BY_CUSTOMER",
      "appointmentActions": OnSiteJobsAppointmentActionConnectionTypeConnection,
      "assets": OnSiteJobsAssetConnectionTypeConnection
    }
  }
}

getOnSiteJobsAppointmentSlots

Type: OnSiteJobsAppointmentSlotResultsType

URL: https://api.oejp-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
  ) {
    slots {
      ...OnSiteJobsAppointmentSlotTypeFragment
    }
    isComplete
  }
}

Variables

{
  "appointmentBookingSessionId": "cf944377-1cc1-4c1a-b794-d53bbb40ec73",
  "appointmentDate": "2014-08-19"
}

Response

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

getOnSiteJobsCheckResults

Type: OnSiteJobsCheckResultsType

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

Get check results for creating requests and appointments.

Arguments

Name Description

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.

jobType (String)

Job type for appointment checks.

Query

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

Variables

{
  "supplyPointIdentifierToMarketNameMapping": SupplyPointIdentifierToMarketNameMappingInput,
  "supplyPointInternalIds": [94],
  "jobType": "finish-late-job-week-recently"
}

Response

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

getOnSiteJobsJobTypes

Type: [OnSiteJobsJobTypeType]

URL: https://api.oejp-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": "b26a14e2-4fed-4de2-93b7-8ba098085f42",
  "workCategory": "EXCHANGE"
}

Response

{
  "data": {
    "getOnSiteJobsJobTypes": [
      {
        "id": "27255541",
        "name": "either-drive-wide-among-former"
      }
    ]
  }
}

Arguments

Name Description

requestId (UUID)

The ID of the request to return.

Query

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

Variables

{
  "requestId": "d272b996-546b-40f5-9f7a-ff846fe002c1"
}

Response

{
  "data": {
    "getOnSiteJobsRequestById": {
      "id": "16f16ef8-f15c-4e04-a806-f0ce2a111f1f",
      "reason": "teach-share-wait-finally-rich",
      "subReason": "southern-born-way-huge-even",
      "isEmergency": true,
      "externalReference": "put-edge-behind-dinner-show",
      "agent": "civil-speech-also-determine-least",
      "comment": "meet-worker-instead-sea-player",
      "account": "firm-world-spring-hope-future",
      "marketSupplyPoints": SupplyPointConnectionTypeConnection,
      "property": PropertyType,
      "status": "APPROVAL_PENDING",
      "overallActionsStatus": "PENDING",
      "requestActions": OnSiteJobsRequestActionConnectionTypeConnection,
      "assets": OnSiteJobsAssetConnectionTypeConnection,
      "appointments": OnSiteJobsAppointmentConnectionTypeConnection,
      "createdBy": 39
    }
  }
}

Arguments

Name Description

supplyPointsToMarketNamesMapping ([SupplyPointIdentifierToMarketNameMappingInput])

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

supplyPointInternalIds ([Int])

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

statuses ([OnSiteJobsRequestStatus])

A list of statuses to filter requests by.

before (String)

after (String)

first (Int)

last (Int)

Query

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

Variables

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

Response

{
  "data": {
    "getOnSiteJobsRequests": {
      "pageInfo": PageInfo,
      "edges": OnSiteJobsRequestConnectionTypeEdge,
      "totalCount": 77,
      "edgeCount": 98
    }
  }
}

Arguments

Name Description

marketName (String!)

Market name of the products to list.

productType ([String])

Types of the products to filter by.

code ([String])

Code of the products to filter by.

before (String)

after (String)

first (Int)

last (Int)

Query

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

Variables

{
  "marketName": "scene-our-food-degree-marriage",
  "productType": ["night-minute-film-cover-administration"],
  "code": ["quickly-model-window-enter-name"],
  "before": "YXJyYXljb25uZWN0aW9uOjEw=",
  "after": "YXJyYXljb25uZWN0aW9uOjEw=",
  "first": 10,
  "last": 10
}

Response

{
  "data": {
    "goodsProducts": {
      "pageInfo": PageInfo,
      "edges": GoodsProductConnectionTypeEdge,
      "totalCount": 30,
      "edgeCount": 27
    }
  }
}

Arguments

Name Description

accountNumber (String!)

The account number.

Query

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

Variables

{
  "accountNumber": "A-10B09531"
}

Response

{
  "data": {
    "goodsPurchases": [
      {
        "code": "author-window-theory-generation-than",
        "ledgerId": "59099649",
        "ledgerNumber": "watch-feel-across-structure-property",
        "goodsSaleItems": [GoodsSaleItem],
        "goodsGrants": [GoodsGrant],
        "marketName": "color-case-develop-area-write",
        "marketParams": {"key": "value"},
        "clientParams": {"key": "value"}
      }
    ]
  }
}

goodsQuotes

Type: [GoodsQuote]

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

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

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
  ) {
    id
    code
    totalNetAmount
    quotedAt
    goodsQuotedProducts {
      ...GoodsQuotedProductFragment
    }
    hasQuoteExpired
  }
}

Variables

{
  "accountNumber": "A-21D9D645",
  "quoteCode": "rather-follow-design-understand-discussion"
}

Response

{
  "data": {
    "goodsQuotes": [
      {
        "id": "90890444",
        "code": "themselves-nor-win-thank-community",
        "totalNetAmount": 55,
        "quotedAt": "2023-06-30T08:31:56.960125+00:00",
        "goodsQuotedProducts": [GoodsQuotedProduct],
        "hasQuoteExpired": true
      }
    ]
  }
}

heatPumpDevice

Type: HeatPumpDeviceType

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

The currently active heat pump device.

The possible errors that can be raised are:

Arguments

Name Description

accountNumber (String!)

propertyId (Int!)

Query

query HeatPumpDevice(
  $accountNumber: String!,
  $propertyId: Int!
) {
  heatPumpDevice(
    accountNumber: $accountNumber,
    propertyId: $propertyId
  ) {
    krakenflexDeviceId
    deviceType
    provider
    params {
      ...HeatPumpParamsTypeFragment
    }
  }
}

Variables

{
  "accountNumber": "A-84A08901",
  "propertyId": 69036116
}

Response

{
  "data": {
    "heatPumpDevice": {
      "krakenflexDeviceId": "40775647",
      "deviceType": "BATTERIES",
      "provider": "BYD",
      "params": HeatPumpParamsType
    }
  }
}

heatPumpStatus

Type: HeatPumpStatusType

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

A heat pump registered with KrakenFlex for a given account

The possible errors that can be raised are:

Arguments

Name Description

accountNumber (String!)

Query

query HeatPumpStatus($accountNumber: String!) {
  heatPumpStatus(accountNumber: $accountNumber) {
    isConnected
    climateControlStatus {
      ...ClimateControlDetailsTypeFragment
    }
    waterTemperatureStatus {
      ...WaterTemperatureDetailsTypeFragment
    }
  }
}

Variables

{
  "accountNumber": "A-0E16A3D5"
}

Response

{
  "data": {
    "heatPumpStatus": {
      "isConnected": true,
      "climateControlStatus": ClimateControlDetailsType,
      "waterTemperatureStatus": WaterTemperatureDetailsType
    }
  }
}

Arguments

Name Description

make (String)

Only return heat pumps of a specific make.

isDeprecated (Boolean)

Only return (non-) deprecated heat pumps.

Query

query HeatPumpVariants(
  $make: String,
  $isDeprecated: Boolean
) {
  heatPumpVariants(
    make: $make,
    isDeprecated: $isDeprecated
  ) {
    make
    models {
      ...HeatPumpVariantModelsTypeFragment
    }
  }
}

Variables

{
  "make": "city-continue-child-friend-end",
  "isDeprecated": true
}

Response

{
  "data": {
    "heatPumpVariants": [
      {
        "make": "stage-item-theory-tell-responsibility",
        "models": [HeatPumpVariantModelsType]
      }
    ]
  }
}

Query

query InboundCallAverageWaitTime {
  inboundCallAverageWaitTime {
    yesterday
    recent
  }
}

Response

{
  "data": {
    "inboundCallAverageWaitTime": {
      "yesterday": 58,
      "recent": 47
    }
  }
}

inkCommsTemplate

Type: String!

URL: https://api.oejp-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": "98204233"
}

Response

{
  "data": {
    "inkCommsTemplate": "check-result-almost-alone-form"
  }
}

inkConversation

Type: InkConversation!

URL: https://api.oejp-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
  ) {
    id
    status
    contactChannelIdentities {
      ...InkContactChannelIdentitiesFragment
    }
    accountUsers {
      ...AccountUserTypeFragment
    }
    events {
      ...InkConversationEventsConnectionFragment
    }
    buckets {
      ...InkBucketFragment
    }
  }
}

Variables

{
  "accountNumber": "A-4D329081",
  "conversationRelayId": "55813105"
}

Response

{
  "data": {
    "inkConversation": {
      "id": "82117618",
      "status": "OPEN",
      "contactChannelIdentities": InkContactChannelIdentities,
      "accountUsers": [AccountUserType],
      "events": InkConversationEventsConnection,
      "buckets": [InkBucket]
    }
  }
}

inkMessage

Type: InkMessage!

URL: https://api.oejp-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)
}

Variables

{
  "messageRelayId": "70846709"
}

Response

{
  "data": {
    "inkMessage": InkMessage
  }
}

inkMessageAttributes

Type: InkMessageAttributes!

URL: https://api.oejp-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
  ) {
    accounts
    accountType
    buckets
    conversationId
    hourOccurredAt
    hoursWaiting
    isAssignedToUserBucket
    isFirstFromContact
    isNewThread
    opsTeam
    recentlyReceivedAutoReplies
    replyToCommsSms
    weekDayOccurredAt
  }
}

Variables

{
  "vendor": "shake-yard-direction-present-will",
  "vendorId": "66644371"
}

Response

{
  "data": {
    "inkMessageAttributes": {
      "accounts": "nice-offer-subject-condition-partner",
      "accountType": "figure-ever-recent-watch-throughout",
      "buckets": ["enter-little-certainly-must-free"],
      "conversationId": 66999969,
      "hourOccurredAt": 30,
      "hoursWaiting": 9,
      "isAssignedToUserBucket": true,
      "isFirstFromContact": true,
      "isNewThread": true,
      "opsTeam": "choose-or-wonder-while-space",
      "recentlyReceivedAutoReplies": "public-without-near-sense-season",
      "replyToCommsSms": "collection-instead-line-walk-second",
      "weekDayOccurredAt": 52
    }
  }
}

inkMessageTextContent

Type: String!

URL: https://api.oejp-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": "32365693"
}

Response

{
  "data": {
    "inkMessageTextContent": "past-nation-among-risk-friend"
  }
}

Query

query Integrations {
  integrations
}

Response

{
  "data": {
    "integrations": IntegrationResponse
  }
}

isCustomerEligibleToGiveFeedbackFollowingCall

Type: Boolean

URL: https://api.oejp-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-9241C0B2",
  "accountUserNumber": "U-AC37EEB1",
  "callId": 46661790
}

Response

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

isCustomerEligibleToGiveFeedbackFollowingEmail

Type: Boolean

URL: https://api.oejp-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.

inkConversationId (Int!)

ID of the Ink conversation.

conversationClosedAt (DateTime!)

Datetime when the conversation was closed.

Query

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

Variables

{
  "accountNumber": "A-4CF54792",
  "accountUserNumber": "U-625F6560",
  "inkConversationId": 53672103,
  "conversationClosedAt": "2009-05-22T01:00:34.692207+00:00"
}

Response

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

isPasswordResetTokenValid

Type: Boolean

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

Check validity of a password reset token.

Arguments

Name Description

userId (String!)

Base64 encoded user id.

token (String!)

Password reset token to check.

Query

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

Variables

{
  "userId": "13269052",
  "token": "deep-as-boy-season-away"
}

Response

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

joinSupplierProcess

Type: JoinSupplierProcessType

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

Override Field to add additional attributes and extend description with possible_errors

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) {
    id
    status
    supplyPoints {
      ...SupplyPointConnectionTypeConnectionFragment
    }
    number
    currentProcessData {
      ...JoinSupplierProcessDataTypeFragment
    }
  }
}

Variables

{
  "number": "husband-themselves-eight-job-high"
}

Response

{
  "data": {
    "joinSupplierProcess": {
      "id": "49120055",
      "status": "PENDING",
      "supplyPoints": SupplyPointConnectionTypeConnection,
      "number": "various-they-safe-help-southern",
      "currentProcessData": JoinSupplierProcessDataType
    }
  }
}

Query

query KrakenVersion {
  krakenVersion {
    number
    SHA
    isPinned
  }
}

Response

{
  "data": {
    "krakenVersion": {
      "number": "onto-seven-maintain-total-cover",
      "SHA": "born-that-also-drive-visit",
      "isPinned": true
    }
  }
}

latestActiveTemplate

Type: TemplateType

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

Get the latest active version of a template by its code.

The possible errors that can be raised are:

Arguments

Name Description

code (String!)

The code of the template.

Query

query LatestActiveTemplate($code: String!) {
  latestActiveTemplate(code: $code) {
    identifier
    code
    market
    label
    description
    version
    maxVersion
    data
    useBillForQuote
    status
    groups {
      ...TemplateGroupTypeFragment
    }
    isLatestVersion
    isAmendable
    currency {
      ...CurrencyTypeFragment
    }
  }
}

Variables

{
  "code": "improve-cost-security-picture-nothing"
}

Response

{
  "data": {
    "latestActiveTemplate": {
      "identifier": "50841551",
      "code": "brother-tough-set-Republican-fly",
      "market": "close-during-former-somebody-south",
      "label": "choice-we-wide-scientist-scene",
      "description": "successful-case-once-sea-left",
      "version": 57,
      "maxVersion": 28,
      "data": {"key": "value"},
      "useBillForQuote": true,
      "status": "DRAFT",
      "groups": [TemplateGroupType],
      "isLatestVersion": true,
      "isAmendable": true,
      "currency": CurrencyType
    }
  }
}

Type: LatestKonbiniPaymentURL

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

The url for the Stripe payment voucher of the latest Konbini payment on this account.

The possible errors that can be raised are:

Arguments

Name Description

accountNumber (String!)

Provide an account number to look up.

ledgerNumber (String)

Optional. Provide a ledger number to look up.

Query

query LatestKonbiniPaymentLink(
  $accountNumber: String!,
  $ledgerNumber: String
) {
  latestKonbiniPaymentLink(
    accountNumber: $accountNumber,
    ledgerNumber: $ledgerNumber
  ) {
    url
    paymentDate
  }
}

Variables

{
  "accountNumber": "A-915EAD5C",
  "ledgerNumber": "along-face-place-ago-interesting"
}

Response

{
  "data": {
    "latestKonbiniPaymentLink": {
      "url": "body-community-production-affect-try",
      "paymentDate": "2025-12-14"
    }
  }
}

latestTemplate

Type: TemplateType

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

Get the latest version of a template by its code.

The possible errors that can be raised are:

Arguments

Name Description

code (String!)

The code of the template.

Query

query LatestTemplate($code: String!) {
  latestTemplate(code: $code) {
    identifier
    code
    market
    label
    description
    version
    maxVersion
    data
    useBillForQuote
    status
    groups {
      ...TemplateGroupTypeFragment
    }
    isLatestVersion
    isAmendable
    currency {
      ...CurrencyTypeFragment
    }
  }
}

Variables

{
  "code": "anything-there-size-blue-director"
}

Response

{
  "data": {
    "latestTemplate": {
      "identifier": "42989677",
      "code": "drug-station-building-goal-me",
      "market": "box-must-nothing-girl-individual",
      "label": "myself-out-thus-next-start",
      "description": "training-north-into-purpose-attorney",
      "version": 9,
      "maxVersion": 62,
      "data": {"key": "value"},
      "useBillForQuote": true,
      "status": "DRAFT",
      "groups": [TemplateGroupType],
      "isLatestVersion": true,
      "isAmendable": true,
      "currency": CurrencyType
    }
  }
}

leadBlocklistValidations

Type: LeadBlockListValidationOutput

URL: https://api.oejp-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) {
    valid
    blockListHits
  }
}

Variables

{
  "blockListEntries": LeadBlockListValidationInput
}

Response

{
  "data": {
    "leadBlocklistValidations": {
      "valid": true,
      "blockListHits": ["yourself-himself-game-present-choice"]
    }
  }
}

leadByNumber

Type: LeadOutput

URL: https://api.oejp-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) {
    leadId
    givenName
    familyName
    billingName
    billingAddress {
      ...AddressOutputFragment
    }
    billingRichAddress {
      ...RichAddressTypeFragment
    }
    email
    phoneNumber
    number
    funnel {
      ...SalesFunnelFragment
    }
    stage
    extraDetails
    extraDetailItems {
      ...ExtraDetailFragment
    }
    brand
    salesChannel
    assignedToTeam
    assignedToUser
    nationalId
    leadType
    consents {
      ...ConsentOutputFragment
    }
    accountNumber
  }
}

Variables

{
  "number": "type-cost-individual-food-soldier"
}

Response

{
  "data": {
    "leadByNumber": {
      "leadId": "20499511",
      "givenName": "Erika",
      "familyName": "Peterson",
      "billingName": "property-resource-second-institution-task",
      "billingAddress": AddressOutput,
      "billingRichAddress": RichAddressType,
      "email": "within-current-health-establish-central",
      "phoneNumber": "early-nor-federal-together-environmental",
      "number": "become-either-experience-good-respond",
      "funnel": SalesFunnel,
      "stage": "research-evidence-marriage-size-middle",
      "extraDetails": {"key": "value"},
      "extraDetailItems": [ExtraDetail],
      "brand": "car-three-behind-may-eat",
      "salesChannel": "prove-hour-benefit-write-letter",
      "assignedToTeam": "man-now-try-bed-whole",
      "assignedToUser": "themselves-week-PM-culture-indicate",
      "nationalId": "77953550",
      "leadType": "lawyer-then-determine-fact-its",
      "consents": [ConsentOutput],
      "accountNumber": "A-C5E6C244"
    }
  }
}

leads

Type: LeadsConnection

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

Fetch all leads for this Kraken, with optional filtering.

Arguments

Name Description

input (LeadsQueryInput)

Input fields for retrieving leads.

before (String)

after (String)

first (Int)

last (Int)

Query

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

Variables

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

Response

{
  "data": {
    "leads": {
      "pageInfo": PageInfo,
      "edges": LeadsEdge,
      "totalCount": 72,
      "edgeCount": 85
    }
  }
}

leaveSupplierProcess

Type: LeaveSupplierProcessType

URL: https://api.oejp-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
    status
    number
    supplyPoints {
      ...SupplyPointConnectionTypeConnectionFragment
    }
  }
}

Variables

{
  "number": "place-consider-vote-matter-mouth"
}

Response

{
  "data": {
    "leaveSupplierProcess": {
      "id": "47617404",
      "status": "PENDING",
      "number": "single-notice-miss-while-different",
      "supplyPoints": SupplyPointConnectionTypeConnection
    }
  }
}

lifecycleProcesses

Type: LifecycleProcessesType

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

Get all lifecycle processes associated with an account.

The possible errors that can be raised are:

Arguments

Name Description

onlyActive (Boolean)

A flag to filter out only active/current processes.

sortOrder (LifecycleProcessesSortOrder)

The chronological order in which the lifecycle processes are sorted.

accountNumber (String!)

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

Query

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

Variables

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

Response

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

lifelineAgencyBranchInfo

Type: LifelineAgencyBranchInfo!

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

Get the Lifeline Agency Branch information for a given LifelineAgencySignUpsFileRecord ID.

Arguments

Name Description

lifelineAgencySignUpsFileRecordId (Int!)

The LifelineAgencySignUpsFileRecord ID.

Query

query LifelineAgencyBranchInfo($lifelineAgencySignUpsFileRecordId: Int!) {
  lifelineAgencyBranchInfo(lifelineAgencySignUpsFileRecordId: $lifelineAgencySignUpsFileRecordId) {
    name
    address
    representativeName
    representativePhoneNumber
    businessHoursFrom
    businessHoursTo
    weekendBusinessHoursFrom
    weekendBusinessHoursTo
  }
}

Variables

{
  "lifelineAgencySignUpsFileRecordId": 96948626
}

Response

{
  "data": {
    "lifelineAgencyBranchInfo": {
      "name": "edge-back-production-yourself-trouble",
      "address": "imagine-health-relationship-continue-police",
      "representativeName": "shoulder-bed-fight-interesting-state",
      "representativePhoneNumber": "accept-data-pass-live-eight",
      "businessHoursFrom": "07:52:41.200495",
      "businessHoursTo": "07:56:30.876869",
      "weekendBusinessHoursFrom": "18:25:54.682593",
      "weekendBusinessHoursTo": "01:11:23.429140"
    }
  }
}

livePaymentAdequacyCalculation

Type: LivePaymentAdequacyCalculation

URL: https://api.oejp-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) {
    suggestedNewMonthlyAmount
    consumption {
      ...ConsumptionBreakdownConnectionTypeConnectionFragment
    }
    averageMonthlyCharge
    existingMonthlyAmount
    balanceAdjustment
    currentBalance
    targetBalance
    reviewedOn
  }
}

Variables

{
  "ledgerNumber": "draw-whether-effort-him-program"
}

Response

{
  "data": {
    "livePaymentAdequacyCalculation": {
      "suggestedNewMonthlyAmount": 38,
      "consumption": ConsumptionBreakdownConnectionTypeConnection,
      "averageMonthlyCharge": 11,
      "existingMonthlyAmount": 61,
      "balanceAdjustment": 87,
      "currentBalance": 52,
      "targetBalance": 44,
      "reviewedOn": "2006-02-02"
    }
  }
}

loyaltyCards

Type: [LoyaltyCardType]

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

Get all loyalty cards for the given account user.

Arguments

Name Description

accountUserId (String!)

Account user id.

Query

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

Variables

{
  "accountUserId": "19233274"
}

Response

{
  "data": {
    "loyaltyCards": [
      {
        "id": "61930223",
        "scheme": "fast-although-garden-office-face",
        "number": "movie-near-into-improve-police",
        "status": "blood-threat-home-ask-spring"
      }
    ]
  }
}

loyaltyPointLedgerEntry

Type: LoyaltyPointLedgerEntryType

URL: https://api.oejp-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) {
    id
    ledgerType
    value
    balanceBroughtForward
    balanceCarriedForward
    reasonCode
    idempotencyKey
    postedAt
    accountNumber
  }
}

Variables

Response

{
  "data": {
    "loyaltyPointLedgerEntry": {
      "id": "57052399",
      "ledgerType": "tree-college-six-important-company",
      "value": "they-do-be-quickly-eye",
      "balanceBroughtForward": "pretty-until-happen-child-whose",
      "balanceCarriedForward": "issue-opportunity-issue-official-instead",
      "reasonCode": "pull-look-want-good-be",
      "idempotencyKey": "8b623e59-cc9e-4373-bc64-13b93d3bbf12",
      "postedAt": "2000-10-04T16:12:48.875645+00:00",
      "accountNumber": "A-F6EF16CE"
    }
  }
}

loyaltyPointLedgers

Type: [LoyaltyPointLedgerEntryType]

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

Get the Loyalty Point ledger entries for the passed user.

Arguments

Name Description

input (LoyaltyPointLedgersInput)

The input object for retrieving a loyalty point ledger entry.

Query

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

Variables

Response

{
  "data": {
    "loyaltyPointLedgers": [
      {
        "id": "81594073",
        "ledgerType": "pressure-thousand-data-similar-six",
        "value": "half-attack-argue-hope-picture",
        "balanceBroughtForward": "once-simply-market-record-factor",
        "balanceCarriedForward": "drive-structure-bring-claim-none",
        "reasonCode": "bad-bill-knowledge-skill-operation",
        "idempotencyKey": "ddcbd155-e88a-4703-85cd-56335fab1427",
        "postedAt": "2012-12-01T02:07:37.679224+00:00",
        "accountNumber": "A-5A05CE52"
      }
    ]
  }
}

loyaltyPointsBalance

Type: AccountLoyaltyPointsType

URL: https://api.oejp-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": 82,
      "totalMonetaryAmount": 30
    }
  }
}

metadata

Type: [Metadata]

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

Metadata for a linked object.

Arguments

Name Description

linkedObjectType (LinkedObjectType)

identifier (String!)

Query

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

Variables

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

Response

{
  "data": {
    "metadata": [
      {
        "key": "nice-wall-feeling-imagine-indeed",
        "value": {"key": "value"}
      }
    ]
  }
}

metadataForKey

Type: Metadata

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

Metadata for a linked object with key.

The possible errors that can be raised are:

Arguments

Name Description

linkedObjectType (LinkedObjectType)

identifier (String!)

key (String!)

Query

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

Variables

{
  "linkedObjectType": "ACCOUNT",
  "identifier": "78403406",
  "key": "Republican-nature-law-or-body"
}

Response

{
  "data": {
    "metadataForKey": {
      "key": "several-between-different-wear-feel",
      "value": {"key": "value"}
    }
  }
}

Arguments

Name Description

metiCreditType (String)

The type of METI credit period. E for electricity, G for gas, or None for all.

activeOn (Date)

Is the meti credit active on this date.

activeFrom (Date)

Is the meti credit active from this date.

activeTo (Date)

Is the meti credit active to this date.

Query

query MetiCredits(
  $metiCreditType: String,
  $activeOn: Date,
  $activeFrom: Date,
  $activeTo: Date
) {
  metiCredits(
    metiCreditType: $metiCreditType,
    activeOn: $activeOn,
    activeFrom: $activeFrom,
    activeTo: $activeTo
  ) {
    creditType
    startDate
    endDate
    unitPrice
  }
}

Variables

{
  "metiCreditType": "child-baby-course-stop-none",
  "activeOn": "2022-03-06",
  "activeFrom": "2008-12-29",
  "activeTo": "2017-09-09"
}

Response

{
  "data": {
    "metiCredits": [
      {
        "creditType": "ELECTRICITY",
        "startDate": "1990-08-11",
        "endDate": "2010-06-20",
        "unitPrice": "1.0"
      }
    ]
  }
}

mfaDevices

Type: [MfaDevice]

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

Get all MFA devices for the current user.

Query

query MfaDevices {
  mfaDevices {
    deviceType
    isConfirmed
  }
}

Response

{
  "data": {
    "mfaDevices": [
      {
        "deviceType": "method-method-city-away-both",
        "isConfirmed": true
      }
    ]
  }
}

moveInContext

Type: MoveInContext!

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

Override Field to add additional attributes and extend description with possible_errors

Query

query MoveInContext {
  moveInContext {
    earliestMoveInDate
  }
}

Response

{
  "data": {
    "moveInContext": {
      "earliestMoveInDate": "2020-04-22"
    }
  }
}

Arguments

Name Description

id (ID!)

The ID of the object

Query

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

Variables

{
  "id": "56912404"
}

Response

{
  "data": {
    "node": {
      "id": "62325224"
    }
  }
}

ocppConnection

Type: OCPPConnectionType

URL: https://api.oejp-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-6F3A5710"
}

Response

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

ocppDetails

Type: OCPPDetailsType

URL: https://api.oejp-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-1C4E046F"
}

Response

{
  "data": {
    "ocppDetails": {
      "url": "if-exist-hot-experience-Mrs",
      "username": "happen-society-without-vote-inside"
    }
  }
}

offerForQuoting

Type: OfferType

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

Override Field to add additional attributes and extend description with possible_errors

Arguments

Name Description

identifier (ID)

The identifier of the offer to query.

Query

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

Variables

{
  "identifier": "83281812"
}

Response

{
  "data": {
    "offerForQuoting": {
      "identifier": "31302141",
      "quote": QuoteType_,
      "description": "approach-half-owner-against-time",
      "validFrom": "1984-02-13T02:24:57.184955+00:00",
      "validTo": "2008-09-28T09:29:18.242238+00:00",
      "acceptedAt": "1987-11-30T14:32:36.995193+00:00",
      "rejectedAt": "2010-10-09T14:26:06.397395+00:00",
      "createdBy": ActorType
    }
  }
}

offerGroupForQuoting

Type: OfferGroupType

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

Override Field to add additional attributes and extend description with possible_errors

Arguments

Name Description

identifier (ID)

The identifier of the offer group to query.

Query

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

Variables

{
  "identifier": "56667680"
}

Response

{
  "data": {
    "offerGroupForQuoting": {
      "identifier": "62577868",
      "offers": [OfferType],
      "createdAt": "1998-07-29T03:41:21.847340+00:00",
      "createdBy": ActorType
    }
  }
}

offering

Type: OfferingType

URL: https://api.oejp-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) {
    identifier
    internalName
    customerName
    customerDescription
    isSellable
    lifecycle {
      ...LifecycleTypeFragment
    }
    tags {
      ...TagTypeFragment
    }
    productComponents {
      ...ProductComponentTypeFragment
    }
    offeringComponents {
      ...OfferingComponentTypeFragment
    }
    termTemplateComponents {
      ...TermTemplateComponentTypeFragment
    }
    groups {
      ...GroupTypeFragment
    }
    isAmendable
    isExpired
    isActive
    isDraft
    isLatestVersion
    isFirstDraft
  }
}

Variables

{
  "identifier": "16285131"
}

Response

{
  "data": {
    "offering": {
      "identifier": "52910015",
      "internalName": "night-rule-keep-region-indeed",
      "customerName": "involve-Mrs-sit-view-mind",
      "customerDescription": "indeed-term-rest-these-put",
      "isSellable": true,
      "lifecycle": LifecycleType,
      "tags": [TagType],
      "productComponents": [ProductComponentType],
      "offeringComponents": [OfferingComponentType],
      "termTemplateComponents": [TermTemplateComponentType],
      "groups": [GroupType],
      "isAmendable": true,
      "isExpired": true,
      "isActive": true,
      "isDraft": true,
      "isLatestVersion": true,
      "isFirstDraft": true
    }
  }
}

onboardingJourneyAblyJwt

Type: OnboardingJourneyAblyJWT!

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

Override Field to add additional attributes and extend description with possible_errors

Arguments

Name Description

clientId (String!)

Query

query OnboardingJourneyAblyJwt($clientId: String!) {
  onboardingJourneyAblyJwt(clientId: $clientId) {
    token
  }
}

Variables

{
  "clientId": "25088382"
}

Response

{
  "data": {
    "onboardingJourneyAblyJwt": {
      "token": "without-agreement-effect-figure-billion"
    }
  }
}

opportunities

Type: OpportunitiesConnection

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

Fetch all opportunities for this Kraken, with optional filtering.

Arguments

Name Description

input (OpportunitiesQueryInput)

Input fields for retrieving opportunities.

before (String)

after (String)

first (Int)

last (Int)

Query

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

Variables

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

Response

{
  "data": {
    "opportunities": {
      "pageInfo": PageInfo,
      "edges": OpportunitiesEdge,
      "totalCount": 61,
      "edgeCount": 58
    }
  }
}

opportunityByNumber

Type: OpportunityOutput

URL: https://api.oejp-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) {
    opportunityId
    leadNumber
    leadType
    name
    email
    phoneNumber
    number
    funnel {
      ...SalesFunnelFragment
    }
    stage
    extraDetails
    extraDetailItems {
      ...ExtraDetailFragment
    }
    opportunityAddress {
      ...AddressOutputFragment
    }
    opportunityRichAddress {
      ...RichAddressTypeFragment
    }
    salesChannel
    assignedToTeam
    assignedToUser
    productOfferingId
    productOffering {
      ...OfferingTypeFragment
    }
    offerGroupId
    consents {
      ...ConsentOutputFragment
    }
    notes
    attachments {
      ...OpportunityAttachmentFragment
    }
  }
}

Variables

{
  "number": "close-section-through-become-open"
}

Response

{
  "data": {
    "opportunityByNumber": {
      "opportunityId": "71716027",
      "leadNumber": "cultural-nice-total-major-person",
      "leadType": "those-son-source-strong-take",
      "name": "enter-case-security-else-public",
      "email": "end-call-necessary-enough-finally",
      "phoneNumber": "address-white-wear-leader-type",
      "number": "environment-parent-office-off-nothing",
      "funnel": SalesFunnel,
      "stage": "bad-receive-impact-coach-some",
      "extraDetails": {"key": "value"},
      "extraDetailItems": [ExtraDetail],
      "opportunityAddress": AddressOutput,
      "opportunityRichAddress": RichAddressType,
      "salesChannel": "mouth-debate-serve-picture-majority",
      "assignedToTeam": "let-town-again-challenge-nice",
      "assignedToUser": "find-couple-yes-guy-face",
      "productOfferingId": "45777899",
      "productOffering": OfferingType,
      "offerGroupId": "69963662",
      "consents": [ConsentOutput],
      "notes": "coach-shake-participant-mind-image",
      "attachments": [OpportunityAttachment]
    }
  }
}

opportunityInformation

Type: OpportunityInformation

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

Get opportunity information.

The possible errors that can be raised are:

Arguments

Name Description

opportunityNumber (String!)

The public number of the target Opportunity.

Query

query OpportunityInformation($opportunityNumber: String!) {
  opportunityInformation(opportunityNumber: $opportunityNumber) {
    number
    name
    emailAddress
    phoneNumber
    channel
    address
  }
}

Variables

{
  "opportunityNumber": "decade-method-speak-identify-responsibility"
}

Response

{
  "data": {
    "opportunityInformation": {
      "number": "take-consider-analysis-already-marriage",
      "name": "build-find-tax-own-sometimes",
      "emailAddress": "generation-deep-treat-class-everything",
      "phoneNumber": "term-scene-gun-already-defense",
      "channel": "community-population-decide-actually-however",
      "address": "west-reach-thought-stuff-own"
    }
  }
}

opportunityProductSummary

Type: OpportunityProductSummary

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

Return a summary of the Opportunity Product and its Characteristics.

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) {
    productOfferingIdentifier
    productIdentifier
    productCode
    productCharacteristics
    market
  }
}

Variables

{
  "number": "the-quite-approach-law-program"
}

Response

{
  "data": {
    "opportunityProductSummary": {
      "productOfferingIdentifier": "16398812",
      "productIdentifier": "88163762",
      "productCode": "past-have-put-material-list",
      "productCharacteristics": {"key": "value"},
      "market": "total-writer-family-effect-skill"
    }
  }
}

opportunityValueByKey

Type: String

URL: https://api.oejp-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

opportunityId (ID)

The identifier of the opportunity to query.

key (String)

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

Query

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

Variables

{
  "opportunityId": "41609019",
  "key": "assume-likely-huge-alone-direction"
}

Response

{
  "data": {
    "opportunityValueByKey": "own-art-quite-everything-thousand"
  }
}

orderDetails

Type: OrderDetailsType

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

Override Field to add additional attributes and extend description with possible_errors

The possible errors that can be raised are:

Arguments

Name Description

identifier (String!)

Order identifier.

Query

query OrderDetails($identifier: String!) {
  orderDetails(identifier: $identifier) {
    order {
      ...OrderTypeFragment
    }
    status
    resources {
      ...OrderResourceFragment
    }
  }
}

Variables

{
  "identifier": "25750048"
}

Response

{
  "data": {
    "orderDetails": {
      "order": OrderType,
      "status": "PENDING",
      "resources": [OrderResource]
    }
  }
}

passwordValidatorHelpTexts

Type: [String]

URL: https://api.oejp-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": ["two-today-actually-at-decide"]
  }
}

paymentFingerprintChecks

Type: PaymentFingerPrintCheckType

URL: https://api.oejp-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": "continue-word-century-lose-identify"
}

Response

{
  "data": {
    "paymentFingerprintChecks": {
      "fingerprint": "role-music-physical-baby-catch",
      "isFound": true,
      "isRiskListed": true
    }
  }
}

paymentRequests

Type: PaymentRequestsType

URL: https://api.oejp-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": "daughter-base-capital-today-soon"
}

Response

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

plannedDispatches

Type: [UpsideDispatchType]

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

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

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) {
    start
    end
    startDt
    endDt
    deltaKwh
    delta
    meta {
      ...UpsideDispatchMetaTypeFragment
    }
  }
}

Variables

{
  "accountNumber": "A-87BEA4C5"
}

Response

{
  "data": {
    "plannedDispatches": [
      {
        "start": "1988-11-01T00:05:46.297137+00:00",
        "end": "1974-11-03T22:27:19.375849+00:00",
        "startDt": "state-half-plant-entire-draw",
        "endDt": "mother-figure-difficult-fine-peace",
        "deltaKwh": 31,
        "delta": "1.0",
        "meta": UpsideDispatchMetaType
      }
    ]
  }
}

portfolio

Type: PortfolioType

URL: https://api.oejp-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) {
    id
    number
    createdAt
    updatedAt
    billingName
    collectiveBilling
    operationsTeam {
      ...OperationsTeamTypeFragment
    }
    leadAccountNumber
    brand
    name
    depth
    parent {
      ...PortfolioTypeFragment
    }
    ancestors {
      ...PortfolioConnectionTypeConnectionFragment
    }
    descendants {
      ...PortfolioConnectionTypeConnectionFragment
    }
    accounts {
      ...AccountConnectionTypeConnectionFragment
    }
  }
}

Variables

{
  "portfolioNumber": "P-6B325235"
}

Response

{
  "data": {
    "portfolio": {
      "id": "73519988",
      "number": "training-court-sort-thousand-sport",
      "createdAt": "2003-10-19T16:59:07.302122+00:00",
      "updatedAt": "2012-07-09T03:55:17.286113+00:00",
      "billingName": "step-step-wear-five-former",
      "collectiveBilling": true,
      "operationsTeam": OperationsTeamType,
      "leadAccountNumber": "A-7FC3F480",
      "brand": "against-police-out-develop-lawyer",
      "name": "language-study-degree-training-pressure",
      "depth": 94,
      "parent": PortfolioType,
      "ancestors": PortfolioConnectionTypeConnection,
      "descendants": PortfolioConnectionTypeConnection,
      "accounts": AccountConnectionTypeConnection
    }
  }
}

portfolioByReference

Type: PortfolioType

URL: https://api.oejp-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) {
    id
    number
    createdAt
    updatedAt
    billingName
    collectiveBilling
    operationsTeam {
      ...OperationsTeamTypeFragment
    }
    leadAccountNumber
    brand
    name
    depth
    parent {
      ...PortfolioTypeFragment
    }
    ancestors {
      ...PortfolioConnectionTypeConnectionFragment
    }
    descendants {
      ...PortfolioConnectionTypeConnectionFragment
    }
    accounts {
      ...AccountConnectionTypeConnectionFragment
    }
  }
}

Variables

{
  "portfolioReference": PortfolioReferenceInput
}

Response

{
  "data": {
    "portfolioByReference": {
      "id": "17154033",
      "number": "happen-special-media-military-culture",
      "createdAt": "1980-03-04T11:07:33.616068+00:00",
      "updatedAt": "1989-02-05T17:23:58.199287+00:00",
      "billingName": "seek-yet-give-than-mouth",
      "collectiveBilling": true,
      "operationsTeam": OperationsTeamType,
      "leadAccountNumber": "A-984E6F29",
      "brand": "throw-return-old-case-run",
      "name": "within-art-idea-inside-rise",
      "depth": 86,
      "parent": PortfolioType,
      "ancestors": PortfolioConnectionTypeConnection,
      "descendants": PortfolioConnectionTypeConnection,
      "accounts": AccountConnectionTypeConnection
    }
  }
}

possibleErrors

Type: PossibleErrorsOutputType

URL: https://api.oejp-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) {
    name
    type
    authErrors
    possibleErrors {
      ...PossibleErrorTypeFragment
    }
  }
}

Variables

Response

{
  "data": {
    "possibleErrors": {
      "name": "crime-character-line-no-reality",
      "type": "query",
      "authErrors": true,
      "possibleErrors": [PossibleErrorType]
    }
  }
}

postalAreas

Type: [PostalArea]!

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

Override Field to add additional attributes and extend description with possible_errors

The possible errors that can be raised are:

Arguments

Name Description

postcode (String!)

Query

query PostalAreas($postcode: String!) {
  postalAreas(postcode: $postcode) {
    postcode
    prefecture
    city
    area
  }
}

Variables

{
  "postcode": "nearly-power-tell-star-sound"
}

Response

{
  "data": {
    "postalAreas": {
      "postcode": "bad-none-man-upon-although",
      "prefecture": "detail-avoid-wrong-floor-special",
      "city": "local-wide-scientist-option-wonder",
      "area": "current-exist-worker-unit-return"
    }
  }
}

printBatch

Type: PrintBatchType!

URL: https://api.oejp-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
    status
    messages {
      ...PrintMessageTypeConnectionFragment
    }
  }
}

Variables

{
  "batchId": "36184191"
}

Response

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

productEligibleStatus

Type: ProductEligibleStatus

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

Retrieve the context for switching to the product with fixed fuel cost adjustment.

Arguments

Name Description

spin (String!)

Supply Point Identification Number.

accountNumber (String!)

A code that uniquely identifies the account.

productCode (String!)

A code that uniquely identifies the product.

Query

query ProductEligibleStatus(
  $spin: String!,
  $accountNumber: String!,
  $productCode: String!
) {
  productEligibleStatus(
    spin: $spin,
    accountNumber: $accountNumber,
    productCode: $productCode
  ) {
    isUserEligible
    isCampaignAvailable
    isUserOptedIn
  }
}

Variables

{
  "spin": "become-decide-recent-perhaps-nature",
  "accountNumber": "A-48F40E28",
  "productCode": "specific-education-represent-believe-sister"
}

Response

{
  "data": {
    "productEligibleStatus": {
      "isUserEligible": true,
      "isCampaignAvailable": true,
      "isUserOptedIn": true
    }
  }
}

propertiesSearch

Type: [PropertySearchResult!]!

URL: https://api.oejp-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) {
    score
    property {
      ...PropertyTypeFragment
    }
  }
}

Variables

{
  "searchTerm": "teacher-easy-paper-decision-black"
}

Response

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

property

Type: Property

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

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

Arguments

Name Description

id (ID!)

The property ID.

Query

query Property($id: ID!) {
  property(id: $id) {
    id
    postcode
    address
    richAddress {
      ...PropertyRichAddressTypeFragment
    }
    splitAddress
    label
    occupancyPeriods {
      ...OccupancyPeriodTypeFragment
    }
    coordinates {
      ...CoordinatesTypeFragment
    }
    embeddedNetwork {
      ...EmbeddedNetworkTypeFragment
    }
    measurements {
      ...MeasurementConnectionFragment
    }
    smartDeviceNetworks {
      ...SmartMeterDeviceNetworkTypeFragment
    }
    isChangeOfTenancyOngoing
    isSmets2InstallationAllowed
    electricityMeterPoints {
      ...ElectricityMeterPointTypeFragment
    }
    gasMeterPoints {
      ...GasMeterPointTypeFragment
    }
    wanCoverage
    availableSmets2InstallationTimeslots {
      ...Smets2InstallationTimeslotTypeFragment
    }
  }
}

Variables

{
  "id": "64699081"
}

Response

{
  "data": {
    "property": {
      "id": "71299066",
      "postcode": "begin-own-her-thought-someone",
      "address": "worry-big-Mrs-today-never",
      "richAddress": PropertyRichAddressType,
      "splitAddress": ["our-few-choose-manage-she"],
      "label": "like-analysis-find-blood-baby",
      "occupancyPeriods": [OccupancyPeriodType],
      "coordinates": CoordinatesType,
      "embeddedNetwork": EmbeddedNetworkType,
      "measurements": MeasurementConnection,
      "smartDeviceNetworks": [SmartMeterDeviceNetworkType],
      "isChangeOfTenancyOngoing": true,
      "isSmets2InstallationAllowed": true,
      "electricityMeterPoints": [ElectricityMeterPointType],
      "gasMeterPoints": [GasMeterPointType],
      "wanCoverage": "HIGH",
      "availableSmets2InstallationTimeslots": [Smets2InstallationTimeslotType]
    }
  }
}

propertySearch

Type: [Property]

URL: https://api.oejp-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) {
    id
    postcode
    address
    richAddress {
      ...PropertyRichAddressTypeFragment
    }
    splitAddress
    label
    occupancyPeriods {
      ...OccupancyPeriodTypeFragment
    }
    coordinates {
      ...CoordinatesTypeFragment
    }
    embeddedNetwork {
      ...EmbeddedNetworkTypeFragment
    }
    measurements {
      ...MeasurementConnectionFragment
    }
    smartDeviceNetworks {
      ...SmartMeterDeviceNetworkTypeFragment
    }
    isChangeOfTenancyOngoing
    isSmets2InstallationAllowed
    electricityMeterPoints {
      ...ElectricityMeterPointTypeFragment
    }
    gasMeterPoints {
      ...GasMeterPointTypeFragment
    }
    wanCoverage
    availableSmets2InstallationTimeslots {
      ...Smets2InstallationTimeslotTypeFragment
    }
  }
}

Variables

{
  "searchTerm": "relationship-use-personal-cup-few"
}

Response

{
  "data": {
    "propertySearch": [
      {
        "id": "61699524",
        "postcode": "rule-process-material-bed-owner",
        "address": "whether-imagine-perhaps-yeah-today",
        "richAddress": PropertyRichAddressType,
        "splitAddress": ["ago-country-common-personal-Mrs"],
        "label": "small-heavy-maintain-growth-enough",
        "occupancyPeriods": [OccupancyPeriodType],
        "coordinates": CoordinatesType,
        "embeddedNetwork": EmbeddedNetworkType,
        "measurements": MeasurementConnection,
        "smartDeviceNetworks": [SmartMeterDeviceNetworkType],
        "isChangeOfTenancyOngoing": true,
        "isSmets2InstallationAllowed": true,
        "electricityMeterPoints": [ElectricityMeterPointType],
        "gasMeterPoints": [GasMeterPointType],
        "wanCoverage": "HIGH",
        "availableSmets2InstallationTimeslots": [Smets2InstallationTimeslotType]
      }
    ]
  }
}

providerAuthDetails

Type: ProviderAuthDetailsType

URL: https://api.oejp-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

provider (ProviderChoices!)

The provider to get the auth details for.

deviceType (KrakenFlexDeviceTypes!)

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

clientType (ClientType)

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

accountNumber (String)

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

propertyId (Int)

The ID of the property the device belongs to.

Query

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

Variables

{
  "provider": "BYD",
  "deviceType": "BATTERIES",
  "clientType": "APP",
  "accountNumber": "A-0BECA7B4",
  "propertyId": 21901327
}

Response

{
  "data": {
    "providerAuthDetails": {
      "oauthUri": "recent-start-food-property-respond"
    }
  }
}

providerVirtualKeyDetails

Type: ProviderVirtualKeyDetailsType

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

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

Arguments

Name Description

provider (ProviderChoices!)

The provider to get the virtual key details for.

deviceType (KrakenFlexDeviceTypes!)

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

Query

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

Variables

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

Response

{
  "data": {
    "providerVirtualKeyDetails": {
      "virtualKeyName": "guy-live-federal-Democrat-machine",
      "virtualKeyUri": "financial-economic-phone-indicate-easy"
    }
  }
}

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": 1
    }
  }
}

question

Type: String

URL: https://api.oejp-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": 95821101
}

Response

{
  "data": {
    "question": "either-bit-wish-large-computer"
  }
}

Arguments

Name Description

code (String!)

The code for the quote.

Query

query QuoteRequest($quoteCode: String!) {
  quoteRequest(quoteCode: $quoteCode) {
    electricitySupplyPoints {
      ...ElectricitySupplyPointFragment
    }
    gasSupplyPoints {
      ...GasSupplyPointFragment
    }
    createdAt
    termsAndConditions {
      ...TermsAndConditionsFragment
    }
    code
  }
}

Variables

{
  "quoteCode": "region-of-have-education-evidence"
}

Response

{
  "data": {
    "quoteRequest": {
      "electricitySupplyPoints": [ElectricitySupplyPoint],
      "gasSupplyPoints": [GasSupplyPoint],
      "createdAt": "1995-07-24T06:56:53.795736+00:00",
      "termsAndConditions": [TermsAndConditions],
      "code": "blood-star-best-above-maintain"
    }
  }
}

quotingParamDefinitionsForProductOffering

Type: QuotedOfferingParamsType

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

Override Field to add additional attributes and extend description with possible_errors

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) {
    offeringIdentifier
    productComponents {
      ...QuotedProductComponentTypeFragment
    }
    offeringComponents {
      ...QuotedOfferingParamsTypeFragment
    }
  }
}

Variables

{
  "productOfferingIdentifier": "85096482"
}

Response

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

rateLimitInfo

Type: CombinedRateLimitInformation

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

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

Query

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

Response

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

registeredKrakenflexDevice

Type: KrakenFlexDeviceType

URL: https://api.oejp-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) {
    krakenflexDeviceId
    provider
    vehicleMake
    vehicleModel
    vehicleBatterySizeInKwh
    chargePointMake
    chargePointModel
    chargePointPowerInKw
    status
    suspended
    hasToken
    createdAt
    stateOfChargeLimit {
      ...StateOfChargeLimitFragment
    }
    testDispatchFailureReason
  }
}

Variables

{
  "accountNumber": "A-9E546816"
}

Response

{
  "data": {
    "registeredKrakenflexDevice": {
      "krakenflexDeviceId": "24942739",
      "provider": "BYD",
      "vehicleMake": "kitchen-Congress-wide-laugh-brother",
      "vehicleModel": "argue-region-police-child-brother",
      "vehicleBatterySizeInKwh": "1.0",
      "chargePointMake": "box-bar-whom-main-final",
      "chargePointModel": "industry-system-friend-blue-between",
      "chargePointPowerInKw": "1.0",
      "status": "lay-material-support-your-always",
      "suspended": true,
      "hasToken": true,
      "createdAt": "2002-09-06T04:18:51.697656+00:00",
      "stateOfChargeLimit": StateOfChargeLimit,
      "testDispatchFailureReason": "NONE"
    }
  }
}

retailers

Type: [Retailer]

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

All the active energy retailers in Japan.

Query

query Retailers {
  retailers {
    code
    name
    displayName
    displayOrder
    params {
      ...RetailerParamsFragment
    }
  }
}

Response

{
  "data": {
    "retailers": [
      {
        "code": "consumer-reach-degree-control-rule",
        "name": "size-detail-his-reason-green",
        "displayName": "our-center-professor-wall-sort",
        "displayOrder": 33,
        "params": RetailerParams
      }
    ]
  }
}

returnSchedule

Type: [DepositReturnScheduleOutput]

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

Get deposit agreement related return schedules for a given account.

Arguments

Name Description

accountNumber (String!)

Query

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

Variables

{
  "accountNumber": "A-D920914D"
}

Response

{
  "data": {
    "returnSchedule": [
      {
        "dueDate": "1984-11-26",
        "amount": 95,
        "status": "television-there-concern-it-wife"
      }
    ]
  }
}

salesFunnelByCode

Type: SalesFunnel

URL: https://api.oejp-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
    name
    funnelType
    status
    stages {
      ...SalesFunnelStageFragment
    }
    collections {
      ...CollectionFragment
    }
    uncollectedFields {
      ...FunnelFieldFragment
    }
    rules {
      ...SalesFunnelRuleFragment
    }
  }
}

Variables

{
  "input": SalesFunnelInput
}

Response

{
  "data": {
    "salesFunnelByCode": {
      "code": "officer-care-particularly-those-mission",
      "name": "claim-among-care-type-us",
      "funnelType": "LEAD",
      "status": "DRAFT",
      "stages": [SalesFunnelStage],
      "collections": [Collection],
      "uncollectedFields": [FunnelField],
      "rules": [SalesFunnelRule]
    }
  }
}

Arguments

Name Description

input (SalesFunnelsInput)

Input fields for retrieving the sales funnels.

Query

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

Variables

{
  "input": SalesFunnelsInput
}

Response

{
  "data": {
    "salesFunnels": [
      {
        "code": "city-however-military-rather-officer",
        "name": "continue-section-establish-party-group",
        "funnelType": "LEAD",
        "status": "DRAFT",
        "stages": [SalesFunnelStage],
        "collections": [Collection],
        "uncollectedFields": [FunnelField],
        "rules": [SalesFunnelRule]
      }
    ]
  }
}

searchLead

Type: LeadIdType

URL: https://api.oejp-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) {
    leadId
    number
  }
}

Variables

{
  "filters": SearchLeadFilters
}

Response

{
  "data": {
    "searchLead": {
      "leadId": "52541446",
      "number": "stage-win-though-whatever-property"
    }
  }
}

Arguments

Name Description

ids ([UUID])

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

createdAfter (DateTime)

Only requests created after this datetime will be included.

statuses ([RequestStatus])

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

before (String)

after (String)

first (Int)

last (Int)

Query

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

Variables

{
  "ids": ["526f3742-0673-4ee3-9009-774b6645ff12"],
  "createdAfter": "2002-11-01T08:12:48.016397+00:00",
  "statuses": "APPROVAL_PENDING",
  "before": "YXJyYXljb25uZWN0aW9uOjEw=",
  "after": "YXJyYXljb25uZWN0aW9uOjEw=",
  "first": 10,
  "last": 10
}

Response

{
  "data": {
    "siteworksRequests": {
      "pageInfo": PageInfo,
      "edges": CoreSiteworksRequestConnectionTypeEdge,
      "totalCount": 98,
      "edgeCount": 2
    }
  }
}

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": "78964730"
}

Response

{
  "data": {
    "smartFlexDeviceSupplyPoint": {
      "importSupplyPointId": "78347057",
      "smartFlexDeviceId": "74753305"
    }
  }
}

smartFlexOnboardingWizards

Type: [SmartFlexOnboardingWizard!]

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

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

Arguments

Name Description

accountNumber (String!)

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

propertyId (Int)

Only list wizards for this property.

wizardId (ID)

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

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.

Query

query SmartFlexOnboardingWizards(
  $accountNumber: String!,
  $propertyId: Int,
  $wizardId: ID,
  $includeCancelled: Boolean,
  $includeCompleted: Boolean,
  $isResumable: Boolean
) {
  smartFlexOnboardingWizards(
    accountNumber: $accountNumber,
    propertyId: $propertyId,
    wizardId: $wizardId,
    includeCancelled: $includeCancelled,
    includeCompleted: $includeCompleted,
    isResumable: $isResumable
  ) {
    id
    resumable {
      ...SmartFlexResumableFragment
    }
    deviceType
    displayName
    backendScreen
    currentStep {
      ...SmartFlexOnboardingStepInterfaceFragment
    }
    completedSteps {
      ...SmartFlexOnboardingStepInterfaceFragment
    }
  }
}

Variables

{
  "accountNumber": "A-5C4B786A",
  "propertyId": 42055779,
  "wizardId": "98594032",
  "includeCancelled": true,
  "includeCompleted": true,
  "isResumable": true
}

Response

{
  "data": {
    "smartFlexOnboardingWizards": [
      {
        "id": "97299441",
        "resumable": SmartFlexResumable,
        "deviceType": "BATTERIES",
        "displayName": "carry-hair-part-notice-success",
        "backendScreen": BackendScreenType,
        "currentStep": SmartFlexOnboardingStepInterface,
        "completedSteps": SmartFlexOnboardingStepInterface
      }
    ]
  }
}

supplyPoint

Type: SupplyPointType

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

Get a supply point by its market specific id.

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
  ) {
    id
    marketName
    externalIdentifier
    readings {
      ...ReadingsFragment
    }
    property {
      ...PropertyTypeFragment
    }
    devices {
      ...DevicesConnectionFragment
    }
    meterPoint
  }
}

Variables

{
  "externalIdentifier": "26821012",
  "marketName": "final-so-fund-begin-lose"
}

Response

{
  "data": {
    "supplyPoint": {
      "id": "65860547",
      "marketName": "employee-stock-well-less-girl",
      "externalIdentifier": "59262967",
      "readings": Readings,
      "property": PropertyType,
      "devices": DevicesConnection,
      "meterPoint": MeterPointType
    }
  }
}

Arguments

Name Description

accountNumber (String)

Filter meter points by account.

portfolioNumber (String)

Filter meter points by portfolio.

before (String)

after (String)

first (Int)

last (Int)

Query

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

Variables

{
  "accountNumber": "A-169E7578",
  "portfolioNumber": "P-697641AA",
  "before": "YXJyYXljb25uZWN0aW9uOjEw=",
  "after": "YXJyYXljb25uZWN0aW9uOjEw=",
  "first": 10,
  "last": 10
}

Response

{
  "data": {
    "supplyPoints": {
      "pageInfo": PageInfo,
      "edges": SupplyPointConnectionTypeEdge,
      "totalCount": 83,
      "edgeCount": 67
    }
  }
}

tariffSummary

Type: [TariffSummary!]

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

Retrieve a summary of available tariffs.

Arguments

Name Description

gridOperatorCode (String!)

The grid operator code to get tariffs for.

productCode (String)

The product code to get the tariff for.

Query

query TariffSummary(
  $gridOperatorCode: String!,
  $productCode: String
) {
  tariffSummary(
    gridOperatorCode: $gridOperatorCode,
    productCode: $productCode
  ) {
    code
    displayName
    gridOperatorCode
    productParams
    tiers {
      ...TariffTierFragment
    }
  }
}

Variables

{
  "gridOperatorCode": "detail-behind-owner-talk-young",
  "productCode": "get-understand-your-interesting-include"
}

Response

{
  "data": {
    "tariffSummary": [
      {
        "code": "produce-avoid-speak-picture-plan",
        "displayName": "thank-out-five-country-white",
        "gridOperatorCode": "grow-put-hear-culture-wish",
        "productParams": "abc123" | 1 | 1.0 | true | ["abc123"] | AccountType,
        "tiers": TariffTier
      }
    ]
  }
}

taskResult

Type: TaskResult

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

Get the status of a background task.

The possible errors that can be raised are:

Arguments

Name Description

taskId (String!)

accountNumber (String!)

Query

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

Variables

{
  "taskId": "27286521",
  "accountNumber": "A-23B75D2B"
}

Response

{
  "data": {
    "taskResult": {
      "status": "STARTED",
      "result": {"key": "value"},
      "error": "push-across-kitchen-address-operation"
    }
  }
}

template

Type: TemplateType

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

Get details about a template.

The possible errors that can be raised are:

Arguments

Name Description

identifier (String!)

The identifier of the template to query.

Query

query Template($identifier: String!) {
  template(identifier: $identifier) {
    identifier
    code
    market
    label
    description
    version
    maxVersion
    data
    useBillForQuote
    status
    groups {
      ...TemplateGroupTypeFragment
    }
    isLatestVersion
    isAmendable
    currency {
      ...CurrencyTypeFragment
    }
  }
}

Variables

{
  "identifier": "22542176"
}

Response

{
  "data": {
    "template": {
      "identifier": "64805933",
      "code": "modern-catch-new-yeah-different",
      "market": "his-available-can-produce-perform",
      "label": "material-talk-age-about-oil",
      "description": "cup-participant-attack-reduce-generation",
      "version": 57,
      "maxVersion": 71,
      "data": {"key": "value"},
      "useBillForQuote": true,
      "status": "DRAFT",
      "groups": [TemplateGroupType],
      "isLatestVersion": true,
      "isAmendable": true,
      "currency": CurrencyType
    }
  }
}

templateNodesOptions

Type: TemplateNodesType

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

Get template node data including rate builder options and sales tax rates.

Query

query TemplateNodesOptions {
  templateNodesOptions {
    rateBuilder {
      ...RateBuilderNodeTypeFragment
    }
    salesTax {
      ...SalesTaxNodeTypeFragment
    }
  }
}

Response

{
  "data": {
    "templateNodesOptions": {
      "rateBuilder": RateBuilderNodeType,
      "salesTax": SalesTaxNodeType
    }
  }
}

templates

Type: [TemplateType]

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

Get a list of templates from the catalog.

Arguments

Name Description

filters (TemplateFilterInput)

Filters to apply to the templates query.

Query

query Templates($filters: TemplateFilterInput) {
  templates(filters: $filters) {
    identifier
    code
    market
    label
    description
    version
    maxVersion
    data
    useBillForQuote
    status
    groups {
      ...TemplateGroupTypeFragment
    }
    isLatestVersion
    isAmendable
    currency {
      ...CurrencyTypeFragment
    }
  }
}

Variables

{
  "filters": TemplateFilterInput
}

Response

{
  "data": {
    "templates": [
      {
        "identifier": "97437187",
        "code": "else-send-interesting-paper-walk",
        "market": "agency-quality-century-act-policy",
        "label": "best-message-song-single-mother",
        "description": "deal-make-still-sea-strategy",
        "version": 16,
        "maxVersion": 41,
        "data": {"key": "value"},
        "useBillForQuote": true,
        "status": "DRAFT",
        "groups": [TemplateGroupType],
        "isLatestVersion": true,
        "isAmendable": true,
        "currency": CurrencyType
      }
    ]
  }
}

termsAndConditionsForProduct

Type: [TermsAndConditionsType]

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

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

Arguments

Name Description

productCode (String!)

The product code of the market supply product.

Query

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

Variables

{
  "productCode": "ago-peace-main-find-worker"
}

Response

{
  "data": {
    "termsAndConditionsForProduct": {
      "name": "series-could-reflect-knowledge-able",
      "pdfUrl": "course-network-today-the-once",
      "brandCode": "because-low-moment-best-poor",
      "markdown": "hotel-reveal-before-often-community",
      "html": "event-purpose-light-source-possible",
      "version": "technology-clear-scientist-special-share",
      "effectiveFrom": "1970-01-02T01:30:52.777349+00:00"
    }
  }
}

termsandconditions

Type: OEJPTermsAndConditionsType

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

Returns the Terms and conditions based on the code and version

Arguments

Name Description

brandCode (String)

versionMajor (Int)

versionMinor (Int)

Query

query Termsandconditions(
  $brandCode: String,
  $versionMajor: Int,
  $versionMinor: Int
) {
  termsandconditions(
    brandCode: $brandCode,
    versionMajor: $versionMajor,
    versionMinor: $versionMinor
  ) {
    text
    createdAt
    name
    pdfUrl
    brandCode
    markdown
    html
    version
    effectiveFrom
  }
}

Variables

{
  "brandCode": "course-large-officer-culture-for",
  "versionMajor": 57,
  "versionMinor": 1
}

Response

{
  "data": {
    "termsandconditions": {
      "text": "stock-feel-member-audience-network",
      "createdAt": "1977-03-11T11:26:58.087883+00:00",
      "name": "focus-hit-training-prove-certainly",
      "pdfUrl": "either-east-represent-happy-pay",
      "brandCode": "security-feeling-measure-suddenly-general",
      "markdown": "writer-change-marriage-stage-allow",
      "html": "hospital-realize-job-thought-blue",
      "version": "summer-interesting-stop-issue-his",
      "effectiveFrom": "1973-07-13T11:44:16.495135+00:00"
    }
  }
}

thirdPartyViewer

Type: ThirdPartyOrganizationType

URL: https://api.oejp-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": "pressure-into-left-game-machine",
      "permissions": [ThirdPartyPermission]
    }
  }
}

trigger

Type: Trigger!

URL: https://api.oejp-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) {
    id
    triggerTypeCode
    createdAt
    messages {
      ...MessageConnectionFragment
    }
    processingStatus
  }
}

Variables

{
  "triggerId": "76561283"
}

Response

{
  "data": {
    "trigger": {
      "id": "32863584",
      "triggerTypeCode": "her-include-middle-whether-bill",
      "createdAt": "1998-04-17T21:52:46.415863+00:00",
      "messages": MessageConnection,
      "processingStatus": "UNPROCESSED"
    }
  }
}

typicalConsumptionByHalfHourInterval

Type: [Decimal]!

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

Typical consumption by half-hour interval for a given grid operator code, month, and product code.

The possible errors that can be raised are:

  • KT-JP-12401: Typical usage data is missing for the given grid operator.
  • KT-JP-12402: Typical usage data is missing for the given month.
  • KT-JP-12403: Typical usage data is missing for the given product code.
  • KT-CT-1113: Disabled GraphQL field requested.

Arguments

Name Description

gridOperatorCode (String!)

Grid operator code.

month (Int!)

Month index, starting from 1. January = 1, ..., December = 12.

productCode (String!)

Product code.

Query

query TypicalConsumptionByHalfHourInterval(
  $gridOperatorCode: String!,
  $month: Int!,
  $productCode: String!
) {
  typicalConsumptionByHalfHourInterval(
    gridOperatorCode: $gridOperatorCode,
    month: $month,
    productCode: $productCode
  )
}

Variables

{
  "gridOperatorCode": "discussion-power-series-continue-decision",
  "month": 87,
  "productCode": "common-sort-manage-woman-easy"
}

Response

{
  "data": {
    "typicalConsumptionByHalfHourInterval": "1.0"
  }
}

userVehicles

Type: [UserVehiclesType]

URL: https://api.oejp-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.

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)

supportedProvider (ProviderChoices)

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

authentication (AuthenticationInput)

The authentication details required given the chosen provider.

Query

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

Variables

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

Response

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

validateGpin

Type: ValidateGPIN!

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

Validate a Generation Point Identification Number.

The possible errors that can be raised are:

Arguments

Name Description

gpin (String!)

GPIN to validate.

Query

query ValidateGpin($gpin: String!) {
  validateGpin(gpin: $gpin) {
    isValid
  }
}

Variables

{
  "gpin": "follow-need-trouble-we-bed"
}

Response

{
  "data": {
    "validateGpin": {
      "isValid": true
    }
  }
}

Arguments

Name Description

value (String!)

Referral claim code value.

Query

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

Variables

{
  "value": "best-worry-wonder-would-pay"
}

Response

{
  "data": {
    "validateReferralCode": {
      "id": 12021963,
      "value": "evening-write-available-bed-piece",
      "referralScheme": ReferralSchemeType,
      "accountReferral": ReferralType,
      "isValid": true,
      "createdAt": "2003-07-28T15:54:13.327113+00:00"
    }
  }
}

vehicleChargingPreferences

Type: VehicleChargingPreferencesType

URL: https://api.oejp-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) {
    weekdayTargetTime
    weekdayTargetSoc
    weekendTargetTime
    weekendTargetSoc
    minimumSocPercentage
    maximumSocPercentage
  }
}

Variables

{
  "accountNumber": "A-3611C561"
}

Response

{
  "data": {
    "vehicleChargingPreferences": {
      "weekdayTargetTime": "than-bank-maybe-pretty-board",
      "weekdayTargetSoc": 26,
      "weekendTargetTime": "high-determine-race-sure-must",
      "weekendTargetSoc": 34,
      "minimumSocPercentage": 6,
      "maximumSocPercentage": 27
    }
  }
}

verificationStatus

Type: EmailVerificationStatus

URL: https://api.oejp-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": "senior-successful-behavior-see-next"
}

Response

{
  "data": {
    "verificationStatus": {
      "email": "meet-top-break-south-against",
      "status": "NOT_SENT"
    }
  }
}

viewer

Type: AccountUser

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

The currently authenticated user.

This field requires the Authorization header to be set.

Query

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

Response

{
  "data": {
    "viewer": {
      "id": "95087365",
      "number": "some-prevent-pretty-war-institution",
      "accounts": AccountInterface,
      "givenName": "John",
      "familyName": "Jacobs",
      "email": "real-plan-current-find-strategy",
      "mobile": "region-summer-not-thus-city",
      "landline": "actually-home-culture-assume-out",
      "title": "rock-organization-dinner-but-follow",
      "pronouns": "audience-good-forget-ability-enter",
      "isDeceased": true,
      "liveSecretKey": "edge-true-thousand-owner-training",
      "createdAt": "1985-04-16T13:20:42.036886+00:00",
      "portfolios": PortfolioConnectionTypeConnection,
      "address": RichAddressType,
      "dateOfBirth": "1991-10-29",
      "label": "push-popular-senior-contain-character",
      "isActive": true,
      "details": [AccountUserDetailType],
      "permissions": [AccountUserPermission],
      "displayName": "chair-drive-all-world-evening",
      "firstName": "debate-this-note-market-dark",
      "lastName": "mouth-claim-agreement-catch-as",
      "fullName": "imagine-free-anyone-task-approach",
      "preferredName": "early-data-guy-same-stock",
      "portfolioId": "79068602",
      "portfolioIds": ["29409814"],
      "businesses": BusinessConnectionTypeConnection,
      "specialCircumstances": SpecialCircumstancesType,
      "preferences": AccountUserCommsPreferences,
      "landlinePhoneNumber": "seven-son-store-class-throughout",
      "alternativePhoneNumbers": ["accept-million-church-need-act"],
      "hasFamilyIssues": true,
      "isInHardship": true,
      "accountUserRoles": [AccountUserRoleType],
      "portfolioUserRoles": [PortfolioUserRoleType],
      "consents": ConsentType,
      "paymentMethods": PaymentInstructionConnectionTypeConnection,
      "holdMusicChoices": [TrackOptionType],
      "isOptedInToWof": true
    }
  }
}

voiceCampaign

Type: VoiceCampaignType!

URL: https://api.oejp-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) {
    id
    name
    description
    customOutboundPhoneNumber
    tags {
      ...CallTagConnectionTypeConnectionFragment
    }
    status
    campaignType
    campaignItems {
      ...VoiceCampaignItemConnectionTypeConnectionFragment
    }
    preventDuplicateRecords
  }
}

Variables

{
  "campaignId": "92877833"
}

Response

{
  "data": {
    "voiceCampaign": {
      "id": "60392796",
      "name": "down-start-nature-us-natural",
      "description": "daughter-available-environmental-wait-nice",
      "customOutboundPhoneNumber": "serve-appear-rock-white-way",
      "tags": CallTagConnectionTypeConnection,
      "status": "ACTIVE",
      "campaignType": "PREVIEW",
      "campaignItems": VoiceCampaignItemConnectionTypeConnection,
      "preventDuplicateRecords": true
    }
  }
}

Arguments

Name Description

status (CampaignStatus)

Filter by campaign status.

campaignType (TypeOfVoiceCampaign)

Filter by campaign type.

name (String)

Filter by campaign name.

before (String)

after (String)

first (Int)

last (Int)

Query

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

Variables

{
  "status": "ACTIVE",
  "campaignType": "PREVIEW",
  "name": "book-high-player-only-authority",
  "before": "YXJyYXljb25uZWN0aW9uOjEw=",
  "after": "YXJyYXljb25uZWN0aW9uOjEw=",
  "first": 10,
  "last": 10
}

Response

{
  "data": {
    "voiceCampaigns": {
      "pageInfo": PageInfo,
      "edges": VoiceCampaignConnectionTypeEdge,
      "totalCount": 24,
      "edgeCount": 65
    }
  }
}

vouchersBalanceDetail

Type: VouchersBalanceDetail

URL: https://api.oejp-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) {
    redeemableToday
    redeemableInFuture
  }
}

Variables

{
  "accountNumber": "A-926B180A"
}

Response

{
  "data": {
    "vouchersBalanceDetail": {
      "redeemableToday": 60,
      "redeemableInFuture": 39
    }
  }
}

Arguments

Name Description

accountNumber (ID!)

The account number.

redeemableOnly (Boolean!)

Whether to only return vouchers that can be redeemable.

purchasedFromDate (Date)

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

purchasedBeforeDate (Date)

An optional date to limit the response to vouchers that have been purchased 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.

availableBeforeDate (Date)

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

before (String)

after (String)

first (Int)

last (Int)

Query

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

Variables

{
  "accountNumber": "A-CCEE3283",
  "redeemableOnly": true,
  "purchasedFromDate": "1995-01-25",
  "purchasedBeforeDate": "1980-11-30",
  "availableFromDate": "2017-05-19",
  "availableBeforeDate": "2000-06-18",
  "before": "YXJyYXljb25uZWN0aW9uOjEw=",
  "after": "YXJyYXljb25uZWN0aW9uOjEw=",
  "first": 10,
  "last": 10
}

Response

{
  "data": {
    "vouchersForAccount": {
      "pageInfo": PageInfo,
      "edges": VoucherPurchaseConnectionTypeEdge,
      "totalCount": 31,
      "edgeCount": 57
    }
  }
}

workSchedule

Type: WorkScheduleType!

URL: https://api.oejp-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
    name
    isOpen
    isPublicHoliday
    openOrClosedReason
  }
}

Variables

{
  "identifier": "53799961"
}

Response

{
  "data": {
    "workSchedule": {
      "identifier": "85607829",
      "name": "south-toward-white-concern-always",
      "isOpen": true,
      "isPublicHoliday": true,
      "openOrClosedReason": "CLOSED_DUE_TO_PUBLIC_HOLIDAY"
    }
  }
}

Authentication Server

authorizedApplications

Type: [AuthorizedApplication]

URL: https://auth.oejp-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 {
    name
    clientId
  }
}

Response

{
  "data": {
    "authorizedApplications": [
      {
        "name": "better-building-arrive-truth-factor",
        "clientId": "67317007"
      }
    ]
  }
}

Query

query KrakenVersion {
  krakenVersion {
    number
    SHA
    isPinned
  }
}

Response

{
  "data": {
    "krakenVersion": {
      "number": "onto-seven-maintain-total-cover",
      "SHA": "born-that-also-drive-visit",
      "isPinned": true
    }
  }
}

mfaDevices

Type: [MfaDevice]

URL: https://auth.oejp-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": "method-method-city-away-both",
        "isConfirmed": true
      }
    ]
  }
}