getOnSiteJobsRequests
Filter On-Site Jobs Requests.
Arguments
A list of account numbers to filter requests by.
A list of statuses to filter requests by.
List of internal IDs of supply points to filter requests by. If this is provided, supplyPointsToMarketNamesMapping cannot be provided.
A list of supply point identifiers to filter requests by. If this is provided, supplyPointInternalIds cannot be provided.
Possible Errors
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 GetOnSiteJobsRequests(
$accountNumbers: [NonEmptyString!],
$after: String,
$before: String,
$first: Int,
$last: Int,
$statuses: [OnSiteJobsRequestStatus],
$supplyPointInternalIds: [Int],
$supplyPointsToMarketNamesMapping: [SupplyPointIdentifierToMarketNameMappingInput]
) {
getOnSiteJobsRequests(
accountNumbers: $accountNumbers,
after: $after,
before: $before,
first: $first,
last: $last,
statuses: $statuses,
supplyPointInternalIds: $supplyPointInternalIds,
supplyPointsToMarketNamesMapping: $supplyPointsToMarketNamesMapping
) {
edgeCount
edges {
...OnSiteJobsRequestConnectionTypeEdgeFragment
}
pageInfo {
...PageInfoFragment
}
totalCount
}
}
Variables
{
"accountNumbers": "crime-glass-lawyer-them-process",
"after": "YXJyYXljb25uZWN0aW9uOjEw=",
"before": "YXJyYXljb25uZWN0aW9uOjEw=",
"first": 10,
"last": 10,
"statuses": "APPOINTMENT_FAILED",
"supplyPointInternalIds": 79,
"supplyPointsToMarketNamesMapping": SupplyPointIdentifierToMarketNameMappingInput
}
Response
{
"data": {
"getOnSiteJobsRequests": {
"edgeCount": 49,
"edges": [OnSiteJobsRequestConnectionTypeEdge],
"pageInfo": PageInfo,
"totalCount": 87
}
}
}