return_exchange

Fetch return exchange records matching the supplied arguments.

Arguments

ArgumentTypeRequiredDefaultDescription
idString!Yes

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

analyzeBooleanNo

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

Return Type

ReturnExchangeQueryResult

Query

query return_exchange(
  $id: String!,
  $analyze: Boolean
) {
  return_exchange(
    id: $id,
    analyze: $analyze
  ) {
    request_id
    complexity
    data {
      ...ReturnExchangeFragment
    }
  }
}

Variables

{
  "id": "UmVjb3JkOjEyMzQ=",
  "analyze": true
}

Response

{
  "data": {
    "return_exchange": {
      "request_id": "UmVjb3JkOjEyMzQ=",
      "complexity": 100,
      "data": {id: "UmV0dXJuRXhjaGFuZ2U6MTIzNA=="}
    }
  }
}