Skip to main content

Arguments

jobType : String

Job type for appointment checks.

supplyPointIdentifierToMarketNameMapping : [SupplyPointIdentifierToMarketNameMappingInput]

Supply point identifier to market name mapping. If this is provided, supplyPointInternalIds cannot be provided. Either one of them must be provided.

supplyPointInternalIds : [Int]

List of internal IDs of supply points. If this is provided, supplyPointIdentifierToMarketNameMapping cannot be provided. Either one of them must be provided.

Returns

OnSiteJobsCheckResultsType

Check results for creating On-Site Jobs requests and appointments.

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 GetOnSiteJobsCheckResults( $jobType: String, $supplyPointIdentifierToMarketNameMapping: [SupplyPointIdentifierToMarketNameMappingInput], $supplyPointInternalIds: [Int] ) { getOnSiteJobsCheckResults( jobType: $jobType, supplyPointIdentifierToMarketNameMapping: $supplyPointIdentifierToMarketNameMapping, supplyPointInternalIds: $supplyPointInternalIds ) { appointmentCheckResults { ...CheckResultTypeFragment } canCreateAppointment canCreateRequest hasAppointmentWarnings hasRequestWarnings requestCheckResults { ...CheckResultTypeFragment } } }

Variables

{ "jobType": "another-western-power-save-hand", "supplyPointIdentifierToMarketNameMapping": SupplyPointIdentifierToMarketNameMappingInput, "supplyPointInternalIds": 46 }

Response

{ "data": { "getOnSiteJobsCheckResults": { "appointmentCheckResults": [CheckResultType], "canCreateAppointment": true, "canCreateRequest": true, "hasAppointmentWarnings": true, "hasRequestWarnings": true, "requestCheckResults": [CheckResultType] } } }