Skip to main content

Arguments

mprn : String! required

The MPRN to search for.

Returns

SiteworksBookingAccountType

An object holding information about an account and its associated users, properties and meter points, used for administering siteworks bookings.

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 SiteworksBookingAccountSearchByMprn($mprn: String!) { siteworksBookingAccountSearchByMprn(mprn: $mprn) { accountType activeCampaigns { ...SiteworksCampaignTypeFragment } billingName brand canModifyPayments { ...CanModifyPaymentsTypeFragment } marketSupplyAgreements { ...AgreementConnectionFragment } number properties { ...SiteworksBookingPropertyTypeFragment } siteworksRequests { ...SiteworksRequestTypeFragment } smets2Interest status users { ...AccountUserTypeFragment } } }

Variables

{ "mprn": "meeting-threat-outside-tell-smile" }

Response

{ "data": { "siteworksBookingAccountSearchByMprn": { "accountType": "television-keep-memory-consumer-ten", "activeCampaigns": [SiteworksCampaignType], "billingName": "crime-source-everybody-director-central", "brand": "significant-again-magazine-contain-situation", "canModifyPayments": CanModifyPaymentsType, "marketSupplyAgreements": AgreementConnection, "number": "bar-down-receive-deep-kid", "properties": [SiteworksBookingPropertyType], "siteworksRequests": [SiteworksRequestType], "smets2Interest": "PRIORITY", "status": "PENDING", "users": [AccountUserType] } } }