Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Expand
titleResponse
Bitbucket file macro
urlhttps://bitbucket.org/samtrafiken/tess-documentation/src/master/examples/blacklist/get/response.json
syntaxHighlightingJSON

Fraudcheck

The fraudcheck call results in a velocity calculated as follows:

  • The caller provides a reference to a MTB, a time and geographical position

  • The callee looks up the time and geographical position of the last ticket event for the given MTB

  • The callee returns the calculated velocity given the time/geopos

The response must only be given once per validation event and client. Velocity less than 1 km/h or distances less than 1 km shall render 0 km/h.

The resulting velocity is used to determine possible fraud. If the velocity is higher than any available mode of transportation, the ticket has most likely been copied and presented at different locations.

Endpoint: GET /api/v2/fraudcheck

Expand
titleRequest
Bitbucket file macro
urlhttps://bitbucket.org/samtrafiken/tess-documentation/src/master/examples/validation/fraudcheck/request.json
syntaxHighlightingJSON
Expand
titleResponse
Bitbucket file macro
urlhttps://bitbucket.org/samtrafiken/tess-documentation/src/master/examples/validation/fraudcheck/response.json
syntaxHighlightingJSON