User Tools

Site Tools


sethandicap

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
sethandicap [2013/12/17 14:19]
richard
sethandicap [2013/12/18 12:43] (current)
Line 4: Line 4:
 parameters: parameters:
 |auth |the authorisation code you received from Intogolf BV (mandatory)| |auth |the authorisation code you received from Intogolf BV (mandatory)|
-|handicap|the new handicap (format 99.9)| +|handicap|the new handicap (format 99.9) (mandatory)| 
-|relnr |specify the relation(s) to be changed by ikgagolfen id+|active|1 if the handicap is active, 0 if inactive (mandatory)| 
 +|relnr |specify the relation(s) to be changed by ikgagolfen id|
 |relnrlocal |specify the relation to be changed by local id within the domain of the golfcourse| |relnrlocal |specify the relation to be changed by local id within the domain of the golfcourse|
 |mbrcode ​  ​|specify the relation(s) to be changed by membercode| |mbrcode ​  ​|specify the relation(s) to be changed by membercode|
Line 13: Line 14:
  
  
-You need to specify at least one of the parameters ​(apart from auth and handicap of course). There is no guarantee that the parameters relnr, mbrcode, ngfnumber, debtorid, externalid will point to only 1 relation. It is possible that multiple relations exist with the id and that the handicap of multiple relations will be changed. Only relnrlocal is always unique.+You need to specify at least one of the non-mandatory ​parameters ​to specify which relation/​member needs to be updated. There is no guarantee that the parameters relnr, mbrcode, ngfnumber, debtorid, externalid will point to only 1 relation ​or member. It is possible that multiple relations exist with the id and that the handicap of multiple relations will be changed. Only relnrlocal is always unique. ​But even with a unique relation it is technically possible that multiple memberships exist. 
 + 
 +The API will always return all relations/​memberships that meet the criteria ​
  
  
Line 28: Line 31:
             "​relnr":​ 659764,             "​relnr":​ 659764,
             "​relnrlocal":​ 123456,             "​relnrlocal":​ 123456,
-            "​handicap":​ "​23.4"​+            "​handicap":​ "​23.4"​
 +            "​active":​ 1
         }         }
     ]     ]
sethandicap.1387289988.txt.gz · Last modified: 2013/12/17 14:19 by richard