siteworksAppointmentSlots
Returns set of available siteworks appointment slots for the given property.
Arguments
The booking agent appointment reference number.
The date to search for appointments from.
If job type is not specified, the default job type for the booking adapter will be used.
The property ID to search for.
The duration of the appointment to search for.
Returns
SiteworksAppointmentSlotsTypePossible Errors
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-7899: An internal error occurred.
- KT-GB-4214: Booking is not supported with the agent appointed at property.
- KT-GB-4217: Unknown agent carrying out the appointment.
- KT-GB-4221: Could not confirm duplicate property.
- KT-GB-4227: No account for property.
- KT-GB-4232: No meterpoint was found or provided in the payload.
- KT-GB-4239: Job type value is not supported by the agent appointed at property.
- KT-GB-4240: Job type entry is not enabled.
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 SiteworksAppointmentSlots(
$agentReference: String,
$calculationId: String,
$fromDate: Date,
$jobType: String,
$propertyId: ID!,
$slotDuration: SlotDuration
) {
siteworksAppointmentSlots(
agentReference: $agentReference,
calculationId: $calculationId,
fromDate: $fromDate,
jobType: $jobType,
propertyId: $propertyId,
slotDuration: $slotDuration
) {
calculationId
expectedJobDurationMinutes
fetchStatus
slots {
...SiteworksAppointmentSlotTypeFragment
}
}
}
Variables
{
"agentReference": "sign-argue-itself-heavy-family",
"calculationId": "55799917",
"fromDate": "1994-12-15",
"jobType": "recognize-play-million-argue-pull",
"propertyId": "78859520",
"slotDuration": "TWO_HOUR"
}
Response
{
"data": {
"siteworksAppointmentSlots": {
"calculationId": "33112216",
"expectedJobDurationMinutes": 70,
"fetchStatus": "PENDING",
"slots": [SiteworksAppointmentSlotType]
}
}
}