quote
This returns the quote with the given code.
If the code was not provided, this query used to return an empty quote, but this usage is no longer supported, as the dedicated consumptionEstimates query serves that purpose.
Arguments
Unique identifying code of the quote to retrieve. This argument is optional, but leaving it empty is not supported anymore.
Returns
QuoteTypePossible Errors
Allowed Viewers
Query Complexity
1Examples
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 Quote($code: String) {
quote(code: $code) {
address {
...QuoteAddressTypeFragment
}
code
elecAnnualConsumptionDay
elecAnnualConsumptionNight
elecAnnualConsumptionStandard
elecEstimate
gasAnnualConsumption
gasEstimate
gspGroupId
includesElectricity
includesGas
isBusiness
latitude
longitude
meterType
mpan
mprn
partnerProductId
paymentMethod
postcode
quotedProducts {
...QuotedProductTypeFragment
}
termsAndConditions {
...TermsAndConditionsTypeFragment
}
}
}
Variables
{
"code": "machine-song-should-half-factor"
}
Response
{
"data": {
"quote": {
"address": QuoteAddressType,
"code": "choose-somebody-strategy-if-with",
"elecAnnualConsumptionDay": 19,
"elecAnnualConsumptionNight": 35,
"elecAnnualConsumptionStandard": 38,
"elecEstimate": true,
"gasAnnualConsumption": 86,
"gasEstimate": true,
"gspGroupId": "95747957",
"includesElectricity": true,
"includesGas": true,
"isBusiness": true,
"latitude": 618.1,
"longitude": 550.1,
"meterType": "NO_METER",
"mpan": "turn-poor-here-no-third",
"mprn": "least-single-out-institution-value",
"partnerProductId": 1,
"paymentMethod": "DIRECTDEBIT",
"postcode": "impact-paper-apply-likely-also",
"quotedProducts": [QuotedProductType],
"termsAndConditions": TermsAndConditionsType
}
}
}