User Tools

Site Tools


getrelations

This is an old revision of the document!


/itg/getrelations

Retrieve relation data of 1 relation, all relations or all realtions updated since a specific date.

parameters:

auth the authorisation code you received from Intogolf BV (mandatory) (you need autorisation level 3 for this API)
relnr retrieve 1 (possibly more if duplicates exist) golfer with ikgagolfen id
relnrlocal retrieve 1 golfer with this local id within the domain of the golfcourse
datefrom retrieve data of all golfers changed since this date (format yyyymmdd)

If none of the parameters relnr, relnrlocal or datefrom are provided, all non-deleted golfers are returned.

If a wrong authorisation code is provided, the backend will return 401,“Unauthorized”

example: https://backend.intogolf.com/itg/getrelations?auth=<your authorisation code>&relnr=659764

result:

{
{

    "getrelations": [
        {
            "balance": 304.73,
            "pmtnr": 300,
            "pmtname": "delflandcard"
        }
    ]

}
rtlnr 0 - person, 1 - company
initialsif the relation is a company, this fild will be filled with an optional 2nd line of the company name
getrelations.1387287120.txt.gz · Last modified: 2013/12/17 13:32 by richard