Eventjet GraphQL API documentation

checkinTargetSource

Resolves the check-in source a scan code identifies, together with its check-in targets.

A source stands for one event: CheckinTargetSource.name carries the name of that event, and every CheckinTarget in CheckinTargetSource.targets stands for one of its tickets. The scan code identifies the source, not an individual ticket: it is scanned or entered once to obtain everything that may be checked in there. CheckinTarget.scanCode holds the code an individual ticket carries — the value later sent to Mutation.checkIn.

Read CheckinTargetSource.targets for the full list. To keep an existing local copy current, read CheckinTargetSource.changedTargets instead and pass the fingerprint argument taken from CheckinTargetDelta.fingerprint of the previous response: only targets whose data changed since then are returned, together with a new CheckinTargetDelta.fingerprint for the next call. When nothing changed, CheckinTargetDelta.targets is empty and the fingerprint you sent is returned unchanged. Omit the fingerprint argument, or pass one that is no longer known, to receive all targets.

No authorization is required — knowledge of the scan code grants access to the source. A scan code that belongs to no known source makes the field report an error.

query GetCheckinTargets($scanCode: ID!, $fingerprint: String) {
  checkinTargetSource(scanCode: $scanCode) {
    name {
      locale
      text
    }
    hideTargetQuantity
    changedTargets(fingerprint: $fingerprint) {
      fingerprint
      targets {
        scanCode
        isRevoked
        checkin {
          timestamp
        }
      }
    }
  }
}
query GetCheckinTargets($scanCode: ID!, $fingerprint: String) {
  checkinTargetSource(scanCode: $scanCode) {
    name {
      locale
      text
    }
    hideTargetQuantity
    changedTargets(fingerprint: $fingerprint) {
      fingerprint
      targets {
        scanCode
        isRevoked
        checkin {
          timestamp
        }
      }
    }
  }
}

Arguments

ArgumentDescriptionType
scanCodeID!

Type

This field resolves to CheckinTargetSource!.