{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/gsma/json-schema/gsma-retrieval-location-request-schema.json",
  "title": "RetrievalLocationRequest",
  "description": "Request to retrieve the location of a device. Device is not required when using a 3-legged access token, following the rules in the description.",
  "x-generated": "2026-11-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/gsma-location-retrieval-api-openapi.yml#/components/schemas/RetrievalLocationRequest",
  "type": "object",
  "properties": {
    "device": {
      "$ref": "../common/CAMARA_common.yaml#/components/schemas/Device"
    },
    "maxAge": {
      "type": "integer",
      "format": "int32",
      "minimum": 0,
      "maximum": 2147483647,
      "description": "Maximum age of the location information which is accepted for the location retrieval (in seconds). Absence of maxAge means \"any age\" and maxAge=0 means a fresh calculation."
    },
    "maxSurface": {
      "type": "integer",
      "format": "int32",
      "minimum": 1,
      "maximum": 2147483647,
      "description": "Maximum surface in square meters which is accepted by the client for the location retrieval. Absence of maxSurface means \"any surface size\"."
    }
  }
}