Skip to main content

Arguments

accountNumbers : [NonEmptyString!]

A list of account numbers to filter requests by.

after : String
before : String
first : Int
last : Int

A list of statuses to filter requests by.

supplyPointInternalIds : [Int]

List of internal IDs of supply points to filter requests by. If this is provided, supplyPointsToMarketNamesMapping cannot be provided.

supplyPointsToMarketNamesMapping : [SupplyPointIdentifierToMarketNameMappingInput]

A list of supply point identifiers to filter requests by. If this is provided, supplyPointInternalIds cannot be provided.

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 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 } } }