ad_hoc_charges

Fetch ad hoc charges matching the supplied arguments.

Arguments

ArgumentTypeRequiredDefaultDescription
ids[String]!Yes

Filter by IDs; pass public API IDs unless the field name says legacy IDs. Required.

analyzeBooleanNo

If true, the query will only be analyzed (cost estimated) without executing it.

Return Type

AdHocChargesQueryResult

Query

query ad_hoc_charges(
  $ids: [String]!,
  $analyze: Boolean
) {
  ad_hoc_charges(
    ids: $ids,
    analyze: $analyze
  ) {
    request_id
    complexity
    data {
      ...AdHocChargeConnectionFragment
    }
  }
}

Variables

{
  "ids": ["UmVjb3JkOjEyMzQ="],
  "analyze": true
}

Response

{
  "data": {
    "ad_hoc_charges": {
      "request_id": "UmVjb3JkOjEyMzQ=",
      "complexity": 100,
      "data": [{id: "QWRIb2NDaGFyZ2U6MTIzNA=="}]
    }
  }
}