Skip to main content

Arguments

code : String! required

Code for the energy product.

Returns

EnergyProductType

An EnergyProduct models a group of tariffs for both electricity and gas.

Allowed Viewers

Customer Partner User Third party

Query Complexity

1

Examples

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

Query

query EnergyProduct($code: String!) { energyProduct(code: $code) { availableFrom availableTo code description direction displayName endsAt exitFees exitFeesType fullName id includesEpgReduction isAvailable isBusiness isChargedHalfHourly isDefault isDomestic isFixed isGreen isHidden isOccupier isPrepay isUnavailable isVariable notes tags tariffs { ...EnergyTariffConnectionTypeConnectionFragment } term } }

Variables

{ "code": "field-interesting-early-newspaper-form" }

Response

{ "data": { "energyProduct": { "availableFrom": "1989-02-28T23:59:42.255188+00:00", "availableTo": "2014-05-04T17:51:51.823493+00:00", "code": "what-once-bit-present-large", "description": "write-rest-strong-red-movie", "direction": "IMPORT", "displayName": "to-story-fact-church-have", "endsAt": "1999-06-26T20:57:24.705794+00:00", "exitFees": 13, "exitFeesType": "important-call-ask-feel-sometimes", "fullName": "move-individual-five-evening-see", "id": "79806990", "includesEpgReduction": true, "isAvailable": true, "isBusiness": true, "isChargedHalfHourly": true, "isDefault": true, "isDomestic": true, "isFixed": true, "isGreen": true, "isHidden": true, "isOccupier": true, "isPrepay": true, "isUnavailable": true, "isVariable": true, "notes": "may-moment-chance-trial-for", "tags": "foreign-attention-woman-look-tree", "tariffs": EnergyTariffConnectionTypeConnection, "term": 95 } } }