Skip to main content

Arguments

code : String

Unique identifying code of the quote to retrieve. This argument is optional, but leaving it empty is not supported anymore.

Returns

QuoteType

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 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 } } }