getOnSiteJobsRequestExternalReasons
Get available external reasons for creating an On-Site Jobs request.
Arguments
The Kraken account number.
The Kraken property ID.
List of internal IDs of supply points relevant to the request. If this is provided, supplyPointsToMarketNamesMapping cannot be provided.
A list of supply point identifiers relevant to the request. If this is provided, supplyPointInternalIds cannot be provided.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-13002: Supply point not found.
- KT-CT-13010: No booking adapter found for agent.
- KT-CT-13012: Viewer is not allowed to create a request.
- KT-CT-13028: Agent not found.
- KT-CT-13029: Could not confirm duplicate property.
- KT-CT-13047: Multiple supply points found.
- KT-CT-13048: Cannot provide both supply_point_identifier_to_market_name_mapping and supply_point_internal_ids.
- KT-CT-13079: Account does not exist.
- KT-CT-13097: Request external reasons are not supported.
- KT-CT-6622: Unauthorized.
- KT-CT-7899: An internal error occurred.
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 GetOnSiteJobsRequestExternalReasons(
$accountNumber: NonEmptyString!,
$after: String,
$before: String,
$first: Int,
$last: Int,
$propertyId: ID!,
$supplyPointInternalIds: [Int],
$supplyPointsToMarketNamesMapping: [SupplyPointIdentifierToMarketNameMappingInput]
) {
getOnSiteJobsRequestExternalReasons(
accountNumber: $accountNumber,
after: $after,
before: $before,
first: $first,
last: $last,
propertyId: $propertyId,
supplyPointInternalIds: $supplyPointInternalIds,
supplyPointsToMarketNamesMapping: $supplyPointsToMarketNamesMapping
) {
edgeCount
edges {
...OnSiteJobsRequestExternalReasonConnectionTypeEdgeFragment
}
pageInfo {
...PageInfoFragment
}
totalCount
}
}
Variables
{
"accountNumber": "A-54235E4C",
"after": "YXJyYXljb25uZWN0aW9uOjEw=",
"before": "YXJyYXljb25uZWN0aW9uOjEw=",
"first": 10,
"last": 10,
"propertyId": "87601456",
"supplyPointInternalIds": 51,
"supplyPointsToMarketNamesMapping": SupplyPointIdentifierToMarketNameMappingInput
}
Response
{
"data": {
"getOnSiteJobsRequestExternalReasons": {
"edgeCount": 83,
"edges": [OnSiteJobsRequestExternalReasonConnectionTypeEdge],
"pageInfo": PageInfo,
"totalCount": 22
}
}
}