User Tools

Site Tools


getteetime

/igg/getteetime

Retrieve the current data of a teetime reservation

parameters:

auth the authorisation code you received from Intogolf BV (mandatory)
fltnr id of booking (mandatory)

example: https://backend.ikgagolfen.nl/igg/getteetime?auth=<your authorisation code>&crsnr=1&relnr=701160&fltnr=3058247

result (if booking not canceled):

{
  "getteetime": [
    {
      "crsnr": 1,
      "crsshortname": "Intogolf",
      "crsname": "Intogolf BV",
      "fltnr": 3058247,
      "fltdate": 1,
      "flttime": 600,
      "crlnr1": 6,
      "crlname1": "rood",
      "crlnr2": 22,
      "crlname2": "blauw",
      "canceled": 0,
      "players": [
        {
          "flpnr": 9951290,
          "relnr": 701160,
          "flpname": "knol, r.j.w."
        },
        {
          "flpnr": 9951291,
          "relnr": 659764,
          "flpname": "knol-pas, s.a.w."
        },
        {
          "flpnr": 9951371,
          "relnr": 0,
          "flpname": "test"
        }
      ]
    }
  ]
}

result if canceled:

{
  "getteetime": [
    {
      "crsnr": 1,
      "crsshortname": "Intogolf",
      "crsname": "Intogolf BV",
      "fltnr": 3058247,
      "fltdate": 1,
      "flttime": 600,
      "crlnr1": 6,
      "crlname1": "rood",
      "crlnr2": 22,
      "crlname2": "blauw",
      "canceled": 1,
      "players": [

      ]
    }
  ]
}

if a wrong authorisation code is provided, the backend will return “no authorisation”

getteetime.txt · Last modified: 2017/11/22 16:22 by marcel