User Tools

Site Tools


newscorecard

This is an old revision of the document!


/hcp/newscorecard

Create a new scorecard.

parameters:

auth the authorisation code you received from Intogolf BV (mandatory)
relnr the id of the golfer (mandatory)
epenr the id of the player within a competition. if epenr is provided, you can omit chhnr, date, time, ratnr and handicap, because any values provided for these parameters will be overruled by whatever is defined inside the competition.
chhnr the id of the registration in the handicap history.
date mandatory unless epenr is provided. format yyyymmdd
time starttime is mandatory unless epenr is provided. formatted as minutes since midnight (10:00 = 600, 12:40 = 760)
ratnr id of the measured course. mandatory unless epenr is provided

example: https://backend.ikgagolfen.nl/igg/newscorecard?auth=<your authorisation code>&645347&relnr=123456&epenr=12345

example: https://backend.ikgagolfen.nl/igg/newscorecard?auth=<your authorisation code>&645347&relnr=123456&chhnr=12345&date=20131126&time=630&ratnr=1234

result:

{
  "gethandicaphistory": [
    {
      "ihhnr": 0,
      "chhnr": 0,
      "epenr": 188417,
      "playdate": "20121205",
      "hctnr": 3,
      "stableford": 3,
      "handicapold": 16.6,
      "handicapnew": 0.0,
      "holes": 18,
      "hcpactive": 0,
      "cba": 0,
      "course": "mixed ochtend NQ",
      "remark": ""
    },
    {
      "ihhnr": 0,
      "chhnr": 61674,
      "epenr": 0,
      "playdate": "20121128",
      "hctnr": 2,
      "stableford": 2,
      "handicapold": 16.9,
      "handicapnew": 16.6,
      "holes": 18,
      "hcpactive": 1,
      "cba": 0,
      "course": "De Turfvaert - De Turfvaert 18 holes",
      "remark": "strokeplay winst, fred blans 1e wedstrijd"
    },
    {
      "ihhnr": 0,
      "chhnr": 0,
      "epenr": 186203,
      "playdate": "20121114",
      "hctnr": 3,
      "stableford": 3,
      "handicapold": 17.8,
      "handicapnew": 16.9,
      "holes": 18,
      "hcpactive": 0,
      "cba": 0,
      "course": "mixed ochtend NQ",
      "remark": ""
    },
  ]
}
ihhnr internal id of the record in the handicap history of practise rounds
chhnr internal id of the record in the handicap history
epenr internal id of the record that represents the golfer in the competition (if applicable)
playdate date the round was played (format yyyymmdd)
hctnr type of the handicaphistory record. possible values are: 1-set initial handicap, 2-qualifying card, 3-competition result, 4-no return, 5-revoke handicap, 6-manual handicap adjustment, 7-annual handicap evaluation, 8-non qualifying card, 9-no show, 10-disqualified
stableford stableford points
handicapold handicap before this card is computed
handicapnew handicap after this card is applied
holes nr of holes played
hcpactive 1 if the handicap is active, 0 if not active
cba value that was used for cba in case of a competition
course name of the course played or name of the competition played
rmark remark entered by the user

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

newscorecard.1385477167.txt.gz · Last modified: 2013/11/26 14:46 (external edit)