About Mutations
Every GraphQL schema has a root type for both queries and
mutations. The mutation
type
defines GraphQL operations that change data on the server. It is
analogous to performing HTTP verbs such as POST
,
PATCH
, and DELETE
.
API Site
acceptGoodsQuote
Type: AcceptGoodsQuote
URL: https://api.oefr-kraken.energy/v1/graphql/
Accept a goods quote.
The possible errors that can be raised are:
- KT-CT-8223: Unauthorized.
- KT-CT-8201: Received an invalid quoteId.
- KT-CT-8224: Invalid data.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
|
Input fields for accepting a quote. |
Return fields
Name | Description |
---|
Mutation
mutation AcceptGoodsQuote($input: AcceptGoodsQuoteInput!) {
acceptGoodsQuote(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
goodsPurchase {
...GoodsPurchaseFragment
}
}
}
Variables
{
"input": AcceptGoodsQuoteInput
}
Response
{
"data": {
"acceptGoodsQuote": {
"possibleErrors": [PossibleErrorType],
"goodsPurchase": GoodsPurchase
}
}
}
acceptOfferForQuoting
Type: AcceptOfferForQuoting
URL: https://api.oefr-kraken.energy/v1/graphql/
Accept a quoting offer in an offer group.
The possible errors that can be raised are:
- KT-CT-12402: Unable to accept offer.
- KT-CT-1113: Disabled GraphQL field requested.
Arguments
Name | Description |
---|---|
|
Input fields for accepting a quoting offer. |
Return fields
Name | Description |
---|
Mutation
mutation AcceptOfferForQuoting($input: AcceptOfferForQuotingInput!) {
acceptOfferForQuoting(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
offer {
...OfferTypeFragment
}
}
}
Variables
{
"input": AcceptOfferForQuotingInput
}
Response
{
"data": {
"acceptOfferForQuoting": {
"possibleErrors": [PossibleErrorType],
"offer": OfferType
}
}
}
acceptQuote
Type: AcceptQuote
URL: https://api.oefr-kraken.energy/v1/graphql/
Accepts a quote.
The possible errors that can be raised are:
- KT-CT-1132: Unauthorized.
- KT-CT-3811: Invalid IBAN.
- KT-FR-3814: Invalid payment day.
- KT-CT-4121: Invalid phone number.
- KT-CT-4122: Invalid email.
- KT-CT-4137: Invalid Title.
- KT-CT-4321: Serializer validation error.
- KT-CT-4321: Serializer validation error.
- KT-CT-4410: Invalid postcode.
- KT-CT-5412: No account user exists with the given id.
- KT-CT-6710: Unable to create referral.
- KT-FR-4110: Age incorrect.
- KT-FR-4113: Invalid name.
- KT-FR-4114: Account not found.
- KT-FR-4611: T&C not accepted or not acceptable.
- KT-FR-4612: Unable to create agreement.
- KT-FR-4616: Supply start date invalid.
- KT-FR-4617: Incompatible subscription type.
- KT-FR-4618: The quote request has already been accepted.
- KT-FR-4622: Unexpected error while accepting a quote.
- KT-FR-4623: Withdrawal period is mandatory for this sale.
- KT-FR-4712: Invalid meter readings data.
- KT-FR-4713: Invalid data. Reading date cannot be in the future.
- KT-FR-7712: Invalid affiliate session.
- KT-FR-7713: Authenticated organizations should not use affiliate sessions.
- KT-CT-1113: Disabled GraphQL field requested.
Arguments
Name | Description |
---|---|
|
Input fields for accepting a quote on supply points. |
Return fields
Name | Description |
---|
Mutation
mutation AcceptQuote($input: AcceptQuoteInputType!) {
acceptQuote(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
accountNumber
supplyContracts {
...SupplyContractConnectionTypeConnectionFragment
}
preSignedKey
}
}
Variables
{
"input": AcceptQuoteInputType
}
Response
{
"data": {
"acceptQuote": {
"possibleErrors": [PossibleErrorType],
"accountNumber": "abc123",
"supplyContracts": SupplyContractConnectionTypeConnection,
"preSignedKey": "abc123"
}
}
}
addBusinessToSegment
Type: AddBusinessToSegmentMutation
URL: https://api.oefr-kraken.energy/v1/graphql/
Add a business to a segment.
The possible errors that can be raised are:
- KT-CT-1111: Unauthorized.
- KT-CT-11107: Unauthorized.
- KT-CT-11111: Segment does not exist.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
|
Input fields for adding a business to a segment. |
Return fields
Name | Description |
---|
Mutation
mutation AddBusinessToSegment($input: AddBusinessToSegmentInput!) {
addBusinessToSegment(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
businessSegmentPeriod {
...BusinessSegmentPeriodTypeFragment
}
}
}
Variables
{
"input": AddBusinessToSegmentInput
}
Response
{
"data": {
"addBusinessToSegment": {
"possibleErrors": [PossibleErrorType],
"businessSegmentPeriod": BusinessSegmentPeriodType
}
}
}
addCampaignToAccount
Type: AddCampaignToAccount
URL: https://api.oefr-kraken.energy/v1/graphql/
The possible errors that can be raised are:
- KT-CT-4123: Unauthorized.
- KT-CT-7427: No campaign found with given slug.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
|
Input variables needed for adding a campaign to an account. |
Return fields
Name | Description |
---|
Mutation
mutation AddCampaignToAccount($input: AddCampaignToAccountInput!) {
addCampaignToAccount(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
campaignAdded
}
}
Variables
{
"input": AddCampaignToAccountInput
}
Response
{
"data": {
"addCampaignToAccount": {
"possibleErrors": [PossibleErrorType],
"campaignAdded": true
}
}
}
addItemsToRiskList
Type: AddItemsToRiskList
URL: https://api.oefr-kraken.energy/v1/graphql/
Add items to the risk list.
The possible errors that can be raised are:
- KT-CT-12105: Risk list item addition failed.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
|
A list of risk list items to add. |
Return fields
Name | Description |
---|
Mutation
mutation AddItemsToRiskList($input: [RiskListItemInputType]!) {
addItemsToRiskList(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
riskIdentifiers {
...RiskListItemTypeFragment
}
}
}
Variables
{
"input": RiskListItemInputType
}
Response
{
"data": {
"addItemsToRiskList": {
"possibleErrors": [PossibleErrorType],
"riskIdentifiers": [RiskListItemType]
}
}
}
Mutation
mutation AddNoteToInkConversation($input: AddNoteToInkConversationInput!) {
addNoteToInkConversation(input: $input) {
note {
...InkNoteFragment
}
clientMutationId
}
}
Variables
{
"input": AddNoteToInkConversationInput
}
Response
{
"data": {
"addNoteToInkConversation": {
"note": InkNote,
"clientMutationId": "abc123"
}
}
}
addSignupReferralOnAccount
Type: AddSignupReferralOnAccount
URL: https://api.oefr-kraken.energy/v1/graphql/
Add a one-way signup reward to a referral.
The possible errors that can be raised are:
- KT-CT-6723: Unauthorized.
- KT-CT-6729: This scheme cannot be applied to given account.
- KT-CT-6710: Unable to create referral.
- KT-CT-6728: This referral scheme's usage is at capacity.
- KT-CT-6712: Invalid reference.
- KT-CT-6713: Referring and referred account brands do not match.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
|
Input fields for creating a signup reward for an organization. |
Return fields
Name | Description |
---|
Mutation
mutation AddSignupReferralOnAccount($input: AddSignupReferralOnAccountInput!) {
addSignupReferralOnAccount(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
accountReferral {
...ReferralTypeFragment
}
}
}
Variables
{
"input": AddSignupReferralOnAccountInput
}
Response
{
"data": {
"addSignupReferralOnAccount": {
"possibleErrors": [PossibleErrorType],
"accountReferral": ReferralType
}
}
}
addUserToPortfolio
Type: AddUserToPortfolio
URL: https://api.oefr-kraken.energy/v1/graphql/
Add an user to a portfolio with a specified role.
The possible errors that can be raised are:
- KT-CT-5461: Invalid role code.
- KT-CT-5462: Invalid user number format.
- KT-CT-5463: Unauthorized.
- KT-CT-9407: Unauthorized.
- KT-CT-9408: Invalid portfolio number format.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
|
Input fields for adding a user to a portfolio. |
Return fields
Name | Description |
---|
Mutation
mutation AddUserToPortfolio($input: AddUserToPortfolioInput!) {
addUserToPortfolio(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
}
}
Variables
{
"input": AddUserToPortfolioInput
}
Response
{
"data": {
"addUserToPortfolio": {
"possibleErrors": [PossibleErrorType]
}
}
}
affiliateAcceptQuote
Type: AffiliateAcceptQuote
URL: https://api.oefr-kraken.energy/v1/graphql/
Accept a quote.
The possible errors that can be raised are:
- KT-FR-4511: No provider calendar for PRM.
- KT-FR-4610: Unknown PRM.
- KT-FR-4612: Unable to create agreement.
- KT-FR-4613: Unable to request quote.
- KT-FR-4614: Unknown quote request.
- KT-FR-4617: Incompatible subscription type.
- KT-FR-4618: The quote request has already been accepted.
- KT-FR-4622: Unexpected error while accepting a quote.
- KT-FR-4712: Invalid meter readings data.
- KT-FR-4713: Invalid data. Reading date cannot be in the future.
- KT-FR-4913: Unknown product.
- KT-CT-3811: Invalid IBAN.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
|
Input fields for accepting a quote on a PRM. |
Return fields
Name | Description |
---|
Mutation
mutation AffiliateAcceptQuote($input: AffiliateAcceptQuoteInputType!) {
affiliateAcceptQuote(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
accountNumber
contractNumber
}
}
Variables
{
"input": AffiliateAcceptQuoteInputType
}
Response
{
"data": {
"affiliateAcceptQuote": {
"possibleErrors": [PossibleErrorType],
"accountNumber": "abc123",
"contractNumber": "abc123"
}
}
}
affiliateEligibility
Type: AffiliateEligibility
URL: https://api.oefr-kraken.energy/v1/graphql/
Check eligibility with Enedis information.
Arguments
Name | Description |
---|---|
|
Input fields for requesting a PRM eligibility. |
Return fields
Name | Description |
---|
Mutation
mutation AffiliateEligibility($input: AffiliateEligibilityInputType!) {
affiliateEligibility(input: $input) {
supplyPointId
isEligible
subscriptionType
tariffOption
providerCalendarId
meterPower
errors
}
}
Variables
{
"input": AffiliateEligibilityInputType
}
Response
{
"data": {
"affiliateEligibility": {
"supplyPointId": "abc123",
"isEligible": true,
"subscriptionType": "CDF",
"tariffOption": "BASE",
"providerCalendarId": "BASE",
"meterPower": 1,
"errors": "abc123" | 1 | 1.0 | true | ["abc123"] | AccountType
}
}
}
affiliateRequestQuote
Type: AffiliateRequestQuote
URL: https://api.oefr-kraken.energy/v1/graphql/
Request a quote.
The possible errors that can be raised are:
- KT-FR-4511: No provider calendar for PRM.
- KT-FR-4512: The chosen calendar is different from the one provided by ENEDIS.
- KT-FR-4610: Unknown PRM.
- KT-FR-4615: Unable to request quote.
- KT-FR-4613: Unable to request quote.
- KT-FR-4619: Unexpected error while generating quote.
- KT-FR-4621: Annual consumption invalid.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
|
Input fields for requesting a quote on a PRM. |
Return fields
Name | Description |
---|
Mutation
mutation AffiliateRequestQuote($input: AffiliateRequestQuoteInputType!) {
affiliateRequestQuote(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
quoteCode
quotedProducts {
...AffiliateQuotedProductFragment
}
}
}
Variables
{
"input": AffiliateRequestQuoteInputType
}
Response
{
"data": {
"affiliateRequestQuote": {
"possibleErrors": [PossibleErrorType],
"quoteCode": "500c164d-38c7-4f74-9ac6-be210197e9e4",
"quotedProducts": [AffiliateQuotedProduct]
}
}
}
allowRepaymentSubmission
Type: AllowRepaymentSubmission
URL: https://api.oefr-kraken.energy/v1/graphql/
Allow a repayment to be submitted.
The possible errors that can be raised are:
- KT-CT-3944: Account repayment does not exist.
- KT-CT-3945: Unable to allow a repayment to be submitted.
- KT-CT-3950: The provided reason text is too long.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
|
Input variable needed for allowing repayment submission. |
Return fields
Name | Description |
---|
Mutation
mutation AllowRepaymentSubmission($input: RepaymentInput!) {
allowRepaymentSubmission(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
repaymentId
repaymentIntervention {
...RepaymentInterventionTypeFragment
}
}
}
Variables
{
"input": RepaymentInput
}
Response
{
"data": {
"allowRepaymentSubmission": {
"possibleErrors": [PossibleErrorType],
"repaymentId": "abc123",
"repaymentIntervention": RepaymentInterventionType
}
}
}
amendPayment
Type: AmendPayment
URL: https://api.oefr-kraken.energy/v1/graphql/
Amend an existing payment.
The possible errors that can be raised are:
- KT-CT-3924: Unauthorized.
- KT-CT-4123: Unauthorized.
- KT-CT-3970: The account cannot amend payments.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
|
Input fields for amending an existing payment. |
Return fields
Name | Description |
---|
Mutation
mutation AmendPayment($input: AmendPaymentInput!) {
amendPayment(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
payment {
...AccountPaymentTypeFragment
}
}
}
Variables
{
"input": AmendPaymentInput
}
Response
{
"data": {
"amendPayment": {
"possibleErrors": [PossibleErrorType],
"payment": AccountPaymentType
}
}
}
approveRepayment
Type: ApproveRepayment
URL: https://api.oefr-kraken.energy/v1/graphql/
Approve a repayment.
The possible errors that can be raised are:
- KT-CT-3934: Repayment request already approved.
- KT-CT-3935: Repayment request cannot be paid.
- KT-CT-3959: Unauthorized.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
|
Input fields for approving a repayment. |
Return fields
Name | Description |
---|
Mutation
mutation ApproveRepayment($input: ApproveRepaymentInput!) {
approveRepayment(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
repayment {
...AccountRepaymentTypeFragment
}
}
}
Variables
{
"input": ApproveRepaymentInput
}
Response
{
"data": {
"approveRepayment": {
"possibleErrors": [PossibleErrorType],
"repayment": AccountRepaymentType
}
}
}
assessCollectionProcessRecordForPause
Type: AssessCollectionProcessRecordForPause
URL: https://api.oefr-kraken.energy/v1/graphql/
Assess a collection process record for pause.
The possible errors that can be raised are:
- KT-CT-1111: Unauthorized.
- KT-CT-11201: No Collection Process Records associated with id.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
Details of collection process to run the pause assessment. |
Return fields
Name | Description |
---|
Mutation
mutation AssessCollectionProcessRecordForPause($input: AssessCollectionProcessRecordForPauseInputType!) {
assessCollectionProcessRecordForPause(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
collectionProcessProcessed {
...AssessCollectionProcessRecordForPauseOutputTypeFragment
}
}
}
Variables
{
"input": AssessCollectionProcessRecordForPauseInputType
}
Response
{
"data": {
"assessCollectionProcessRecordForPause": {
"possibleErrors": [PossibleErrorType],
"collectionProcessProcessed": AssessCollectionProcessRecordForPauseOutputType
}
}
}
Mutation
mutation AssignInkBucket($input: AssignInkBucketInput!) {
assignInkBucket(input: $input) {
conversation {
...InkConversationFragment
}
bucket {
...InkBucketFragment
}
clientMutationId
}
}
Variables
{
"input": AssignInkBucketInput
}
Response
{
"data": {
"assignInkBucket": {
"conversation": InkConversation,
"bucket": InkBucket,
"clientMutationId": "abc123"
}
}
}
associateCallWithAccount
Type: AssociateCallWithAccount
URL: https://api.oefr-kraken.energy/v1/graphql/
The possible errors that can be raised are:
- KT-CT-11802: Call not found.
- KT-CT-4178: No account found with given account number.
- KT-CT-11808: Unable to associate account to call.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Mutation
mutation AssociateCallWithAccount($input: AssociateCallWithAccountInput!) {
associateCallWithAccount(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
call {
...InboundCallTypeFragment
}
}
}
Variables
{
"input": AssociateCallWithAccountInput
}
Response
{
"data": {
"associateCallWithAccount": {
"possibleErrors": [PossibleErrorType],
"call": InboundCallType
}
}
}
associateItemToCollectionProcess
Type: AssociateItemToCollectionProcess
URL: https://api.oefr-kraken.energy/v1/graphql/
Associate item to a collection process.
The possible errors that can be raised are:
- KT-CT-1111: Unauthorized.
- KT-CT-11201: No Collection Process Records associated with id.
- KT-CT-11205: Item already associated to collection process.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
Input variables needed for associating an item to collection process. |
Return fields
Name | Description |
---|
Mutation
mutation AssociateItemToCollectionProcess($input: AssociateItemToCollectionProcessInputType!) {
associateItemToCollectionProcess(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
collectionProcessAssociatedItem {
...AssociateItemToCollectionProcessOutputTypeFragment
}
}
}
Variables
{
"input": AssociateItemToCollectionProcessInputType
}
Response
{
"data": {
"associateItemToCollectionProcess": {
"possibleErrors": [PossibleErrorType],
"collectionProcessAssociatedItem": AssociateItemToCollectionProcessOutputType
}
}
}
awardLoyaltyPoints
Type: AwardLoyaltyPoints
URL: https://api.oefr-kraken.energy/v1/graphql/
Award the passed number of Loyalty Points to the account.
The possible errors that can be raised are:
- KT-CT-1111: Unauthorized.
- KT-CT-9202: Loyalty Points adapter not configured.
- KT-CT-9204: Negative or zero points set.
- KT-CT-9208: Invalid posted at datetime.
- KT-CT-9210: Unhandled Loyalty Points exception.
- KT-CT-9212: Points exceed maximum limit.
- KT-CT-9221: Idempotency key already used on ledger entry.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
|
Input fields for awarding Loyalty Points. |
Return fields
Name | Description |
---|
Mutation
mutation AwardLoyaltyPoints($input: AwardLoyaltyPointsInput!) {
awardLoyaltyPoints(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
pointsAwarded
ledgerEntry {
...LoyaltyPointLedgerEntryTypeFragment
}
}
}
Variables
{
"input": AwardLoyaltyPointsInput
}
Response
{
"data": {
"awardLoyaltyPoints": {
"possibleErrors": [PossibleErrorType],
"pointsAwarded": 1,
"ledgerEntry": LoyaltyPointLedgerEntryType
}
}
}
backendScreenEvent
Type: BackendScreenEvent
URL: https://api.oefr-kraken.energy/v1/graphql/
Look up an event to perform from its event_id, and return the next action to perform.
The possible errors that can be raised are:
- KT-CT-1111: Unauthorized.
- KT-CT-8002: No event found.
- KT-CT-8003: Event has no execute function.
- KT-CT-8004: Error executing event in the backend.
- KT-CT-8007: Incorrect or missing parameters for backend screen event.
- KT-GB-9310: Account ineligible for joining Octoplus.
- KT-CT-1113: Disabled GraphQL field requested.
Arguments
Name | Description |
---|---|
|
Input fields for performing a backend action. |
Return fields
Name | Description |
---|
Mutation
mutation BackendScreenEvent($input: BackendScreenEventInput!) {
backendScreenEvent(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
action
}
}
Variables
{
"input": BackendScreenEventInput
}
Response
{
"data": {
"backendScreenEvent": {
"possibleErrors": [PossibleErrorType],
"action": ActionType
}
}
}
blockRepaymentSubmission
Type: BlockRepaymentSubmission
URL: https://api.oefr-kraken.energy/v1/graphql/
Block a repayment from being submitted.
The possible errors that can be raised are:
- KT-CT-3944: Account repayment does not exist.
- KT-CT-3946: Unable to block a repayment from being submitted.
- KT-CT-3950: The provided reason text is too long.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
|
Input variable needed for blocking repayment submission. |
Return fields
Name | Description |
---|
Mutation
mutation BlockRepaymentSubmission($input: RepaymentInput!) {
blockRepaymentSubmission(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
repaymentId
repaymentIntervention {
...RepaymentInterventionTypeFragment
}
}
}
Variables
{
"input": RepaymentInput
}
Response
{
"data": {
"blockRepaymentSubmission": {
"possibleErrors": [PossibleErrorType],
"repaymentId": "abc123",
"repaymentIntervention": RepaymentInterventionType
}
}
}
cancelEnrollment
Type: EnrollmentCancelled!
URL: https://api.oefr-kraken.energy/v1/graphql/
Cancel an enrollment for an account and a set of supply points.
The possible errors that can be raised are:
- KT-CT-10312: Mutation not enabled in this environment.
- KT-CT-10318: Enrollment process not found.
- KT-CT-10319: Enrollment process failed to cancel.
- KT-CT-10320: Enrollment process not cancellable.
- KT-CT-10321: Enrollment cancellation workflow not defined.
- KT-CT-10323: Enrollment process failed to cancel.
- KT-CT-10331: Missing required process number.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Mutation
mutation CancelEnrollment($input: CancelEnrollmentInput!) {
cancelEnrollment(input: $input) {
message
enrollmentProcess
}
}
Variables
{
"input": CancelEnrollmentInput
}
Response
{
"data": {
"cancelEnrollment": {
"message": "abc123",
"enrollmentProcess": EnrollmentProcess
}
}
}
cancelLeaveSupplier
Type: LeaveSupplierCancelled!
URL: https://api.oefr-kraken.energy/v1/graphql/
Cancel a leave supplier process.
The possible errors that can be raised are:
- KT-CT-10304: Mutation not enabled in this environment.
- KT-CT-10302: Invalid data.
- KT-CT-10305: Failed to cancel leave supplier process - market actions are no longer cancellable.
- KT-CT-10306: Failed to cancel leave supplier process - the cancellation workflow has not been configured.
- KT-CT-10307: Failed to cancel leave supplier process - failed to cancel market actions.
- KT-CT-10308: Failed to cancel leave supplier process.
- KT-CT-10311: Failed to cancel leave supplier process. The process status is not in cancellable status.
- KT-CT-1607: Value cannot be empty.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Mutation
mutation CancelLeaveSupplier($input: CancelLeaveSupplierInput!) {
cancelLeaveSupplier(input: $input) {
message
}
}
Variables
{
"input": CancelLeaveSupplierInput
}
Response
{
"data": {
"cancelLeaveSupplier": {
"message": "abc123"
}
}
}
cancelPayment
Type: CancelPayment
URL: https://api.oefr-kraken.energy/v1/graphql/
Cancel an in-flight payment.
The possible errors that can be raised are:
- KT-CT-3924: Unauthorized.
- KT-CT-3954: Payment cancellation failed.
- KT-CT-3955: Payment cannot be cancelled.
- KT-CT-3956: Temporary error occurred.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
|
Input fields for cancelling a pending payment. |
Return fields
Name | Description |
---|
Mutation
mutation CancelPayment($input: CancelPaymentInput!) {
cancelPayment(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
payment {
...AccountPaymentTypeFragment
}
}
}
Variables
{
"input": CancelPaymentInput
}
Response
{
"data": {
"cancelPayment": {
"possibleErrors": [PossibleErrorType],
"payment": AccountPaymentType
}
}
}
cancelRepaymentRequest
Type: CancelRepaymentRequest
URL: https://api.oefr-kraken.energy/v1/graphql/
Cancel a repayment or refund request.
The possible errors that can be raised are:
- KT-CT-4231: Unauthorized.
- KT-CT-3930: The repayment or refund request does not exist.
- KT-CT-3931: This repayment or refund request cannot be cancelled.
- KT-CT-1113: Disabled GraphQL field requested.
Arguments
Name | Description |
---|---|
|
Input fields for cancelling a repayment request. |
Return fields
Name | Description |
---|
Mutation
mutation CancelRepaymentRequest($input: CancelRepaymentRequestInputType!) {
cancelRepaymentRequest(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
repaymentRequest {
...CancelRepaymentRequestOutputTypeFragment
}
}
}
Variables
{
"input": CancelRepaymentRequestInputType
}
Response
{
"data": {
"cancelRepaymentRequest": {
"possibleErrors": [PossibleErrorType],
"repaymentRequest": CancelRepaymentRequestOutputType
}
}
}
cancelSmartFlexOnboarding
Type: CancelSmartFlexOnboarding
URL: https://api.oefr-kraken.energy/v1/graphql/
Cancel onboarding of a device with SmartFlex.
The possible errors that can be raised are:
- KT-CT-1111: Unauthorized.
- KT-CT-4371: Onboarding wizard ID is invalid.
- KT-CT-4372: Simultaneous attempts to update onboarding process.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Mutation
mutation CancelSmartFlexOnboarding($input: CancelSmartFlexOnboardingInput!) {
cancelSmartFlexOnboarding(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
wizard {
...SmartFlexOnboardingWizardFragment
}
}
}
Variables
{
"input": CancelSmartFlexOnboardingInput
}
Response
{
"data": {
"cancelSmartFlexOnboarding": {
"possibleErrors": [PossibleErrorType],
"wizard": SmartFlexOnboardingWizard
}
}
}
checkMeterPointsEligibility
Type: CheckMeterPointsEligibility
URL: https://api.oefr-kraken.energy/v1/graphql/
Check whether meter points are eligible to be supplied by us.
The possible errors that can be raised are:
- KT-FR-4521: Unable to send request without customer's consent to send data to the DSO.
- KT-FR-4522: Invalid Electricity Meter Point.
- KT-FR-4520: Invalid Gas Meter Point.
- KT-FR-4523: Invalid market name.
- KT-FR-4527: Supply point from the same property contain different addresses.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
Input fields for for checking the eligibility of meter points. |
Return fields
Name | Description |
---|
Mutation
mutation CheckMeterPointsEligibility($input: CheckMeterPointsEligibilityInputType!) {
checkMeterPointsEligibility(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
eligibilityResults {
...SupplyPointEligibilityResultConnectionTypeConnectionFragment
}
}
}
Variables
{
"input": CheckMeterPointsEligibilityInputType
}
Response
{
"data": {
"checkMeterPointsEligibility": {
"possibleErrors": [PossibleErrorType],
"eligibilityResults": SupplyPointEligibilityResultConnectionTypeConnection
}
}
}
checkoutQuote
Type: CheckoutQuote
URL: https://api.oefr-kraken.energy/v1/graphql/
Checkout a quote.
The possible errors that can be raised are:
- KT-FR-3910: Unable to create payment instruction.
- KT-FR-4628: Either consentData or consentDataPerSupplyPointId is required for check-out.
- KT-FR-4636: Enter one of the fields: consents or preferences.
- KT-FR-6912: The activation process provided does not exists.
- KT-FR-6913: The activation process is not in a checkoutable status.
- KT-FR-6914: The activation process does not belong to the logged user account.
- KT-FR-6915: Some supply points are missing industry consents for activation.
- KT-FR-6917: Invalid data.
- KT-FR-6918: Unauthorized.
- KT-CT-9016: Consent management not enabled.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
|
Input fields for checkout a quote already accepted. |
Return fields
Name | Description |
---|
Mutation
mutation CheckoutQuote($input: CheckoutQuoteInputType!) {
checkoutQuote(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
firstPaymentDate
firstPaymentAmount
agreements {
...AgreementConnectionTypeConnectionFragment
}
userId
token
accountNumber
}
}
Variables
{
"input": CheckoutQuoteInputType
}
Response
{
"data": {
"checkoutQuote": {
"possibleErrors": [PossibleErrorType],
"firstPaymentDate": "2020-01-01",
"firstPaymentAmount": 1,
"agreements": AgreementConnectionTypeConnection,
"userId": "abc123",
"token": "abc123",
"accountNumber": "abc123"
}
}
}
closeDcaProceeding
Type: CloseDCAProceeding
URL: https://api.oefr-kraken.energy/v1/graphql/
Close the DCA proceeding for an account.
The possible errors that can be raised are:
- KT-CT-4178: No account found with given account number.
- KT-CT-11602: Could not find DCA with that name.
- KT-CT-11603: Could not stop debt collection proceeding.
- KT-CT-11604: Active debt collection proceeding does not exist for account.
- KT-CT-11605: Multiple active Proceeding's found for same agency and campaign on account.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Mutation
mutation CloseDcaProceeding($input: CloseDCAProceedingInputType!) {
closeDcaProceeding(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
dcaProceedingClosureStatus {
...DCAProceedingClosureStatusFragment
}
}
}
Variables
{
"input": CloseDCAProceedingInputType
}
Response
{
"data": {
"closeDcaProceeding": {
"possibleErrors": [PossibleErrorType],
"dcaProceedingClosureStatus": DCAProceedingClosureStatus
}
}
}
Mutation
mutation CloseLiveChat($input: CloseLiveChatInput!) {
closeLiveChat(input: $input) {
liveChat {
...InkLiveChatFragment
}
clientMutationId
}
}
Variables
{
"input": CloseLiveChatInput
}
Response
{
"data": {
"closeLiveChat": {
"liveChat": InkLiveChat,
"clientMutationId": "abc123"
}
}
}
closeOpenPrintBatch
Type: CloseOpenPrintBatch!
URL: https://api.oefr-kraken.energy/v1/graphql/
Close the Open Print Batch if any.
The possible errors that can be raised are:
- KT-CT-9010: Invalid data.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Return fields
Name | Description |
---|
Mutation
mutation CloseOpenPrintBatch {
closeOpenPrintBatch {
possibleErrors {
...PossibleErrorTypeFragment
}
printBatch {
...PrintBatchTypeFragment
}
}
}
Response
{
"data": {
"closeOpenPrintBatch": {
"possibleErrors": [PossibleErrorType],
"printBatch": PrintBatchType
}
}
}
collectDeposit
Type: CollectDeposit
URL: https://api.oefr-kraken.energy/v1/graphql/
Collect deposit for the given account.
The possible errors that can be raised are:
- KT-CT-4177: Unauthorized.
- KT-CT-5711: No collection is required.
- KT-CT-5712: Deposit agreement does not exist or has not been accepted.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Mutation
mutation CollectDeposit($input: CollectDepositInput!) {
collectDeposit(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
payment {
...CollectDepositOutputFragment
}
}
}
Variables
{
"input": CollectDepositInput
}
Response
{
"data": {
"collectDeposit": {
"possibleErrors": [PossibleErrorType],
"payment": CollectDepositOutput
}
}
}
collectPayment
Type: CollectPayment
URL: https://api.oefr-kraken.energy/v1/graphql/
Attempt to collect a one-off payment. If an instruction type is provided and there is an existing payment instruction, the payment can be collected immediately. A request to collect a payment at a future date can also be made, in which case the instruction input type is not necessary, but an instruction must exist at the specified collection date for the payment to be collected successfully.
The possible errors that can be raised are:
- KT-CT-3932: Invalid data.
- KT-CT-3820: Received both ledger ID and number.
- KT-CT-3821: Received neither ledger ID nor ledger number.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
|
Input fields for collecting a payment. |
Return fields
Name | Description |
---|
Mutation
mutation CollectPayment($input: CollectPaymentInput!) {
collectPayment(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
payment {
...AccountPaymentTypeFragment
}
}
}
Variables
{
"input": CollectPaymentInput
}
Response
{
"data": {
"collectPayment": {
"possibleErrors": [PossibleErrorType],
"payment": AccountPaymentType
}
}
}
commenceDcaProceeding
Type: CommenceDCAProceeding
URL: https://api.oefr-kraken.energy/v1/graphql/
Add commencement to an account.
The possible errors that can be raised are:
- KT-CT-11606: Debt Collection Agency cannot use campaign.
- KT-CT-11601: Cannot start collection proceeding, proceeding for this account already exists.
- KT-CT-11602: Could not find DCA with that name.
- KT-CT-11607: Invalid ledger number for debt collection proceeding.
- KT-CT-11608: Ledger does not belong to account.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Mutation
mutation CommenceDcaProceeding($input: CommenceDCAProceedingInputType!) {
commenceDcaProceeding(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
dcaProceedingCommencementStatus {
...DCAProceedingCommencementStatusFragment
}
}
}
Variables
{
"input": CommenceDCAProceedingInputType
}
Response
{
"data": {
"commenceDcaProceeding": {
"possibleErrors": [PossibleErrorType],
"dcaProceedingCommencementStatus": DCAProceedingCommencementStatus
}
}
}
completeAuthFlowForSmartFlexOnboarding
Type: CompleteAuthFlowForSmartFlexOnboarding
URL: https://api.oefr-kraken.energy/v1/graphql/
Complete the authentication flow to proceed in the onboarding journey.
The possible errors that can be raised are:
- KT-CT-1111: Unauthorized.
- KT-CT-4371: Onboarding wizard ID is invalid.
- KT-CT-4372: Simultaneous attempts to update onboarding process.
- KT-CT-4375: Incorrect or missing parameters for SmartFlex onboarding step.
- KT-CT-4376: Unable to complete onboarding step. Please try again later.
- KT-CT-4377: Invalid onboarding step ID.
- KT-CT-4378: Invalid input or step id. Please make sure you are using the correct step id and providing the expected input params.
- KT-CT-4379: Vehicle is not ready for a test charge.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Mutation
mutation CompleteAuthFlowForSmartFlexOnboarding($input: CompleteAuthFlowInput!) {
completeAuthFlowForSmartFlexOnboarding(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
wizard {
...SmartFlexOnboardingWizardFragment
}
}
}
Variables
{
"input": CompleteAuthFlowInput
}
Response
{
"data": {
"completeAuthFlowForSmartFlexOnboarding": {
"possibleErrors": [PossibleErrorType],
"wizard": SmartFlexOnboardingWizard
}
}
}
completeTeslaSetupVirtualKeyForSmartFlexOnboarding
Type: CompleteTeslaSetupVirtualKeyForSmartFlexOnboarding
URL: https://api.oefr-kraken.energy/v1/graphql/
Complete the Tesla virtual key setup onboarding step.
The possible errors that can be raised are:
- KT-CT-1111: Unauthorized.
- KT-CT-4371: Onboarding wizard ID is invalid.
- KT-CT-4372: Simultaneous attempts to update onboarding process.
- KT-CT-4375: Incorrect or missing parameters for SmartFlex onboarding step.
- KT-CT-4376: Unable to complete onboarding step. Please try again later.
- KT-CT-4377: Invalid onboarding step ID.
- KT-CT-4378: Invalid input or step id. Please make sure you are using the correct step id and providing the expected input params.
- KT-CT-4379: Vehicle is not ready for a test charge.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
Return fields
Name | Description |
---|
Mutation
mutation CompleteTeslaSetupVirtualKeyForSmartFlexOnboarding($input: CompleteSmartFlexOnboardingStepInput!) {
completeTeslaSetupVirtualKeyForSmartFlexOnboarding(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
wizard {
...SmartFlexOnboardingWizardFragment
}
}
}
Variables
{
"input": CompleteSmartFlexOnboardingStepInput
}
Response
{
"data": {
"completeTeslaSetupVirtualKeyForSmartFlexOnboarding": {
"possibleErrors": [PossibleErrorType],
"wizard": SmartFlexOnboardingWizard
}
}
}
completeUserActionForSmartFlexOnboarding
Type: CompleteUserActionRequiredForSmartFlexOnboarding
URL: https://api.oefr-kraken.energy/v1/graphql/
Complete the user action required step to proceed in the onboarding journey.
The possible errors that can be raised are:
- KT-CT-1111: Unauthorized.
- KT-CT-4371: Onboarding wizard ID is invalid.
- KT-CT-4372: Simultaneous attempts to update onboarding process.
- KT-CT-4375: Incorrect or missing parameters for SmartFlex onboarding step.
- KT-CT-4376: Unable to complete onboarding step. Please try again later.
- KT-CT-4377: Invalid onboarding step ID.
- KT-CT-4378: Invalid input or step id. Please make sure you are using the correct step id and providing the expected input params.
- KT-CT-4379: Vehicle is not ready for a test charge.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
Return fields
Name | Description |
---|
Mutation
mutation CompleteUserActionForSmartFlexOnboarding($input: CompleteSmartFlexOnboardingStepInput!) {
completeUserActionForSmartFlexOnboarding(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
wizard {
...SmartFlexOnboardingWizardFragment
}
}
}
Variables
{
"input": CompleteSmartFlexOnboardingStepInput
}
Response
{
"data": {
"completeUserActionForSmartFlexOnboarding": {
"possibleErrors": [PossibleErrorType],
"wizard": SmartFlexOnboardingWizard
}
}
}
computeEnergyLandscape
Type: ComputeEnergyLandscape
URL: https://api.oefr-kraken.energy/v1/graphql/
Compute the energy landscape for a prm and/or a pce.
The possible errors that can be raised are:
- KT-CT-4719: No supply point found for identifier provided.
- KT-FR-4915: The version is not supported or improperly configured.
- KT-FR-4916: The PRM and/or the PCE is needed to store the result.
- KT-FR-4917: A parameter is missing to compute the EAC. Please check the structure of the form.
- KT-FR-4918: The file containing the EAC has an error.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
|
Input fields for for checking the eligibility of meter points. |
Return fields
Name | Description |
---|
Mutation
mutation ComputeEnergyLandscape($input: ComputeEnergyLandscapeInput!) {
computeEnergyLandscape(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
energyLandscapeResult
energyLandscapeId
}
}
Variables
{
"input": ComputeEnergyLandscapeInput
}
Response
{
"data": {
"computeEnergyLandscape": {
"possibleErrors": [PossibleErrorType],
"energyLandscapeResult": "abc123" | 1 | 1.0 | true | ["abc123"] | AccountType,
"energyLandscapeId": 1
}
}
}
confirmDoubleOptIn
Type: ConfirmDoubleOptIn
URL: https://api.oefr-kraken.energy/v1/graphql/
Confirm a double opt in
The possible errors that can be raised are:
- KT-CT-9016: Consent management not enabled.
- KT-CT-9020: Invalid consent expiring token.
- KT-CT-9021: Consent expiring token not found.
- KT-CT-9022: Consent for given token already accepted.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Mutation
mutation ConfirmDoubleOptIn($input: ConfirmDoubleOptInInput) {
confirmDoubleOptIn(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
consent {
...ConsentTypeFragment
}
}
}
Variables
{
"input": ConfirmDoubleOptInInput
}
Response
{
"data": {
"confirmDoubleOptIn": {
"possibleErrors": [PossibleErrorType],
"consent": ConsentType
}
}
}
createAccountCharge
Type: CreateAccountCharge
URL: https://api.oefr-kraken.energy/v1/graphql/
Add charge to an account.
The possible errors that can be raised are:
- KT-CT-5211: The charge reason with the requested code is deprecated.
- KT-CT-5212: The charge reason with the requested code does not exist.
- KT-CT-5213: Invalid data.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
|
Input fields for creating an account charge. |
Return fields
Name | Description |
---|
Mutation
mutation CreateAccountCharge($input: CreateAccountChargeInput!) {
createAccountCharge(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
accountCharge {
...AccountChargeTypeFragment
}
}
}
Variables
{
"input": CreateAccountChargeInput
}
Response
{
"data": {
"createAccountCharge": {
"possibleErrors": [PossibleErrorType],
"accountCharge": AccountChargeType
}
}
}
createAccountCredit
Type: CreateAccountCredit
URL: https://api.oefr-kraken.energy/v1/graphql/
Add credit to an account.
The possible errors that can be raised are:
- KT-CT-5315: Invalid data.
- KT-CT-5314: Invalid data.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
|
Input fields for creating an account credit. |
Return fields
Name | Description |
---|
Mutation
mutation CreateAccountCredit($input: CreateAccountCreditInput!) {
createAccountCredit(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
accountCredit {
...AccountCreditTypeFragment
}
}
}
Variables
{
"input": CreateAccountCreditInput
}
Response
{
"data": {
"createAccountCredit": {
"possibleErrors": [PossibleErrorType],
"accountCredit": AccountCreditType
}
}
}
createAccountNote
Type: CreateAccountNote
URL: https://api.oefr-kraken.energy/v1/graphql/
Add a note to an account.
The possible errors that can be raised are:
- KT-CT-4123: Unauthorized.
- KT-CT-4180: Account note must be a valid string.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
|
Input variables needed for adding a note to an account. |
Return fields
Name | Description |
---|
Mutation
mutation CreateAccountNote($input: CreateAccountNoteInput!) {
createAccountNote(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
account {
...AccountTypeFragment
}
}
}
Variables
{
"input": CreateAccountNoteInput
}
Response
{
"data": {
"createAccountNote": {
"possibleErrors": [PossibleErrorType],
"account": AccountType
}
}
}
createAccountPaymentSchedule
Type: CreateAccountPaymentSchedule
URL: https://api.oefr-kraken.energy/v1/graphql/
Replace an existing payment schedule with a new one that updates either the payment amount or payment day.
The possible errors that can be raised are:
- KT-CT-1111: Unauthorized.
- KT-CT-3815: No active payment schedule found for this account.
- KT-CT-3822: Unauthorized.
- KT-CT-3923: Unauthorized.
- KT-CT-3941: Invalid data.
- KT-CT-3942: An unexpected error occurred.
- KT-CT-3947: An unexpected error occurred.
- KT-CT-3960: Invalid value for payment day.
- KT-CT-3961: Cannot update plan-associated payment schedule.
- KT-CT-3962: No new value provided to update payment schedule.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
Input fields for updating a payment schedule. |
Return fields
Name | Description |
---|
Mutation
mutation CreateAccountPaymentSchedule($input: CreateAccountPaymentScheduleInput!) {
createAccountPaymentSchedule(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
schedule {
...PaymentScheduleTypeFragment
}
}
}
Variables
{
"input": CreateAccountPaymentScheduleInput
}
Response
{
"data": {
"createAccountPaymentSchedule": {
"possibleErrors": [PossibleErrorType],
"schedule": PaymentScheduleType
}
}
}
createAccountReference
Type: CreateAccountReference
URL: https://api.oefr-kraken.energy/v1/graphql/
Create an account reference.
The possible errors that can be raised are:
- KT-CT-4123: Unauthorized.
- KT-CT-8310: Invalid data.
- KT-CT-8311: Invalid data.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
|
Input fields for creating an account reference. |
Return fields
Name | Description |
---|
Mutation
mutation CreateAccountReference($input: AccountReferenceInput!) {
createAccountReference(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
accountReference {
...AccountReferenceTypeFragment
}
}
}
Variables
{
"input": AccountReferenceInput
}
Response
{
"data": {
"createAccountReference": {
"possibleErrors": [PossibleErrorType],
"accountReference": AccountReferenceType
}
}
}
createAccountReminder
Type: CreateAccountReminder
URL: https://api.oefr-kraken.energy/v1/graphql/
Create an account reminder.
The possible errors that can be raised are:
- KT-CT-1401: Invalid data.
- KT-CT-1402: Unable to create account reminder.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
|
Input variables needed for creating an account reminder. |
Return fields
Name | Description |
---|
Mutation
mutation CreateAccountReminder($input: CreateAccountReminderInput!) {
createAccountReminder(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
accountReminder {
...AccountReminderFragment
}
}
}
Variables
{
"input": CreateAccountReminderInput
}
Response
{
"data": {
"createAccountReminder": {
"possibleErrors": [PossibleErrorType],
"accountReminder": AccountReminder
}
}
}
createAffiliateLink
Type: CreateAffiliateLink!
URL: https://api.oefr-kraken.energy/v1/graphql/
Create an affiliate link for a new sales agent.
The possible errors that can be raised are:
- KT-CT-7711: Invalid data.
- KT-CT-7713: Invalid data.
- KT-CT-7714: Invalid data.
- KT-CT-7715: Invalid data.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
|
Input fields for creating an affiliate link for an organisation |
Return fields
Name | Description |
---|
Mutation
mutation CreateAffiliateLink($input: CreateAffiliateLinkInputType!) {
createAffiliateLink(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
affiliateLink {
...AffiliateLinkTypeFragment
}
}
}
Variables
{
"input": CreateAffiliateLinkInputType
}
Response
{
"data": {
"createAffiliateLink": {
"possibleErrors": [PossibleErrorType],
"affiliateLink": AffiliateLinkType
}
}
}
createAffiliateOrganisation
Type: CreateAffiliateOrganisation!
URL: https://api.oefr-kraken.energy/v1/graphql/
Create an affiliate organisation.
The possible errors that can be raised are:
- KT-CT-7716: Invalid data.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
Input fields for creating an affiliate organisation |
Return fields
Name | Description |
---|
Mutation
mutation CreateAffiliateOrganisation($input: CreateAffiliateOrganisationInputType!) {
createAffiliateOrganisation(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
affiliateOrganisation {
...AffiliateOrganisationTypeFragment
}
}
}
Variables
{
"input": CreateAffiliateOrganisationInputType
}
Response
{
"data": {
"createAffiliateOrganisation": {
"possibleErrors": [PossibleErrorType],
"affiliateOrganisation": AffiliateOrganisationType
}
}
}
createAffiliateSession
Type: CreateAffiliateSession!
URL: https://api.oefr-kraken.energy/v1/graphql/
Create a session for an affiliate link.
Arguments
Name | Description |
---|---|
|
Input fields for creating a session for an affiliate link |
Return fields
Name | Description |
---|
Mutation
mutation CreateAffiliateSession($input: CreateAffiliateSessionInputType!) {
createAffiliateSession(input: $input) {
affiliateSession {
...AffiliateSessionTypeFragment
}
}
}
Variables
{
"input": CreateAffiliateSessionInputType
}
Response
{
"data": {
"createAffiliateSession": {
"affiliateSession": AffiliateSessionType
}
}
}
createApiCall
Type: CreateAPICall
URL: https://api.oefr-kraken.energy/v1/graphql/
Mutation to create a new APICall instance.
The possible errors that can be raised are:
- KT-CT-7803: Received an invalid apiExceptionId.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
|
Input fields for creating an API call. |
Return fields
Name | Description |
---|
Mutation
mutation CreateApiCall($input: CreateAPICallInput!) {
createApiCall(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
apiCall {
...APICallTypeFragment
}
}
}
Variables
{
"input": CreateAPICallInput
}
Response
{
"data": {
"createApiCall": {
"possibleErrors": [PossibleErrorType],
"apiCall": APICallType
}
}
}
createApiException
Type: CreateAPIException
URL: https://api.oefr-kraken.energy/v1/graphql/
Mutation to create a new APIException instance.
The possible errors that can be raised are:
- KT-CT-7801: Received an invalid operationsTeamId.
- KT-CT-7802: The external identifier already exists.
- KT-CT-7805: Too many tags associated with this API Exception.
- KT-CT-7806: Cannot create duplicate tags for the same API exception.
- KT-CT-7811: Received an invalid assignedUserId.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
|
Input fields for creating an API exception. |
Return fields
Name | Description |
---|
Mutation
mutation CreateApiException($input: CreateAPIExceptionInput!) {
createApiException(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
apiException {
...APIExceptionTypeFragment
}
}
}
Variables
{
"input": CreateAPIExceptionInput
}
Response
{
"data": {
"createApiException": {
"possibleErrors": [PossibleErrorType],
"apiException": APIExceptionType
}
}
}
createApiExceptionEvent
Type: CreateAPIExceptionEvent
URL: https://api.oefr-kraken.energy/v1/graphql/
Mutation to create a new APIExceptionEvent instance.
The possible errors that can be raised are:
- KT-CT-7803: Received an invalid apiExceptionId.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
|
Input fields for creating an API exception event. |
Return fields
Name | Description |
---|
Mutation
mutation CreateApiExceptionEvent($input: CreateAPIExceptionEventInput!) {
createApiExceptionEvent(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
apiExceptionEvent {
...APIExceptionEventTypeFragment
}
}
}
Variables
{
"input": CreateAPIExceptionEventInput
}
Response
{
"data": {
"createApiExceptionEvent": {
"possibleErrors": [PossibleErrorType],
"apiExceptionEvent": APIExceptionEventType
}
}
}
createApiExceptionNote
Type: CreateAPIExceptionNote
URL: https://api.oefr-kraken.energy/v1/graphql/
Mutation to create a new APIExceptionNote instance.
The possible errors that can be raised are:
- KT-CT-7803: Received an invalid apiExceptionId.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
|
Input fields for creating an API exception note. |
Return fields
Name | Description |
---|
Mutation
mutation CreateApiExceptionNote($input: CreateAPIExceptionNoteInput!) {
createApiExceptionNote(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
apiException {
...APIExceptionTypeFragment
}
}
}
Variables
{
"input": CreateAPIExceptionNoteInput
}
Response
{
"data": {
"createApiExceptionNote": {
"possibleErrors": [PossibleErrorType],
"apiException": APIExceptionType
}
}
}
createAudioRecording
Type: CreateAudioRecording!
URL: https://api.oefr-kraken.energy/v1/graphql/
Create an audio recording for an affiliate session.
The possible errors that can be raised are:
- KT-CT-7720: Invalid S3 key format.
- KT-CT-7721: Link not found.
- KT-CT-7722: Invalid input for audio recording upload.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
|
Input fields required to create an audio recording. |
Return fields
Name | Description |
---|
Mutation
mutation CreateAudioRecording($input: AudioRecordingInputType!) {
createAudioRecording(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
audioRecording {
...AudioRecordingTypeFragment
}
}
}
Variables
{
"input": AudioRecordingInputType
}
Response
{
"data": {
"createAudioRecording": {
"possibleErrors": [PossibleErrorType],
"audioRecording": AudioRecordingType
}
}
}
createBusiness
Type: CreateBusiness
URL: https://api.oefr-kraken.energy/v1/graphql/
Create a business.
The possible errors that can be raised are:
- KT-CT-1111: Unauthorized.
- KT-CT-11108: Invalid data.
- KT-CT-11109: Invalid data.
- KT-CT-11110: Invalid data.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
|
Input for creating a business. |
Return fields
Name | Description |
---|
Mutation
mutation CreateBusiness($input: CreateBusinessInput!) {
createBusiness(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
business {
...BusinessTypeFragment
}
}
}
Variables
{
"input": CreateBusinessInput
}
Response
{
"data": {
"createBusiness": {
"possibleErrors": [PossibleErrorType],
"business": BusinessType
}
}
}
createCallMetadata
Type: CreateCallMetadata
URL: https://api.oefr-kraken.energy/v1/graphql/
The possible errors that can be raised are:
- KT-CT-11802: Call not found.
- KT-CT-11806: Call metadata item key cannot be an empty string.
- KT-CT-11807: A call metadata item with this key already exists for this call.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Mutation
mutation CreateCallMetadata($input: CallMetadataInput!) {
createCallMetadata(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
call {
...CallInterfaceFragment
}
}
}
Variables
{
"input": CallMetadataInput
}
Response
{
"data": {
"createCallMetadata": {
"possibleErrors": [PossibleErrorType],
"call": CallInterface
}
}
}
createCampaignItems
Type: CreateCampaignItems
URL: https://api.oefr-kraken.energy/v1/graphql/
The possible errors that can be raised are:
- KT-CT-11501: Voice campaign not found.
- KT-CT-4178: No account found with given account number.
- KT-CT-11503: One or more campaign items are invalid and cannot be created.
- KT-CT-11504: The batch of campaign items is too large.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Mutation
mutation CreateCampaignItems($input: CreateCampaignItemsInput!) {
createCampaignItems(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
campaignItems {
...VoiceCampaignItemTypeFragment
}
batchIdentifier
}
}
Variables
{
"input": CreateCampaignItemsInput
}
Response
{
"data": {
"createCampaignItems": {
"possibleErrors": [PossibleErrorType],
"campaignItems": [VoiceCampaignItemType],
"batchIdentifier": "abc123"
}
}
}
createComplaint
Type: CreateComplaint
URL: https://api.oefr-kraken.energy/v1/graphql/
Create a complaint.
The possible errors that can be raised are:
- KT-CT-10801: Invalid data.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Mutation
mutation CreateComplaint($complaint: CreateComplaintInputType!) {
createComplaint(complaint: $complaint) {
possibleErrors {
...PossibleErrorTypeFragment
}
complaint {
...ComplaintTypeFragment
}
}
}
Variables
{
"complaint": CreateComplaintInputType
}
Response
{
"data": {
"createComplaint": {
"possibleErrors": [PossibleErrorType],
"complaint": ComplaintType
}
}
}
createContributionAgreement
Type: CreateContributionAgreement
URL: https://api.oefr-kraken.energy/v1/graphql/
Create a contribution agreement for an account.
The possible errors that can be raised are:
- KT-CT-4123: Unauthorized.
- KT-CT-9601: Invalid data.
- KT-CT-9602: Unable to create contribution agreement.
- KT-CT-9605: Contribution amount cannot be 0 or negative.
- KT-CT-9606: Scheme is not accepting contributions at this time.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
Input variables needed for creating a contribution agreement on an account. |
Return fields
Name | Description |
---|
Mutation
mutation CreateContributionAgreement($input: CreateContributionAgreementInput!) {
createContributionAgreement(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
contributionAgreement {
...ContributionAgreementTypeFragment
}
}
}
Variables
{
"input": CreateContributionAgreementInput
}
Response
{
"data": {
"createContributionAgreement": {
"possibleErrors": [PossibleErrorType],
"contributionAgreement": ContributionAgreementType
}
}
}
createCreditTransferPermission
Type: CreateCreditTransferPermission
URL: https://api.oefr-kraken.energy/v1/graphql/
Create a credit transfer permission.
The possible errors that can be raised are:
- KT-CT-3822: Unauthorized.
- KT-CT-3827: The ledger is not valid.
- KT-CT-3828: At least one of the provided ledgers must be a credit storage ledger.
- KT-CT-3829: The credit transfer permission already exists.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
Input fields to create a credit transfer permission. |
Return fields
Name | Description |
---|
Mutation
mutation CreateCreditTransferPermission($input: CreateCreditTransferPermissionInput!) {
createCreditTransferPermission(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
validFrom
}
}
Variables
{
"input": CreateCreditTransferPermissionInput
}
Response
{
"data": {
"createCreditTransferPermission": {
"possibleErrors": [PossibleErrorType],
"validFrom": "2020-01-01T00:00:00.000Z"
}
}
}
createCustomerFeedback
Type: CreateCustomerFeedback
URL: https://api.oefr-kraken.energy/v1/graphql/
Create unsubmitted customer feedback object.
The possible errors that can be raised are:
- KT-CT-5516: Invalid data.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Mutation
mutation CreateCustomerFeedback($input: CreateCustomerFeedbackInputType!) {
createCustomerFeedback(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
customerFeedback {
...CustomerFeedbackTypeFragment
}
}
}
Variables
{
"input": CreateCustomerFeedbackInputType
}
Response
{
"data": {
"createCustomerFeedback": {
"possibleErrors": [PossibleErrorType],
"customerFeedback": CustomerFeedbackType
}
}
}
createDepositAgreement
Type: CreateDepositAgreement
URL: https://api.oefr-kraken.energy/v1/graphql/
Create a new deposit agreement for the account if it needs one.
The possible errors that can be raised are:
- KT-CT-4177: Unauthorized.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Mutation
mutation CreateDepositAgreement($input: CreateDepositAgreementInput!) {
createDepositAgreement(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
depositAgreement {
...CreateDepositAgreementOutputFragment
}
}
}
Variables
{
"input": CreateDepositAgreementInput
}
Response
{
"data": {
"createDepositAgreement": {
"possibleErrors": [PossibleErrorType],
"depositAgreement": CreateDepositAgreementOutput
}
}
}
createExternalAccountEvent
Type: CreateExternalAccountEvent
URL: https://api.oefr-kraken.energy/v1/graphql/
Create an external account event.
The possible errors that can be raised are:
- KT-CT-7123: Unauthorized.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
|
Input fields for creating an external account event. |
Return fields
Name | Description |
---|
Mutation
mutation CreateExternalAccountEvent($input: CreateExternalAccountEventInput!) {
createExternalAccountEvent(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
event {
...ExternalAccountEventFragment
}
}
}
Variables
{
"input": CreateExternalAccountEventInput
}
Response
{
"data": {
"createExternalAccountEvent": {
"possibleErrors": [PossibleErrorType],
"event": ExternalAccountEvent
}
}
}
createExternalAccountUserEvent
Type: CreateExternalAccountUserEvent
URL: https://api.oefr-kraken.energy/v1/graphql/
Create an external account user event.
The possible errors that can be raised are:
- KT-CT-7123: Unauthorized.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
Input fields for creating an external account event. |
Return fields
Name | Description |
---|
Mutation
mutation CreateExternalAccountUserEvent($input: CreateExternalAccountUserEventInput!) {
createExternalAccountUserEvent(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
event {
...ExternalAccountUserEventFragment
}
}
}
Variables
{
"input": CreateExternalAccountUserEventInput
}
Response
{
"data": {
"createExternalAccountUserEvent": {
"possibleErrors": [PossibleErrorType],
"event": ExternalAccountUserEvent
}
}
}
createFormSubmission
Type: FormSubmissionOuput
URL: https://api.oefr-kraken.energy/v1/graphql/
Create a "form submission" entity. This is only meant to be used as a quick way of putting together a form and submit data for it, in the form of JSON - it is not expected that all form submissions will come through this path.
This field requires the Authorization
header to be set.
Mutation
mutation CreateFormSubmission($input: FormSubmissionInput!) {
createFormSubmission(input: $input) {
id
content
errors {
...SerializerFieldErrorsTypeFragment
}
}
}
Variables
{
"input": FormSubmissionInput
}
Response
{
"data": {
"createFormSubmission": {
"id": 1,
"content": {"key": "value"},
"errors": [SerializerFieldErrorsType]
}
}
}
createGoodsPurchase
Type: CreateGoodsPurchase
URL: https://api.oefr-kraken.energy/v1/graphql/
Create a goods purchase.
The possible errors that can be raised are:
- KT-CT-8206: Invalid data.
- KT-CT-1131: Unauthorized.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
|
Input fields for creating a purchase without a quote. |
Return fields
Name | Description |
---|
Mutation
mutation CreateGoodsPurchase($input: CreatePurchaseInput!) {
createGoodsPurchase(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
goodsPurchase {
...GoodsPurchaseFragment
}
}
}
Variables
{
"input": CreatePurchaseInput
}
Response
{
"data": {
"createGoodsPurchase": {
"possibleErrors": [PossibleErrorType],
"goodsPurchase": GoodsPurchase
}
}
}
createGoodsQuote
Type: CreateGoodsQuote
URL: https://api.oefr-kraken.energy/v1/graphql/
Create a goods quote.
The possible errors that can be raised are:
- KT-CT-8202: Invalid data.
- KT-CT-8205: Unable to create quote.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
|
Input fields for creating a goods quote. |
Return fields
Name | Description |
---|
Mutation
mutation CreateGoodsQuote($input: CreateGoodsQuoteInput!) {
createGoodsQuote(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
goodsQuote {
...GoodsQuoteFragment
}
}
}
Variables
{
"input": CreateGoodsQuoteInput
}
Response
{
"data": {
"createGoodsQuote": {
"possibleErrors": [PossibleErrorType],
"goodsQuote": GoodsQuote
}
}
}
createGoodsQuoteWithoutAccount
Type: CreateGoodsQuoteWithoutAccount
URL: https://api.oefr-kraken.energy/v1/graphql/
Create a goods quote without an account.
The possible errors that can be raised are:
- KT-CT-8202: Invalid data.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
Input fields for creating a goods quote without an existing account. |
Return fields
Name | Description |
---|
Mutation
mutation CreateGoodsQuoteWithoutAccount($input: CreateGoodsQuoteWithoutAccountInput!) {
createGoodsQuoteWithoutAccount(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
goodsQuote {
...GoodsQuoteFragment
}
}
}
Variables
{
"input": CreateGoodsQuoteWithoutAccountInput
}
Response
{
"data": {
"createGoodsQuoteWithoutAccount": {
"possibleErrors": [PossibleErrorType],
"goodsQuote": GoodsQuote
}
}
}
createInboundCall
Type: CreateInboundCall
URL: https://api.oefr-kraken.energy/v1/graphql/
The possible errors that can be raised are:
- KT-CT-11805: Invalid input for creating an inbound call.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Mutation
mutation CreateInboundCall($input: CreateInboundCallInput!) {
createInboundCall(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
call {
...InboundCallTypeFragment
}
}
}
Variables
{
"input": CreateInboundCallInput
}
Response
{
"data": {
"createInboundCall": {
"possibleErrors": [PossibleErrorType],
"call": InboundCallType
}
}
}
createInkInboundMessage
Type: CreateInkInboundMessagePayload
URL: https://api.oefr-kraken.energy/v1/graphql/
Register an Ink inbound message.
Mutation
mutation CreateInkInboundMessage($input: CreateInkInboundMessageInput!) {
createInkInboundMessage(input: $input) {
message
clientMutationId
}
}
Variables
{
"input": CreateInkInboundMessageInput
}
Response
{
"data": {
"createInkInboundMessage": {
"message": InkMessage,
"clientMutationId": "abc123"
}
}
}
createMetadata
Type: CreateMetadata
URL: https://api.oefr-kraken.energy/v1/graphql/
Create metadata on an object.
The possible errors that can be raised are:
- KT-CT-8412: Invalid data.
- KT-CT-8414: Invalid data.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
|
Input fields for creating metadata. |
Return fields
Name | Description |
---|
Mutation
mutation CreateMetadata($input: MetadataInput!) {
createMetadata(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
metadata {
...MetadataFragment
}
}
}
Variables
{
"input": MetadataInput
}
Response
{
"data": {
"createMetadata": {
"possibleErrors": [PossibleErrorType],
"metadata": Metadata
}
}
}
createOfferGroupForQuoting
Type: CreateOfferGroupForQuoting
URL: https://api.oefr-kraken.energy/v1/graphql/
Create a quoting Offer Group.
The possible errors that can be raised are:
- KT-CT-12401: Unable to create offer group.
- KT-CT-1113: Disabled GraphQL field requested.
Arguments
Name | Description |
---|---|
|
Input fields for creating an offer group from a list of offers. |
Return fields
Name | Description |
---|
Mutation
mutation CreateOfferGroupForQuoting($input: CreateOfferGroupForQuotingInput!) {
createOfferGroupForQuoting(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
offerGroup {
...OfferGroupTypeFragment
}
}
}
Variables
{
"input": CreateOfferGroupForQuotingInput
}
Response
{
"data": {
"createOfferGroupForQuoting": {
"possibleErrors": [PossibleErrorType],
"offerGroup": OfferGroupType
}
}
}
createOpportunity
Type: CreateOpportunity
URL: https://api.oefr-kraken.energy/v1/graphql/
Create an opportunity with the provided details.
The possible errors that can be raised are:
- KT-CT-8912: Funnel not found.
- KT-CT-8919: Funnel initial stage not set.
- KT-CT-8911: Unable to create opportunity.
- KT-CT-8907: Lead not found.
- KT-CT-8901: Unable to create lead.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
|
Input fields for creating an opportunity. |
Return fields
Name | Description |
---|
Mutation
mutation CreateOpportunity($input: CreateOpportunityInput!) {
createOpportunity(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
opportunityNumber
dateOfCreation
stage
funnelCode
}
}
Variables
{
"input": CreateOpportunityInput
}
Response
{
"data": {
"createOpportunity": {
"possibleErrors": [PossibleErrorType],
"opportunityNumber": "abc123",
"dateOfCreation": "2020-01-01T00:00:00.000Z",
"stage": "abc123",
"funnelCode": "abc123"
}
}
}
createOrUpdateLoyaltyCard
Type: CreateOrUpdateLoyaltyCardMutation
URL: https://api.oefr-kraken.energy/v1/graphql/
Create or update a loyalty card for the given account user.
The possible errors that can be raised are:
- KT-CT-5412: No account user exists with the given id.
- KT-CT-8610: Invalid data.
- KT-CT-8611: Invalid data.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
|
Input fields for creating or updating a loyalty card. |
Return fields
Name | Description |
---|
Mutation
mutation CreateOrUpdateLoyaltyCard($input: CreateOrUpdateLoyaltyCardInput!) {
createOrUpdateLoyaltyCard(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
loyaltyCard {
...LoyaltyCardTypeFragment
}
}
}
Variables
{
"input": CreateOrUpdateLoyaltyCardInput
}
Response
{
"data": {
"createOrUpdateLoyaltyCard": {
"possibleErrors": [PossibleErrorType],
"loyaltyCard": LoyaltyCardType
}
}
}
createPortfolio
Type: CreatePortfolio
URL: https://api.oefr-kraken.energy/v1/graphql/
Mutation to create a new Portfolio instance.
The possible errors that can be raised are:
- KT-CT-9402: Received an invalid brandCode.
- KT-CT-9401: Received an invalid operationsTeamId.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
|
Input fields for creating a portfolio. |
Return fields
Name | Description |
---|
Mutation
mutation CreatePortfolio($input: CreatePortfolioInput) {
createPortfolio(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
portfolio {
...PortfolioTypeFragment
}
}
}
Variables
{
"input": CreatePortfolioInput
}
Response
{
"data": {
"createPortfolio": {
"possibleErrors": [PossibleErrorType],
"portfolio": PortfolioType
}
}
}
createPortfolioUserRole
Type: CreatePortfolioUserRole
URL: https://api.oefr-kraken.energy/v1/graphql/
Mutation to create a new portfolio user role. This will effectively link the user to the portfolio giving them all the permissions enabled for the specific role.
The possible errors that can be raised are:
- KT-CT-9403: Received an invalid portfolioId.
- KT-CT-9404: Received an invalid accountUserId.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
|
Input fields for connecting a user to a portfolio. |
Return fields
Name | Description |
---|
Mutation
mutation CreatePortfolioUserRole($input: CreatePortfolioUserRoleInput) {
createPortfolioUserRole(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
portfolioUserRole {
...PortfolioUserRoleTypeFragment
}
}
}
Variables
{
"input": CreatePortfolioUserRoleInput
}
Response
{
"data": {
"createPortfolioUserRole": {
"possibleErrors": [PossibleErrorType],
"portfolioUserRole": PortfolioUserRoleType
}
}
}
createPostEvents
Type: CreatePostEvents
URL: https://api.oefr-kraken.energy/v1/graphql/
Create post delivery events from external vendors.
The possible errors that can be raised are:
- KT-CT-9907: Post events batch size exceeded.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
|
Batch of post events to create. |
Return fields
Name | Description |
---|
Mutation
mutation CreatePostEvents($input: CreatePostEventsInput!) {
createPostEvents(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
createdEventsCount
}
}
Variables
{
"input": CreatePostEventsInput
}
Response
{
"data": {
"createPostEvents": {
"possibleErrors": [PossibleErrorType],
"createdEventsCount": 1
}
}
}
createProduct
Type: CreateProductOutput!
URL: https://api.oefr-kraken.energy/v1/graphql/
Create a new product.
The possible errors that can be raised are:
- KT-CT-12003: Specified product brand does not exist.
- KT-CT-12004: Invalid product tag type.
- KT-CT-12005: A selection of a terms and conditions type does not exist.
- KT-CT-12006: Provided product characteristic overrides are not in the correct format.
- KT-CT-12007: Unable to create product.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Mutation
mutation CreateProduct($input: CreateProductInput!) {
createProduct(input: $input) {
product {
...SupplyProductTypeFragment
}
}
}
Variables
{
"input": CreateProductInput
}
Response
{
"data": {
"createProduct": {
"product": SupplyProductType
}
}
}
createQuoteForAccount
Type: CreateQuoteForAccount
URL: https://api.oefr-kraken.energy/v1/graphql/
Create a quote for switching product.
The possible errors that can be raised are:
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
- KT-CT-4616: Unable to create a quote.
- KT-CT-4631: Unable to quote for the chosen market.
- KT-CT-4645: No supply point found belonging to the account for the provided identifier.
- KT-CT-4924: Unauthorized.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Mutation
mutation CreateQuoteForAccount($input: CreateQuoteForAccountInput!) {
createQuoteForAccount(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
quoteRequest {
...MarketSupplyQuoteRequestTypeFragment
}
}
}
Variables
{
"input": CreateQuoteForAccountInput
}
Response
{
"data": {
"createQuoteForAccount": {
"possibleErrors": [PossibleErrorType],
"quoteRequest": MarketSupplyQuoteRequestType
}
}
}
createReferral
Type: CreateReferral
URL: https://api.oefr-kraken.energy/v1/graphql/
Create an account referral using an email address, personal link or code.This is for customers to refer other customers so it only works with friend referrals and not partner referrals.
The possible errors that can be raised are:
- KT-CT-6723: Unauthorized.
- KT-CT-6710: Unable to create referral.
- KT-CT-6711: Accounts may not self-refer.
- KT-CT-6713: Referring and referred account brands do not match.
- KT-CT-6712: Invalid reference.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
|
Input fields for creating a referral. |
Return fields
Name | Description |
---|
Mutation
mutation CreateReferral($input: CreateReferralInput!) {
createReferral(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
referredAccountRewardAmount
}
}
Variables
{
"input": CreateReferralInput
}
Response
{
"data": {
"createReferral": {
"possibleErrors": [PossibleErrorType],
"referredAccountRewardAmount": 1
}
}
}
createReminder
Type: CreateReminder
URL: https://api.oefr-kraken.energy/v1/graphql/
Create an account reminder.
The possible errors that can be raised are:
- KT-CT-1401: Invalid data.
- KT-CT-1402: Unable to create account reminder.
- KT-CT-1403: Missing user or team assignee.
- KT-CT-1404: This reminder type is deprecated.
- KT-CT-1405: Both user and team assignee provided.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
|
Input variables needed for creating an account reminder. |
Return fields
Name | Description |
---|
Mutation
mutation CreateReminder($input: CreateReminderInput!) {
createReminder(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
reminder {
...ReminderFragment
}
}
}
Variables
{
"input": CreateReminderInput
}
Response
{
"data": {
"createReminder": {
"possibleErrors": [PossibleErrorType],
"reminder": Reminder
}
}
}
createScheduledTransactions
Type: CreateScheduledTransactions
URL: https://api.oefr-kraken.energy/v1/graphql/
Create scheduled transactions.
The possible errors that can be raised are:
- KT-CT-3821: Received neither ledger ID nor ledger number.
- KT-CT-3830: Invalid action.
- KT-CT-3831: Invalid data.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
Input fields to create scheduled transactions. |
Return fields
Name | Description |
---|
Mutation
mutation CreateScheduledTransactions($input: [CreateScheduledTransactionsInput]!) {
createScheduledTransactions(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
scheduledTransactions {
...ScheduledTransactionTypeFragment
}
}
}
Variables
{
"input": CreateScheduledTransactionsInput
}
Response
{
"data": {
"createScheduledTransactions": {
"possibleErrors": [PossibleErrorType],
"scheduledTransactions": [ScheduledTransactionType]
}
}
}
createShellAccount
Type: CreateShellAccountPayload
URL: https://api.oefr-kraken.energy/v1/graphql/
Create a shell/payment account.
Mutation
mutation CreateShellAccount($input: CreateShellAccountInput!) {
createShellAccount(input: $input) {
portfolioNumber
givenName
familyName
billingName
email
mobile
landline
brand
dateOfBirth
billingAddressLine1
billingAddressLine2
billingAddressLine3
billingAddressLine4
billingAddressLine5
billingPostcode
billingRichAddress
billingPeriodLength
billingPeriodMultiplier
billingPeriodDay
billingPeriodMonth
isBusinessAccount
companyName
companyNumber
businessType
password
passwordUpdateToken
urn
errors {
...ErrorTypeFragment
}
account {
...AccountInterfaceFragment
}
clientMutationId
}
}
Variables
{
"input": CreateShellAccountInput
}
Response
{
"data": {
"createShellAccount": {
"portfolioNumber": "abc123",
"givenName": "abc123",
"familyName": "abc123",
"billingName": "abc123",
"email": "abc123",
"mobile": "abc123",
"landline": "abc123",
"brand": "abc123",
"dateOfBirth": "2020-01-01",
"billingAddressLine1": "abc123",
"billingAddressLine2": "abc123",
"billingAddressLine3": "abc123",
"billingAddressLine4": "abc123",
"billingAddressLine5": "abc123",
"billingPostcode": "abc123",
"billingRichAddress": "abc123",
"billingPeriodLength": "abc123",
"billingPeriodMultiplier": 1,
"billingPeriodDay": 1,
"billingPeriodMonth": 1,
"isBusinessAccount": true,
"companyName": "abc123",
"companyNumber": "abc123",
"businessType": "abc123",
"password": "abc123",
"passwordUpdateToken": "abc123",
"urn": "abc123",
"errors": [ErrorType],
"account": AccountInterface,
"clientMutationId": "abc123"
}
}
}
createSourceFundRequest
Type: CreateSourceFundRequest
URL: https://api.oefr-kraken.energy/v1/graphql/
Create a source fund request for a given agreement.
The possible errors that can be raised are:
- KT-CT-3820: Received both ledger ID and number.
- KT-CT-3821: Received neither ledger ID nor ledger number.
- KT-CT-3822: Unauthorized.
- KT-CT-3823: Unauthorized.
- KT-FR-3911: There was a problem while creating the source fund request.
- KT-FR-3912: Invalid input provided for source fund request creation.
- KT-FR-3913: The source fund request hasn't been allowed.
- KT-CT-1113: Disabled GraphQL field requested.
Arguments
Name | Description |
---|---|
|
Input fields for creating a source fund request for a given agreement. |
Return fields
Name | Description |
---|
Mutation
mutation CreateSourceFundRequest($input: CreateSourceFundRequestInput!) {
createSourceFundRequest(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
sourceFundRequest {
...SourceFundRequestFragment
}
}
}
Variables
{
"input": CreateSourceFundRequestInput
}
Response
{
"data": {
"createSourceFundRequest": {
"possibleErrors": [PossibleErrorType],
"sourceFundRequest": SourceFundRequest
}
}
}
deauthenticateDevice
Type: DeauthenticateDevice
URL: https://api.oefr-kraken.energy/v1/graphql/
De-authenticate a device.
The possible errors that can be raised are:
- KT-CT-4301: Unable to find device for given account.
- KT-CT-4350: Unable to de-authenticate device.
- KT-CT-4352: This device cannot currently be de-authenticated.
- KT-CT-1113: Disabled GraphQL field requested.
Mutation
mutation DeauthenticateDevice($input: DeAuthenticationInput) {
deauthenticateDevice(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
krakenflexDevice {
...DeviceDetailsTypeFragment
}
}
}
Variables
{
"input": DeAuthenticationInput
}
Response
{
"data": {
"deauthenticateDevice": {
"possibleErrors": [PossibleErrorType],
"krakenflexDevice": DeviceDetailsType
}
}
}
deauthenticateFlexDevice
Type: DeauthenticateFlexDevice
URL: https://api.oefr-kraken.energy/v1/graphql/
De-authenticate a device by device id.
The possible errors that can be raised are:
- KT-CT-4350: Unable to de-authenticate device.
- KT-CT-4352: This device cannot currently be de-authenticated.
- KT-CT-1113: Disabled GraphQL field requested.
Mutation
mutation DeauthenticateFlexDevice($input: DeauthenticateFlexDeviceInput) {
deauthenticateFlexDevice(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
krakenflexDevice {
...DeviceDetailsTypeFragment
}
}
}
Variables
{
"input": DeauthenticateFlexDeviceInput
}
Response
{
"data": {
"deauthenticateFlexDevice": {
"possibleErrors": [PossibleErrorType],
"krakenflexDevice": DeviceDetailsType
}
}
}
deductLoyaltyPoints
Type: DeductLoyaltyPoints
URL: https://api.oefr-kraken.energy/v1/graphql/
Deduct the passed number of Loyalty Points from the account.
The possible errors that can be raised are:
- KT-CT-1111: Unauthorized.
- KT-CT-5420: Unauthorized.
- KT-CT-9211: Invalid reason for loyalty points award.
- KT-CT-9219: Loyalty points user not found.
- KT-CT-9204: Negative or zero points set.
- KT-CT-9205: Insufficient Loyalty Points.
- KT-CT-9208: Invalid posted at datetime.
- KT-CT-9221: Idempotency key already used on ledger entry.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
|
Input fields for deducting Loyalty Points. |
Return fields
Name | Description |
---|
Mutation
mutation DeductLoyaltyPoints($input: DeductLoyaltyPointsInput!) {
deductLoyaltyPoints(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
pointsDeducted
ledgerEntry {
...LoyaltyPointLedgerEntryTypeFragment
}
}
}
Variables
{
"input": DeductLoyaltyPointsInput
}
Response
{
"data": {
"deductLoyaltyPoints": {
"possibleErrors": [PossibleErrorType],
"pointsDeducted": 1,
"ledgerEntry": LoyaltyPointLedgerEntryType
}
}
}
deleteAccountReference
Type: DeleteAccountReference
URL: https://api.oefr-kraken.energy/v1/graphql/
Delete an account reference.
The possible errors that can be raised are:
- KT-CT-4123: Unauthorized.
- KT-CT-8310: Invalid data.
- KT-CT-8312: Invalid data.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
|
Input fields for removing an account reference. |
Return fields
Name | Description |
---|
Mutation
mutation DeleteAccountReference($input: DeleteAccountReferenceInput!) {
deleteAccountReference(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
accountReference {
...DeleteAccountReferenceTypeFragment
}
}
}
Variables
{
"input": DeleteAccountReferenceInput
}
Response
{
"data": {
"deleteAccountReference": {
"possibleErrors": [PossibleErrorType],
"accountReference": DeleteAccountReferenceType
}
}
}
deleteBoostCharge
Type: DeleteBoostCharge
URL: https://api.oefr-kraken.energy/v1/graphql/
Stop any active boost charging.
The possible errors that can be raised are:
- KT-CT-4301: Unable to find device for given account.
- KT-CT-4354: Unable to cancel boost charge.
- KT-CT-1113: Disabled GraphQL field requested.
Mutation
mutation DeleteBoostCharge($input: DeleteBoostChargeInput) {
deleteBoostCharge(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
krakenflexDevice {
...KrakenFlexDeviceTypeFragment
}
}
}
Variables
{
"input": DeleteBoostChargeInput
}
Response
{
"data": {
"deleteBoostCharge": {
"possibleErrors": [PossibleErrorType],
"krakenflexDevice": KrakenFlexDeviceType
}
}
}
deletePushNotificationBinding
Type: DeletePushNotificationBinding
URL: https://api.oefr-kraken.energy/v1/graphql/
Delete a device token used for push notifications.
This field requires the Authorization
header to be set.
The possible errors that can be raised are:
- KT-CT-5411: Invalid token or no push notification binding found for the given account user.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
Input fields for deleting a push notification binding. |
Return fields
Name | Description |
---|
Mutation
mutation DeletePushNotificationBinding($input: DeletePushNotificationBindingInput!) {
deletePushNotificationBinding(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
status
}
}
Variables
{
"input": DeletePushNotificationBindingInput
}
Response
{
"data": {
"deletePushNotificationBinding": {
"possibleErrors": [PossibleErrorType],
"status": "SUCCESSFUL"
}
}
}
deviceRegistration
Type: DeviceRegistration
URL: https://api.oefr-kraken.energy/v1/graphql/
Register a device (EV, battery or heat pump) for smart control.
The possible errors that can be raised are:
- KT-CT-4324: Device already registered error.
- KT-CT-4321: Serializer validation error.
- KT-CT-4312: Unable to register device.
- KT-CT-4363: No capable devices found.
- KT-CT-4364: Multiple devices found.
- KT-CT-1113: Disabled GraphQL field requested.
Mutation
mutation DeviceRegistration($input: DeviceRegistrationInput) {
deviceRegistration(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
registeredDeviceIds
}
}
Variables
{
"input": DeviceRegistrationInput
}
Response
{
"data": {
"deviceRegistration": {
"possibleErrors": [PossibleErrorType],
"registeredDeviceIds": ["abc123"]
}
}
}
endContributionAgreement
Type: EndContributionAgreement
URL: https://api.oefr-kraken.energy/v1/graphql/
End a contribution agreement for an account.
The possible errors that can be raised are:
- KT-CT-9603: Unable to find contribution agreement.
- KT-CT-4123: Unauthorized.
- KT-CT-9604: Unable to end contribution agreement.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
|
Input variables needed for ending a contribution agreement on an account. |
Return fields
Name | Description |
---|
Mutation
mutation EndContributionAgreement($input: EndContributionAgreementInput!) {
endContributionAgreement(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
contributionAgreement {
...ContributionAgreementTypeFragment
}
}
}
Variables
{
"input": EndContributionAgreementInput
}
Response
{
"data": {
"endContributionAgreement": {
"possibleErrors": [PossibleErrorType],
"contributionAgreement": ContributionAgreementType
}
}
}
enqueueInboundCall
Type: EnqueueInboundCall
URL: https://api.oefr-kraken.energy/v1/graphql/
The possible errors that can be raised are:
- KT-CT-11802: Call not found.
- KT-CT-11803: Unable to enqueue the call.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Mutation
mutation EnqueueInboundCall($input: EnqueueInboundCallInput!) {
enqueueInboundCall(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
call {
...InboundCallTypeFragment
}
}
}
Variables
{
"input": EnqueueInboundCallInput
}
Response
{
"data": {
"enqueueInboundCall": {
"possibleErrors": [PossibleErrorType],
"call": InboundCallType
}
}
}
enrollAccountInLoyaltyProgram
Type: EnrollAccountInLoyaltyProgram
URL: https://api.oefr-kraken.energy/v1/graphql/
Enroll users account in Loyalty program.
The possible errors that can be raised are:
- KT-CT-1111: Unauthorized.
- KT-CT-9213: ineligible loyalty points enrollment.
- KT-CT-9210: Unhandled Loyalty Points exception.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
The account number to enroll in the loyalty program. |
Return fields
Name | Description |
---|
Mutation
mutation EnrollAccountInLoyaltyProgram($input: EnrollAccountInLoyaltyProgramInput!) {
enrollAccountInLoyaltyProgram(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
outcome {
...EnrollAccountInLoyaltyProgramOutcomeFragment
}
}
}
Variables
{
"input": EnrollAccountInLoyaltyProgramInput
}
Response
{
"data": {
"enrollAccountInLoyaltyProgram": {
"possibleErrors": [PossibleErrorType],
"outcome": EnrollAccountInLoyaltyProgramOutcome
}
}
}
enrollFanClubAccount
Type: EnrollFanClubAccount
URL: https://api.oefr-kraken.energy/v1/graphql/
Enroll account up to Fan Club.
The possible errors that can be raised are:
- KT-CT-4177: Unauthorized.
- KT-CT-8104: Account already enrolled.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
|
Input fields for joining the Fan Club. |
Return fields
Name | Description |
---|
Mutation
mutation EnrollFanClubAccount($input: JoinFanClubInput!) {
enrollFanClubAccount(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
enrollmentOutput {
...EnrollFanClubAccountOutputTypeFragment
}
}
}
Variables
{
"input": JoinFanClubInput
}
Response
{
"data": {
"enrollFanClubAccount": {
"possibleErrors": [PossibleErrorType],
"enrollmentOutput": EnrollFanClubAccountOutputType
}
}
}
enrollment
Type: EnrollmentInitiated!
URL: https://api.oefr-kraken.energy/v1/graphql/
Initiate an enrollment for an account and a set of supply points.
The possible errors that can be raised are:
- KT-CT-1602: Serializer validation error.
- KT-CT-4412: The supplied address is not valid.
- KT-CT-4501: Unauthorized.
- KT-CT-7719: Session not found.
- KT-CT-10312: Mutation not enabled in this environment.
- KT-CT-10313: Failed to enroll account.
- KT-CT-10314: This supply point is already on supply.
- KT-CT-10315: Unable to begin enrollment journey due to invalid data.
- KT-CT-6622: Unauthorized.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
|
The Enrollment Input data for the Join Supplier. |
Return fields
Name | Description |
---|
Mutation
mutation Enrollment($input: EnrollmentInput!) {
enrollment(input: $input) {
enrollmentProcesses
message
}
}
Variables
{
"input": EnrollmentInput
}
Response
{
"data": {
"enrollment": {
"enrollmentProcesses": EnrollmentProcess,
"message": "abc123"
}
}
}
fanClubDiscountNotification
Type: FanClubDiscountNotification
URL: https://api.oefr-kraken.energy/v1/graphql/
Send notification of likely Fan Club discount.
The possible errors that can be raised are:
- KT-CT-8106: No catchments provided.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
Input fields for sending Fan Club discount notifications. |
Return fields
Name | Description |
---|
Mutation
mutation FanClubDiscountNotification($input: FanClubDiscountNotificationInput!) {
fanClubDiscountNotification(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
success
}
}
Variables
{
"input": FanClubDiscountNotificationInput
}
Response
{
"data": {
"fanClubDiscountNotification": {
"possibleErrors": [PossibleErrorType],
"success": true
}
}
}
fanClubNonOctopusCustomerComms
Type: FanClubNonOctopusCustomerComms
URL: https://api.oefr-kraken.energy/v1/graphql/
Send comms for Fan Club sign-ups from non-Octopus customers.
The possible errors that can be raised are:
- KT-CT-8107: Invalid eligibility status.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
Input fields for sending comms to non-Octopus users. |
Return fields
Name | Description |
---|
Mutation
mutation FanClubNonOctopusCustomerComms($input: FanClubNonOctopusCustomerCommsInput!) {
fanClubNonOctopusCustomerComms(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
success
}
}
Variables
{
"input": FanClubNonOctopusCustomerCommsInput
}
Response
{
"data": {
"fanClubNonOctopusCustomerComms": {
"possibleErrors": [PossibleErrorType],
"success": true
}
}
}
fetchGeneratePaymentFingerprint
Type: FetchGeneratePaymentFingerprint
URL: https://api.oefr-kraken.energy/v1/graphql/
Fetch or generate payment fingerprint from vendor.
The possible errors that can be raised are:
- KT-CT-12101: Payment instruction not found.
- KT-CT-12102: Payment vendor not supported.
- KT-CT-12103: Missing payment metadata from vendor.
- KT-CT-12104: Unable to fetch or generate payment fingerprint.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
Return fields
Name | Description |
---|
Mutation
mutation FetchGeneratePaymentFingerprint($input: FetchGeneratePaymentFingerprintInput!) {
fetchGeneratePaymentFingerprint(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
fingerprint
vendor
}
}
Variables
{
"input": FetchGeneratePaymentFingerprintInput
}
Response
{
"data": {
"fetchGeneratePaymentFingerprint": {
"possibleErrors": [PossibleErrorType],
"fingerprint": "abc123",
"vendor": "abc123"
}
}
}
forceReauthentication
Type: ForceReauthentication
URL: https://api.oefr-kraken.energy/v1/graphql/
Force users of Kraken Tokens and refresh tokens issued to the viewer to reauthenticate.
Calling this mutation will cause all Kraken Tokens and refresh tokens issued to the authenticated viewer before the mutation was called to become invalid.
Arguments
Name | Description |
---|---|
|
Input object argument to the force-reauthentication mutation. |
Return fields
Name | Description |
---|
Mutation
mutation ForceReauthentication($input: ForceReauthenticationInput!) {
forceReauthentication(input: $input) {
tokensInvalidated
effectiveAt
}
}
Variables
{
"input": ForceReauthenticationInput
}
Response
{
"data": {
"forceReauthentication": {
"tokensInvalidated": true,
"effectiveAt": "2020-01-01T00:00:00.000Z"
}
}
}
generateAffiliatesAudioRecordingPreSignedUrl
Type: GenerateAffiliatesAudioRecordingPreSignedUrl!
URL: https://api.oefr-kraken.energy/v1/graphql/
Generate a pre signed url for uploading a file for use with affiliates.
Arguments
Name | Description |
---|---|
Input fields for creating a pre-signed URL for uploading an audio file to S3. |
Return fields
Name | Description |
---|
Mutation
mutation GenerateAffiliatesAudioRecordingPreSignedUrl($input: GenerateAffiliatesAudioRecordingPreSignedUrlInput!) {
generateAffiliatesAudioRecordingPreSignedUrl(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
affiliatesAudioRecordingPreSignedUrl {
...AffiliateAudioRecordingPresignedPostTypeFragment
}
}
}
Variables
{
"input": GenerateAffiliatesAudioRecordingPreSignedUrlInput
}
Response
{
"data": {
"generateAffiliatesAudioRecordingPreSignedUrl": {
"possibleErrors": [PossibleErrorType],
"affiliatesAudioRecordingPreSignedUrl": AffiliateAudioRecordingPresignedPostType
}
}
}
generateInkPresignedUrl
Type: GenerateInkPresignedUrl
URL: https://api.oefr-kraken.energy/v1/graphql/
The possible errors that can be raised are:
- KT-CT-7620: Channel not supported.
- KT-CT-7618: Unable to process message.
- KT-CT-7624: Error when generating the presigned URL.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Mutation
mutation GenerateInkPresignedUrl($input: GenerateInkPresignedUrlInput) {
generateInkPresignedUrl(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
uploadUrl
key
fields
}
}
Variables
{
"input": GenerateInkPresignedUrlInput
}
Response
{
"data": {
"generateInkPresignedUrl": {
"possibleErrors": [PossibleErrorType],
"uploadUrl": "abc123",
"key": "abc123",
"fields": {"key": "value"}
}
}
}
generatePreSignedToken
Type: GeneratePreSignedToken
URL: https://api.oefr-kraken.energy/v1/graphql/
Generate a pre-signed token with a set expiry time.
The possible errors that can be raised are:
- KT-CT-1128: Unauthorized.
- KT-CT-1120: The Kraken Token has expired.
- KT-CT-1131: Unauthorized.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
|
|
|
The number of days that the token will be available for authentication (From now on). |
|
Define (and limit) the scope of the token. |
Return fields
Name | Description |
---|
Mutation
mutation GeneratePreSignedToken(
$email: String!,
$numberOfDaysAllowed: Int!,
$scope: PreSignedTokenScope!
) {
generatePreSignedToken(
email: $email,
numberOfDaysAllowed: $numberOfDaysAllowed,
scope: $scope
) {
possibleErrors {
...PossibleErrorTypeFragment
}
token
tokenExpiryDatetime
scope
}
}
Variables
{
"email": "abc123",
"numberOfDaysAllowed": 1,
"scope": "SUBMIT_METER_READINGS"
}
Response
{
"data": {
"generatePreSignedToken": {
"possibleErrors": [PossibleErrorType],
"token": "abc123",
"tokenExpiryDatetime": "2020-01-01T00:00:00.000Z",
"scope": "SUBMIT_METER_READINGS"
}
}
}
getEmbeddedSecretForNewPaymentInstruction
Type: GetEmbeddedSecretForNewPaymentInstruction
URL: https://api.oefr-kraken.energy/v1/graphql/
Get the client secret needed to create a new payment instruction using an embedded form.
The possible errors that can be raised are:
- KT-CT-4177: Unauthorized.
- KT-CT-3822: Unauthorized.
- KT-CT-3820: Received both ledger ID and number.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
Input fields for getting the client secret for an embedded new card payment method form. |
Return fields
Name | Description |
---|
Mutation
mutation GetEmbeddedSecretForNewPaymentInstruction($input: GetEmbeddedSecretForNewPaymentInstructionInput!) {
getEmbeddedSecretForNewPaymentInstruction(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
secretKey
}
}
Variables
{
"input": GetEmbeddedSecretForNewPaymentInstructionInput
}
Response
{
"data": {
"getEmbeddedSecretForNewPaymentInstruction": {
"possibleErrors": [PossibleErrorType],
"secretKey": "abc123"
}
}
}
getEmbeddedSecretForNewPaymentInstructionWithoutAccount
Type: GetEmbeddedSecretForNewPaymentInstructionWithoutAccount
URL: https://api.oefr-kraken.energy/v1/graphql/
Get the client secret needed to create a new payment instruction using an embedded form without tying it to a customer.
Arguments
Name | Description |
---|---|
|
Input fields for getting the client secret for an embedded new card payment method form. |
Return fields
Name | Description |
---|
Mutation
mutation GetEmbeddedSecretForNewPaymentInstructionWithoutAccount($input: GetEmbeddedSecretForNewPaymentInstructionWithoutAccountInput!) {
getEmbeddedSecretForNewPaymentInstructionWithoutAccount(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
secretKey
}
}
Variables
Response
{
"data": {
"getEmbeddedSecretForNewPaymentInstructionWithoutAccount": {
"possibleErrors": [PossibleErrorType],
"secretKey": "abc123"
}
}
}
getHostedUrlForNewPaymentInstruction
Type: GetHostedUrlForNewPaymentInstruction
URL: https://api.oefr-kraken.energy/v1/graphql/
Get the external URL where the user can set up a payment instruction.
The possible errors that can be raised are:
- KT-CT-1128: Unauthorized.
- KT-CT-3822: Unauthorized.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
Input fields for getting the external URL for setting up a payment instruction. |
Return fields
Name | Description |
---|
Mutation
mutation GetHostedUrlForNewPaymentInstruction($input: GetHostedUrlForNewPaymentInstructionInput!) {
getHostedUrlForNewPaymentInstruction(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
url
}
}
Variables
{
"input": GetHostedUrlForNewPaymentInstructionInput
}
Response
{
"data": {
"getHostedUrlForNewPaymentInstruction": {
"possibleErrors": [PossibleErrorType],
"url": "abc123"
}
}
}
getOrCreateAccountForOpportunity
Type: GetOrCreateShellAccountForOpportunity
URL: https://api.oefr-kraken.energy/v1/graphql/
Obtain the account number for the opportunity's lead, creating one if necessary.
The possible errors that can be raised are:
- KT-CT-8903: Unable to update opportunity.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
Input fields for obtaining a new or existing account for a opportunity's lead. |
Return fields
Name | Description |
---|
Mutation
mutation GetOrCreateAccountForOpportunity($input: GetOrCreateShellAccountForOpportunityInput!) {
getOrCreateAccountForOpportunity(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
accountNumber
}
}
Variables
{
"input": GetOrCreateShellAccountForOpportunityInput
}
Response
{
"data": {
"getOrCreateAccountForOpportunity": {
"possibleErrors": [PossibleErrorType],
"accountNumber": "abc123"
}
}
}
initializeAccount
Type: InitializeAccountResult!
URL: https://api.oefr-kraken.energy/v1/graphql/
Initialize account for sign up. Returns the existing account if matching datafound for the provided input, otherwise creates a new account.
The possible errors that can be raised are:
- KT-CT-10324: Mutation not enabled in this environment.
- KT-CT-10325: Input data has invalid format.
- KT-CT-10326: An error occurred when trying to initialize the account.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Mutation
mutation InitializeAccount($input: BaseInitializeAccountInput!) {
initializeAccount(input: $input) {
isNewAccount
accountNumber
}
}
Variables
{
"input": BaseInitializeAccountInput
}
Response
{
"data": {
"initializeAccount": {
"isNewAccount": true,
"accountNumber": "abc123"
}
}
}
initializeUser
Type: InitializeUserResult!
URL: https://api.oefr-kraken.energy/v1/graphql/
Initialize user for sign up. Returns an existing user if matching datafound for the provided input, otherwise creates a new one.
The possible errors that can be raised are:
- KT-CT-10327: Mutation not enabled in this environment.
- KT-CT-10328: Input data has invalid format.
- KT-CT-10329: An error occurred when trying to initialize the user.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Mutation
mutation InitializeUser($input: BaseInitializeUserInput!) {
initializeUser(input: $input) {
isNewUser
userNumber
}
}
Variables
{
"input": BaseInitializeUserInput
}
Response
{
"data": {
"initializeUser": {
"isNewUser": true,
"userNumber": "abc123"
}
}
}
initiateHostedStandalonePayment
Type: InitiateHostedStandalonePayment
URL: https://api.oefr-kraken.energy/v1/graphql/
Initiate a standalone payment and return the url where the customer can complete it.
The possible errors that can be raised are:
- KT-CT-1128: Unauthorized.
- KT-CT-3822: Unauthorized.
- KT-CT-3943: Invalid ledger.
- KT-CT-3957: No collection method provided.
- KT-CT-3958: Provide either ledger ID or ledger number.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
Input fields for initiating a standalone payment. |
Return fields
Name | Description |
---|
Mutation
mutation InitiateHostedStandalonePayment($input: InitiateHostedStandalonePaymentInput!) {
initiateHostedStandalonePayment(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
payment {
...InitiateHostedStandalonePaymentOutputFragment
}
}
}
Variables
{
"input": InitiateHostedStandalonePaymentInput
}
Response
{
"data": {
"initiateHostedStandalonePayment": {
"possibleErrors": [PossibleErrorType],
"payment": InitiateHostedStandalonePaymentOutput
}
}
}
Mutation
mutation InitiateLiveChat($input: InitiateLiveChatInput!) {
initiateLiveChat(input: $input) {
liveChat {
...InkLiveChatFragment
}
clientMutationId
}
}
Variables
{
"input": InitiateLiveChatInput
}
Response
{
"data": {
"initiateLiveChat": {
"liveChat": InkLiveChat,
"clientMutationId": "abc123"
}
}
}
initiateProductSwitch
Type: InitiateProductSwitch
URL: https://api.oefr-kraken.energy/v1/graphql/
Do a product switch for a user.
The possible errors that can be raised are:
- KT-CT-1111: Unauthorized.
- KT-CT-4619: Quote with given code not found.
- KT-CT-4624: Unable to accept the given product code.
- KT-CT-4924: Unauthorized.
- KT-CT-4626: No product selected for the given quote code.
- KT-CT-4719: No supply point found for identifier provided.
- KT-CT-1509: Unable to create agreement.
- KT-CT-1507: Agreement product switch date is not within the acceptable range.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
|
Instigate a product switch for a specific supply point given a valid product and account number. |
Return fields
Name | Description |
---|
Mutation
mutation InitiateProductSwitch($input: InitiateProductSwitchInput!) {
initiateProductSwitch(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
productCode
switchDate
}
}
Variables
{
"input": InitiateProductSwitchInput
}
Response
{
"data": {
"initiateProductSwitch": {
"possibleErrors": [PossibleErrorType],
"productCode": "abc123",
"switchDate": "2020-01-01"
}
}
}
initiateStandalonePayment
Type: InitiateStandalonePayment
URL: https://api.oefr-kraken.energy/v1/graphql/
Initiate a standalone payment and return the client secret required to complete it.
The possible errors that can be raised are:
- KT-CT-3820: Received both ledger ID and number.
- KT-CT-4177: Unauthorized.
- KT-CT-3822: Unauthorized.
- KT-CT-3943: Invalid ledger.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
|
Input fields for initiating a standalone payment. |
Return fields
Name | Description |
---|
Mutation
mutation InitiateStandalonePayment($input: InitiateStandalonePaymentInput!) {
initiateStandalonePayment(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
payment {
...InitiateStandalonePaymentOutputFragment
}
}
}
Variables
{
"input": InitiateStandalonePaymentInput
}
Response
{
"data": {
"initiateStandalonePayment": {
"possibleErrors": [PossibleErrorType],
"payment": InitiateStandalonePaymentOutput
}
}
}
instigateAccountContractTermination
Type: ContractTerminationInstigated!
URL: https://api.oefr-kraken.energy/v1/graphql/
Instigate an account contract termination journey.
The possible errors that can be raised are:
- KT-CT-4178: No account found with given account number.
- KT-CT-10003: Contract not found.
- KT-CT-10304: Mutation not enabled in this environment.
- KT-CT-10004: Supply loss process instigation has failed.
- KT-CT-10007: Unable to terminate contract.
- KT-CT-10008: The contract is currently undergoing an active journey.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
Return fields
Name | Description |
---|
Mutation
mutation InstigateAccountContractTermination($input: FraInstigateContractTerminationInput!) {
instigateAccountContractTermination(input: $input) {
message
}
}
Variables
{
"input": FraInstigateContractTerminationInput
}
Response
{
"data": {
"instigateAccountContractTermination": {
"message": "abc123"
}
}
}
instigateBusinessContractTermination
Type: ContractTerminationInstigated!
URL: https://api.oefr-kraken.energy/v1/graphql/
Instigate a business contract termination journey.
The possible errors that can be raised are:
- KT-CT-10002: Contract termination mutation is not yet supported for business contracts.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
Return fields
Name | Description |
---|
Mutation
mutation InstigateBusinessContractTermination($input: BaseInstigateContractTerminationInput!) {
instigateBusinessContractTermination(input: $input) {
message
}
}
Variables
{
"input": BaseInstigateContractTerminationInput
}
Response
{
"data": {
"instigateBusinessContractTermination": {
"message": "abc123"
}
}
}
instigateLeaveSupplier
Type: LeaveSupplierInstigated!
URL: https://api.oefr-kraken.energy/v1/graphql/
Instigate a leave supplier process or update an existing process.
The possible errors that can be raised are:
- KT-CT-10304: Mutation not enabled in this environment.
- KT-CT-4501: Unauthorized.
- KT-CT-10301: Unable to instigate leave supplier process.
- KT-CT-10330: Unsupported leave supplier type.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Mutation
mutation InstigateLeaveSupplier($input: LeaveSupplierInput!) {
instigateLeaveSupplier(input: $input) {
number
leaveSupplierProcessId
message
}
}
Variables
{
"input": LeaveSupplierInput
}
Response
{
"data": {
"instigateLeaveSupplier": {
"number": "abc123",
"leaveSupplierProcessId": "abc123",
"message": "abc123"
}
}
}
invalidatePaymentInstruction
Type: InvalidatePaymentInstruction
URL: https://api.oefr-kraken.energy/v1/graphql/
Invalidate an existing instruction.
The possible errors that can be raised are:
- KT-CT-3926: Unauthorized.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
Input fields for invalidating a payment instruction from an embedded form. |
Return fields
Name | Description |
---|
Mutation
mutation InvalidatePaymentInstruction($input: InvalidatePaymentInstructionInput!) {
invalidatePaymentInstruction(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
instruction {
...InvalidatePaymentInstructionOutputFragment
}
}
}
Variables
{
"input": InvalidatePaymentInstructionInput
}
Response
{
"data": {
"invalidatePaymentInstruction": {
"possibleErrors": [PossibleErrorType],
"instruction": InvalidatePaymentInstructionOutput
}
}
}
invalidatePreSignedToken
Type: InvalidatePreSignedToken
URL: https://api.oefr-kraken.energy/v1/graphql/
Invalidate a previously-issued pre-signed token.
The possible errors that can be raised are:
- KT-CT-1129: Unauthorized.
- KT-CT-1113: Disabled GraphQL field requested.
Mutation
mutation InvalidatePreSignedToken($input: InvalidatePreSignedTokenInput!) {
invalidatePreSignedToken(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
token {
...PreSignedTokenFragment
}
}
}
Variables
{
"input": InvalidatePreSignedTokenInput
}
Response
{
"data": {
"invalidatePreSignedToken": {
"possibleErrors": [PossibleErrorType],
"token": PreSignedToken
}
}
}
invalidatePreSignedTokensForUser
Type: InvalidatePreSignedTokensForUser
URL: https://api.oefr-kraken.energy/v1/graphql/
Invalidate pre-signed tokens issued to a particular user.
The possible errors that can be raised are:
- KT-CT-1129: Unauthorized.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
Return fields
Name | Description |
---|
Mutation
mutation InvalidatePreSignedTokensForUser($input: InvalidatePreSignedTokensForUserInput!) {
invalidatePreSignedTokensForUser(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
tokens {
...PreSignedTokenFragment
}
}
}
Variables
{
"input": InvalidatePreSignedTokensForUserInput
}
Response
{
"data": {
"invalidatePreSignedTokensForUser": {
"possibleErrors": [PossibleErrorType],
"tokens": [PreSignedToken]
}
}
}
invalidateRefreshToken
Type: InvalidateRefreshToken
URL: https://api.oefr-kraken.energy/v1/graphql/
Invalidate a previously-issued refresh token.
The possible errors that can be raised are:
- KT-CT-1130: Unauthorized.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Mutation
mutation InvalidateRefreshToken($input: InvalidateRefreshTokenInput!) {
invalidateRefreshToken(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
token {
...RefreshTokenFragment
}
}
}
Variables
{
"input": InvalidateRefreshTokenInput
}
Response
{
"data": {
"invalidateRefreshToken": {
"possibleErrors": [PossibleErrorType],
"token": RefreshToken
}
}
}
invalidateRefreshTokensForUser
Type: InvalidateRefreshTokensForUser
URL: https://api.oefr-kraken.energy/v1/graphql/
Invalidate refresh tokens issued to a particular user.
The possible errors that can be raised are:
- KT-CT-1128: Unauthorized.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
Return fields
Name | Description |
---|
Mutation
mutation InvalidateRefreshTokensForUser($input: InvalidateRefreshTokensForUserInput!) {
invalidateRefreshTokensForUser(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
tokens {
...RefreshTokenFragment
}
}
}
Variables
{
"input": InvalidateRefreshTokensForUserInput
}
Response
{
"data": {
"invalidateRefreshTokensForUser": {
"possibleErrors": [PossibleErrorType],
"tokens": [RefreshToken]
}
}
}
joinSupplierAcceptTermsAndConditions
Type: JoinSupplierAcceptTermsAndConditions
URL: https://api.oefr-kraken.energy/v1/graphql/
Accept terms and conditions for a join supplier process.
The possible errors that can be raised are:
- KT-CT-1111: Unauthorized.
- KT-CT-4501: Unauthorized.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
Return fields
Name | Description |
---|
Mutation
mutation JoinSupplierAcceptTermsAndConditions($input: JoinSupplierAcceptTermsAndConditionsInput!) {
joinSupplierAcceptTermsAndConditions(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
success
}
}
Variables
{
"input": JoinSupplierAcceptTermsAndConditionsInput
}
Response
{
"data": {
"joinSupplierAcceptTermsAndConditions": {
"possibleErrors": [PossibleErrorType],
"success": true
}
}
}
linkAccountToBusiness
Type: LinkAccountToBusiness
URL: https://api.oefr-kraken.energy/v1/graphql/
Link an account to a business.
The possible errors that can be raised are:
- KT-CT-1111: Unauthorized.
- KT-CT-11104: Business role already allocated.
- KT-CT-11105: Business role already allocated.
- KT-CT-11106: Unauthorized.
- KT-CT-11107: Unauthorized.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
|
Input fields for linking an account to a business. |
Return fields
Name | Description |
---|
Mutation
mutation LinkAccountToBusiness($input: LinkAccountToBusinessInput!) {
linkAccountToBusiness(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
business {
...BusinessTypeFragment
}
}
}
Variables
{
"input": LinkAccountToBusinessInput
}
Response
{
"data": {
"linkAccountToBusiness": {
"possibleErrors": [PossibleErrorType],
"business": BusinessType
}
}
}
linkUserToLine
Type: LinkUserToLineResponse!
URL: https://api.oefr-kraken.energy/v1/graphql/
Link an account user and line user together.
Arguments
Name | Description |
---|---|
|
Input fields to link an account user with LINE. |
Return fields
Name | Description |
---|
Mutation
mutation LinkUserToLine($input: LinkUserToLineInput!) {
linkUserToLine(input: $input)
}
Variables
{
"input": LinkUserToLineInput
}
Response
{
"data": {
"linkUserToLine": LinkUserToLineResponse
}
}
markPrintBatchAsProcessed
Type: MarkPrintBatchAsProcessed!
URL: https://api.oefr-kraken.energy/v1/graphql/
Mark the print batch as processed.
The possible errors that can be raised are:
- KT-CT-9011: Invalid data.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Mutation
mutation MarkPrintBatchAsProcessed($printBatchId: ID!) {
markPrintBatchAsProcessed(printBatchId: $printBatchId) {
possibleErrors {
...PossibleErrorTypeFragment
}
printBatch {
...PrintBatchTypeFragment
}
}
}
Variables
{
"printBatchId": "abc123"
}
Response
{
"data": {
"markPrintBatchAsProcessed": {
"possibleErrors": [PossibleErrorType],
"printBatch": PrintBatchType
}
}
}
masqueradeAuthentication
Type: MasqueradeAuthentication
URL: https://api.oefr-kraken.energy/v1/graphql/
Provide a temporary token to get an auth token. This is intended to allow support users to view customer data through the brand interface.
Arguments
Name | Description |
---|---|
|
The masquerade token issued by the support site. |
|
The ID of the AccountUser to masquerade as. |
Return fields
Name | Description |
---|
Mutation
mutation MasqueradeAuthentication(
$masqueradeToken: String!,
$userId: String!
) {
masqueradeAuthentication(
masqueradeToken: $masqueradeToken,
userId: $userId
) {
token
errors {
...ErrorTypeFragment
}
}
}
Variables
{
"masqueradeToken": "abc123",
"userId": "abc123"
}
Response
{
"data": {
"masqueradeAuthentication": {
"token": "abc123",
"errors": [ErrorType]
}
}
}
obtainKrakenToken
Type: ObtainKrakenJSONWebToken
URL: https://api.oefr-kraken.energy/v1/graphql/
Create a Kraken Token (JWT) for authentication.
Provide the required input fields to obtain the token.
The token should be used as the Authorization
header for any authenticated requests.
The possible errors that can be raised are:
- KT-CT-1135: Invalid data.
- KT-CT-1134: Invalid data.
- KT-CT-1113: Disabled GraphQL field requested.
Arguments
Name | Description |
---|---|
|
Input fields that can be used to obtain a Json Web Token (JWT) for authentication to the API. |
Return fields
Name | Description |
---|
Mutation
mutation ObtainKrakenToken($input: ObtainJSONWebTokenInput!) {
obtainKrakenToken(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
token
payload
refreshToken
refreshExpiresIn
}
}
Variables
{
"input": ObtainJSONWebTokenInput
}
Response
{
"data": {
"obtainKrakenToken": {
"possibleErrors": [PossibleErrorType],
"token": "abc123",
"payload": "abc123" | 1 | 1.0 | true | ["abc123"] | AccountType,
"refreshToken": "abc123",
"refreshExpiresIn": 1
}
}
}
obtainLongLivedRefreshToken
Type: ObtainLongLivedRefreshToken
URL: https://api.oefr-kraken.energy/v1/graphql/
For authorized third-party organizations only.
The possible errors that can be raised are:
- KT-CT-1120: The Kraken Token has expired.
- KT-CT-1121: Please use Kraken Token to issue long-lived refresh tokens.
- KT-CT-1132: Unauthorized.
- KT-CT-1122: Long-lived refresh tokens can only be issued for account users.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
Input fields for obtaining a long-lived refresh token to extend the expiry claim of a Kraken token. |
Return fields
Name | Description |
---|
Mutation
mutation ObtainLongLivedRefreshToken($input: ObtainLongLivedRefreshTokenInput!) {
obtainLongLivedRefreshToken(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
refreshToken
refreshExpiresIn
}
}
Variables
{
"input": ObtainLongLivedRefreshTokenInput
}
Response
{
"data": {
"obtainLongLivedRefreshToken": {
"possibleErrors": [PossibleErrorType],
"refreshToken": "abc123",
"refreshExpiresIn": 1
}
}
}
ocppAuthentication
Type: OCPPAuthentication
URL: https://api.oefr-kraken.energy/v1/graphql/
Trigger OCPP authentication.
The possible errors that can be raised are:
- KT-CT-4301: Unable to find device for given account.
- KT-CT-4310: Unable to register OCPP authentication details.
- KT-CT-1113: Disabled GraphQL field requested.
Mutation
mutation OcppAuthentication($input: OCPPAuthenticationInput) {
ocppAuthentication(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
krakenflexDevice {
...KrakenFlexDeviceTypeFragment
}
}
}
Variables
{
"input": OCPPAuthenticationInput
}
Response
{
"data": {
"ocppAuthentication": {
"possibleErrors": [PossibleErrorType],
"krakenflexDevice": KrakenFlexDeviceType
}
}
}
pauseDunning
Type: PauseDunning
URL: https://api.oefr-kraken.energy/v1/graphql/
Pause the dunning process for an account.
The possible errors that can be raised are:
- KT-CT-4178: No account found with given account number.
- KT-CT-11301: Account not in a dunning process for the given path name.
- KT-CT-11302: No active dunning process found.
- KT-CT-11303: Multiple active dunning processes found.
- KT-CT-11304: Dunning pause process failed verifying the dates.
- KT-CT-11305: Pausing the dunning process failed.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
|
Input variables needed for pausing a dunning process for an account. |
Return fields
Name | Description |
---|
Mutation
mutation PauseDunning($input: PauseDunningInputType!) {
pauseDunning(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
pauseCreated
}
}
Variables
{
"input": PauseDunningInputType
}
Response
{
"data": {
"pauseDunning": {
"possibleErrors": [PossibleErrorType],
"pauseCreated": true
}
}
}
postCredit
Type: PostCredit
URL: https://api.oefr-kraken.energy/v1/graphql/
Post credit to a ledger.
The possible errors that can be raised are:
- KT-CT-5316: Invalid data.
- KT-CT-5311: The credit reason with the requested code is deprecated.
- KT-CT-5312: The credit reason with the requested code does not exist.
- KT-CT-5313: An error occurred whilst posting the credit.
- KT-CT-3820: Received both ledger ID and number.
- KT-CT-3821: Received neither ledger ID nor ledger number.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
|
Input fields for posting a credit. |
Return fields
Name | Description |
---|
Mutation
mutation PostCredit($input: PostCreditInput!) {
postCredit(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
credit {
...CreditFragment
}
}
}
Variables
{
"input": PostCreditInput
}
Response
{
"data": {
"postCredit": {
"possibleErrors": [PossibleErrorType],
"credit": Credit
}
}
}
prepareAccount
Type: PrepareAccountResult!
URL: https://api.oefr-kraken.energy/v1/graphql/
Prepare account for sign up. Returns the existing account and/or user if matching datafound for the provided input, otherwise creates a new account and account user.
The possible errors that can be raised are:
- KT-CT-10303: Mutation not enabled in this environment.
- KT-CT-10316: Input data has invalid format.
- KT-CT-10317: An error occured when trying to prepare the account.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Mutation
mutation PrepareAccount($input: PrepareAccountInput!) {
prepareAccount(input: $input) {
isNewAccount
accountNumber
isNewUser
userId
}
}
Variables
{
"input": PrepareAccountInput
}
Response
{
"data": {
"prepareAccount": {
"isNewAccount": true,
"accountNumber": "abc123",
"isNewUser": true,
"userId": "abc123"
}
}
}
publishTransactionalMessagingExternalTrigger
Type: PublishTransactionalMessagingExternalTrigger
URL: https://api.oefr-kraken.energy/v1/graphql/
Publish an externally defined transactional messaging trigger.
The possible errors that can be raised are:
- KT-CT-4178: No account found with given account number.
- KT-CT-5421: Account user not found.
- KT-CT-9901: Invalid trigger type code.
- KT-CT-9905: Top-level context fields are missing.
- KT-CT-9906: Template variables do not match the defined schema.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
Input fields to publish an external transactional messaging trigger. |
Return fields
Name | Description |
---|
Mutation
mutation PublishTransactionalMessagingExternalTrigger($input: PublishTransactionalMessagingExternalTriggerInput!) {
publishTransactionalMessagingExternalTrigger(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
trigger {
...TriggerFragment
}
}
}
Variables
{
"input": PublishTransactionalMessagingExternalTriggerInput
}
Response
{
"data": {
"publishTransactionalMessagingExternalTrigger": {
"possibleErrors": [PossibleErrorType],
"trigger": Trigger
}
}
}
publishTransactionalMessagingTrigger
Type: PublishTransactionalMessagingTrigger
URL: https://api.oefr-kraken.energy/v1/graphql/
Publish a trigger within the transactional messaging service.
The possible errors that can be raised are:
- KT-CT-9901: Invalid trigger type code.
- KT-CT-9902: Invalid trigger type params.
- KT-CT-9903: Trigger type cannot be published externally.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
Input fields to publish a transactional messaging trigger. |
Return fields
Name | Description |
---|
Mutation
mutation PublishTransactionalMessagingTrigger($input: PublishTransactionalMessagingTriggerInput!) {
publishTransactionalMessagingTrigger(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
trigger {
...TriggerFragment
}
}
}
Variables
{
"input": PublishTransactionalMessagingTriggerInput
}
Response
{
"data": {
"publishTransactionalMessagingTrigger": {
"possibleErrors": [PossibleErrorType],
"trigger": Trigger
}
}
}
reauthenticateDevice
Type: ReauthenticateDevice
URL: https://api.oefr-kraken.energy/v1/graphql/
Reauthenticate an already registered device.
The possible errors that can be raised are:
- KT-CT-4313: Could not find KrakenFlex device.
- KT-CT-4314: Unable to get provider details.
- KT-CT-4315: Unable to re-authenticate device.
- KT-CT-4363: No capable devices found.
- KT-CT-4364: Multiple devices found.
- KT-CT-1113: Disabled GraphQL field requested.
Mutation
mutation ReauthenticateDevice($input: ReauthenticateDeviceInput) {
reauthenticateDevice(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
krakenflexDevice {
...KrakenFlexDeviceTypeFragment
}
}
}
Variables
{
"input": ReauthenticateDeviceInput
}
Response
{
"data": {
"reauthenticateDevice": {
"possibleErrors": [PossibleErrorType],
"krakenflexDevice": KrakenFlexDeviceType
}
}
}
recordDepositAgreementAccepted
Type: RecordDepositAgreementAccepted
URL: https://api.oefr-kraken.energy/v1/graphql/
Record the customer's acceptance of a deposit agreement.
The possible errors that can be raised are:
- KT-CT-4177: Unauthorized.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Mutation
mutation RecordDepositAgreementAccepted($input: DepositAgreementInput!) {
recordDepositAgreementAccepted(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
isRecorded
}
}
Variables
{
"input": DepositAgreementInput
}
Response
{
"data": {
"recordDepositAgreementAccepted": {
"possibleErrors": [PossibleErrorType],
"isRecorded": true
}
}
}
redeemLoyaltyPointsForAccountCredit
Type: RedeemLoyaltyPointsForAccountCredit
URL: https://api.oefr-kraken.energy/v1/graphql/
Redeem the passed number of Loyalty Points as account credit.
The possible errors that can be raised are:
- KT-CT-1111: Unauthorized.
- KT-CT-9201: No Loyalty Point ledger found for the user.
- KT-CT-9202: Loyalty Points adapter not configured.
- KT-CT-9203: No ledger entries for the ledger.
- KT-CT-9205: Insufficient Loyalty Points.
- KT-CT-9206: Indivisible points.
- KT-CT-9204: Negative or zero points set.
- KT-CT-9208: Invalid posted at datetime.
- KT-CT-9209: Negative Loyalty Points balance.
- KT-CT-9210: Unhandled Loyalty Points exception.
- KT-CT-1113: Disabled GraphQL field requested.
Arguments
Name | Description |
---|---|
|
Input fields for redeeming Loyalty Points. |
Return fields
Name | Description |
---|
Mutation
mutation RedeemLoyaltyPointsForAccountCredit($input: RedeemLoyaltyPointsInput!) {
redeemLoyaltyPointsForAccountCredit(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
pointsRedeemed
}
}
Variables
{
"input": RedeemLoyaltyPointsInput
}
Response
{
"data": {
"redeemLoyaltyPointsForAccountCredit": {
"possibleErrors": [PossibleErrorType],
"pointsRedeemed": 1
}
}
}
redeemReferralClaimCode
Type: RedeemReferralClaimCode
URL: https://api.oefr-kraken.energy/v1/graphql/
Redeem the referral claim code from certain referral scheme.
The possible errors that can be raised are:
- KT-CT-6723: Unauthorized.
- KT-CT-6724: Referral claim code not found.
- KT-CT-6725: Referral claim code redeeming error.
- KT-CT-6726: Referral claim code has already been redeemed.
- KT-CT-6727: Referral claim code is not available.
- KT-CT-1113: Disabled GraphQL field requested.
Arguments
Name | Description |
---|---|
|
Input fields for redeeming referral code. |
Return fields
Name | Description |
---|
Mutation
mutation RedeemReferralClaimCode($input: RedeemReferralClaimCodeInput!) {
redeemReferralClaimCode(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
success
}
}
Variables
{
"input": RedeemReferralClaimCodeInput
}
Response
{
"data": {
"redeemReferralClaimCode": {
"possibleErrors": [PossibleErrorType],
"success": true
}
}
}
refundPayment
Type: RefundPayment
URL: https://api.oefr-kraken.energy/v1/graphql/
Refund a cleared payment.
The possible errors that can be raised are:
- KT-CT-3924: Unauthorized.
- KT-CT-3928: Idempotency key used for another repayment request.
- KT-CT-3929: The payment is not in a refundable state.
- KT-CT-3933: Refund amount greater than payment amount.
- KT-CT-3937: Payment not eligible for refund.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
|
Input fields for refunding a payment. |
Return fields
Name | Description |
---|
Mutation
mutation RefundPayment($input: RefundPaymentInput!) {
refundPayment(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
repayment {
...AccountRepaymentTypeFragment
}
}
}
Variables
{
"input": RefundPaymentInput
}
Response
{
"data": {
"refundPayment": {
"possibleErrors": [PossibleErrorType],
"repayment": AccountRepaymentType
}
}
}
regenerateSecretKey
Type: RegenerateSecretKey
URL: https://api.oefr-kraken.energy/v1/graphql/
Regenerate the live secret key for the authenticated user.
Return fields
Name | Description |
---|
Mutation
mutation RegenerateSecretKey {
regenerateSecretKey {
key
viewer {
...AccountUserTypeFragment
}
}
}
Response
{
"data": {
"regenerateSecretKey": {
"key": "abc123",
"viewer": AccountUserType
}
}
}
registerOpportunityFlowStatusEvent
Type: RegisterOpportunityFlowStatusEvent
URL: https://api.oefr-kraken.energy/v1/graphql/
Register a flow status event for an opportunity.
The possible errors that can be raised are:
- KT-CT-8906: Opportunity not found.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
Input fields for registering a flow status event for a opportunity. |
Return fields
Name | Description |
---|
Mutation
mutation RegisterOpportunityFlowStatusEvent($input: RegisterOpportunityFlowStatusEventInput!) {
registerOpportunityFlowStatusEvent(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
}
}
Variables
{
"input": RegisterOpportunityFlowStatusEventInput
}
Response
{
"data": {
"registerOpportunityFlowStatusEvent": {
"possibleErrors": [PossibleErrorType]
}
}
}
registerPushNotificationBinding
Type: RegisterPushNotificationBinding
URL: https://api.oefr-kraken.energy/v1/graphql/
Register a device token to be used for push notifications for an app.
This field requires the Authorization
header to be set.
Arguments
Name | Description |
---|---|
Input fields for creating an push notification binding. |
Return fields
Name | Description |
---|
Mutation
mutation RegisterPushNotificationBinding($input: RegisterPushNotificationBindingInput!) {
registerPushNotificationBinding(input: $input) {
pushNotificationBinding {
...PushNotificationBindingTypeFragment
}
}
}
Variables
{
"input": RegisterPushNotificationBindingInput
}
Response
{
"data": {
"registerPushNotificationBinding": {
"pushNotificationBinding": PushNotificationBindingType
}
}
}
removeCampaignFromAccount
Type: RemoveCampaignFromAccount
URL: https://api.oefr-kraken.energy/v1/graphql/
The possible errors that can be raised are:
- KT-CT-7424: Failed to remove campaign from account.
- KT-CT-7426: The account is not part of the given campaign.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
|
Input variables needed for removing a campaign from an account |
Return fields
Name | Description |
---|
Mutation
mutation RemoveCampaignFromAccount($input: RemoveCampaignFromAccountInput!) {
removeCampaignFromAccount(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
campaignRemoved
}
}
Variables
{
"input": RemoveCampaignFromAccountInput
}
Response
{
"data": {
"removeCampaignFromAccount": {
"possibleErrors": [PossibleErrorType],
"campaignRemoved": true
}
}
}
removeCampaignItems
Type: RemoveCampaignItems
URL: https://api.oefr-kraken.energy/v1/graphql/
The possible errors that can be raised are:
- KT-CT-11501: Voice campaign not found.
- KT-CT-11502: Cannot remove items from multiple campaigns at once.
- KT-CT-11505: Voice campaign item not found.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Mutation
mutation RemoveCampaignItems($input: RemoveCampaignItemsInput!) {
removeCampaignItems(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
campaignItems {
...VoiceCampaignItemTypeFragment
}
}
}
Variables
{
"input": RemoveCampaignItemsInput
}
Response
{
"data": {
"removeCampaignItems": {
"possibleErrors": [PossibleErrorType],
"campaignItems": [VoiceCampaignItemType]
}
}
}
removeItemsFromRiskList
Type: RemoveItemsFromRiskList
URL: https://api.oefr-kraken.energy/v1/graphql/
Remove items from the risk list.
The possible errors that can be raised are:
- KT-CT-12106: Risk list item removal failed.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
|
A list of risk list items to remove. |
Return fields
Name | Description |
---|
Mutation
mutation RemoveItemsFromRiskList($input: [RiskListItemInputType]!) {
removeItemsFromRiskList(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
riskIdentifiers {
...RiskListItemTypeFragment
}
}
}
Variables
{
"input": RiskListItemInputType
}
Response
{
"data": {
"removeItemsFromRiskList": {
"possibleErrors": [PossibleErrorType],
"riskIdentifiers": [RiskListItemType]
}
}
}
requestDoubleOptIn
Type: RequestDoubleOptIn
URL: https://api.oefr-kraken.energy/v1/graphql/
Request a double opt in
The possible errors that can be raised are:
- KT-CT-9019: Invalid input.
- KT-CT-9018: Account not found.
- KT-CT-1111: Unauthorized.
- KT-CT-9016: Consent management not enabled.
- KT-CT-9017: Consent type not found.
- KT-CT-9023: Consent already accepted.
- KT-CT-1199: Too many requests.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Mutation
mutation RequestDoubleOptIn($input: DoubleOptInInput) {
requestDoubleOptIn(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
consent {
...ConsentTypeFragment
}
}
}
Variables
{
"input": DoubleOptInInput
}
Response
{
"data": {
"requestDoubleOptIn": {
"possibleErrors": [PossibleErrorType],
"consent": ConsentType
}
}
}
requestElectricityMeasures
Type: RequestElectricityMeasures
URL: https://api.oefr-kraken.energy/v1/graphql/
Requests and creates electricity measures.
The possible errors that can be raised are:
- KT-FR-4510: Invalid PRM.
- KT-FR-8914: Industry consent missing.
- KT-FR-4710: Unable to fetch consumption.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
|
Input fields for requesting electricity measures. |
Return fields
Name | Description |
---|
Mutation
mutation RequestElectricityMeasures($input: RequestElectricityMeasuresInput!) {
requestElectricityMeasures(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
measures {
...ElectricityMeasureFragment
}
}
}
Variables
{
"input": RequestElectricityMeasuresInput
}
Response
{
"data": {
"requestElectricityMeasures": {
"possibleErrors": [PossibleErrorType],
"measures": [ElectricityMeasure]
}
}
}
requestPasswordReset
Type: RequestPasswordResetOutputType
URL: https://api.oefr-kraken.energy/v1/graphql/
Provide the email address of an account user to send them an email with instructions on how to reset their password.
The possible errors that can be raised are:
- KT-CT-1133: Unable to request password reset email.
- KT-CT-11331: Invalid input data.
- KT-CT-1113: Disabled GraphQL field requested.
Arguments
Name | Description |
---|---|
|
Input fields for requesting a password reset email. |
Return fields
Name | Description |
---|
Mutation
mutation RequestPasswordReset($input: RequestPasswordResetInput!) {
requestPasswordReset(input: $input) {
email
}
}
Variables
{
"input": RequestPasswordResetInput
}
Response
{
"data": {
"requestPasswordReset": {
"email": "abc123"
}
}
}
requestPrintedBill
Type: RequestPrintedBill
URL: https://api.oefr-kraken.energy/v1/graphql/
Request an issued bill to be printed and (re)posted to billing address of the account.
The possible errors that can be raised are:
- KT-CT-3824: Unauthorized.
- KT-CT-9705: The billing document has not been issued.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
|
Input fields to request a printed bill. |
Return fields
Name | Description |
---|
Mutation
mutation RequestPrintedBill($input: RequestPrintedBillInput!) {
requestPrintedBill(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
success
}
}
Variables
{
"input": RequestPrintedBillInput
}
Response
{
"data": {
"requestPrintedBill": {
"possibleErrors": [PossibleErrorType],
"success": true
}
}
}
requestQuote
Type: RequestQuote
URL: https://api.oefr-kraken.energy/v1/graphql/
Request a quote for a list of supply points.
The possible errors that can be raised are:
- KT-CT-1111: Unauthorized.
- KT-CT-4140: ID must be a valid integer or a string.
- KT-CT-4719: No supply point found for identifier provided.
- KT-FR-4525: Provider calendar is missing for one of the electricity supply points.
- KT-FR-4613: Unable to request quote.
- KT-FR-4615: Unable to request quote.
- KT-FR-4619: Unexpected error while generating quote.
- KT-FR-4624: Unknown Agreement.
- KT-FR-4629: Could not find any supply points to quote.
- KT-FR-4634: Unable to change the subscribed max power.
- KT-FR-4635: Subscribed max power should be between 1 and 36.
- KT-FR-7712: Invalid affiliate session.
- KT-FR-7713: Authenticated organizations should not use affiliate sessions.
- KT-FR-4626: Audio recording not found.
- KT-FR-7711: Missing affiliate session.
- KT-CT-1113: Disabled GraphQL field requested.
Arguments
Name | Description |
---|---|
|
Input fields required for requesting a quote. |
Return fields
Name | Description |
---|
Mutation
mutation RequestQuote($input: RequestQuoteInput!) {
requestQuote(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
quoteRequestCode
quotedSupplyPoints {
...QuotedSupplyPointResultConnectionTypeConnectionFragment
}
}
}
Variables
{
"input": RequestQuoteInput
}
Response
{
"data": {
"requestQuote": {
"possibleErrors": [PossibleErrorType],
"quoteRequestCode": "500c164d-38c7-4f74-9ac6-be210197e9e4",
"quotedSupplyPoints": QuotedSupplyPointResultConnectionTypeConnection
}
}
}
resetPassword
Type: ResetPasswordMutationPayload
URL: https://api.oefr-kraken.energy/v1/graphql/
Reset the password of an account user indicated by the userId to the value supplied.
Mutation
mutation ResetPassword($input: ResetPasswordMutationInput!) {
resetPassword(input: $input) {
errors {
...SerializerFieldErrorsTypeFragment
}
clientMutationId
}
}
Variables
{
"input": ResetPasswordMutationInput
}
Response
{
"data": {
"resetPassword": {
"errors": [SerializerFieldErrorsType],
"clientMutationId": "abc123"
}
}
}
resetUserPassword
Type: ResetUserPasswordOutput
URL: https://api.oefr-kraken.energy/v1/graphql/
Reset the password of an account user.
Raises KT-CT-5450
if password validation fails. Inspect the validationErrors
extension to get the exact validation error:
json
{
"data": {"resetUserPassword": null},
"errors": [
{
"message": "Password is invalid.",
"path": ["resetUserPassword"],
"extensions": {
"errorType": "VALIDATION",
"errorCode": "KT-CT-5450",
"errorDescription": "Given password fails password policy requirements.",
"validationErrors": [
{
"code": "password_too_short",
"message": "This password is too short. It must contain at least 7 characters.",
"inputPath": ["input", "password"]
},
{
"code": "password_too_common",
"message": "This password is too common.",
"inputPath": ["input", "password"]
}
]
}
}
]
}
The validation error's code
can be any of
- password_too_short
- password_too_common
- password_reused
- password_matches_current
- password_has_too_few_numeric_characters
- password_has_too_few_special_characters
- password_has_too_few_lowercase_characters
- password_has_too_few_uppercase_characters
- password_contains_account_number
- password_contains_part_of_email_address
The possible errors that can be raised are:
- KT-CT-4125: Unauthorized.
- KT-CT-1132: Unauthorized.
- KT-CT-5450: Password is invalid.
- KT-CT-1113: Disabled GraphQL field requested.
Arguments
Name | Description |
---|---|
|
Input fields for resetting an account user's password. |
Return fields
Name | Description |
---|
Mutation
mutation ResetUserPassword($input: ResetUserPasswordInput!) {
resetUserPassword(input: $input) {
userId
passwordUpdated
failureReasons
failureCodes
}
}
Variables
{
"input": ResetUserPasswordInput
}
Response
{
"data": {
"resetUserPassword": {
"userId": "abc123",
"passwordUpdated": true,
"failureReasons": ["abc123"],
"failureCodes": ["abc123"]
}
}
}
resumeControl
Type: ResumeDeviceControl
URL: https://api.oefr-kraken.energy/v1/graphql/
Resume control of the device.
The possible errors that can be raised are:
- KT-CT-4301: Unable to find device for given account.
- KT-CT-4359: Unable to resume device control.
- KT-CT-1113: Disabled GraphQL field requested.
Mutation
mutation ResumeControl($input: AccountNumberInput) {
resumeControl(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
krakenflexDevice {
...KrakenFlexDeviceTypeFragment
}
}
}
Variables
{
"input": AccountNumberInput
}
Response
{
"data": {
"resumeControl": {
"possibleErrors": [PossibleErrorType],
"krakenflexDevice": KrakenFlexDeviceType
}
}
}
revokeAgreement
Type: RevokeAgreement
URL: https://api.oefr-kraken.energy/v1/graphql/
Revoke an agreement.
The possible errors that can be raised are:
- KT-CT-4123: Unauthorized.
- KT-CT-1501: Agreement not found.
- KT-CT-1502: Billed agreements cannot be revoked.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
|
Input fields for revoking an agreement. |
Return fields
Name | Description |
---|
Mutation
mutation RevokeAgreement($input: RevokeAgreementInput!) {
revokeAgreement(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
account {
...AccountTypeFragment
}
}
}
Variables
{
"input": RevokeAgreementInput
}
Response
{
"data": {
"revokeAgreement": {
"possibleErrors": [PossibleErrorType],
"account": AccountType
}
}
}
runMeterPointPmaxAnalysis
Type: RunMeterPointPMAXAnalysis
URL: https://api.oefr-kraken.energy/v1/graphql/
Check whether meter points are eligible to be supplied by us.
The possible errors that can be raised are:
- KT-FR-8914: Industry consent missing.
- KT-FR-8912: PMAX can't be computed for this supply point.
- KT-FR-4510: Invalid PRM.
- KT-FR-4113: Invalid name.
- KT-FR-4913: Unknown product.
- KT-FR-4535: Segment invalid.
- KT-FR-4533: Non communicating PRM.
- KT-FR-4534: Sensitive PRM.
- KT-FR-4536: PRM customer non PART.
- KT-FR-4537: PRM not powered.
- KT-FR-4538: PRM not single-phased.
- KT-FR-8919: Power history missing.
- KT-FR-8913: PMAX Analysis failed.
- KT-FR-8920: Data API error.
- KT-FR-8921: Recent power decrease.
- KT-FR-8922: Recent power increase.
- KT-FR-8923: Insufficient fresh data.
- KT-FR-8924: Insufficient winter data.
- KT-FR-8925: Too many zeros.
- KT-FR-8926: Timeout reached.
- KT-CT-1113: Disabled GraphQL field requested.
Arguments
Name | Description |
---|---|
|
Input fields for for checking the eligibility of meter points. |
Return fields
Name | Description |
---|
Mutation
mutation RunMeterPointPmaxAnalysis($input: RunMeterPointPMAXAnalysisInput!) {
runMeterPointPmaxAnalysis(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
pmaxAnalysis {
...PMAXAnalysisTypeFragment
}
}
}
Variables
{
"input": RunMeterPointPMAXAnalysisInput
}
Response
{
"data": {
"runMeterPointPmaxAnalysis": {
"possibleErrors": [PossibleErrorType],
"pmaxAnalysis": PMAXAnalysisType
}
}
}
scheduleQuoteFollowUp
Type: ScheduleQuoteFollowUp
URL: https://api.oefr-kraken.energy/v1/graphql/
Schedule a quote follow-up to the provided recipient.
The possible errors that can be raised are:
- KT-CT-4619: Quote with given code not found.
- KT-CT-4632: Invalid recipient information.
- KT-CT-4633: Mutation not enabled in this environment.
- KT-CT-1113: Disabled GraphQL field requested.
Mutation
mutation ScheduleQuoteFollowUp($input: QuoteShareInput!) {
scheduleQuoteFollowUp(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
success
}
}
Variables
{
"input": QuoteShareInput
}
Response
{
"data": {
"scheduleQuoteFollowUp": {
"possibleErrors": [PossibleErrorType],
"success": true
}
}
}
selectChargePointMakeForSmartFlexOnboarding
Type: SelectChargePointMakeForSmartFlexOnboarding
URL: https://api.oefr-kraken.energy/v1/graphql/
Select the charge point make to proceed in the onboarding journey.
The possible errors that can be raised are:
- KT-CT-1111: Unauthorized.
- KT-CT-4371: Onboarding wizard ID is invalid.
- KT-CT-4372: Simultaneous attempts to update onboarding process.
- KT-CT-4375: Incorrect or missing parameters for SmartFlex onboarding step.
- KT-CT-4376: Unable to complete onboarding step. Please try again later.
- KT-CT-4377: Invalid onboarding step ID.
- KT-CT-4378: Invalid input or step id. Please make sure you are using the correct step id and providing the expected input params.
- KT-CT-4379: Vehicle is not ready for a test charge.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Mutation
mutation SelectChargePointMakeForSmartFlexOnboarding($input: SelectChargePointMakeInput!) {
selectChargePointMakeForSmartFlexOnboarding(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
wizard {
...SmartFlexOnboardingWizardFragment
}
}
}
Variables
{
"input": SelectChargePointMakeInput
}
Response
{
"data": {
"selectChargePointMakeForSmartFlexOnboarding": {
"possibleErrors": [PossibleErrorType],
"wizard": SmartFlexOnboardingWizard
}
}
}
selectChargePointVariantForSmartFlexOnboarding
Type: SelectChargePointVariantForSmartFlexOnboarding
URL: https://api.oefr-kraken.energy/v1/graphql/
Select the charge point model variant to proceed in the onboarding journey.
The possible errors that can be raised are:
- KT-CT-1111: Unauthorized.
- KT-CT-4371: Onboarding wizard ID is invalid.
- KT-CT-4372: Simultaneous attempts to update onboarding process.
- KT-CT-4375: Incorrect or missing parameters for SmartFlex onboarding step.
- KT-CT-4376: Unable to complete onboarding step. Please try again later.
- KT-CT-4377: Invalid onboarding step ID.
- KT-CT-4378: Invalid input or step id. Please make sure you are using the correct step id and providing the expected input params.
- KT-CT-4379: Vehicle is not ready for a test charge.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Mutation
mutation SelectChargePointVariantForSmartFlexOnboarding($input: SelectChargePointVariantInput!) {
selectChargePointVariantForSmartFlexOnboarding(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
wizard {
...SmartFlexOnboardingWizardFragment
}
}
}
Variables
{
"input": SelectChargePointVariantInput
}
Response
{
"data": {
"selectChargePointVariantForSmartFlexOnboarding": {
"possibleErrors": [PossibleErrorType],
"wizard": SmartFlexOnboardingWizard
}
}
}
selectDeviceTypeForSmartFlexOnboarding
Type: SelectDeviceTypeForSmartFlexOnboarding
URL: https://api.oefr-kraken.energy/v1/graphql/
Select the device type to proceed in the onboarding journey.
The possible errors that can be raised are:
- KT-CT-1111: Unauthorized.
- KT-CT-4371: Onboarding wizard ID is invalid.
- KT-CT-4372: Simultaneous attempts to update onboarding process.
- KT-CT-4375: Incorrect or missing parameters for SmartFlex onboarding step.
- KT-CT-4376: Unable to complete onboarding step. Please try again later.
- KT-CT-4377: Invalid onboarding step ID.
- KT-CT-4378: Invalid input or step id. Please make sure you are using the correct step id and providing the expected input params.
- KT-CT-4379: Vehicle is not ready for a test charge.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Mutation
mutation SelectDeviceTypeForSmartFlexOnboarding($input: SelectDeviceTypeInput!) {
selectDeviceTypeForSmartFlexOnboarding(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
wizard {
...SmartFlexOnboardingWizardFragment
}
}
}
Variables
{
"input": SelectDeviceTypeInput
}
Response
{
"data": {
"selectDeviceTypeForSmartFlexOnboarding": {
"possibleErrors": [PossibleErrorType],
"wizard": SmartFlexOnboardingWizard
}
}
}
selectProducts
Type: SelectProducts
URL: https://api.oefr-kraken.energy/v1/graphql/
Mark quoted products on a quote request as selected.
The possible errors that can be raised are:
- KT-CT-4619: Quote with given code not found.
- KT-CT-4634: Quoted product with given id not found.
- KT-CT-4626: No product selected for the given quote code.
- KT-CT-4635: Missing a quoted product for at least one quoted supply point on the quote request.
- KT-CT-4636: Quoted product not linked to a product.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Mutation
mutation SelectProducts($input: SelectProductsInput!) {
selectProducts(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
success
}
}
Variables
{
"input": SelectProductsInput
}
Response
{
"data": {
"selectProducts": {
"possibleErrors": [PossibleErrorType],
"success": true
}
}
}
selectUserVehicleForSmartFlexOnboarding
Type: SelectUserVehicleForSmartFlexOnboarding
URL: https://api.oefr-kraken.energy/v1/graphql/
Select the user's vehicle to proceed in the onboarding journey.
The possible errors that can be raised are:
- KT-CT-1111: Unauthorized.
- KT-CT-4371: Onboarding wizard ID is invalid.
- KT-CT-4372: Simultaneous attempts to update onboarding process.
- KT-CT-4375: Incorrect or missing parameters for SmartFlex onboarding step.
- KT-CT-4376: Unable to complete onboarding step. Please try again later.
- KT-CT-4377: Invalid onboarding step ID.
- KT-CT-4378: Invalid input or step id. Please make sure you are using the correct step id and providing the expected input params.
- KT-CT-4379: Vehicle is not ready for a test charge.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Mutation
mutation SelectUserVehicleForSmartFlexOnboarding($input: SelectUserVehicleInput!) {
selectUserVehicleForSmartFlexOnboarding(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
wizard {
...SmartFlexOnboardingWizardFragment
}
}
}
Variables
{
"input": SelectUserVehicleInput
}
Response
{
"data": {
"selectUserVehicleForSmartFlexOnboarding": {
"possibleErrors": [PossibleErrorType],
"wizard": SmartFlexOnboardingWizard
}
}
}
selectVehicleMakeForSmartFlexOnboarding
Type: SelectVehicleMakeForSmartFlexOnboarding
URL: https://api.oefr-kraken.energy/v1/graphql/
Select the vehicle make to proceed in the onboarding journey.
The possible errors that can be raised are:
- KT-CT-1111: Unauthorized.
- KT-CT-4371: Onboarding wizard ID is invalid.
- KT-CT-4372: Simultaneous attempts to update onboarding process.
- KT-CT-4375: Incorrect or missing parameters for SmartFlex onboarding step.
- KT-CT-4376: Unable to complete onboarding step. Please try again later.
- KT-CT-4377: Invalid onboarding step ID.
- KT-CT-4378: Invalid input or step id. Please make sure you are using the correct step id and providing the expected input params.
- KT-CT-4379: Vehicle is not ready for a test charge.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Mutation
mutation SelectVehicleMakeForSmartFlexOnboarding($input: SelectVehicleMakeInput!) {
selectVehicleMakeForSmartFlexOnboarding(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
wizard {
...SmartFlexOnboardingWizardFragment
}
}
}
Variables
{
"input": SelectVehicleMakeInput
}
Response
{
"data": {
"selectVehicleMakeForSmartFlexOnboarding": {
"possibleErrors": [PossibleErrorType],
"wizard": SmartFlexOnboardingWizard
}
}
}
selectVehicleVariantForSmartFlexOnboarding
Type: SelectVehicleVariantForSmartFlexOnboarding
URL: https://api.oefr-kraken.energy/v1/graphql/
Select the vehicle model variant to proceed in the onboarding journey.
The possible errors that can be raised are:
- KT-CT-1111: Unauthorized.
- KT-CT-4371: Onboarding wizard ID is invalid.
- KT-CT-4372: Simultaneous attempts to update onboarding process.
- KT-CT-4375: Incorrect or missing parameters for SmartFlex onboarding step.
- KT-CT-4376: Unable to complete onboarding step. Please try again later.
- KT-CT-4377: Invalid onboarding step ID.
- KT-CT-4378: Invalid input or step id. Please make sure you are using the correct step id and providing the expected input params.
- KT-CT-4379: Vehicle is not ready for a test charge.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Mutation
mutation SelectVehicleVariantForSmartFlexOnboarding($input: SelectVehicleVariantInput!) {
selectVehicleVariantForSmartFlexOnboarding(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
wizard {
...SmartFlexOnboardingWizardFragment
}
}
}
Variables
{
"input": SelectVehicleVariantInput
}
Response
{
"data": {
"selectVehicleVariantForSmartFlexOnboarding": {
"possibleErrors": [PossibleErrorType],
"wizard": SmartFlexOnboardingWizard
}
}
}
selfReading
Type: SelfReading
URL: https://api.oefr-kraken.energy/v1/graphql/
Gather customer's self readings data and call Enedis TIA webservice.
The possible errors that can be raised are:
- KT-CT-4178: No account found with given account number.
- KT-FR-4510: Invalid PRM.
- KT-FR-4513: A technical error has occurred.
- KT-FR-4514: The requested date is not allowed.
- KT-FR-4515: The provided readings are inconsistent.
- KT-FR-4516: The PRM is being modified by another user.
- KT-FR-4517: Unknown error.
- KT-FR-4518: Readings were already provided today.
- KT-FR-4624: Unknown Agreement.
- KT-FR-4712: Invalid meter readings data.
- KT-FR-4713: Invalid data. Reading date cannot be in the future.
- KT-FR-4912: No active agreement found.
- KT-FR-4539: Smart meter is not supported.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
|
Input fields for adding self reading indexes. |
Return fields
Name | Description |
---|
Mutation
mutation SelfReading($input: SelfReadingInputType!) {
selfReading(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
agreementId
meterPointId
readingDate
marketName
}
}
Variables
{
"input": SelfReadingInputType
}
Response
{
"data": {
"selfReading": {
"possibleErrors": [PossibleErrorType],
"agreementId": 1,
"meterPointId": "abc123",
"readingDate": "2020-01-01",
"marketName": "abc123"
}
}
}
Mutation
mutation SendLiveChatMessage($input: SendLiveChatMessageInput!) {
sendLiveChatMessage(input: $input) {
liveChat {
...InkLiveChatFragment
}
messageRelayId
clientMutationId
}
}
Variables
{
"input": SendLiveChatMessageInput
}
Response
{
"data": {
"sendLiveChatMessage": {
"liveChat": InkLiveChat,
"messageRelayId": "abc123",
"clientMutationId": "abc123"
}
}
}
sendPmaxEmailSummary
Type: SendPMAXSummaryEmail
URL: https://api.oefr-kraken.energy/v1/graphql/
Send the PMAX summary email to the customer.
The possible errors that can be raised are:
- KT-FR-8911: PMAX Analysis already sended.
- KT-FR-8910: PMAX Analysis not found.
- KT-FR-8915: Email consent missing.
- KT-CT-4122: Invalid email.
- KT-FR-8917: Failed to send email.
- KT-FR-8918: Can't send email for this analysis.
- KT-CT-1113: Disabled GraphQL field requested.
Arguments
Name | Description |
---|---|
|
Input fields for for checking the eligibility of meter points. |
Return fields
Name | Description |
---|
Mutation
mutation SendPmaxEmailSummary($input: PMAXEmailSummaryInput!) {
sendPmaxEmailSummary(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
pmaxAnalysis {
...PMAXAnalysisTypeFragment
}
}
}
Variables
{
"input": PMAXEmailSummaryInput
}
Response
{
"data": {
"sendPmaxEmailSummary": {
"possibleErrors": [PossibleErrorType],
"pmaxAnalysis": PMAXAnalysisType
}
}
}
sendQuoteSummary
Type: SendQuoteSummary
URL: https://api.oefr-kraken.energy/v1/graphql/
Send a quote summary to the provided recipient.
The possible errors that can be raised are:
- KT-CT-4619: Quote with given code not found.
- KT-CT-4178: No account found with given account number.
- KT-CT-4632: Invalid recipient information.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Mutation
mutation SendQuoteSummary($input: QuoteShareInput!) {
sendQuoteSummary(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
success
}
}
Variables
{
"input": QuoteShareInput
}
Response
{
"data": {
"sendQuoteSummary": {
"possibleErrors": [PossibleErrorType],
"success": true
}
}
}
sendVerificationEmail
Type: SendVerificationEmail
URL: https://api.oefr-kraken.energy/v1/graphql/
Verify user's email address.
The possible errors that can be raised are:
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Mutation
mutation SendVerificationEmail($input: SendVerificationEmailInput!) {
sendVerificationEmail(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
verificationStatus
}
}
Variables
{
"input": SendVerificationEmailInput
}
Response
{
"data": {
"sendVerificationEmail": {
"possibleErrors": [PossibleErrorType],
"verificationStatus": true
}
}
}
setActivationProcessSwitchReadings
Type: SetActivationProcessSwitchReadings
URL: https://api.oefr-kraken.energy/v1/graphql/
Update an activation process' switch readings.
The possible errors that can be raised are:
- KT-FR-4712: Invalid meter readings data.
- KT-FR-4713: Invalid data. Reading date cannot be in the future.
- KT-FR-4912: No active agreement found.
- KT-FR-6912: The activation process provided does not exists.
- KT-FR-6913: The activation process is not in a checkoutable status.
- KT-FR-6914: The activation process does not belong to the logged user account.
- KT-CT-1113: Disabled GraphQL field requested.
Arguments
Name | Description |
---|---|
Input fields to update the switch readings of an activation process. |
Return fields
Name | Description |
---|
Mutation
mutation SetActivationProcessSwitchReadings($input: SetActivationProcessSwitchReadingsInputType!) {
setActivationProcessSwitchReadings(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
activationProcessId
}
}
Variables
{
"input": SetActivationProcessSwitchReadingsInputType
}
Response
{
"data": {
"setActivationProcessSwitchReadings": {
"possibleErrors": [PossibleErrorType],
"activationProcessId": "abc123"
}
}
}
setDevicePreferences
Type: SmartFlexDeviceInterface
URL: https://api.oefr-kraken.energy/v1/graphql/
Set the user preferences for a device.
The possible errors that can be raised are:
- KT-CT-4314: Unable to get provider details.
- KT-CT-4321: Serializer validation error.
- KT-CT-4374: An error occurred while trying to set your device preferences.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
|
The device preference details to be updated. |
Return fields
Name | Description |
---|
Mutation
mutation SetDevicePreferences($input: SmartFlexDevicePreferencesInput!) {
setDevicePreferences(input: $input) {
id
name
deviceType
provider
integrationDeviceId
status {
...SmartFlexDeviceStatusInterfaceFragment
}
propertyId
alerts {
...SmartFlexDeviceAlertInterfaceFragment
}
onboardingWizard {
...SmartFlexOnboardingWizardFragment
}
preferences {
...SmartFlexDevicePreferencesInterfaceFragment
}
preferenceSetting {
...FlexDevicePreferenceSettingInterfaceFragment
}
}
}
Variables
{
"input": SmartFlexDevicePreferencesInput
}
Response
{
"data": {
"setDevicePreferences": {
"id": "abc123",
"name": "abc123",
"deviceType": "BATTERIES",
"provider": "BYD",
"integrationDeviceId": "abc123",
"status": SmartFlexDeviceStatusInterface,
"propertyId": "abc123",
"alerts": SmartFlexDeviceAlertInterface,
"onboardingWizard": SmartFlexOnboardingWizard,
"preferences": SmartFlexDevicePreferencesInterface,
"preferenceSetting": FlexDevicePreferenceSettingInterface
}
}
}
setLoyaltyPointsUser
Type: SetLoyaltyPointsUser
URL: https://api.oefr-kraken.energy/v1/graphql/
Set the Loyalty Point user for the account.
The possible errors that can be raised are:
- KT-CT-1111: Unauthorized.
- KT-CT-9210: Unhandled Loyalty Points exception.
- KT-CT-9214: Couldn't assign user loyalty points role.
- KT-CT-1113: Disabled GraphQL field requested.
Arguments
Name | Description |
---|---|
|
Input fields for saving the Loyalty Points user. |
Return fields
Name | Description |
---|
Mutation
mutation SetLoyaltyPointsUser($input: SetLoyaltyPointsUserInput!) {
setLoyaltyPointsUser(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
newLoyaltyPointsUserId
}
}
Variables
{
"input": SetLoyaltyPointsUserInput
}
Response
{
"data": {
"setLoyaltyPointsUser": {
"possibleErrors": [PossibleErrorType],
"newLoyaltyPointsUserId": "abc123"
}
}
}
setOpportunityOutcome
Type: SetOpportunityOutcome
URL: https://api.oefr-kraken.energy/v1/graphql/
Update the opportunity outcome to mark the opportunity as won or lost.
The possible errors that can be raised are:
- KT-CT-8906: Opportunity not found.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
|
Input fields for setting the outcome of a opportunity. |
Return fields
Name | Description |
---|
Mutation
mutation SetOpportunityOutcome($input: SetOpportunityOutcomeInput!) {
setOpportunityOutcome(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
message
}
}
Variables
{
"input": SetOpportunityOutcomeInput
}
Response
{
"data": {
"setOpportunityOutcome": {
"possibleErrors": [PossibleErrorType],
"message": "abc123"
}
}
}
setPaymentPreference
Type: SetPaymentPreference
URL: https://api.oefr-kraken.energy/v1/graphql/
Set a preference to collect payments from a specific payment method.
The possible errors that can be raised are:
- KT-CT-1111: Unauthorized.
- KT-CT-3822: Unauthorized.
- KT-CT-3967: Payment method is not valid.
- KT-CT-3968: Preference cannot be set this soon.
- KT-CT-3969: Preferences must change on a specific day of the week for weekly schedules.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Mutation
mutation SetPaymentPreference($input: SetPaymentPreferenceInput!) {
setPaymentPreference(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
}
}
Variables
{
"input": SetPaymentPreferenceInput
}
Response
{
"data": {
"setPaymentPreference": {
"possibleErrors": [PossibleErrorType]
}
}
}
setUpDirectDebitInstruction
Type: SetUpDirectDebitInstruction
URL: https://api.oefr-kraken.energy/v1/graphql/
Set up a new direct debit instruction.
The possible errors that can be raised are:
- KT-CT-3820: Received both ledger ID and number.
- KT-CT-3821: Received neither ledger ID nor ledger number.
- KT-CT-3940: Invalid data.
- KT-CT-5415: Account user not found.
- KT-CT-11103: Business not found.
- KT-CT-3971: Instruction owners are not valid.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
Input fields for creating a new direct debit instruction |
Return fields
Name | Description |
---|
Mutation
mutation SetUpDirectDebitInstruction($input: SetUpDirectDebitInstructionInput!) {
setUpDirectDebitInstruction(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
paymentInstruction {
...DirectDebitInstructionTypeFragment
}
}
}
Variables
{
"input": SetUpDirectDebitInstructionInput
}
Response
{
"data": {
"setUpDirectDebitInstruction": {
"possibleErrors": [PossibleErrorType],
"paymentInstruction": DirectDebitInstructionType
}
}
}
setVehicleChargePreferences
Type: SetVehicleChargingPreferences
URL: https://api.oefr-kraken.energy/v1/graphql/
Set charging preferences for your electric vehicle.
The possible errors that can be raised are:
- KT-CT-4301: Unable to find device for given account.
- KT-CT-4321: Serializer validation error.
- KT-CT-4353: An error occurred while trying to update your charging preferences.
- KT-CT-1113: Disabled GraphQL field requested.
Mutation
mutation SetVehicleChargePreferences($input: VehicleChargingPreferencesInput) {
setVehicleChargePreferences(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
krakenflexDevice {
...KrakenFlexDeviceTypeFragment
}
}
}
Variables
{
"input": VehicleChargingPreferencesInput
}
Response
{
"data": {
"setVehicleChargePreferences": {
"possibleErrors": [PossibleErrorType],
"krakenflexDevice": KrakenFlexDeviceType
}
}
}
shareGoodsQuote
Type: ShareGoodsQuote
URL: https://api.oefr-kraken.energy/v1/graphql/
Share a goods quote.
The possible errors that can be raised are:
- KT-CT-4122: Invalid email.
- KT-CT-8203: Received an invalid quote code.
- KT-CT-1113: Disabled GraphQL field requested.
Arguments
Name | Description |
---|---|
|
Input fields for sharing a quote. |
Return fields
Name | Description |
---|
Mutation
mutation ShareGoodsQuote($input: ShareGoodsQuoteInput!) {
shareGoodsQuote(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
share {
...GoodsQuoteShareFragment
}
}
}
Variables
{
"input": ShareGoodsQuoteInput
}
Response
{
"data": {
"shareGoodsQuote": {
"possibleErrors": [PossibleErrorType],
"share": GoodsQuoteShare
}
}
}
startCustomerVerification
Type: StartCustomerVerification
URL: https://api.oefr-kraken.energy/v1/graphql/
Start the customer verification using the provided verification method.
The possible errors that can be raised are:
- KT-CT-1701: Brand does not exist.
- KT-CT-4194: Verification type not supported yet.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Mutation
mutation StartCustomerVerification($input: StartCustomerVerificationInput!) {
startCustomerVerification(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
verificationProcess {
...VerificationProcessFragment
}
}
}
Variables
{
"input": StartCustomerVerificationInput
}
Response
{
"data": {
"startCustomerVerification": {
"possibleErrors": [PossibleErrorType],
"verificationProcess": VerificationProcess
}
}
}
startSmartFlexOnboarding
Type: StartSmartFlexOnboarding
URL: https://api.oefr-kraken.energy/v1/graphql/
Create a wizard for onboarding a device with SmartFlex.
The possible errors that can be raised are:
- KT-CT-4321: Serializer validation error.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Mutation
mutation StartSmartFlexOnboarding($input: StartSmartFlexOnboardingInput!) {
startSmartFlexOnboarding(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
wizard {
...SmartFlexOnboardingWizardFragment
}
}
}
Variables
{
"input": StartSmartFlexOnboardingInput
}
Response
{
"data": {
"startSmartFlexOnboarding": {
"possibleErrors": [PossibleErrorType],
"wizard": SmartFlexOnboardingWizard
}
}
}
startTestChargeForSmartFlexOnboarding
Type: StartTestChargeForSmartFlexOnboarding
URL: https://api.oefr-kraken.energy/v1/graphql/
Attempt to start a test charge.
The possible errors that can be raised are:
- KT-CT-1111: Unauthorized.
- KT-CT-4371: Onboarding wizard ID is invalid.
- KT-CT-4372: Simultaneous attempts to update onboarding process.
- KT-CT-4375: Incorrect or missing parameters for SmartFlex onboarding step.
- KT-CT-4376: Unable to complete onboarding step. Please try again later.
- KT-CT-4377: Invalid onboarding step ID.
- KT-CT-4378: Invalid input or step id. Please make sure you are using the correct step id and providing the expected input params.
- KT-CT-4379: Vehicle is not ready for a test charge.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
Return fields
Name | Description |
---|
Mutation
mutation StartTestChargeForSmartFlexOnboarding($input: CompleteSmartFlexOnboardingStepInput!) {
startTestChargeForSmartFlexOnboarding(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
wizard {
...SmartFlexOnboardingWizardFragment
}
}
}
Variables
{
"input": CompleteSmartFlexOnboardingStepInput
}
Response
{
"data": {
"startTestChargeForSmartFlexOnboarding": {
"possibleErrors": [PossibleErrorType],
"wizard": SmartFlexOnboardingWizard
}
}
}
stopAutomatedPayments
Type: StopAutomatedPayments
URL: https://api.oefr-kraken.energy/v1/graphql/
Set a preference to not collect automated payments.
The possible errors that can be raised are:
- KT-CT-1111: Unauthorized.
- KT-CT-3822: Unauthorized.
- KT-CT-3968: Preference cannot be set this soon.
- KT-CT-3969: Preferences must change on a specific day of the week for weekly schedules.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Mutation
mutation StopAutomatedPayments($input: StopAutomatedPaymentsInput!) {
stopAutomatedPayments(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
}
}
Variables
{
"input": StopAutomatedPaymentsInput
}
Response
{
"data": {
"stopAutomatedPayments": {
"possibleErrors": [PossibleErrorType]
}
}
}
storeDirectDebitPaymentMethodDetails
Type: StoreDirectDebitPaymentMethodDetails
URL: https://api.oefr-kraken.energy/v1/graphql/
Store bank details with the vendor.
The possible errors that can be raised are:
- KT-CT-3820: Received both ledger ID and number.
- KT-CT-3821: Received neither ledger ID nor ledger number.
- KT-CT-3940: Invalid data.
- KT-CT-3956: Temporary error occurred.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
Store bank details with the vendor. |
Return fields
Name | Description |
---|
Mutation
mutation StoreDirectDebitPaymentMethodDetails($input: StoreDirectDebitPaymentMethodDetailsInput!) {
storeDirectDebitPaymentMethodDetails(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
storedPaymentMethodDetailsReference
}
}
Variables
{
"input": StoreDirectDebitPaymentMethodDetailsInput
}
Response
{
"data": {
"storeDirectDebitPaymentMethodDetails": {
"possibleErrors": [PossibleErrorType],
"storedPaymentMethodDetailsReference": "abc123"
}
}
}
storePaymentInstruction
Type: StorePaymentInstruction
URL: https://api.oefr-kraken.energy/v1/graphql/
Store a new payment instruction created through the embedded process.
The possible errors that can be raised are:
- KT-CT-3820: Received both ledger ID and number.
- KT-CT-4177: Unauthorized.
- KT-CT-3822: Unauthorized.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
|
Input fields for storing a new payment instruction created through the embedded process. |
Return fields
Name | Description |
---|
Mutation
mutation StorePaymentInstruction($input: StorePaymentInstructionInput!) {
storePaymentInstruction(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
paymentInstruction {
...PaymentInstructionTypeFragment
}
}
}
Variables
{
"input": StorePaymentInstructionInput
}
Response
{
"data": {
"storePaymentInstruction": {
"possibleErrors": [PossibleErrorType],
"paymentInstruction": PaymentInstructionType
}
}
}
submitCustomerFeedback
Type: SubmitCustomerFeedback
URL: https://api.oefr-kraken.energy/v1/graphql/
Submit customer feedback.
The possible errors that can be raised are:
- KT-CT-5514: Unable to submit feedback.
- KT-CT-5511: The feedback_id should be provided for feedback source.
- KT-CT-5512: The feedback doesn't match the account.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Mutation
mutation SubmitCustomerFeedback($input: CustomerFeedbackInputType!) {
submitCustomerFeedback(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
customerFeedback {
...CustomerFeedbackTypeFragment
}
}
}
Variables
{
"input": CustomerFeedbackInputType
}
Response
{
"data": {
"submitCustomerFeedback": {
"possibleErrors": [PossibleErrorType],
"customerFeedback": CustomerFeedbackType
}
}
}
submitRepaymentRequest
Type: SubmitRepaymentRequest
URL: https://api.oefr-kraken.energy/v1/graphql/
Submit a repayment request.
The possible errors that can be raised are:
- KT-CT-1132: Unauthorized.
- KT-CT-3820: Received both ledger ID and number.
- KT-CT-3821: Received neither ledger ID nor ledger number.
- KT-CT-3926: Unauthorized.
- KT-CT-3927: Invalid Amount.
- KT-CT-3928: Idempotency key used for another repayment request.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
|
Input fields for requesting a repayment. |
Return fields
Name | Description |
---|
Mutation
mutation SubmitRepaymentRequest($input: RequestRepaymentInputType!) {
submitRepaymentRequest(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
repaymentRequest {
...RequestRepaymentOutputTypeFragment
}
}
}
Variables
{
"input": RequestRepaymentInputType
}
Response
{
"data": {
"submitRepaymentRequest": {
"possibleErrors": [PossibleErrorType],
"repaymentRequest": RequestRepaymentOutputType
}
}
}
suspendControl
Type: SuspendDeviceControl
URL: https://api.oefr-kraken.energy/v1/graphql/
Suspend control of the device.
The possible errors that can be raised are:
- KT-CT-4301: Unable to find device for given account.
- KT-CT-4358: Unable to suspend device control.
- KT-CT-1113: Disabled GraphQL field requested.
Mutation
mutation SuspendControl($input: AccountNumberInput) {
suspendControl(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
krakenflexDevice {
...KrakenFlexDeviceTypeFragment
}
}
}
Variables
{
"input": AccountNumberInput
}
Response
{
"data": {
"suspendControl": {
"possibleErrors": [PossibleErrorType],
"krakenflexDevice": KrakenFlexDeviceType
}
}
}
switchAccountToVariablePaymentSchedule
Type: SwitchAccountToVariablePaymentSchedule
URL: https://api.oefr-kraken.energy/v1/graphql/
Switch account to variable payment schedule. Current schedule type will be preserved.
The possible errors that can be raised are:
- KT-CT-1111: Unauthorized.
- KT-CT-3921: Account not found.
- KT-CT-3922: Ledger not found for the account.
- KT-CT-3947: An unexpected error occurred.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
Input fields for switching to a variable payment schedule. |
Return fields
Name | Description |
---|
Mutation
mutation SwitchAccountToVariablePaymentSchedule($input: SwitchAccountToVariablePaymentScheduleInput!) {
switchAccountToVariablePaymentSchedule(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
schedule {
...PaymentScheduleTypeFragment
}
}
}
Variables
{
"input": SwitchAccountToVariablePaymentScheduleInput
}
Response
{
"data": {
"switchAccountToVariablePaymentSchedule": {
"possibleErrors": [PossibleErrorType],
"schedule": PaymentScheduleType
}
}
}
switchProduct
Type: SwitchProduct
URL: https://api.oefr-kraken.energy/v1/graphql/
Changes an agreement's product.
The possible errors that can be raised are:
- KT-FR-4114: Account not found.
- KT-FR-4115: QuotedProduct not found.
- KT-CT-1113: Disabled GraphQL field requested.
Arguments
Name | Description |
---|---|
|
Input fields for accepting a product switching request. |
Return fields
Name | Description |
---|
Mutation
mutation SwitchProduct($input: SwitchProductInputType!) {
switchProduct(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
newAgreement {
...AgreementTypeFragment
}
}
}
Variables
{
"input": SwitchProductInputType
}
Response
{
"data": {
"switchProduct": {
"possibleErrors": [PossibleErrorType],
"newAgreement": AgreementType
}
}
}
terminateCreditTransferPermission
Type: TerminateCreditTransferPermission
URL: https://api.oefr-kraken.energy/v1/graphql/
Terminate credit transfer permission.
The possible errors that can be raised are:
- KT-CT-3822: Unauthorized.
- KT-CT-3825: Credit transfer permission not found.
- KT-CT-3827: The ledger is not valid.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
Input fields for terminating a credit transfer permission. |
Return fields
Name | Description |
---|
Mutation
mutation TerminateCreditTransferPermission($input: TerminateCreditTransferPermissionInput!) {
terminateCreditTransferPermission(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
validTo
}
}
Variables
{
"input": TerminateCreditTransferPermissionInput
}
Response
{
"data": {
"terminateCreditTransferPermission": {
"possibleErrors": [PossibleErrorType],
"validTo": "2020-01-01T00:00:00.000Z"
}
}
}
thirdPartyCompleteDeviceRegistration
Type: ThirdPartyCompleteDeviceRegistration
URL: https://api.oefr-kraken.energy/v1/graphql/
Completes the registration of a device if the contract is eligible and the device registration valid.
The possible errors that can be raised are:
- KT-CT-4321: Serializer validation error.
- KT-CT-4322: Unable to complete registration error.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Mutation
mutation ThirdPartyCompleteDeviceRegistration($input: CompleteDeviceRegistrationInput) {
thirdPartyCompleteDeviceRegistration(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
success {
...ThirdPartyCompleteDeviceRegistrationTypeFragment
}
}
}
Variables
{
"input": CompleteDeviceRegistrationInput
}
Response
{
"data": {
"thirdPartyCompleteDeviceRegistration": {
"possibleErrors": [PossibleErrorType],
"success": ThirdPartyCompleteDeviceRegistrationType
}
}
}
transferLedgerBalance
Type: TransferLedgerBalance
URL: https://api.oefr-kraken.energy/v1/graphql/
Transfer value from a source ledger to a destination ledger. This decreases the balance of the source ledger by the given amount and increases the balance of the destination ledger by the same amount. If the amount is negative, the effect is reversed (the source ledger's balance increases and the destination ledger's balance decreases).
This field requires the Authorization
header to be set.
The possible errors that can be raised are:
- KT-CT-3822: Unauthorized.
- KT-CT-3823: Unauthorized.
- KT-CT-9701: Balance transfer to same account is not allowed.
- KT-CT-9702: Balance transfer is not support for debit account with Zero balance.
- KT-CT-9703: Balance transfer is not supported for debit account.
- KT-CT-9704: Balance transfer amount should be non-zero.
- KT-CT-3820: Received both ledger ID and number.
- KT-CT-3821: Received neither ledger ID nor ledger number.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
|
Input fields for processing an account balance transfer. |
Return fields
Name | Description |
---|
Mutation
mutation TransferLedgerBalance($input: TransferLedgerBalanceInputType!) {
transferLedgerBalance(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
balanceTransfer {
...AccountBalanceTransferTypeFragment
}
}
}
Variables
{
"input": TransferLedgerBalanceInputType
}
Response
{
"data": {
"transferLedgerBalance": {
"possibleErrors": [PossibleErrorType],
"balanceTransfer": AccountBalanceTransferType
}
}
}
transferLoyaltyPointsBetweenUsers
Type: TransferLoyaltyPointsBetweenUsers
URL: https://api.oefr-kraken.energy/v1/graphql/
Transfer Loyalty Point from one account user to another.
The possible errors that can be raised are:
- KT-CT-1111: Unauthorized.
- KT-CT-9205: Insufficient Loyalty Points.
- KT-CT-9204: Negative or zero points set.
- KT-CT-9208: Invalid posted at datetime.
- KT-CT-9209: Negative Loyalty Points balance.
- KT-CT-9210: Unhandled Loyalty Points exception.
- KT-CT-1113: Disabled GraphQL field requested.
Arguments
Name | Description |
---|---|
Input fields for transferring Loyalty Points. |
Return fields
Name | Description |
---|
Mutation
mutation TransferLoyaltyPointsBetweenUsers($input: TransferLoyaltyPointsBetweenUsersInput!) {
transferLoyaltyPointsBetweenUsers(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
pointsTransferred
}
}
Variables
{
"input": TransferLoyaltyPointsBetweenUsersInput
}
Response
{
"data": {
"transferLoyaltyPointsBetweenUsers": {
"possibleErrors": [PossibleErrorType],
"pointsTransferred": 1
}
}
}
triggerBoostCharge
Type: PerformBoostCharge
URL: https://api.oefr-kraken.energy/v1/graphql/
Initiate a boost charge for an electric vehicle (EV).
This will start charging the EV and will not stop until the battery reaches 100% charged.
If it is not possible to initiate a boost charge, a KT-CT-4357 error will be returned.
It may have a boostChargeRefusalReasons
extension which lists the reasons why the boost
charge was refused. Possible reasons include:
BC_DEVICE_NOT_YET_LIVE
(device is not yet live)BC_DEVICE_RETIRED
(device is retired)BC_DEVICE_SUSPENDED
(device is suspended)BC_DEVICE_DISCONNECTED
(device is disconnected)BC_DEVICE_NOT_AT_HOME
(device is not at home)BC_BOOST_CHARGE_IN_PROGRESS
(boost charge already in progress)BC_DEVICE_FULLY_CHARGED
(device is already fully charged)
The possible errors that can be raised are:
- KT-CT-1111: Unauthorized.
- KT-CT-4356: A boost charge cannot currently be performed.
- KT-CT-4357: Unable to trigger boost charge.
- KT-CT-1113: Disabled GraphQL field requested.
Mutation
mutation TriggerBoostCharge($input: AccountNumberInput) {
triggerBoostCharge(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
krakenflexDevice {
...KrakenFlexDeviceTypeFragment
}
}
}
Variables
{
"input": AccountNumberInput
}
Response
{
"data": {
"triggerBoostCharge": {
"possibleErrors": [PossibleErrorType],
"krakenflexDevice": KrakenFlexDeviceType
}
}
}
triggerTestCharge
Type: PerformTestCharge
URL: https://api.oefr-kraken.energy/v1/graphql/
Initiate a test charge of an electric vehicle (EV).
This is to ensure that the EV or EVSE (charge point) can be controlled remotely and successfully charged for a short period.
If it is not possible to initiate a test charge, a KT-CT-4355 error will be returned. It may have a
testChargeRefusalReasons
extension which lists the reasons why the test charge was refused. Possible reasons
include:
TC_DEVICE_LIVE
(device is already live)TC_DEVICE_ONBOARDING_IN_PROGRESS
(test dispatch already in progress)TC_DEVICE_RETIRED
(device is retired)TC_DEVICE_SUSPENDED
(device is suspended)TC_DEVICE_DISCONNECTED
(device is disconnected)TC_DEVICE_ALREADY_CHARGING
(device is already charging)TC_DEVICE_AWAY_FROM_HOME
(device is away from home)TC_DEVICE_NO_LOCATION_CONFIGURED
(device has no location configured)TC_DEVICE_LOCATION_UNABLE_TO_IDENTIFY
(unable to identify device location)TC_DEVICE_LOCATION_MISSING
(device location is missing)
The possible errors that can be raised are:
- KT-CT-1111: Unauthorized.
- KT-CT-4362: Device not ready for test charge.
- KT-CT-4355: Unable to trigger charge.
- KT-CT-1113: Disabled GraphQL field requested.
Mutation
mutation TriggerTestCharge($input: AccountNumberInput) {
triggerTestCharge(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
krakenflexDevice {
...KrakenFlexDeviceTypeFragment
}
}
}
Variables
{
"input": AccountNumberInput
}
Response
{
"data": {
"triggerTestCharge": {
"possibleErrors": [PossibleErrorType],
"krakenflexDevice": KrakenFlexDeviceType
}
}
}
unenrollAccountFromLoyaltyProgram
Type: UnenrollAccountFromLoyaltyProgram
URL: https://api.oefr-kraken.energy/v1/graphql/
Unenroll users account from Loyalty program.
The possible errors that can be raised are:
- KT-CT-1111: Unauthorized.
- KT-CT-9220: Ineligible loyalty points unenrollment.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
The account number to unenroll from the loyalty program. |
Return fields
Name | Description |
---|
Mutation
mutation UnenrollAccountFromLoyaltyProgram($input: UnenrollAccountFromLoyaltyProgramInput!) {
unenrollAccountFromLoyaltyProgram(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
outcome {
...UnenrollAccountFromLoyaltyProgramOutcomeFragment
}
}
}
Variables
{
"input": UnenrollAccountFromLoyaltyProgramInput
}
Response
{
"data": {
"unenrollAccountFromLoyaltyProgram": {
"possibleErrors": [PossibleErrorType],
"outcome": UnenrollAccountFromLoyaltyProgramOutcome
}
}
}
unlinkUserFromLine
Type: UnlinkUserFromLineResponse!
URL: https://api.oefr-kraken.energy/v1/graphql/
Unlink an account user and line together.
Return fields
Name | Description |
---|
Mutation
mutation UnlinkUserFromLine {
unlinkUserFromLine
}
Response
{
"data": {
"unlinkUserFromLine": UnlinkUserFromLineResponse
}
}
updateAccountBillingAddress
Type: UpdateAccountBillingAddress
URL: https://api.oefr-kraken.energy/v1/graphql/
Update the account billing address.
The possible errors that can be raised are:
- KT-CT-4145: Invalid address.
- KT-CT-7123: Unauthorized.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
|
Input variables needed for updating an account billing address. |
Return fields
Name | Description |
---|
Mutation
mutation UpdateAccountBillingAddress($input: AccountBillingAddressInput!) {
updateAccountBillingAddress(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
account {
...AccountTypeFragment
}
}
}
Variables
{
"input": AccountBillingAddressInput
}
Response
{
"data": {
"updateAccountBillingAddress": {
"possibleErrors": [PossibleErrorType],
"account": AccountType
}
}
}
updateAccountBillingEmail
Type: UpdateAccountBillingEmail
URL: https://api.oefr-kraken.energy/v1/graphql/
Update account billing email.
The possible errors that can be raised are:
- KT-CT-4123: Unauthorized.
- KT-CT-4122: Invalid email.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
|
Input fields for updating billing email for an account. |
Return fields
Name | Description |
---|
Mutation
mutation UpdateAccountBillingEmail($input: UpdateAccountBillingEmailInput!) {
updateAccountBillingEmail(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
account {
...AccountInterfaceFragment
}
}
}
Variables
{
"input": UpdateAccountBillingEmailInput
}
Response
{
"data": {
"updateAccountBillingEmail": {
"possibleErrors": [PossibleErrorType],
"account": AccountInterface
}
}
}
updateAccountConsents
Type: UpdateAccountConsents
URL: https://api.oefr-kraken.energy/v1/graphql/
Update the consents of an account
The possible errors that can be raised are:
- KT-CT-9014: Duplicate consent.
- KT-CT-9016: Consent management not enabled.
- KT-CT-9017: Consent type not found.
- KT-CT-9018: Account not found.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
|
The account number to update consents for. |
|
Consents to update for account. |
Return fields
Name | Description |
---|
Mutation
mutation UpdateAccountConsents(
$accountNumber: String!,
$consents: [ConsentInput]!
) {
updateAccountConsents(
accountNumber: $accountNumber,
consents: $consents
) {
possibleErrors {
...PossibleErrorTypeFragment
}
consents {
...ConsentTypeFragment
}
}
}
Variables
{
"accountNumber": "abc123",
"consents": ConsentInput
}
Response
{
"data": {
"updateAccountConsents": {
"possibleErrors": [PossibleErrorType],
"consents": ConsentType
}
}
}
updateAccountReference
Type: UpdateAccountReference
URL: https://api.oefr-kraken.energy/v1/graphql/
Update an account reference.
The possible errors that can be raised are:
- KT-CT-4123: Unauthorized.
- KT-CT-8310: Invalid data.
- KT-CT-8311: Invalid data.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
|
Input fields for updating an account reference. |
Return fields
Name | Description |
---|
Mutation
mutation UpdateAccountReference($input: AccountReferenceInput!) {
updateAccountReference(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
accountReference {
...AccountReferenceTypeFragment
}
}
}
Variables
{
"input": AccountReferenceInput
}
Response
{
"data": {
"updateAccountReference": {
"possibleErrors": [PossibleErrorType],
"accountReference": AccountReferenceType
}
}
}
updateAccountUserConsents
Type: UpdateAccountUserConsents
URL: https://api.oefr-kraken.energy/v1/graphql/
Update the consents of an account user (the authenticated user)
The possible errors that can be raised are:
- KT-CT-9014: Duplicate consent.
- KT-CT-9016: Consent management not enabled.
- KT-CT-9017: Consent type not found.
- KT-CT-1111: Unauthorized.
- KT-CT-5421: Account user not found.
- KT-CT-5422: Invalid data.
- KT-CT-1605: Invalid input.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
|
Consents to update for account user. |
|
User number of the account user to update consents for. Only needed if the viewer is an organization. |
Return fields
Name | Description |
---|
Mutation
mutation UpdateAccountUserConsents(
$consents: [ConsentTypeInput],
$userNumber: String
) {
updateAccountUserConsents(
consents: $consents,
userNumber: $userNumber
) {
possibleErrors {
...PossibleErrorTypeFragment
}
accountUserConsents {
...AccountUserConsentsFragment
}
}
}
Variables
{
"consents": ConsentTypeInput,
"userNumber": "abc123"
}
Response
{
"data": {
"updateAccountUserConsents": {
"possibleErrors": [PossibleErrorType],
"accountUserConsents": AccountUserConsents
}
}
}
updateActivePurchase
Type: UpdateActivePurchase
URL: https://api.oefr-kraken.energy/v1/graphql/
Update an active purchase.
The possible errors that can be raised are:
- KT-CT-8225: Received an invalid purchaseId.
- KT-CT-8226: The provided purchase is not active.
- KT-CT-8206: Invalid data.
- KT-CT-8227: Available grants could not be applied.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
|
Input fields for updating an active purchase. |
Return fields
Name | Description |
---|
Mutation
mutation UpdateActivePurchase($input: UpdatePurchaseInput!) {
updateActivePurchase(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
goodsPurchase {
...GoodsPurchaseFragment
}
}
}
Variables
{
"input": UpdatePurchaseInput
}
Response
{
"data": {
"updateActivePurchase": {
"possibleErrors": [PossibleErrorType],
"goodsPurchase": GoodsPurchase
}
}
}
updateAffiliateLink
Type: UpdateAffiliateLink!
URL: https://api.oefr-kraken.energy/v1/graphql/
Update an existing affiliate link.
The possible errors that can be raised are:
- KT-CT-7711: Invalid data.
- KT-CT-7713: Invalid data.
- KT-CT-7714: Invalid data.
- KT-CT-7715: Invalid data.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
|
Input fields for Updating an existing affiliate link |
Return fields
Name | Description |
---|
Mutation
mutation UpdateAffiliateLink($input: UpdateAffiliateLinkInputType!) {
updateAffiliateLink(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
affiliateLink {
...AffiliateLinkTypeFragment
}
}
}
Variables
{
"input": UpdateAffiliateLinkInputType
}
Response
{
"data": {
"updateAffiliateLink": {
"possibleErrors": [PossibleErrorType],
"affiliateLink": AffiliateLinkType
}
}
}
updateAffiliateOrganisation
Type: UpdateAffiliateOrganisation!
URL: https://api.oefr-kraken.energy/v1/graphql/
Update an existing affiliate organisation.
The possible errors that can be raised are:
- KT-CT-7717: Invalid data.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
Input fields for Updating an existing affiliate organisation |
Return fields
Name | Description |
---|
Mutation
mutation UpdateAffiliateOrganisation($input: UpdateAffiliateOrganisationInputType!) {
updateAffiliateOrganisation(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
affiliateOrganisation {
...AffiliateOrganisationTypeFragment
}
}
}
Variables
{
"input": UpdateAffiliateOrganisationInputType
}
Response
{
"data": {
"updateAffiliateOrganisation": {
"possibleErrors": [PossibleErrorType],
"affiliateOrganisation": AffiliateOrganisationType
}
}
}
updateAgreementPeriod
Type: UpdateAgreementPeriod
URL: https://api.oefr-kraken.energy/v1/graphql/
Update the period of an agreement.
The possible errors that can be raised are:
- KT-CT-4178: No account found with given account number.
- KT-CT-1501: Agreement not found.
- KT-CT-1503: Agreement validto date must be later than validfrom date.
- KT-CT-1504: Account does not match with the agreement.
- KT-CT-1505: Unable to edit agreement.
- KT-CT-1506: Agreement period is not within the supply and property period.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
|
Input for updating the agreement period. |
Return fields
Name | Description |
---|
Mutation
mutation UpdateAgreementPeriod($input: UpdateAgreementPeriodInput!) {
updateAgreementPeriod(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
account {
...AccountTypeFragment
}
}
}
Variables
{
"input": UpdateAgreementPeriodInput
}
Response
{
"data": {
"updateAgreementPeriod": {
"possibleErrors": [PossibleErrorType],
"account": AccountType
}
}
}
updateApiException
Type: UpdateAPIException
URL: https://api.oefr-kraken.energy/v1/graphql/
Mutation to update an existing APIException instance.
The possible errors that can be raised are:
- KT-CT-7804: No fields present in the input for updating the APIException.
- KT-CT-7803: Received an invalid apiExceptionId.
- KT-CT-7809: Update results in no changes to API Exception.
- KT-CT-7805: Too many tags associated with this API Exception.
- KT-CT-7806: Cannot create duplicate tags for the same API exception.
- KT-CT-7801: Received an invalid operationsTeamId.
- KT-CT-7811: Received an invalid assignedUserId.
- KT-CT-7812: Support user is inactive.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
|
Input fields for updating an API exception. |
Return fields
Name | Description |
---|
Mutation
mutation UpdateApiException($input: UpdateAPIExceptionInput!) {
updateApiException(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
apiException {
...APIExceptionTypeFragment
}
}
}
Variables
{
"input": UpdateAPIExceptionInput
}
Response
{
"data": {
"updateApiException": {
"possibleErrors": [PossibleErrorType],
"apiException": APIExceptionType
}
}
}
updateApiExceptionNote
Type: UpdateAPIExceptionNote
URL: https://api.oefr-kraken.energy/v1/graphql/
Mutation to update an existing APIExceptionNote instance.
The possible errors that can be raised are:
- KT-CT-7807: Received an invalid apiExceptionNoteId.
- KT-CT-7808: Unauthorized.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
|
Input fields for creating an API exception note. |
Return fields
Name | Description |
---|
Mutation
mutation UpdateApiExceptionNote($input: UpdateAPIExceptionNoteInput!) {
updateApiExceptionNote(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
apiException {
...APIExceptionTypeFragment
}
}
}
Variables
{
"input": UpdateAPIExceptionNoteInput
}
Response
{
"data": {
"updateApiExceptionNote": {
"possibleErrors": [PossibleErrorType],
"apiException": APIExceptionType
}
}
}
updateAutoTopUpAmount
Type: UpdateAutoTopUpAmount
URL: https://api.oefr-kraken.energy/v1/graphql/
Change the auto top up amount for the payment schedule.
The possible errors that can be raised are:
- KT-CT-3815: No active payment schedule found for this account.
- KT-CT-3941: Invalid data.
- KT-CT-3942: An unexpected error occurred.
- KT-CT-3947: An unexpected error occurred.
- KT-CT-3953: The payment schedule is not a balance triggered schedule.
- KT-CT-3820: Received both ledger ID and number.
- KT-CT-3821: Received neither ledger ID nor ledger number.
- KT-CT-3822: Unauthorized.
- KT-CT-4123: Unauthorized.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
|
Input fields for updating the auto-top-up amount for a schedule. |
Return fields
Name | Description |
---|
Mutation
mutation UpdateAutoTopUpAmount($input: UpdateAutoTopUpAmountInput!) {
updateAutoTopUpAmount(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
schedule {
...PaymentScheduleTypeFragment
}
}
}
Variables
{
"input": UpdateAutoTopUpAmountInput
}
Response
{
"data": {
"updateAutoTopUpAmount": {
"possibleErrors": [PossibleErrorType],
"schedule": PaymentScheduleType
}
}
}
updateBoostCharge
Type: SmartFlexDeviceInterface
URL: https://api.oefr-kraken.energy/v1/graphql/
Update the boost charge for a specific device.
The possible errors that can be raised are:
- KT-CT-1111: Unauthorized.
- KT-CT-4354: Unable to cancel boost charge.
- KT-CT-4356: A boost charge cannot currently be performed.
- KT-CT-4357: Unable to trigger boost charge.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Mutation
mutation UpdateBoostCharge($input: UpdateBoostChargeInput) {
updateBoostCharge(input: $input) {
id
name
deviceType
provider
integrationDeviceId
status {
...SmartFlexDeviceStatusInterfaceFragment
}
propertyId
alerts {
...SmartFlexDeviceAlertInterfaceFragment
}
onboardingWizard {
...SmartFlexOnboardingWizardFragment
}
preferences {
...SmartFlexDevicePreferencesInterfaceFragment
}
preferenceSetting {
...FlexDevicePreferenceSettingInterfaceFragment
}
}
}
Variables
{
"input": UpdateBoostChargeInput
}
Response
{
"data": {
"updateBoostCharge": {
"id": "abc123",
"name": "abc123",
"deviceType": "BATTERIES",
"provider": "BYD",
"integrationDeviceId": "abc123",
"status": SmartFlexDeviceStatusInterface,
"propertyId": "abc123",
"alerts": SmartFlexDeviceAlertInterface,
"onboardingWizard": SmartFlexOnboardingWizard,
"preferences": SmartFlexDevicePreferencesInterface,
"preferenceSetting": FlexDevicePreferenceSettingInterface
}
}
}
updateCollectionProcessRecordToActive
Type: UpdateCollectionProcessRecordToActive
URL: https://api.oefr-kraken.energy/v1/graphql/
Update the Collection Process Record from raised status to active.
The possible errors that can be raised are:
- KT-CT-1111: Unauthorized.
- KT-CT-11201: No Collection Process Records associated with id.
- KT-CT-11202: No External reference provided.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
Input variables needed for making a collection process record active. |
Return fields
Name | Description |
---|
Mutation
mutation UpdateCollectionProcessRecordToActive($input: UpdateCollectionProcessRecordToActiveInputType!) {
updateCollectionProcessRecordToActive(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
collectionProcessActivated {
...UpdateCollectionProcessRecordToActiveOutputTypeFragment
}
}
}
Variables
{
"input": UpdateCollectionProcessRecordToActiveInputType
}
Response
{
"data": {
"updateCollectionProcessRecordToActive": {
"possibleErrors": [PossibleErrorType],
"collectionProcessActivated": UpdateCollectionProcessRecordToActiveOutputType
}
}
}
updateCollectionProcessRecordToComplete
Type: UpdateCollectionProcessRecordToComplete
URL: https://api.oefr-kraken.energy/v1/graphql/
Update the Collection Process Record from raised status to complete.
The possible errors that can be raised are:
- KT-CT-1111: Unauthorized.
- KT-CT-11201: No Collection Process Records associated with id.
- KT-CT-11203: No Completion reason provided.
- KT-CT-11204: No Completion details provided.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
Input variables needed for making a collection process record complete. |
Return fields
Name | Description |
---|
Mutation
mutation UpdateCollectionProcessRecordToComplete($input: UpdateCollectionProcessRecordToCompleteInputType!) {
updateCollectionProcessRecordToComplete(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
collectionProcessComplete {
...UpdateCollectionProcessRecordToCompleteOutputTypeFragment
}
}
}
Variables
{
"input": UpdateCollectionProcessRecordToCompleteInputType
}
Response
{
"data": {
"updateCollectionProcessRecordToComplete": {
"possibleErrors": [PossibleErrorType],
"collectionProcessComplete": UpdateCollectionProcessRecordToCompleteOutputType
}
}
}
updateCommsDeliveryPreference
Type: UpdateCommsDeliveryPreference
URL: https://api.oefr-kraken.energy/v1/graphql/
Update account communication delivery preference.
The possible errors that can be raised are:
- KT-CT-4123: Unauthorized.
- KT-CT-4136: Cannot set comms preference to email when account has no email.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
Input fields for updating comms delivery preferences for an account |
Return fields
Name | Description |
---|
Mutation
mutation UpdateCommsDeliveryPreference($input: UpdateCommsDeliveryPreferenceInput!) {
updateCommsDeliveryPreference(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
account {
...AccountInterfaceFragment
}
}
}
Variables
{
"input": UpdateCommsDeliveryPreferenceInput
}
Response
{
"data": {
"updateCommsDeliveryPreference": {
"possibleErrors": [PossibleErrorType],
"account": AccountInterface
}
}
}
updateCommsPreferences
Type: UpdateAccountUserCommsPreferencesMutationPayload
URL: https://api.oefr-kraken.energy/v1/graphql/
Update the comms preferences of the account user (the authenticated user).
Arguments
Name | Description |
---|---|
Return fields
Name | Description |
---|
Mutation
mutation UpdateCommsPreferences($input: UpdateAccountUserCommsPreferencesMutationInput!) {
updateCommsPreferences(input: $input) {
isOptedInToClientMessages
isOptedInToOfferMessages
isOptedInToRecommendedMessages
isOptedInToUpdateMessages
isOptedInToThirdPartyMessages
isOptedInMeterReadingConfirmations
isOptedInToSmsMessages
isUsingInvertedEmailColours
fontSizeMultiplier
emailFormat
preferredHoldMusic
errors {
...ErrorTypeFragment
}
commsPreferences {
...AccountUserCommsPreferencesFragment
}
clientMutationId
}
}
Variables
{
"input": UpdateAccountUserCommsPreferencesMutationInput
}
Response
{
"data": {
"updateCommsPreferences": {
"isOptedInToClientMessages": true,
"isOptedInToOfferMessages": true,
"isOptedInToRecommendedMessages": true,
"isOptedInToUpdateMessages": true,
"isOptedInToThirdPartyMessages": true,
"isOptedInMeterReadingConfirmations": true,
"isOptedInToSmsMessages": true,
"isUsingInvertedEmailColours": true,
"fontSizeMultiplier": 1.0,
"emailFormat": "abc123",
"preferredHoldMusic": "abc123",
"errors": [ErrorType],
"commsPreferences": AccountUserCommsPreferences,
"clientMutationId": "abc123"
}
}
}
updateDcaProceeding
Type: UpdateDCAProceeding
URL: https://api.oefr-kraken.energy/v1/graphql/
Update the status of a DCA proceeding.
The possible errors that can be raised are:
- KT-CT-11610: unable to edit the debt collection proceeding.
- KT-CT-11604: Active debt collection proceeding does not exist for account.
- KT-CT-11605: Multiple active Proceeding's found for same agency and campaign on account.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Mutation
mutation UpdateDcaProceeding($input: UpdateDCAProceedingInputType!) {
updateDcaProceeding(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
dcaProceedingUpdateStatus {
...DCAProceedingUpdateStatusFragment
}
}
}
Variables
{
"input": UpdateDCAProceedingInputType
}
Response
{
"data": {
"updateDcaProceeding": {
"possibleErrors": [PossibleErrorType],
"dcaProceedingUpdateStatus": DCAProceedingUpdateStatus
}
}
}
updateDeviceSmartControl
Type: SmartFlexDeviceInterface
URL: https://api.oefr-kraken.energy/v1/graphql/
Suspends or resumes the smart control of a specific device. For some devices, this will also adjust smart control of related devices. e.g. suspending one zone in a multi-zone heat pump system will suspend all zones in that system.
The possible errors that can be raised are:
- KT-CT-4313: Could not find KrakenFlex device.
- KT-CT-4358: Unable to suspend device control.
- KT-CT-4359: Unable to resume device control.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
|
The input to action the desired device control, i.e. suspend or unsuspend a device. |
Return fields
Name | Description |
---|
Mutation
mutation UpdateDeviceSmartControl($input: SmartControlInput!) {
updateDeviceSmartControl(input: $input) {
id
name
deviceType
provider
integrationDeviceId
status {
...SmartFlexDeviceStatusInterfaceFragment
}
propertyId
alerts {
...SmartFlexDeviceAlertInterfaceFragment
}
onboardingWizard {
...SmartFlexOnboardingWizardFragment
}
preferences {
...SmartFlexDevicePreferencesInterfaceFragment
}
preferenceSetting {
...FlexDevicePreferenceSettingInterfaceFragment
}
}
}
Variables
{
"input": SmartControlInput
}
Response
{
"data": {
"updateDeviceSmartControl": {
"id": "abc123",
"name": "abc123",
"deviceType": "BATTERIES",
"provider": "BYD",
"integrationDeviceId": "abc123",
"status": SmartFlexDeviceStatusInterface,
"propertyId": "abc123",
"alerts": SmartFlexDeviceAlertInterface,
"onboardingWizard": SmartFlexOnboardingWizard,
"preferences": SmartFlexDevicePreferencesInterface,
"preferenceSetting": FlexDevicePreferenceSettingInterface
}
}
}
updateIndustryConsentData
Type: UpdateIndustryConsentData
URL: https://api.oefr-kraken.energy/v1/graphql/
Update the industry consent data.
The possible errors that can be raised are:
- KT-CT-4178: No account found with given account number.
- KT-CT-4719: No supply point found for identifier provided.
- KT-FR-4524: Invalid input provided to update industry consent data.
- KT-CT-1113: Disabled GraphQL field requested.
Arguments
Name | Description |
---|---|
Input fields for updating industry consent data. |
Return fields
Name | Description |
---|
Mutation
mutation UpdateIndustryConsentData($input: IndustryConsentDataPerSupplyPointInput) {
updateIndustryConsentData(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
consentData {
...IndustryConsentDataFragment
}
}
}
Variables
{
"input": IndustryConsentDataPerSupplyPointInput
}
Response
{
"data": {
"updateIndustryConsentData": {
"possibleErrors": [PossibleErrorType],
"consentData": IndustryConsentData
}
}
}
updateLeadAssignment
Type: UpdateLeadAssignment
URL: https://api.oefr-kraken.energy/v1/graphql/
Update assignment fields for an Opportunity.
The possible errors that can be raised are:
- KT-CT-8907: Lead not found.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
|
Fields for updating a lead assignment. |
Return fields
Name | Description |
---|
Mutation
mutation UpdateLeadAssignment($input: UpdateLeadAssignmentInput!) {
updateLeadAssignment(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
updatedLeadData
}
}
Variables
{
"input": UpdateLeadAssignmentInput
}
Response
{
"data": {
"updateLeadAssignment": {
"possibleErrors": [PossibleErrorType],
"updatedLeadData": {"key": "value"}
}
}
}
updateLeadDetails
Type: UpdateLeadDetails
URL: https://api.oefr-kraken.energy/v1/graphql/
Update the details of a lead.
The possible errors that can be raised are:
- KT-CT-8907: Lead not found.
- KT-CT-8913: Organisation is not valid to be assigned.
- KT-CT-8914: Stage not found.
- KT-CT-8915: Stages are not in the same funnel.
- KT-CT-8916: Current stage mismatch.
- KT-CT-8917: Stage transition not allowed.
- KT-CT-8918: Stage precondition not met.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
|
Fields for updating a lead's details. |
Return fields
Name | Description |
---|
Mutation
mutation UpdateLeadDetails($input: UpdateLeadDetailsInput!) {
updateLeadDetails(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
updatedLeadData
}
}
Variables
{
"input": UpdateLeadDetailsInput
}
Response
{
"data": {
"updateLeadDetails": {
"possibleErrors": [PossibleErrorType],
"updatedLeadData": {"key": "value"}
}
}
}
updateLeaveSupplier
Type: LeaveSupplierUpdated!
URL: https://api.oefr-kraken.energy/v1/graphql/
Update an existing leave supplier process.
The possible errors that can be raised are:
- KT-CT-10304: Mutation not enabled in this environment.
- KT-CT-10302: Invalid data.
- KT-CT-10309: Failed to update leave supplier process - the service is not enabled.
- KT-CT-10310: Failed to update leave supplier process. The process status is not in updatable status.
- KT-CT-1607: Value cannot be empty.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Mutation
mutation UpdateLeaveSupplier($input: UpdateLeaveSupplierInput!) {
updateLeaveSupplier(input: $input) {
message
}
}
Variables
{
"input": UpdateLeaveSupplierInput
}
Response
{
"data": {
"updateLeaveSupplier": {
"message": "abc123"
}
}
}
Mutation
mutation UpdateMessageTags($input: UpdateMessageTagsInput!) {
updateMessageTags(input: $input) {
tags {
...InkTagFragment
}
clientMutationId
}
}
Variables
{
"input": UpdateMessageTagsInput
}
Response
{
"data": {
"updateMessageTags": {
"tags": InkTag,
"clientMutationId": "abc123"
}
}
}
updateMetadata
Type: UpdateMetadata
URL: https://api.oefr-kraken.energy/v1/graphql/
Update metadata on an object.
The possible errors that can be raised are:
- KT-CT-4323: Unauthorized.
- KT-CT-8413: Invalid data.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
|
Input fields for updating metadata. |
Return fields
Name | Description |
---|
Mutation
mutation UpdateMetadata($input: MetadataInput!) {
updateMetadata(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
metadata {
...MetadataFragment
}
}
}
Variables
{
"input": MetadataInput
}
Response
{
"data": {
"updateMetadata": {
"possibleErrors": [PossibleErrorType],
"metadata": Metadata
}
}
}
updateOpportunityAssignment
Type: UpdateOpportunityAssignment
URL: https://api.oefr-kraken.energy/v1/graphql/
Update assignment fields for an Opportunity.
The possible errors that can be raised are:
- KT-CT-8906: Opportunity not found.
- KT-CT-8903: Unable to update opportunity.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
Input fields for creating an opportunity. |
Return fields
Name | Description |
---|
Mutation
mutation UpdateOpportunityAssignment($input: UpdateOpportunityAssignmentInput!) {
updateOpportunityAssignment(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
updatedOpportunityData
}
}
Variables
{
"input": UpdateOpportunityAssignmentInput
}
Response
{
"data": {
"updateOpportunityAssignment": {
"possibleErrors": [PossibleErrorType],
"updatedOpportunityData": {"key": "value"}
}
}
}
updateOpportunityExtraDetails
Type: UpdateOpportunityExtraDetails
URL: https://api.oefr-kraken.energy/v1/graphql/
Update the extra details of a opportunity.
The possible errors that can be raised are:
- KT-CT-8903: Unable to update opportunity.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
|
Input fields for updating the extra details of a opportunity. |
Return fields
Name | Description |
---|
Mutation
mutation UpdateOpportunityExtraDetails($input: UpdateExtraDetailsInput!) {
updateOpportunityExtraDetails(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
extraDetails
}
}
Variables
{
"input": UpdateExtraDetailsInput
}
Response
{
"data": {
"updateOpportunityExtraDetails": {
"possibleErrors": [PossibleErrorType],
"extraDetails": {"key": "value"}
}
}
}
updateOpportunityStage
Type: UpdateOpportunityStage
URL: https://api.oefr-kraken.energy/v1/graphql/
Update the stage of a opportunity.
The possible errors that can be raised are:
- KT-CT-8903: Unable to update opportunity.
- KT-CT-8910: Received opportunity current stage is not valid.
- KT-CT-8914: Stage not found.
- KT-CT-8915: Stages are not in the same funnel.
- KT-CT-8916: Current stage mismatch.
- KT-CT-8917: Stage transition not allowed.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
|
Input fields for updating the state of a opportunity. |
Return fields
Name | Description |
---|
Mutation
mutation UpdateOpportunityStage($input: UpdateOpportunityStageInput!) {
updateOpportunityStage(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
message
}
}
Variables
{
"input": UpdateOpportunityStageInput
}
Response
{
"data": {
"updateOpportunityStage": {
"possibleErrors": [PossibleErrorType],
"message": "abc123"
}
}
}
updatePassword
Type: UpdatePassword
URL: https://api.oefr-kraken.energy/v1/graphql/
Update password of the authenticated user
This field requires the Authorization
header to be set.
The possible errors that can be raised are:
- KT-CT-5460: Old password is invalid.
- KT-CT-5450: Password is invalid.
- KT-CT-1113: Disabled GraphQL field requested.
Mutation
mutation UpdatePassword($input: UpdatePasswordInput) {
updatePassword(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
viewer {
...AccountUserTypeFragment
}
}
}
Variables
{
"input": UpdatePasswordInput
}
Response
{
"data": {
"updatePassword": {
"possibleErrors": [PossibleErrorType],
"viewer": AccountUserType
}
}
}
updateProductPrices
Type: UpdateProductPricesOutput!
URL: https://api.oefr-kraken.energy/v1/graphql/
Update the prices of a product.
The possible errors that can be raised are:
- KT-CT-12008: Unable to find the product.
- KT-CT-12009: Specified product does not have a specification.
- KT-CT-12010: Unable to find the product's specification.
- KT-CT-12011: The list of provided prices contains validation errors.
- KT-CT-12012: Product prices start date is in the past.
- KT-CT-12013: Product prices would overwrite existing prices.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Mutation
mutation UpdateProductPrices($input: UpdateProductPricesInput!) {
updateProductPrices(input: $input) {
prices {
...RateGroupPricesFragment
}
}
}
Variables
{
"input": UpdateProductPricesInput
}
Response
{
"data": {
"updateProductPrices": {
"prices": RateGroupPrices
}
}
}
updateSiteworksRequest
Type: UpdateSiteworksRequest
URL: https://api.oefr-kraken.energy/v1/graphql/
Update a Request.
The possible errors that can be raised are:
- KT-CT-4231: Unauthorized.
- KT-CT-4232: Status passed is not valid.
- KT-CT-4233: Request does not exist.
- KT-CT-4234: Terminated Request cannot be updated.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
|
The input objects required to update a Request |
Return fields
Name | Description |
---|
Mutation
mutation UpdateSiteworksRequest($input: UpdateSiteworksRequestInputType!) {
updateSiteworksRequest(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
siteworksRequest {
...CoreSiteworksRequestTypeFragment
}
}
}
Variables
{
"input": UpdateSiteworksRequestInputType
}
Response
{
"data": {
"updateSiteworksRequest": {
"possibleErrors": [PossibleErrorType],
"siteworksRequest": CoreSiteworksRequestType
}
}
}
updateUser
Type: UpdateUserMutation
URL: https://api.oefr-kraken.energy/v1/graphql/
Update the account user details of the authenticated user.
Only one name field can be updated per day, other fields can be updated freely. This prevents users from switching accounts to someone else (usually when moving homes). All account changes should be handled by operations or the move out journey. New customers are exempt from this rule for the first 31 days.
This field requires the Authorization
header to be set.
The possible errors that can be raised are:
- KT-CT-5413: Invalid data.
- KT-CT-5414: Invalid data.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
|
Input fields for updating user. |
Return fields
Name | Description |
---|
Mutation
mutation UpdateUser($input: UpdateUserInput!) {
updateUser(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
viewer {
...AccountUserTypeFragment
}
}
}
Variables
{
"input": UpdateUserInput
}
Response
{
"data": {
"updateUser": {
"possibleErrors": [PossibleErrorType],
"viewer": AccountUserType
}
}
}
updateUserDetails
Type: UpdateAccountUserMutationPayload
URL: https://api.oefr-kraken.energy/v1/graphql/
DEPRECATED: Please use updateUser instead
Update the account user details of the authenticated user. Only one field can be updated per day. This prevents users from switching accounts to someone else (usually when moving homes) All account changes should be handled by operations or the move out journey. New customers are exempt from this rule for the first 31 days.
Mutation
mutation UpdateUserDetails($input: UpdateAccountUserMutationInput!) {
updateUserDetails(input: $input) {
givenName
familyName
pronouns
mobile
email
dateOfBirth
landline
errors {
...ErrorTypeFragment
}
clientMutationId
}
}
Variables
{
"input": UpdateAccountUserMutationInput
}
Response
{
"data": {
"updateUserDetails": {
"givenName": "abc123",
"familyName": "abc123",
"pronouns": "abc123",
"mobile": "abc123",
"email": "abc123",
"dateOfBirth": "2020-01-01",
"landline": "abc123",
"errors": [ErrorType],
"clientMutationId": "abc123"
}
}
}
validateEmail
Type: ValidateEmail
URL: https://api.oefr-kraken.energy/v1/graphql/
Validate user's email address.
Mutation
mutation ValidateEmail($input: ValidateEmailInput!) {
validateEmail(input: $input) {
isValid
}
}
Variables
{
"input": ValidateEmailInput
}
Response
{
"data": {
"validateEmail": {
"isValid": true
}
}
}
validatePhone
Type: ValidatePhone
URL: https://api.oefr-kraken.energy/v1/graphql/
Validate user's phone number.
Mutation
mutation ValidatePhone($input: ValidatePhoneNumberInput!) {
validatePhone(input: $input) {
isValid
}
}
Variables
{
"input": ValidatePhoneNumberInput
}
Response
{
"data": {
"validatePhone": {
"isValid": true
}
}
}
varyContractTerms
Type: VaryContractTermsOutput!
URL: https://api.oefr-kraken.energy/v1/graphql/
Vary the terms of a contract.
The possible errors that can be raised are:
- KT-CT-10003: Contract not found.
- KT-CT-10011: Unable to vary contract terms.
- KT-CT-10012: Contract variation implies breach.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Mutation
mutation VaryContractTerms($input: VaryContractTermsInput!) {
varyContractTerms(input: $input) {
contract {
...ContractFragment
}
}
}
Variables
{
"input": VaryContractTermsInput
}
Response
{
"data": {
"varyContractTerms": {
"contract": Contract
}
}
}
verifyCustomer
Type: VerifyCustomer
URL: https://api.oefr-kraken.energy/v1/graphql/
Verify a customer using the provided verification code and type.
The possible errors that can be raised are:
- KT-CT-4191: Error while verifying the customer.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Mutation
mutation VerifyCustomer($input: VerifyCustomerInput!) {
verifyCustomer(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
user {
...AccountUserTypeFragment
}
}
}
Variables
{
"input": VerifyCustomerInput
}
Response
{
"data": {
"verifyCustomer": {
"possibleErrors": [PossibleErrorType],
"user": AccountUserType
}
}
}
verifyEmail
Type: VerifyEmail
URL: https://api.oefr-kraken.energy/v1/graphql/
Verify user's email address.
The possible errors that can be raised are:
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Mutation
mutation VerifyEmail($input: VerifyEmailInput!) {
verifyEmail(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
isVerified
}
}
Variables
{
"input": VerifyEmailInput
}
Response
{
"data": {
"verifyEmail": {
"possibleErrors": [PossibleErrorType],
"isVerified": true
}
}
}
verifyIdentity
Type: VerifyIdentity
URL: https://api.oefr-kraken.energy/v1/graphql/
Provide identifying information about an account and user to get a scoped token that will permit access to associate an email address with the account’s user.
The possible errors that can be raised are:
- KT-CT-1145: Account/user details do not match.
- KT-CT-1113: Disabled GraphQL field requested.
Arguments
Name | Description |
---|---|
|
Details about the user to be verified. |
Return fields
Name | Description |
---|
Mutation
mutation VerifyIdentity($input: VerifyIdentityInput!) {
verifyIdentity(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
token
}
}
Variables
{
"input": VerifyIdentityInput
}
Response
{
"data": {
"verifyIdentity": {
"possibleErrors": [PossibleErrorType],
"token": "abc123"
}
}
}
withdrawDunning
Type: WithdrawDunning
URL: https://api.oefr-kraken.energy/v1/graphql/
Withdraw a dunning process for an account
The possible errors that can be raised are:
- KT-CT-4178: No account found with given account number.
- KT-CT-11301: Account not in a dunning process for the given path name.
- KT-CT-11302: No active dunning process found.
- KT-CT-11303: Multiple active dunning processes found.
- KT-CT-11306: Withdrawing the dunning process failed.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1111: Unauthorized.
- KT-CT-1112: 'Authorization' header not provided.
Arguments
Name | Description |
---|---|
|
Input variables needed for withdrawing a dunning process for an account. |
Return fields
Name | Description |
---|
Mutation
mutation WithdrawDunning($input: WithdrawDunningInputType!) {
withdrawDunning(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
withdrawSuccessful
}
}
Variables
{
"input": WithdrawDunningInputType
}
Response
{
"data": {
"withdrawDunning": {
"possibleErrors": [PossibleErrorType],
"withdrawSuccessful": true
}
}
}
Authentication Server
createMfaDevice
Type: CreateMfaDevice
URL: https://auth.oefr-kraken.energy/graphql/
Create MFA Device for user.
The possible errors that can be raised are:
- KT-CT-1128: Unauthorized.
- KT-CT-1153: Unable to create MFA device.
- KT-CT-1113: Disabled GraphQL field requested.
Arguments
Name | Description |
---|---|
|
Input fields for creating a new multi-factor authentication device for the logged user. |
Return fields
Name | Description |
---|
Mutation
mutation CreateMfaDevice($input: CreateMfaDeviceInputType!) {
createMfaDevice(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
deviceEmail
devicePhone
totpSecret
}
}
Variables
{
"input": CreateMfaDeviceInputType
}
Response
{
"data": {
"createMfaDevice": {
"possibleErrors": [PossibleErrorType],
"deviceEmail": "abc123",
"devicePhone": "abc123",
"totpSecret": "abc123"
}
}
}
deleteMfaDevice
Type: DeleteMfaDevice
URL: https://auth.oefr-kraken.energy/graphql/
Delete MFA Device for user.
The possible errors that can be raised are:
- KT-CT-1150: MFA device not found.
- KT-CT-1154: Unable to delete MFA device.
- KT-CT-1113: Disabled GraphQL field requested.
Arguments
Name | Description |
---|---|
|
Input fields for deleting an existing multi-factor authentication device for the logged user. |
Return fields
Name | Description |
---|
Mutation
mutation DeleteMfaDevice($input: DeleteMfaDeviceInputType!) {
deleteMfaDevice(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
deviceDeleted
}
}
Variables
{
"input": DeleteMfaDeviceInputType
}
Response
{
"data": {
"deleteMfaDevice": {
"possibleErrors": [PossibleErrorType],
"deviceDeleted": true
}
}
}
validateMfaDevice
Type: ValidateMfaDevice
URL: https://auth.oefr-kraken.energy/graphql/
Validate MFA Device for user.
The possible errors that can be raised are:
- KT-CT-1150: MFA device not found.
- KT-CT-1151: MFA device not found.
- KT-CT-1152: Invalid MFA token.
- KT-CT-1155: Enabled backup device is needed.
- KT-CT-1113: Disabled GraphQL field requested.
Arguments
Name | Description |
---|---|
|
Input fields for validating a new multi-factor authentication device for the logged user. |
Return fields
Name | Description |
---|
Mutation
mutation ValidateMfaDevice($input: ValidateMfaDeviceInputType!) {
validateMfaDevice(input: $input) {
possibleErrors {
...PossibleErrorTypeFragment
}
deviceIsValid
}
}
Variables
{
"input": ValidateMfaDeviceInputType
}
Response
{
"data": {
"validateMfaDevice": {
"possibleErrors": [PossibleErrorType],
"deviceIsValid": true
}
}
}